Page 1 of 1

Nest Status

Posted: Monday 07 September 2015 11:56
by Shyam
Hi,

The Nest functionality in Domoticz is great! There's one thing which I can't find. Basically when you set a temperature on the Nest, the Nest screen turns Red and then back to normal once the desired temperature is reached. Is there a way to know this status? Reason for asking is that I have some led strips, and would like to mimic this functionality with the LED strip.

Re: Nest Status

Posted: Friday 04 December 2015 15:22
by dcnoren
Any update on this? I'd really like this functionality, as well.

Re: Nest Status

Posted: Tuesday 08 December 2015 3:31
by Delaroyas
That is a Feature I would also like.

Re: Nest Status

Posted: Wednesday 09 December 2015 12:57
by Delaroyas
There is a readable parameter in the official Nest api:

hvac_state

Indicates whether HVAC system is actively heating, cooling or is off.
Use this value to indicate HVAC activity state.

typestring enum
values: "heating", "cooling", "off"
considerations: When "off", the HVAC system is not actively heating or cooling.
hvac_state is independent of fan operation.

https://developer.nest.com/documentatio ... #hvacstate

On stackoverflow I read this feature is working since May 2015 (it was a constant value before).

I guess it is only a question of implementing it.

Re: Nest Status

Posted: Saturday 12 December 2015 18:54
by Delaroyas
Delaroyas wrote: I guess it is only a question of implementing it.
Hum... I've looked at the code on github, and it seems I'm not as good a programmer has I thought.
I found the nest.cpp code and nest.h in the hardware folder, but I can't seem to find the specific code that currently gets the parameters already available in the interface.
I've searched the project code and could not find a reference to "ambient_temperature" which is the official NEST API name for the current_temperature in domotics (available in the Temp + Humidity "TempHum" Nest device in the Domotics Interface).

Re: Nest Status

Posted: Sunday 13 December 2015 20:24
by Delaroyas
Delaroyas wrote:There is a readable parameter in the official Nest api:
hvac_state
Indicates whether HVAC system is actively heating, cooling or is off.
Use this value to indicate HVAC activity state.
I posted an issue on github and got an answer:
gizmocuz on Github wrote:I dont see this hvac_state value in the json output
The JSON output he gets is totally different than what is documented in the Official API....

To be continued...

Re: Nest Status

Posted: Saturday 09 January 2016 2:21
by confucius
Hi Delaroyas,

seems the code is pulling the status from a wrong location (mobile web address), this should be https://developer-api.nest.com

Re: Nest Status

Posted: Saturday 23 January 2016 19:36
by Delaroyas
confucius wrote:Hi Delaroyas,

seems the code is pulling the status from a wrong location (mobile web address), this should be https://developer-api.nest.com
Just started to fiddle around with the cpp code this week. Managed to get the JSON printed on the standard output. I wasn't able to use the address you suggested to login...

Domoticz is not using the Official API, and I don't think it would be necessary nor a good idea...

Anyway, the JSON I got is different than what gizmocuz showed me on Git Hub. An it has 3 interesting parameters:
hvac_heater_state, hvac_aux_heater_state, hvac_heat_x2_state,

There is also hvac_ac_state, for those who have AC plugged in on the Nest.

In the code, I just don't know how to create a device on the Nest hardware and how to send data to it...

Re: Nest Status

Posted: Wednesday 27 January 2016 23:58
by Delaroyas
With some help from gizmocuz I managed to modify nest.cpp to add the functionality so greatly desired!

Currently only supports basic heating/cooling logging into a "switch" device (kind of like the away switch).

Created a pull request on GitHub, hopes the code is clean enough to gett pulled in and compiled in the next beta update!

Will post again here when the update is out.

Re: Nest Status

Posted: Friday 29 January 2016 23:06
by Delaroyas
The code was accepted and included, the latest beta has the Nest "status" feature.

On the device menu, you should have a new "lighting 2" device called "HeatingOn" and/or "CoolingOn" depending on your Nest functionality.
(No need to remove/add your Nest in the hardware tab).

Use the green arrow to include the device. It will then appear in your Switches tab.