From a5e2fdc76b3a0b299ac2443d348dbf70efa81baa Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 17 Jan 2023 02:28:20 +0100 Subject: [PATCH] Add notification for open freezer --- .../automations/kitchen-freezer.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 configuration/automations/kitchen-freezer.yaml diff --git a/configuration/automations/kitchen-freezer.yaml b/configuration/automations/kitchen-freezer.yaml new file mode 100644 index 0000000..a26efd2 --- /dev/null +++ b/configuration/automations/kitchen-freezer.yaml @@ -0,0 +1,36 @@ +- id: kitchen-freezer-open + alias: '[Kitchen] Freezer open' + mode: single + trigger: + - platform: state + entity_id: binary_sensor.freezer_door_on_off + to: 'on' + for: "0:01:00" + - platform: state + entity_id: binary_sensor.freezer_door_on_off + to: 'on' + for: "0:02:00" + - platform: state + entity_id: binary_sensor.freezer_door_on_off + to: 'on' + for: "0:05:00" + - platform: state + entity_id: binary_sensor.freezer_door_on_off + to: 'on' + for: "0:10:00" + - platform: state + entity_id: binary_sensor.freezer_door_on_off + to: 'on' + for: "0:15:00" + action: + - service: notify.mobile_app_iphone + data: + title: "Freezer left open" + message: > + Freezer left open + data: + push: + sound: + name: "default" + critical: 1 + volume: 1.0 \ No newline at end of file