Just got a RPI up and running with Openhab2, mosquitto and a MQTT-ethernet gateway.
Sensors are sending to the broker and I can read it in Openhab, but when I tried a relay from “mysensors” I am not able to send a MQTT-message to the sensor.
I can see Openhab recieving data from the reley when it changes status but I am not able to change it from Openhab.
For the record, I’m totaly new to this so please be gentle and I have been searching forums for hours with no luck…
Items file:
Switch Belysning1 "Belysning" <garagedoor> {mqtt=">[broker:mygateway1-out/3/1/1/0/2:command:ON:0)],>[broker:mygateway1-out/3/1/1/0/2:command:OFF:1]"}
String Belysning1 "state [%s]" <door> {mqtt="<[broker:mygateway1-out/3/1/1/0/2:state:default]"}
Sitemap:
{
Switch item=Belysning1
Text item=Belysning1
}
MQTT.cfg
broker.url=tcp://192.168.1.245:1883