Hi community,
I´ve a working Sonoff Tasmota S20 device, a working Mosquitto Broker and even an working fhem connection. But I can´t get the openhab mqtt binding to work. I followed a youtube tutorial, and after that doesn´t work I tried a lot to solve the problem.
And I think I did not completely understand the mqtt binding.
To my configuration:
My sonoff device:
MQTT Host 192.168.1.3
MQTT Port 1883
MQTT client & Fallback topic sonoff-A2F78A
MQTT-Benutzer mqtt
MQTT topic sonoff-A2F78A
MQTT group topic sonoffs
MQTT full topic cmnd/sonoff-A2F78A/
My mqtt.cfg (copied from /var/lib/openhab2/config/org/openhab/mqtt.config)
192.168.1.3=“tcp://localhost:1883”
.clientId=“Openhab2”
.pwd=“XXXXXX”
.url=“tcp://localhost:1883”
.user=“mqtt”
#.clientId=“openhab2”
#.url=“tcp://localhost:1883”
#broker.clientId=“openhab2”
#broker.url=“tcp://localhost:1883”
#raspi.clientId=“openhab2”
#raspi.url=“tcp://localhost:1883”
service.pid=“org.openhab.mqtt”
My defined items:
Switch Sonoff_Steckdose1 “Steckdose1” (LR,gLight)
{ mqtt=">[broker:cmnd/sonoff-A2F78A/POWER:command:ON:ON],
<[broker:stat/sonoff-A2F78A/POWER:state:default]" }
Switch MQTT_Test “Testing…” { mqtt="<[broker:testing/mqtt/topic:state:default], >[broker:testing/mqtt/back-topic:command:*:default]" }
(when I change the switch.items there is no error in the log, so I think the syntax should be OK)
The items are defined in a sitemap, when I toggle this switch a entry in the events.log appears. But no message arrives by the broker, checked by mqtt.fx.
For understanding, do I need to config something in the mqtt-eventbus.cfg? Some tutorials do so, others not?
Thank you for your help!!!