Update blueprints/automations/bzo_climate.yaml

Edit presence detection.
This commit is contained in:
2025-07-30 12:05:46 +03:00
parent adcec21a5c
commit e82bc55d63

View File

@@ -193,6 +193,7 @@ action:
delta_high: !input delta_fan_high
threshold: !input external_temp_threshold
override_switch: !input override_switch
presence_entity: !input presence_entity
room_temp: >
{% set r = states(room_sensor) %}
@@ -251,6 +252,21 @@ action:
message: "A/C turned off because schedule is OFF"
entity_id: !input climate_entity
- choose:
- conditions:
- condition: template
value_template: >
{{ is_state(presence_entity, 'not_home') }}
sequence:
- service: climate.turn_off
target:
entity_id: !input climate_entity
- service: logbook.log
data:
name: "Smart Climate"
message: "A/C turned off because no one is home"
entity_id: !input climate_entity
- choose:
- conditions:
- condition: template