I’ve got automated blinds from Rollertrol and am using a Wemos D1 mini I’ve programmed up and built onto a circuit board with some mosfets etc to basically take MQTT messages from OpenHAB to open/close the blinds (via their relay controller, which in turn sends messages to the blinds themselves via RF signals). Anyways, it all works and has done for sometime, although recently I decided to add the blind ‘stop’ functionality to it, so altered my items and sitemap files and changed Wemos code to trigger the ‘stop’ relay via another GPIO pin and MQTT message on the Wemos. This works perfectly fine if I send the message via the command line (eg: mosquitto_pub … etc)
But hitting ‘Stop’ in OpenHAB GUI doesn’t send the message though, what am I doing wrong? Must be something simple…
items file
Switch hallblindTrigger "Hall Blinds" <blinds> { mqtt=">[mqttbroker:openhab/blinds/trigger:command:ON:OPEN],>[mqttbroker:openhab/blinds/trigger:command:STOP:STOP],>[mqttbroker:openhab/blinds/trigger:command:OFF:CLOSE]" }
sitemap
Switch item=hallblindTrigger mappings=[ON="Open", STOP="Stop", OFF="Close"]