Since I'm already running Mosquitto to interface with zwave devices, I decided to also use it to monitor my home lab. Servers push sensor statuses into Mosquitto and Home Assistant is used for the UI and alerting. That was a fun week-end project.
Since I'm already running Mosquitto to interface with zwave devices, I decided to also use it to monitor my home lab. Servers push sensor statuses into Mosquitto and Home Assistant is used for the UI and alerting. That was a fun week-end project.
And now, they've moved on from that to having straight websocket communication between those two programs, eliminating MQTT altogether.
I use MQTT for a lot of stuff but it adds a layer of delay between devices that is particularly noticeable with flipping a light switch in the Home Assistant web ui.
I do run MQTT for a few wifi devices and communication between node red and custom client code on my laptop/desktop.
I have yet to find a good resource for outlining autodiscovery. Most of the projects I have come across just hard code some pub paths in the homeassistant namespace.
Personally, I like to use the MAC since it means code reuse, but whatever it is make sure it’s there and unique.
I don't know what it is about the hassio docs but I have a hard time groking them and quite often find myself looking elsewhere for clarification.
The problem I have with MQTT is also a feature. The payload format isn’t defined, there is no request response structure, encryption of payload requires custom encapsulation, etc. You are on your own for everything.
This is made better in MQTT v5, but AWS still doesn’t support that.
If I was starting over today, I really like OSCORE and CoAP derivatives for their completeness.