A little Home Assistant Mqtt integration using mqtt_as
Posted: Mon Feb 08, 2021 7:47 pm
Hi all,
I've made a little library allowing me to interface a esp32 with home assistant using Peter Hinch's mqtt_as.
I have implemented switches, basic lights, lights with brightness and RGB lights. Devices are automatically registered into home assistant with mqtt discovery, allowing to create automations.
I tried to make something easy to extend, allowing to implement other kind devices. I use it to drive the lights of my fish-tanks, I plan to add temperature sensors next.
The code quality is questionable as I'm still new to python, but it works.
https://github.com/rguillon/hatank
I've made a little library allowing me to interface a esp32 with home assistant using Peter Hinch's mqtt_as.
I have implemented switches, basic lights, lights with brightness and RGB lights. Devices are automatically registered into home assistant with mqtt discovery, allowing to create automations.
I tried to make something easy to extend, allowing to implement other kind devices. I use it to drive the lights of my fish-tanks, I plan to add temperature sensors next.
The code quality is questionable as I'm still new to python, but it works.
https://github.com/rguillon/hatank