Update blueprints/automations/bzo_climate.yaml
Fixed presence filter.
This commit is contained in:
@@ -31,8 +31,9 @@
|
|||||||
device_class: temperature
|
device_class: temperature
|
||||||
|
|
||||||
presence_entity:
|
presence_entity:
|
||||||
name: Presence Sensor or Group
|
name: ( Optional ) Presence Sensor or Group
|
||||||
description: 'Used to tun off the units if house is empty.'
|
description: 'Used to tun off the units if house is empty.'
|
||||||
|
default: ''
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain: person
|
domain: person
|
||||||
@@ -171,9 +172,9 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: !input schedule_entity
|
entity_id: !input schedule_entity
|
||||||
state: "on"
|
state: "on"
|
||||||
- condition: state
|
# - condition: state
|
||||||
entity_id: !input presence_entity
|
# entity_id: !input presence_entity
|
||||||
state: "home"
|
# state: "home"
|
||||||
# - condition: template
|
# - condition: template
|
||||||
# value_template: >
|
# value_template: >
|
||||||
# {% set window = window_sensor %}
|
# {% set window = window_sensor %}
|
||||||
@@ -193,7 +194,8 @@
|
|||||||
delta_high: !input delta_fan_high
|
delta_high: !input delta_fan_high
|
||||||
threshold: !input external_temp_threshold
|
threshold: !input external_temp_threshold
|
||||||
override_switch: !input override_switch
|
override_switch: !input override_switch
|
||||||
presence_entity: !input presence_entity
|
presence: !input presence_entity
|
||||||
|
log_level: !input log_level
|
||||||
|
|
||||||
room_temp: >
|
room_temp: >
|
||||||
{% set r = states(room_sensor) %}
|
{% set r = states(room_sensor) %}
|
||||||
@@ -256,7 +258,7 @@
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ is_state(presence_entity, 'not_home') }}
|
{{ presence != '' and is_state(presence, 'not_home') }}
|
||||||
sequence:
|
sequence:
|
||||||
- service: climate.turn_off
|
- service: climate.turn_off
|
||||||
target:
|
target:
|
||||||
@@ -264,9 +266,13 @@
|
|||||||
- service: logbook.log
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
name: "Smart Climate"
|
name: "Smart Climate"
|
||||||
message: "A/C turned off because no one is home"
|
message: "A/C turned off due to absence (not_home)"
|
||||||
entity_id: !input climate_entity
|
entity_id: !input climate_entity
|
||||||
|
|
||||||
|
- condition: template
|
||||||
|
value_template: >
|
||||||
|
{{ presence == '' or is_state(presence, 'home') }}
|
||||||
|
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
@@ -333,7 +339,12 @@
|
|||||||
entity_id: !input climate_entity
|
entity_id: !input climate_entity
|
||||||
data:
|
data:
|
||||||
temperature: "{{ adjusted_temp | float }}"
|
temperature: "{{ adjusted_temp | float }}"
|
||||||
hvac_mode: "{{ hvac_mode }}"
|
hvac_mode: "{{ hvac_mode }}"
|
||||||
|
|
||||||
|
- service: climate.set_fan_mode
|
||||||
|
target:
|
||||||
|
entity_id: !input climate_entity
|
||||||
|
data:
|
||||||
fan_mode: "{{ fan_mode }}"
|
fan_mode: "{{ fan_mode }}"
|
||||||
|
|
||||||
- service: logbook.log
|
- service: logbook.log
|
||||||
|
|||||||
Reference in New Issue
Block a user