Google calendar automations not working

I have set up an automation using a Google calendar event to turn on a scene at a specific date and time that will not trigger. I am running

Home Assistant Version: core-2022.4.7
Installation Type: Home Assistant OS

On an SSD attached to a Raspberry Pi 4

The automation yaml is:

alias: Christmas Test
description: ‘’
trigger:

  • platform: state
    entity_id: calendar.home_assistant_events
    to: ‘on’
    condition:
  • condition: state
    entity_id: calendar.home_assistant_events
    attribute: message
    state: Christmas Test
    action:
  • service: scene.turn_on
    target:
    entity_id: scene.dr_lights_on
    metadata: {}
    mode: single

The Google calendar yaml is:

  • cal_id: [email protected]
    entities:

    • device_id: dtspinella_gmail_com
      ignore_availability: true
      name: [email protected]
      track: true
  • cal_id: addressbook#[email protected]
    entities:

    • device_id: birthdays
      ignore_availability: true
      name: Birthdays
      track: true
  • cal_id: en.usa#[email protected]
    entities:

    • device_id: holidays_in_united_states
      ignore_availability: true
      name: Holidays in United States
      track: true
  • cal_id: en.christian#[email protected]
    entities:

    • device_id: christian_holidays
      ignore_availability: true
      name: Christian Holidays
      track: true
  • cal_id: [email protected]
    entities:

    • device_id: home_assistant_events
      ignore_availability: true
      name: Home Assistant Events
      track: true

The state is: On

message: Christmas Test
all_day: false
start_time: 2022-04-30 09:00:00
end_time: 2022-04-30 10:00:00
location:
description:
offset_reached: false
friendly_name: Home Assistant Events

Yet it will not trigger.

Any help would be appreciated.

Dan

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

1 Like

Never mind folks! After many attempts and constant reloading of the Calendar integration the automation started working. I have no idea as to why since I changed nothing in the automation. Hopefully it just continues to work…

Dan