From a65aca68ad7deefde07903dc820e03bf9e19c33d Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 7 Sep 2023 21:49:15 +0200 Subject: [PATCH] Add alert to put away clothes --- configuration/alert.yaml | 16 +++++++++++++++- .../automations/bathroom-washing-machine.yaml | 14 ++++++++++++++ configuration/automations/mobile-actions.yaml | 16 +++++++++++++++- configuration/configuration.yaml | 3 +++ 4 files changed, 47 insertions(+), 2 deletions(-) diff --git a/configuration/alert.yaml b/configuration/alert.yaml index 13c4a9a..c7771d3 100644 --- a/configuration/alert.yaml +++ b/configuration/alert.yaml @@ -6,4 +6,18 @@ washing_machine: repeat: 30 message: Washing machine is done, take out laundry notifiers: - - mobile_app_iphone \ No newline at end of file + - mobile_app_iphone + +washing_clothes_dry: + name: Put clothes away + done_message: Good job + entity_id: input_boolean.washing_clothes_dry + state: 'on' + repeat: 30 + message: Put clothes away + notifiers: + - mobile_app_iphone + data: + actions: + - action: CLOTHES_PUT_AWAY + title: Done diff --git a/configuration/automations/bathroom-washing-machine.yaml b/configuration/automations/bathroom-washing-machine.yaml index 5e3e3a1..f992a84 100644 --- a/configuration/automations/bathroom-washing-machine.yaml +++ b/configuration/automations/bathroom-washing-machine.yaml @@ -46,3 +46,17 @@ - service: input_boolean.turn_off target: entity_id: input_boolean.washing_machine_done + +- id: washing_clothes_put_clothes_away + alias: '[Washing clothes] Put clothes away' + mode: single + trigger: + - platform: state + entity_id: + - input_boolean.washing_machine_done + for: + hours: 24 + action: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.washing_clothes_dry diff --git a/configuration/automations/mobile-actions.yaml b/configuration/automations/mobile-actions.yaml index 7d4be0a..9f55edb 100644 --- a/configuration/automations/mobile-actions.yaml +++ b/configuration/automations/mobile-actions.yaml @@ -48,4 +48,18 @@ event_data: action: ARRIVE_HOME action: - - service: script.arrive_home \ No newline at end of file + - service: script.arrive_home + +- id: mobile_action-clothes_put_away + alias: '[Mobile-action] Clothes puth away' + description: '' + mode: single + trigger: + - platform: event + event_type: mobile_app_notification_action + event_data: + action: CLOTHES_PUT_AWAY + action: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.washing_clothes_dry diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 33d327c..d3b7ccc 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -73,6 +73,9 @@ input_boolean: washing_machine_done: name: "Washing machine done" icon: "mdi:washing-machine" + washing_clothes_dry: + name: "Washing clothes dry" + icon: "mdi:hanger" put_laundry_away: name: "Put laundry away" icon: "mdi:tshirt-crew"