1
0
Fork 0
ha-config/config/packages/work.yaml

35 lines
912 B
YAML

calendar:
- platform: ics_calendar
calendars:
- name: "On-call"
url: !secret oncall_schedule_url
include_all_day: true
days: 30
automation:
- id: remind_bo_to_take_laptop_when_oncall
trigger:
- platform: state
entity_id: cover.front_gate
for:
seconds: 2
from: "closed"
to:
- open
- opening
# - platform: event
# event_type: homekit_state_change
# event_data:
# entity_id: cover.front_gate
# service: open_cover
condition: >-
{{ is_state('calendar.on_call', 'on') or is_state('calendar.ical_on_call', 'on') }}
action:
- service: notify.mobile_app_bos_iphone
data:
message: You are on-call! Bring your laptop
title: Bring laptop!
data:
push:
interruption-level: time-sensitive