*Home assistant, is the light of on?
I don’t know, let me ask the clock.*
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.
*Home assistant, is the light of on?
I don’t know, let me ask the clock.*
I kind of love this.
Ugh, I absolutely love this. What clock is it?
JustEnoughDucks@slrpnk.net 7 minutes ago
I need to do something similar. I have a Esp32S3 music player/ voice assistant connected to my old Yamaha, 90s AV receiver. It can change the volume knob via IR commands (cool integrated motor that physically turns the knob when the remote or HA changes the volume with IR).
I want to do something like put a ring magnet and an encoder on the tiny shaft or something to get position feedback to couple to HomeAssistant/musicassistant.