Local calendar events didn't trigger any actions

I tried to create automations triggered by local calendar, but they didn’t worked. I explored all the possible options - before/after calendar event starts/ends with/without offset but non of them was working. The YAML config is bellow.

  • id: ‘1744434213866’
    alias: Event starts after 0 minutes - RB1
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: start
      offset: 0:0:0
      conditions:
      actions:
    • type: turn_on
      device_id: b38638251ee897095042f3a21f6be61e
      entity_id: 5b041fb2364ee8c1a7a2dd926fb4f44c
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB1
      mode: single
  • id: ‘1744434307787’
    alias: Event starts before 0 minutes - RB2
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: start
      offset: -0:0:0
      conditions:
      actions:
    • type: turn_on
      device_id: 0f04ca9d0c45f000ef67a9f809346ac5
      entity_id: 9c76d43bd4a7a0a4098cf88dfe9bbad3
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB2
      mode: single
  • id: ‘1744434412659’
    alias: Event starts after 1 minutes - RB3
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: start
      offset: 0:1:0
      conditions:
      actions:
    • type: turn_on
      device_id: 3353c4a2d970100f79e238815234acf2
      entity_id: 08b61da5b0d70804a04bc9db3879fb02
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB3
      mode: single
  • id: ‘1744434450120’
    alias: Event starts before 1 minutes - RB4
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: start
      offset: -0:1:0
      conditions:
      actions:
    • type: turn_on
      device_id: 916b85f42ca9210cd62f3a024fd544cf
      entity_id: e7e5c683a2ec973acfa3e4d51a19d6da
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB4
      mode: single
  • id: ‘1744434528011’
    alias: Event ends after 0 minutes - RB5
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: end
      offset: 0:0:0
      conditions:
      actions:
    • type: turn_on
      device_id: b2cc30a4e93614de137122585bddae87
      entity_id: 8ec4d77ce56531ffd9e3e1e45bf56297
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB5
      mode: single
  • id: ‘1744434580488’
    alias: Event ends after 1 minutes - RB6
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: end
      offset: 0:1:0
      conditions:
      actions:
    • type: turn_on
      device_id: 3380f081f843c5ab06dafe5cc9c739a5
      entity_id: ea1fbc2d5fd524390c0fbbc1228ebd41
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB6
      mode: single
  • id: ‘1744434652286’
    alias: Event ends before 0 minutes - RB7
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: end
      offset: -0:0:0
      conditions:
      actions:
    • type: turn_on
      device_id: 5697755b070d541e7037a1f56dbb1827
      entity_id: b926de07b1d7568d241c218d61436f88
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB7
      mode: single
  • id: ‘1744434748217’
    alias: Event ends before 1 minutes - RB8
    description: ‘’
    triggers:
    • trigger: calendar
      entity_id: calendar.vacation
      event: end
      offset: -0:1:0
      conditions:
      actions:
    • type: turn_on
      device_id: d30a8a22bf542c58fb8cca0027d5880f
      entity_id: 78d16e687a46494bf2f91e7d0697b094
      domain: switch
    • action: notify.mobile_app_krasimirs_iphone
      metadata: {}
      data:
      message: RB8

There are no errors in System/Logs!!!

In order to see what is there you need to for,at it properly using three backticks. The forum distroys relevant informtion and makes it impossible to See point 11 of:

Even with the incorrectly formatted yaml, it’s quite clear there’s at least 1 obvious mistake.

Offset needs to be in hh:mm:ss format and not h:m:s format. Change 0:1:0 to 00:01:00 and do the same fix for all automations above

Thanks ShadowFist. I changed the time format as you suggested, but there is no change at all.

When does calendar.vacation start? If it’s less than 15 minutes from when you created it, then it won’t work. If it’s an all-day event, then it will only trigger at midnight.
Also, if you have other automations using calendar events, then this will also not work since your automation mode is set to single. You need to use queued or parallel modes as explained in the docs.

I suggest you start simple - create a calendar event for 20 minutes from now, then do a simple automation based on the start of that event. Don’t use offsets and don’t use all-day events, but make sure your automation mode is set to queued or parallel. Wait for the event to trigger and check if your automation ran successfully.

If it did, repeat the above, but this time use an offset of 1 minute (00:01:00). Your automation should run 1 minute after the start of the event. Report back with your findings and make sure you paste the new automations in a correctly formatted manner.

thanks, it’s working now

1 Like

Glad it worked for you!

If my answer helped you fix it, please consider marking my post above with the Solution tag. This will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved and helps users find answers to similar questions.

For more information about the Solution tag, refer to guideline 21 in the FAQ.