Update blueprints/automations/bzo_climate.yaml
Edit presence detection.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user