1
0

Add notification for open freezer

This commit is contained in:
Przemek Grondek 2023-01-17 02:28:20 +01:00
parent f32f45ea29
commit a5e2fdc76b

View File

@ -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