From 3df70056293048c5bd566b9b87a9d5e715c271bd Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 3 Apr 2022 18:33:48 -0400 Subject: [PATCH] First attempt at work schedule sensor for wife --- configuration.yaml | 8 ++++++++ template.yaml | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration.yaml b/configuration.yaml index bed961e..d9d544c 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -121,6 +121,14 @@ calendar: username: !secret userIcloud password: !secret passIcloud url: https://caldav.icloud.com + - platform: caldav + username: !secret userIcloud + password: !secret passIcloud + url: https://caldav.icloud.com + custom_calendars: + - name: "TinaWork" + calendar: "Family" + search: "Work" - platform: todoist token: !secret todoist_api_token custom_projects: diff --git a/template.yaml b/template.yaml index 0b3215d..e00f234 100644 --- a/template.yaml +++ b/template.yaml @@ -6,4 +6,7 @@ binary_sensor: - name: School Time state: > {{ is_state('binary_sensor.school', 'on') - and is_state('binary_sensor.workday_sensor', 'on') }} \ No newline at end of file + and is_state('binary_sensor.workday_sensor', 'on') }} + - name: Tina Work + state: > + {{ is_state('calendar.family_tinawork', 'on') }} \ No newline at end of file