Hey Everyone.
As much as it pains me to make yet another “help me” topic especially involving MQTT, I just can not get mine to work.
Info about my install:
OH2 2.2.0-1 running on a RPi3. Mosquito is my broker. I installed Mosquito through the openhabian-config and also installed the MQTT bidding version 1.11.0.
I am currently trying to subscribe to two topics: garage/door and garage/button so I can control my garage and get the status of the door. I can subscribe and send commands through MQTT.fx.
Here is my mqtt.cfg, obviously with a few things I do not want to share, ip, usernames, pass…
broker.url=tcp://my-pi-ip:1883
broker.clientId=OpenHab
broker.user=my-user
broker.pwd=my-password
broker.retain=true
broker.async=false
Next we got my items:
String GarageDoorState "Door State" {mqtt="<[broker:/garage/door:state:default]"}
Switch GarageDoorButton "Garage Door" { mqtt=">[broker:garage/button:command:OPEN]"}
No matter what I seem to do, I can not control the door through BasicUI or HABPanel.
//Garage Door
Frame label="Garage Door"{
Switch item=GarageDoorButton
Text item=GarageDoorState
}
On BasicUI the state is blank. On HABPanel the state shows NULL. The switch doesn’t work with either.
Does anyone have any idea what I am doing wrong?