config/automations.yaml
alias: Calendar Stand up meeting
description: ""
trigger:
- platform: calendar
event: start
offset: "-0:30:0"
entity_id: calendar.fixtse_gmail_com #Change this to your calendar
condition:
- condition: template
value_template: "{{ 'stand up meeting' in trigger.calendar_event.summary }}" #Change this to your event name
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.desktop_studio #Change this to your pc switch
mode: singleconfig/automations.yaml
alias: Calendar Register sunset
description: ""
trigger:
- platform: sun
event: sunset
offset: 0
condition: []
action:
- service: google.create_event
data:
summary: Sun down
start_date_time: "{{ as_timestamp(now()) | timestamp_local }}" #This will set the start date of the event at the current time
end_date_time: "{{ (as_timestamp(now()) + (0.25 | float)*3600) | timestamp_local }}" #This will set the end date of the event 15 minutes from now
target:
entity_id: calendar.fixtse_gmail_com #Change this to your calendar
- service: homeassistant.update_entity #This will make home assistant refresh your calendar information
Custom Card
type: custom:atomic-calendar-revive
name: Calendar
enableModeChange: true
entities:
- entity: calendar.fixtse_gmail_com #Change this to your calendar
showRelativeTime: false
hideFinishedEvents: false
showDeclined: false
showDate: false
hideDuplicates: false
compactMode: false
hoursOnSameLine: false
showDatePerEvent: false
showWeekNumber: false
showHiddenText: false
showFullDayProgress: false
disableLocationLink: false
showMonth: true
showWeekDay: