Expose Nest Time to Target

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.

Yes, this data exist in upstream lib. You can simply add a sensor.
See: https://github.com/jkoelker/python-nest/blob/4222c4e425c824f35c6d02ecd4b15f1c40683af7/nest/nest.py#L668

Any hints on how to do that? I have basically 0 python experience.

Add time_to_target to SENSOR_TYPES list

1 Like

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.

Did this work for you? I would love to see this added to the Nest component!

I had it for a day or so. Never got any data from it