Drolla / WavePlus_Bridge

Airthings Wave Plus Bridge to Wifi/LAN and MQTT
MIT License
21 stars 9 forks source link

Improve the MQTT interface: Use the Homie library/specification #14

Open Drolla opened 1 year ago

Drolla commented 1 year ago

This is a remaining suggestion from @rkoshak taken over from #6 to use the Homie library/specification for the MQTT interface.

rkoshak commented 1 year ago

Here's an example which might make things easier for you.

https://github.com/rkoshak/sensorReporter/blob/main/mqtt/homie_conn.py

Note that it doesn't know ahead of time what topics need to be available so it is probably a little more complicated than you'd need to implement.