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
|
|
|
|
#freezer open for 5 min
|
|
|
|
- alias: livingroom_freezer_opened
|
|
|
|
trigger:
|
|
|
|
- device_id: b8119ef2d21afde8394d70373bb9621e
|
|
|
|
domain: binary_sensor
|
|
|
|
type: opened
|
|
|
|
platform: device
|
2022-08-18 14:45:03 +00:00
|
|
|
entity_id: binary_sensor.livingroom_freezer_iaszone
|
2022-08-08 17:22:56 +00:00
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 5
|
|
|
|
seconds: 0
|
|
|
|
action:
|
2022-08-18 14:45:03 +00:00
|
|
|
- service: notify.notify
|
2022-08-08 17:22:56 +00:00
|
|
|
data:
|
|
|
|
message: ist noch offen!
|
2023-07-14 23:04:33 +00:00
|
|
|
title: Freezer
|
|
|
|
|
|
|
|
# Badezimmer oder Gartentüre offen
|
|
|
|
- alias: open_doors_check
|
|
|
|
trigger:
|
|
|
|
- device_id: 95d34c3939ded141bc463c7dbfdeabea
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_on
|
|
|
|
condition:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- type: is_open
|
|
|
|
condition: device
|
|
|
|
device_id: 85dbfa4e5a7ad4dcc73d74b8f051647b
|
|
|
|
entity_id: binary_sensor.bathroom_window_iaszone
|
|
|
|
domain: binary_sensor
|
|
|
|
- type: is_open
|
|
|
|
condition: device
|
|
|
|
device_id: b8119ef2d21afde8394d70373bb9621e
|
|
|
|
entity_id: binary_sensor.livingroom_freezer_iaszone
|
|
|
|
domain: binary_sensor
|
|
|
|
- type: is_open
|
|
|
|
condition: device
|
|
|
|
device_id: bb0545a3347e971df3a86ffa24477c12
|
|
|
|
entity_id: binary_sensor.livingroom_door_garden_iaszone
|
|
|
|
domain: binary_sensor
|
|
|
|
action:
|
|
|
|
- service: notify.notify
|
|
|
|
data:
|
|
|
|
message: ist noch was offen.
|
|
|
|
title: Alaaarm
|
|
|
|
|
|
|
|
- alias: turn_off_stuff
|
|
|
|
trigger:
|
|
|
|
- device_id: 95d34c3939ded141bc463c7dbfdeabea
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: light.bedroom_lights
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: light.living_room_lights
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: light.office_bulb
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: light.guestroom_switch_lamp
|
|
|
|
- service: script.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: script.denon_tv_turn_off
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: light.bedroom_switch_lamp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|