I just downloaded FlyingDiver's MQTT broker and connector plugins. Currently I'm using an ESP32 and a breakout board to plan my door state sensors for the home project coming up. Up to this point I was using the UDP Listener plug-in to listen for UDP packets from the ESP32, which would send out a JSON payload when a door state changed.
With MQTT I can eliminate the UDP approach and use a tool like MQTT Explorer to see the state of the broker, which is very nice for debugging.
I've organized my doors states like so:
home/door/utility/state
home/door/front/state
home/door/rear/state
and so on. The value of each of these is 0 (closed) or 1 (open)
What I'm wondering about now is how to organize my 21 door states. Should I create a separate MQTT connector device for each door state, or should I create one MQTT connector that subscribes to all 21 door states? In any case, I'm going to need to setup a trigger to run a script on receipt of a specific topic match. Thoughts?
And finally, thank you FlyingDiver for these excellent plugins!