Got a weird issue with OpenHAB and MQTT broker (mosquitto) that was doing my head in last night...
I have MQTT running on same box as OpenHAB, sends messages to open/close the Garage Door and open/close the Roller Blinds.
The Garage door works perfectly fine. The roller blinds don't. However with the rollerblinds if I publish a message from Linux command line (eg: mosquitto_pub -t "openhab/blinds/trigger" -m "OPEN") it works fine, the blinds will open. There seems to be some issue between OpenHAB and Mosquitto - however I can't work it out because I've already proved that the communication must be fine as the Garage Door still works. I just copied the garage door lines and altered for the blinds, changing the topic and message to suit.
Here are the items and sitemap file:
Items file:
Switch doorButton "Garage Door" <garage> (gGarage) {mqtt=">[mqttbroker:openhab/garage/doorswitch:command:ON:ACTIVATE],>[mqttbroker:openhab/garage/doorswitch:command:OFF:DEACTIVATE]"}
Number doorStatus "Door Status [MAP(switch.map):%d]" <garagedoor> (gGarage) {mqtt="<[mqttbroker:openhab/garage/doorstatus:state:default]"}
Switch hallBlinds "Hall Blinds" <rollershutter> (gBlinds) {mqtt=">[mqttbroker:openhab/blinds/trigger:command:ON:OPEN],>[mqttbroker:openhab/blinds/trigger:command:OFF:CLOSE]"}
Number blindStatus "Controller [MAP(blinds.map):%d]" <icon16x16> (gBlinds) {mqtt="<[mqttbroker:openhab/blinds/status:state:default]"}
Sitemap:
Frame label="Doors and Blinds" {
Switch item=hallBlinds mappings=[ON="Up", OFF="Down"]
Text item=blindStatus
Switch item=doorButton mappings=[ON="Open", OFF="Close"]
Text item=doorStatus
Any ideas?