Comment on What's your weirdest or most unique self-hosted use case and solution?

LeTak@feddit.org ⁨1⁩ ⁨day⁩ ago

I am selfhosting HomeAssistant and one automation is for my ceiling lamp. As I don’t whant to touch the electrical wiring or alter it permanently, I control it via IR and imitated the signal from the original remote via the ESP32 and some IR led. This on his own does not build a full feedback loop, so the ESP does not know if the light changed after the signal got send out. I lacked the correct light sensor in my inventory but remembered that my clock got one for display brightness control. The clock supports MQTT and also exposes the light sensor values in HomeAssistant. So after the ESP sends a signal to turn off or on the light, the automation looks at the light value from the clock to validate that it worked, else it tries sending it again.

original
Sort:hotnewtop