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.

pull/1524/head
Carlo Costanzo 5 months ago
parent 15130cd217
commit bdea362420

@ -148,18 +148,16 @@ automation:
entity_id: climate.upstairs entity_id: climate.upstairs
temperature: 77 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 id: set_downstairs_nest_76_both_in_bed
trigger: 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 - platform: numeric_state
entity_id: climate.downstairs entity_id: climate.downstairs
attribute: temperature attribute: temperature
above: 76 above: 76
- platform: state
entity_id: group.bed
to: 'on'
condition: condition:
- condition: and - condition: and
conditions: conditions:
@ -169,6 +167,10 @@ automation:
- condition: state - condition: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on' state: 'on'
- condition: numeric_state
entity_id: climate.downstairs
attribute: temperature
above: 76
action: action:
- service: climate.set_temperature - service: climate.set_temperature
data: data:

Loading…
Cancel
Save

Powered by TurnKey Linux.