1
0

Add notifications for putting laundry away

This commit is contained in:
Przemek Grondek 2023-05-05 00:34:24 +02:00
parent 93768c5f89
commit bea456e067
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,66 @@
- id: behaviour-put-laundry-away
alias: "[Behaviour] Put laundry away"
mode: single
trigger:
- platform: state
entity_id:
- input_boolean.washing_machine_done
to: "off"
for:
hours: 24
minutes: 0
seconds: 0
condition: [ ]
action:
- service: input_boolean.turn_on
data: { }
target:
entity_id: input_boolean.put_laundry_away
- id: behaviour-put-laundry-away-reminder
alias: "[Behaviour] Put laundry away reminder"
trigger:
- platform: state
entity_id:
- input_boolean.put_laundry_away
to: "on"
condition: [ ]
action:
- service: notify.mobile_app_iphone
data:
message: "Put laundry away"
data:
actions:
- action: LAUNDRY_PUT_AWAY
title: Mark done
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- choose:
- conditions:
- condition: state
entity_id: input_boolean.put_laundry_away
state: 'on'
sequence:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.put_laundry_away
- service: input_boolean.turn_on
target:
entity_id: input_boolean.put_laundry_away
- id: mobile_action-laundry_put_away
alias: '[Mobile-action] Laundry put away'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LAUNDRY_PUT_AWAY
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.put_laundry_away

View File

@ -67,6 +67,9 @@ input_boolean:
washing_machine_done: washing_machine_done:
name: "Washing machine done" name: "Washing machine done"
icon: "mdi:washing-machine" icon: "mdi:washing-machine"
put_laundry_away:
name: "Put laundry away"
icon: "mdi:tshirt-crew"
input_datetime: input_datetime:
alarm: alarm:
name: "Alarm time" name: "Alarm time"