Hi there, i’ve configured my Nest thermostat and it’s working fine. But i wonder if it is possible to show and use the home/away status.
I’ve set up our phones to interact with the nest. And when we are all away the nest switches to status away.
But in HA i can’t find a way to retrieve this status. I can change the status from HA but it doesn’t seem to read the status from the nest. Which would be useful for automations.
In the Nest developer account i did set permissions which imply that the status is 2 way traffic.
Does anyone know if it is possible to retrieve the home/away status from the Nest thermostat?!
I am using the nest thermostat, and have been for the past year with good luck. Go to the states tab on the front end (first circle), and you should see something like climate.downstairs . In the second column is the state of the device (in my case heat), and the third column has the state attributes. You can access all of these things and control most of them with automations.
Here’s a snippet of an automation I have that sets the heat to away mode once I’ve left work.
condition:
condition: and
conditions:
- condition: time
after: '13:30:00'
- condition: state
entity_id: input_boolean.heat_on_daily
state: 'off'
- condition: state
entity_id: group.all_devices
state: not_home
#checks if thermostat is off (summer)
- condition: template
value_template: "{% if not is_state('climate.upstairs', 'off') or not is_state('climate.downstairs', 'off') %}true{% else %}false{% endif %}"
action:
#preferable to call this way, so that device names don't matter. All climate.
- service: climate.set_away_mode
data:
away_mode: 'off'
If you add climate.downstairs (or whatever) you should see a control panel that looks like this once you click on it:
Thanks for the clear explanation. It’s not quite what i want though. I can set the thermostat to home/away from HA. I would like to see in HA what the current status is on my thermostat (so the other way around).
This unfortunately doesn’t show the current status off the thermostat.
I did try that, but as i have no clue as to what i’m doing it kept saying ‘home’ even when i set the thermostat to away
I’m not sure what to replace sun.sun with?!
{% if is_state('sun.sun', 'above_horizon') %}
up
{% else %}
down
{% endif %}