#You have to use the list events service

1 messages · Page 1 of 1 (latest)

brave mural
#

i am trying this based on https://www.home-assistant.io/docs/automation/templating/#calendar:

description: ""
mode: single
trigger:
  - platform: calendar
    event: start
    offset: "-0:30:0"
    entity_id: calendar.nielsnl68_gmail_com
    calendar_event:
      all_day: false
condition: []
action:
  - service: notify.group_of_speakers
    data:
      message: er is een afspraak over 30 minuten.
alias: "Notification: afspraak melden"

and i does not like the calendar_event:
How would i set that it only use normal appointments?

desert shuttle
#

it's a calendar service, use the service caller to find the name of the service

#

it's not a trigger

#

i.e. it's only useable in your action section

brave mural
#

sorry, i don't understand you perfectly.
Maybe i was not clear; the above is for an automation.
I'm working on two sides atm.

desert shuttle
#

The above automation notifies you 30 minutes before the next event

#

if you want a list of events like you asked, you have to use the list_events service call

#

which is an action and can only be placed in action sections

#

i believe the service call is calendar.list_events

brave mural
desert shuttle
#

I don't know what you're asking

#

again, if you want a list of ALL events, then you need to use the list_events service

#

I'm not sure how else I can explain this

#

use that service