I am an experienced Arduino developer, with a lot of experienceusing MQTT. But I am relatively new to mcsMQTT (have played with it for 3-4 hours without much success). The mcsMQTT plug in seems to have an incredible amount of flexibility, but I am afraid that that amounts to just a long piece of rope that I'm hanging myself with. Perhaps someone can help or point me to some other online resource (I've been using the mcsMQTT.pdf file thus far, to little avail).
I have full control over the Arduino end, so I am perfectly willing to setup the MQTT topic and payload values to be whatever will make it easiest for mcsMQTT to use.
The Arduino app will be a home grown garage door opener control. Very straight forward: 2 status values (Open or Closed), and 2 commands (open the door and close the door). Plus, there are two garage doors. So I need to refer to each individual door as either the Large garage door or the Small garage door.
I have successfully connected mcsMQTT to my MQTT broker, and have been playing with various topics such as an incoming (to mcsMQTT) topic/payload of "GarageDoor/LargeDoor open" or "GarageDoor/LargeDoor closed" to indicate status, and outgoing (transmitted from mcsMQTT) topic/payload of "GarageDoor/LargeDoor/Control open" to command the door to open, and "GarageDoor/LargeDoor/Control close" to command the door to close.
I was able to successfully get whatever incoming payload (open or closed) to show in HS3 as open or closed. And I was able to setup a status graphic so show open or closed. But when using the status graphic, the text displayed by the graphic never changed. So that is not acceptible. I was doing this via the Edit Status Text screen under the Status Graphics tab, using 2 "status" entries.
At other points in my sandboxing work I was able to get two control buttons labeled Open and Close to appear on the main HS3 screen, and when either button was pressed, I saw the MQTT message of "GarageDoor/LargeDoor/Control open" get transmitted.
But I could not get both status display behavior AND control behavior to work at the same time. Fixing one always messed something up on the other.
Please help!
Thanks!
Comment