How to make a Light ramp up its brightness over a 15 minute period

Im trying to make my room lights start at 1% brightness and increase to 100% over a 15 minute period. right now im doing that using a date/time input hellper as the trigger so itll happen at a certian time. triggering it seems to work fine its the actual out put htat isnt working correctly.

heres what i have:

alias: Work Alarm clock
description: ''
trigger:
  - platform: time
    at: input_datetime.work_alarm
condition: []
action:
  - service: light.turn_on
    data:
      transition: 900
      brightness_pct: 100
    target:
      entity_id: light.bedroom_nightlights_mss560x_main_channel
mode: restart

whats happening: when it triggers, the light turns on but it jsut turns onto the 100% brightness and does nothing. if i remove the brightness_pct: 100 portion, it turns on to the last used state but again, doesnt increase in brightness.

the device im using is a Meross MSS560 smart dimmer switch. im able to dim it fine manual in home assistant.

any ideas?

Try:

action:
  - service: light.turn_on
    data:
      brightness_pct: 1
    target:
      entity_id: light.bedroom_nightlights_mss560x_main_channel
  - service: light.turn_on
    data:
      transition: 900
      brightness_pct: 100
    target:
      entity_id: light.bedroom_nightlights_mss560x_main_channel

Maybe it’s transitioning from the last brightness before turn off?

Sadly it didnt work. it just made it go to 1% brightness then 100% right after.

Oh well worth a try. Have you had a play with the brightness step settings? I have to admit the only time I have played around with transitions was using the vendors app, not HA.

ill give that a try

I did some googling. Seems that if you do this in an automation it will sort of ignore the timer.

People have got this to work:

action:
  - service: light.turn_on
    data:
      transition: 900
      brightness_pct: 100
    target:
      entity_id: light.bedroom_nightlights_mss560x_main_channel
  - delay: 00:15:00

That’s from: Help needed with light transition - #41 by bedfellow

1 Like

Some types of lights do not support changes in brightness over a transition period. The best you could do is increase brightness every 30 seconds or so yourself. I have an idea in mind using a while loop and variables but I’m on my phone at the moment so can’t really type it out.

I think you’re correct. I tried this with the Lutron Caseta smart dimmer switch and it worked fine. So I’m thinking the Meross isn’t an option that works. But I got it working by simply waiting a delay of 1 minute and then increasing the brightness by 6 percent. After 15 minutes it’s close to 100%. It’s now how I wanted to do it but it works none the less