Add kitchen door sensor

This commit is contained in:
2022-05-31 18:43:55 +03:00
parent 4086e10b70
commit c79bdb198c
2 changed files with 19 additions and 3 deletions
@@ -23,6 +23,9 @@ cards:
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.kitchen_window
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.kitchen_door
- type: custom:decluttering-card
@@ -131,9 +131,20 @@ script:
- condition: state
entity_id: binary_sensor.living_room_right_window
state: "off"
- condition: state
entity_id: group.bedroom_windows
state: "off"
- or:
- condition: state
entity_id: group.bedroom_windows
state: "off"
- condition: state
entity_id: binary_sensor.bedroom_door
state: "off"
- or:
- condition: state
entity_id: binary_sensor.kitchen_window
state: "off"
- condition: state
entity_id: binary_sensor.kitchen_door
state: "off"
- condition: state
entity_id: climate.toshiba_ac
state: "off"
@@ -149,6 +160,8 @@ automation:
entity_id:
- binary_sensor.living_room_right_window
- group.bedroom_windows
- binary_sensor.kitchen_window
- binary_sensor.kitchen_door
from: "on"
to: "off"
for: "00:05:00"