Turn Off light after x minutes

Hello everybody,
I need a wake-up lamp for my son.

It is scheduled to arrive at 07:00:00 for 30 minutes from Monday to Friday, then automatically off again.

I can not switch the lamp automatic off after x minuts.

someone an idea???

alias: Wecker Mats Mo-Fr
trigger:

  • at: β€˜07:00:00’
    platform: time
    condition:
  • condition: and
    conditions:
    • condition: time
      weekday:
      • mon
      • tue
      • wed
      • thu
      • fri
        action:
  • data:
    brightness: 10
    entity_id: light.0x001788010389468a_light
    rgb_color:
    • 29
    • 10
    • 40
      service: light.turn_on
  - data:
      entity_id: light.06200046bcddc2ea157a
    service: light.turn_on
  - delay: 00:10:00
  - data:
      entity_id: light.06200046bcddc2ea157a
    service: light.turn_off

Hi,
do you mean that?

Sorry i need HassIO for Dummys.

alias: Wecker Mats Mo-Fr
trigger:

  • at: β€˜21:33:00’
    platform: time
    condition:
  • condition: and
    conditions:
    • condition: time
      weekday:
      • mon
      • tue
      • wed
      • thu
      • fri
        action:
  • data:
    brightness: 10
    entity_id: light.0x001788010389468a_light
    rgb_color:
    • 29
    • 10
    • 40
      entity_id: light.0x001788010389468a_light
      service: light.turn_on
  • delay: 00:10:00
  • data:
    entity_id: light.0x001788010389468a_light
    service: light.turn_off

If that doesn’t work, just make a new automation to turn the light off at 7:30.
I am sure there is a solution to have the 1 automation turn off after x minutes, but you already know what time you want it off. Just make another automation for 7:30 to turn it off. Copy your existing automation, change the time to 7:30 and the service to light.turn_off.

Done

1 Like

It’s really hard to tell since you didn’t properly format your code in your post.

1 Like

I did it!
Thx

  alias: Wecker Mats Mo-Fr "Ein"
  trigger:
  - at: 06:45:00
    platform: time
  condition:
  - condition: and
    conditions:
    - condition: time
      weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
  action:
  - data:
      brightness: 10
      entity_id: light.0x001788010389468a_light
      rgb_color:
      - 29
      - 10
      - 40
    service: light.turn_on

  alias: Wecker Mats Mo-Fr "Aus"
  trigger:
  - at: 07:15:00
    platform: time
  condition:
  - condition: and
    conditions:
    - condition: time
      weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
  action:
  - data:
      entity_id: light.0x001788010389468a_light
    service: light.turn_off