Turn on light over the course of an hour

This automation isn’t working and I’m not sure why. If anyone can shed any light on what’s wrong with it it’d be much appreciated! It’s supposed to turn the light on and go from 0 - 255 brightness over the course of 1 hour between 8-9am.

  - alias: "Wake me up"
    trigger:
      platform: state
      entity_id: group.bedroom_light
      state: 'off'
    condition:
      condition: time
      after: '07:59:59'
      before: '09:00:00'
    action:
      service: homeassistant.turn_on
      entity_id: group.bedroom_light
      data:
        brightness: 255
        transition: 3600

Your device has to be able to support the transition command. What are you type of light are you using?

Philips Hue bulbs

I think that the state of the group bedroom_light would need to change to ‘off’ for your trigger to work.

I suppose that you’d be better off using a Time trigger.

And you can put the state of the bedroom_light group as a condition to make sure the automation run only if the light are not already ON.

I think I worked it out - It’s because transition only works if the light is already on. This is what I ended up with and works well:

  - alias: "Wake me up"
    trigger:
      platform: time
      after: '08:00:00'
    condition:
      condition: state
      entity_id: light.bedroom_light
      state: 'off'
    action:
      - service: light.turn_on
        entity_id: light.bedroom_light
        data:
          brightness: 1
      - service: light.turn_on
        entity_id: light.bedroom_light
        data:
          brightness: 255
          transition: 3600