Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

How can I set a trigger when there is an agenda item today? #96

Open
wolfhond opened this issue Nov 13, 2020 · 1 comment
Open

How can I set a trigger when there is an agenda item today? #96

wolfhond opened this issue Nov 13, 2020 · 1 comment

Comments

@wolfhond
Copy link

How can I set a trigger when there is an agenda item today?
Or tomorrow?

Is this possible?

@magaxel
Copy link

magaxel commented Nov 15, 2020

I use the following to produce a Google Push notification when there is a calendar event:

In /config/automations.yaml

- id: trash_push
  alias: Trash push
  trigger:
    platform: state
    entity_id:
    - calendar.trash
    to: 'on'
  action:
    service: notify.google_push
    data_template:
      message: Take out the trash

In /config/o365_calendars.yaml

- cal_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  entities:
  - device_id: trash
    name: 'Take out the trash'
    start_offset: 14
    track: true
    search: 'Take out the trash'

I use 'start_offset' to trigger the event before its scheduled in Outlook

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants