Etc/openhab2/services/mqtt.cfg

openhab2
mqtt
binding
Tags: #<Tag:0x00007fe05d9c0f50> #<Tag:0x00007fe05d9c0d70> #<Tag:0x00007fe05d9c0b68>

(Raul Vazquez) #1

hi, im having problems binding mqtt to openhab, i have the expert configuration in my openhab and already installed the mqtt binding and did all the instalation in putty, but when i put the comand “sudo nano etc/openhab2/services/mqtt.cfg” there is no file


(Jürgen Baginski) #2

Which binding did you use, MQTT1 or MQTT2?
The former uses the .cfg the later not!


(Raul Vazquez) #3

in used the mqtt binding 2.4 in the UI


(Jürgen Baginski) #4

In this case no .mqtt.cfg is written and needed.
What you Need is a mqtt broker (either a seperate mqtt broker like mosquito or the embedded one, which is found under Addons-Misc).
After the broker is running create a mqtt broker Thing which connects openhab with the broker, after that create the things for each device (either manual with the generic mqtt things or (if your mqtt Setup allows that) use the auto-discovery for Homie or Home-assistant Setups).


(Vincent Regaud) #5

Then have a look at: