benleb / ad-automoli

💡 Fully automatic light management based on conditions like motion, illuminance, humidity, and other clever features
https://github.com/benleb/ad-automoli
MIT License
110 stars 29 forks source link

Templating or Not requiring light % #65

Closed ds-sebastian closed 3 years ago

ds-sebastian commented 3 years ago

I use adaptive/circadian lighting and it would be great if I could use templating to set the brightness to be equal the attribute values from the sensor the integration creates.

ex: light: {{state_attr("switch.adaptive_lighting_all_lights_adaptive", "brightness_pct")}}

Another possibly simpler solution would just to be able to turn on or off the light, without having to specify a light brightness setting as it seems both the default and custom daytimes require it. The integration would then automatically handle the brightness and color.

Perhaps this is already possible somehow, but I thought I'd ask!

ds-sebastian commented 3 years ago

Setting a scene with just light.turn_on works for this