Please help with setting up automation with Hassalarm

Hello,

I only started using Home Assistant yesterday. I would like to ask you for help with setting up automation. I use Hassalarm (https://github.com/Johboh/hassalarm) to send information about the next alarm to HA. This works well. I need to set the light bulb to light up at the same time as the alarm is set. Then to light for 45 minutes and then to turn it off. I’ve been trying to set it for a few hours, but the light bulb doesn’t light up. I am setting the type of trigger - time - the value of the helper date and time - the action to turn on the light bulb - the action to delay 40min - the action to turn off the light bulb.

paste the properly formatted yaml code for your automation as you have it now so we can see what you have and maybe see why it isn’t working.


id: '1607779820676'
  alias: Budík světla
  description: ''
  trigger:
  - platform: time
    at: input_datetime.next_alarm
  condition: []
  action:
  - type: turn_on
    device_id: d184a9939f11c322e992beb4f98d3bdf
    entity_id: light.yeelight_color_0x0000000012a02000
    domain: light
    brightness_pct: 100
  - delay: '40'
  - type: turn_off
    device_id: d184a9939f11c322e992beb4f98d3bdf
    entity_id: light.yeelight_color_0x0000000012a02000
    domain: light
  mode: single