hansen-hasst/packages/door_sensors/door_sensors.yaml

49 lines
1.4 KiB
YAML
Raw Normal View History

2022-08-08 17:22:56 +00:00
automation:
#bathroom window opened for 10 min
- alias: bathroom_window_ventilating
trigger:
- device_id: 85dbfa4e5a7ad4dcc73d74b8f051647b
domain: binary_sensor
type: opened
platform: device
entity_id: binary_sensor.bathroom_window_iaszone
for:
hours: 0
minutes: 10
seconds: 0
action:
- service: notify.notify #mobile_app_sm_g998b
data:
message: reicht auch mit dem lüften!
title: Badezimmer
#- service: notify.mobile_app_tonis_iphone
# data:
# message: reicht auch mit dem lüften!
# title: Badezimmer
- service: persistent_notification.create
data:
message: "Your message goes here"
title: "Custom subject"
notification_id: 1
#freezer open for 5 min
- alias: livingroom_freezer_opened
trigger:
- device_id: b8119ef2d21afde8394d70373bb9621e
domain: binary_sensor
type: opened
platform: device
entity_id: binary_sensor.bathroom_window_iaszone
for:
hours: 0
minutes: 5
seconds: 0
action:
- service: notify.mobile_app_sm_g998b
data:
message: ist noch offen!
title: Freezer
- service: notify.mobile_app_tonis_iphone
data:
message: ist noch offen!
title: Freezer