From c79bdb198cc6f9a1f4ea60d47081e909637365a2 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 31 May 2022 18:43:55 +0300 Subject: [PATCH] Add kitchen door sensor --- .../kitchen_dashboard_card.yaml | 3 +++ .../devices/living_room/toshiba_ac.yaml | 19 ++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/config/lovelace/home_dashboard/kitchen_dashboard_card.yaml b/config/lovelace/home_dashboard/kitchen_dashboard_card.yaml index a48bad5..cbb6f03 100644 --- a/config/lovelace/home_dashboard/kitchen_dashboard_card.yaml +++ b/config/lovelace/home_dashboard/kitchen_dashboard_card.yaml @@ -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 diff --git a/config/packages/devices/living_room/toshiba_ac.yaml b/config/packages/devices/living_room/toshiba_ac.yaml index 5427969..2f9810f 100644 --- a/config/packages/devices/living_room/toshiba_ac.yaml +++ b/config/packages/devices/living_room/toshiba_ac.yaml @@ -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"