diff --git a/configuration/automations/behaviour-put-laundry-away.yaml b/configuration/automations/behaviour-put-laundry-away.yaml new file mode 100644 index 0000000..37377c7 --- /dev/null +++ b/configuration/automations/behaviour-put-laundry-away.yaml @@ -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 diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 14ef31a..00f9008 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -67,6 +67,9 @@ input_boolean: washing_machine_done: name: "Washing machine done" icon: "mdi:washing-machine" + put_laundry_away: + name: "Put laundry away" + icon: "mdi:tshirt-crew" input_datetime: alarm: name: "Alarm time"