diff --git a/blueprints/automations/bzo_climate.yaml b/blueprints/automations/bzo_climate.yaml index f62016c..6be86c6 100644 --- a/blueprints/automations/bzo_climate.yaml +++ b/blueprints/automations/bzo_climate.yaml @@ -31,8 +31,9 @@ device_class: temperature presence_entity: - name: Presence Sensor or Group + name: ( Optional ) Presence Sensor or Group description: 'Used to tun off the units if house is empty.' + default: '' selector: entity: domain: person @@ -171,9 +172,9 @@ - condition: state entity_id: !input schedule_entity state: "on" - - condition: state - entity_id: !input presence_entity - state: "home" + # - condition: state + # entity_id: !input presence_entity + # state: "home" # - condition: template # value_template: > # {% set window = window_sensor %} @@ -193,7 +194,8 @@ delta_high: !input delta_fan_high threshold: !input external_temp_threshold override_switch: !input override_switch - presence_entity: !input presence_entity + presence: !input presence_entity + log_level: !input log_level room_temp: > {% set r = states(room_sensor) %} @@ -256,7 +258,7 @@ - conditions: - condition: template value_template: > - {{ is_state(presence_entity, 'not_home') }} + {{ presence != '' and is_state(presence, 'not_home') }} sequence: - service: climate.turn_off target: @@ -264,9 +266,13 @@ - service: logbook.log data: 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 + - condition: template + value_template: > + {{ presence == '' or is_state(presence, 'home') }} + - choose: - conditions: - condition: template @@ -333,7 +339,12 @@ entity_id: !input climate_entity data: 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 }}" - service: logbook.log