I’ve successfully set up google calendar as sensor and can see whether it’s off or on based off of events in my calendar. How do I set the trigger in an automation from the WebUI, is it numerical set to above 0 for an “on” state? Additionally will the sensor trip if the event is for 1 minute and the polling happens after the event ends?
You can set the trigger to use state, from “off” to “on”
I have it like this (extract from automations.yaml)
- action:
- data: {}
data_template:
message: Put Trash {{states.calendar.trash.attributes.message}} out
target: '+99987654321'
service: notify.fbmessenger
alias: Trash Reminder Notification
condition: []
id: '1514806795236'
trigger:
- entity_id: calendar.trash
from: 'off'
platform: state
to: 'on'
Thanks, I didn’t understand the syntax, the trigger is when a sensor goes from on to off or vice-versa. I also kept on putting the on/off values in quotes