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

35 lines
912 B
YAML
Raw Normal View History

2022-05-11 16:41:13 +10:00
calendar:
- platform: ics_calendar
calendars:
- name: "On-call"
url: !secret oncall_schedule_url
2022-08-24 13:50:56 +10:00
include_all_day: true
2022-05-11 16:41:13 +10:00
days: 30
automation:
- id: remind_bo_to_take_laptop_when_oncall
trigger:
- platform: state
entity_id: cover.front_gate
2023-04-25 07:36:58 +10:00
for:
seconds: 2
2022-05-11 16:41:13 +10:00
from: "closed"
2022-08-24 13:50:56 +10:00
to:
- open
- opening
# - platform: event
# event_type: homekit_state_change
# event_data:
# entity_id: cover.front_gate
# service: open_cover
2022-05-11 16:41:13 +10:00
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