From a4e9c14709ca96cf7685d0c381ff22aaaf5c9187 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Wed, 27 Jul 2022 10:24:37 -0700 Subject: [PATCH] Add Laundry Package --- packages/laundry/README.md | 3 +++ packages/laundry/laundry.yaml | 34 +++++++++++++++++++++++++ packages/notification/notification.yaml | 6 +++++ 3 files changed, 43 insertions(+) create mode 100644 packages/laundry/README.md create mode 100644 packages/laundry/laundry.yaml diff --git a/packages/laundry/README.md b/packages/laundry/README.md new file mode 100644 index 0000000..2450c99 --- /dev/null +++ b/packages/laundry/README.md @@ -0,0 +1,3 @@ +# Laundry Package + +This package contains automations for laundry monitoring and notification. diff --git a/packages/laundry/laundry.yaml b/packages/laundry/laundry.yaml new file mode 100644 index 0000000..4b4131d --- /dev/null +++ b/packages/laundry/laundry.yaml @@ -0,0 +1,34 @@ +# Laundry Package + +# ----------------------------------------------------------------------------- +# Laundry Automations +automation: + - alias: Notify when Dryer Done + mode: single + trigger: + - platform: numeric_state + entity_id: sensor.dryer_power_electric_consumption_a + below: 1.0 + for: + minutes: 1 + action: + - service: notify.everyone + data: + message: Dryer is done + + - alias: Notify when Washer Done + mode: single + trigger: + - platform: numeric_state + entity_id: sensor.washer_power_electric_consumption_a + below: 2.0 + for: + # There is a ~ 5 minute delay within the rinse/spin cycle, so a 6 + # minute threshold should avoid triggering early. The lid release + # occurs about 3 minutes after completion of the final spin, so + # there is only about 3 minutes of latency in this automation. + minutes: 6 + action: + - service: notify.everyone + data: + message: Washer is done diff --git a/packages/notification/notification.yaml b/packages/notification/notification.yaml index 85aec89..b32b953 100644 --- a/packages/notification/notification.yaml +++ b/packages/notification/notification.yaml @@ -38,3 +38,9 @@ notify: - service: mobile_app_jp_pixel3a data: title: Home Assistant + + - name: everyone + platform: group + services: + - service: mobile_app_jen_iphone + - service: mobile_app_jp_pixel3a