New Automations
This commit is contained in:
48
packages/door_sensors/door_sensors.yaml
Executable file
48
packages/door_sensors/door_sensors.yaml
Executable file
@ -0,0 +1,48 @@
|
||||
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
|
Reference in New Issue
Block a user