I have automations setup to change the set temp of my Sensi thermostat through Wink when we get home or leave home (actually a 3 mile radius). However, this is not working when it is set to auto mode.
Here is the automation for when we leave.
alias: Temp Set Away
initial_state: True
trigger:
platform: state
entity_id: group.thermostatdevices
from: 'home'
to: 'not_home'
action:
- service: climate.set_temperature
data_template:
temperature: >-
{% if is_state_attr('climate.sensi', 'operation_mode', 'heat') -%}
{{ states.climate.sensi.attributes.temperature | int - 3 }}
{%- elif is_state_attr('climate.sensi', 'operation_mode', 'cool') -%}
{{ states.climate.sensi.attributes.temperature | int + 3 }}
{%- elif is_state_attr('climate.sensi', 'operation_mode', 'auto') -%}
{{ states.climate.sensi.attributes.temperature | int + 3 }}
{{ states.climate.sensi.attributes.target_temp_low | int - 3 }}
{{ states.climate.sensi.attributes.target_temp_high | int + 3 }}
{%- endif %}
- service: notify.pushbullet
data:
title: 'Thermostat set temp changed due to devices leaving home'
message: ''
Here is the automation for when we get home
alias: Temp Set Home
initial_state: True
trigger:
platform: state
entity_id: group.thermostatdevices
from: 'not_home'
to: 'home'
action:
- service: climate.set_temperature
data_template:
temperature: >-
{% if is_state_attr('climate.sensi', 'operation_mode', 'heat') -%}
{{ states.climate.sensi.attributes.temperature | int + 3 }}
{%- elif is_state_attr('climate.sensi', 'operation_mode', 'cool') -%}
{{ states.climate.sensi.attributes.temperature | int - 3 }}
{%- elif is_state_attr('climate.sensi', 'operation_mode', 'auto') -%}
{{ states.climate.sensi.attributes.temperature | int - 3 }}
{{ states.climate.sensi.attributes.target_temp_low | int + 3 }}
{{ states.climate.sensi.attributes.target_temp_high | int - 3 }}
{%- endif %}
- service: notify.pushbullet
data:
title: 'Thermostat set temp changed due to devices arriving home'
message: ''
Anyone have an idea?