silvrr
August 20, 2018, 6:56pm
1
The Nest Time to Target seems to be exposed via their API.
https://developers.nest.com/reference/api-thermostat#time_to_target
Can this be exposed as a Home Assistant Sensor? As I manually manage my thermostat it would be helpful to use this feature to calculate when to start my HVAC system.
awarecan
(Jason Hu)
August 21, 2018, 11:57pm
2
silvrr
August 21, 2018, 11:58pm
3
Any hints on how to do that? I have basically 0 python experience.
awarecan
(Jason Hu)
August 22, 2018, 12:02am
4
import logging
from homeassistant.components.nest import (
DATA_NEST, DATA_NEST_CONFIG, CONF_SENSORS, NestSensorDevice)
from homeassistant.const import (
TEMP_CELSIUS, TEMP_FAHRENHEIT, CONF_MONITORED_CONDITIONS,
DEVICE_CLASS_TEMPERATURE, DEVICE_CLASS_HUMIDITY)
DEPENDENCIES = ['nest']
SENSOR_TYPES = ['humidity', 'operation_mode', 'hvac_state']
TEMP_SENSOR_TYPES = ['temperature', 'target']
PROTECT_SENSOR_TYPES = ['co_status',
'smoke_status',
'battery_health',
# color_status: "gray", "green", "yellow", "red"
'color_status']
STRUCTURE_SENSOR_TYPES = ['eta']
Add time_to_target
to SENSOR_TYPES
list
1 Like
silvrr
August 22, 2018, 1:36am
5
Thanks @awarecan , I had thought about taking that approach but figured it was surley more difficult than that.
Now to see how it reports. Should be able to get some data tomorrow after I go to work and the house heats up.
avonpohle
(Avonpohle)
September 14, 2018, 3:42pm
6
Did this work for you? I would love to see this added to the Nest component!
silvrr
September 15, 2018, 1:00am
7
I had it for a day or so. Never got any data from it