From bdea3624202da671c7e3464ee93b4c153b934a13 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 21 Jul 2025 14:14:13 -0400 Subject: [PATCH] Refactor climate.yaml automation to improve the condition for setting the downstairs Nest temperature. Changed trigger to use a group state for better reliability and added a numeric state condition for temperature checks, ensuring more accurate automation behavior. --- config/packages/climate.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/config/packages/climate.yaml b/config/packages/climate.yaml index 65dd34a2..c0113f07 100644 --- a/config/packages/climate.yaml +++ b/config/packages/climate.yaml @@ -148,18 +148,16 @@ automation: entity_id: climate.upstairs temperature: 77 - - alias: Set Downstairs Nest to 76 When Both in Bed + - alias: Set Downstairs Nest to 76 When both in bed id: set_downstairs_nest_76_both_in_bed trigger: - - platform: state - entity_id: - - binary_sensor.sleepnumber_carlo_carlo_is_in_bed - - binary_sensor.sleepnumber_carlo_stacey_is_in_bed - to: 'on' - platform: numeric_state entity_id: climate.downstairs attribute: temperature above: 76 + - platform: state + entity_id: group.bed + to: 'on' condition: - condition: and conditions: @@ -169,6 +167,10 @@ automation: - condition: state entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed state: 'on' + - condition: numeric_state + entity_id: climate.downstairs + attribute: temperature + above: 76 action: - service: climate.set_temperature data: