basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.7k stars 127 forks source link

Monitor events in addition to interception #1010

Closed Gagootron closed 1 month ago

Gagootron commented 1 month ago

I have some custom built lights based on esp-home. They include motion sensors and will turn themselves on without any interaction with Homeassistant (quite useful when my server goes down). But they do still report that they are on to HA.

My main problem is that no adaptive lightning is applied when the motion sensor actives the light.

It would be nice to have an option to listen for the event of the light turning on and adapting then.

Gagootron commented 1 month ago

I managed to work around this.

For anyone with the same issue: I added a always on "virtual" light that is controlled by adaptive-lighting and connected to a couple of dummy template outputs.

Then with some automations and templating (that is too ugly to share) i managed to copy the state of the virtual light to the real lights.