haybolat
(Hayati BOLAT)
December 22, 2020, 2:47pm
21
openhab_knx:
check the new binding
I don’t understand, please help. I did not understand how to upgrade.
i don’t know how you are using mqtt. What is your usecase?
First step is to install the new binding.
Bindings - mqtt install.
Another option would be to run mqtt1
in OH2 and link it to OH3 with the remoteopenhab
binding.
haybolat:
I already installed mqtt
Presumably you have configuration files. Use this guide to convert:
# Xtend Examples
## Examples
Have a look at the following textual examples.
### A broker Thing with a Generic MQTT Thing and a few channels
demo1.things:
```java
Bridge mqtt:broker:myUnsecureBroker [ host="192.168.0.42", secure=false ]
{
Thing topic mything {
Channels:
Type switch : lamp "Kitchen Lamp" [ stateTopic="lamp/enabled", commandTopic="lamp/enabled/set" ]
Type switch : fancylamp "Fancy Lamp" [ stateTopic="fancy/lamp/state", commandTopic="fancy/lamp/command", on="i-am-on", off="i-am-off" ]
Type string : alarmpanel "Alarm system" [ stateTopic="alarm/panel/state", commandTopic="alarm/panel/set", allowedStates="ARMED_HOME,ARMED_AWAY,UNARMED" ]
Type color : lampcolor "Kitchen Lamp color" [ stateTopic="lamp/color", commandTopic="lamp/color/set", rgb=true ]
Type dimmer : blind "Blind" [ stateTopic="blind/state", commandTopic="blind/set", min=0, max=5, step=1 ]
This file has been truncated. show original
haybolat
(Hayati BOLAT)
December 22, 2020, 5:37pm
26
I can not find any explanatory information for those who do not know. There is no document detailing the transition from Mqtt1 to Mqtt2. Please, I ask the knowing friends to make detailed documents. There are other people like me who have other problems.
Did you click the link provided? It takes you directly to the part of the document called Converting an MQTT1 installation - you might say it is a “document detailing the transition from Mqtt1 to Mqtt2”…
haybolat
(Hayati BOLAT)
December 22, 2020, 5:45pm
28
It explains the link conversion you say. I’m asking how to change mqtt2 usage instead of mqtt1.