Dim up or down sequence

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

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.

I don’t think you can use toggle for setting brightness, just use turn_on.

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

It depends on whether the component you are using allows transitions or not but brightness should work.

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 :slight_smile: