Hello everyone!
I recently installed mosquitto, zigbee2mqtt und linked them via MQTT Binding in Openhab.
I paired a Xiaomi wall switch and tested all that with MQTT.fx
I get messages like {“battery”:100,“voltage”:3175,“linkquality”:57,“click”:“right”}
So I think this part works.
What I also managed to do is to publish MQTT Messages via rules:
val mqttActions = getActions(“mqtt”,“mqtt:broker:mqttbroker”)
mqttActions.publishMQTT(“mytopic”,“myvalue”, true)
This also arrives in MQTT.fx
Now here’s my problem:
I cannot get it to work that Openhab receives messages from the broker
Item is defined as
String Aqara1_CLICK “Aqara1 [%s]” {mqtt="<[mqtt:broker:mqttbroker:zigbee2mqtt/Aqara1:command:JS(getZigbeeClick.js)]"}
I must say that I’m totally new to Openhab, ZigBee and MQTT and everything I did so far was copy/paste from websites/youtube so please excuse stupid mistakes
Any help is appreciated
Greeting from germany,
Wolfgang