Overwrite light.turn_off and light.turn_on #252
Julien-Decoen
started this conversation in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my actual config, I customize how lights turning on and off on my areas. To do that, I creates templates' light to overwrite the classic light.turn_off and light.turn_on.
Light.turn_on : the script toggle a scene according to the time of the day (morning, daytime, evening, night) and create a secondary state "Starting" for 20 seconds if I want to push a switch to activate the manual mode.
Light.turn_off : the script create a secondary state "Extinction" for 20 seconds and decrease lights brightness to notify user that it going to be turned off.
It could be cool if a can remove my old templates' light, to use magic areas light entity.
Ideas to implement it :
Thanks a lot for all your work !
Juicy
Beta Was this translation helpful? Give feedback.
All reactions