dawnlord
(Christer)
February 7, 2018, 10:01am
1
In the night i want to dim down and finally shut down the light.
In the morning i want to dim up and finally shut down when “awake”.
Everything work but the dim function…
Light turn on and have same percentage until shut down.
action:
service: light.turn_on
data:
entity_id: light.sovrum
brightness_pct: 5
delay: 00:05:00
service: light.toggle
data:
entity_id: light.sovrum
brightness_pct: 10
delay: 00:05:00
service: light.toggle
data:
entity_id: light.sovrum
brightness_pct: 25
touliloup
(Romain)
February 7, 2018, 12:53pm
2
What light component are you using? With most you can set a transition
- service: light.turn_on
data:
entity_id: light.sovrum
transition: 300
brightness: 25
It will go from brightness 0 to brightness 25 in 300 seconds.
keithh666
(Keith Hull)
February 7, 2018, 1:03pm
3
I don’t think you can use toggle for setting brightness, just use turn_on.
dawnlord
(Christer)
February 7, 2018, 2:30pm
4
It is actually a dimable 433 switch.
So this should do it?
service: light.turn_on
data:
entity_id: light.sovrum
transition: 300
brightness_pct: 5
transition: 300
service: light.turn_on
data:
entity_id: light.sovrum
brightness_pct: 10
transition: 300
service: light.turn_on
data:
entity_id: light.sovrum
brightness_pct: 25
keithh666
(Keith Hull)
February 7, 2018, 5:57pm
5
It depends on whether the component you are using allows transitions or not but brightness should work.
liminal
(Shane)
February 24, 2021, 3:22am
6
How can I do the opposite, set a brightness at 25% and go to 0 over 300s?
This is what I have so far;
- service: light.turn_on
data:
transition: 300
brightness: 0
Thanks