Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Last active January 23, 2021 15:59
Show Gist options
  • Save Didgeridrew/805a9b7ea26e6bf29e26379a6c6e692c to your computer and use it in GitHub Desktop.
Save Didgeridrew/805a9b7ea26e6bf29e26379a6c6e692c to your computer and use it in GitHub Desktop.
Google Calendar Events for Chris
#SETUP
- cal_id: <my calendar id>
entities:
- device_id: shared_calendar
ignore_availability: true
name: Shared Calendar
track: true
- device_id: test_lights
name: Lights
track: true
search: "#lights"
#AUTOMATIONS
- id: <id number>
alias: Vacation Lights On
description: ''
trigger:
- platform: state
entity_id: calendar.test_lights
to: 'on'
condition: []
action:
- service: light.turn_on
data:
entity_id: light.lightstrip
brightness_pct: 100
mode: single
- id: <id number>
alias: Vacation Lights Off
description: ''
trigger:
- platform: state
entity_id: calendar.test_lights
to: 'off'
condition: []
action:
- service: light.turn_off
data:
entity_id: light.lightstrip
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment