Using Nest Thermostat in Scenes

Hi!

I have a VeraPlus and am trying to integrate the Nest Thermostat in a scene, but I’m having issues… Hopefully someone here will be able to help.

When creating a scene, I can’t set the temperature… The up and down do not work at all. My intention is to set a different temperature for bed time vs. the “away” time in a scene with the WWN plug-in. Is that supported? How would I go about doing this?

If this is not a supported function for this plug-in, I would rather give up on the Nest and get a different thermostat which I can better control through VeraPlus. What would be a good alternative?

Thanks for any help.

I found the WWN plugin to be sluggish and not as snappy to use as the alternative one in the app store.

Search the store for “Nest Thermostat and Protect”.

Don’t give up on the Nest just yet as it can work brilliantly with Vera.

I use Home /Away/Night Vacation modes in Vera to set the Nest as I like it. But I found that the best way to use it for temperature control is with a couple of scenes - one that turns it up one degree and one down a degree. I call these scenes “It’s too cold” & “It’s too hot”. They work brilliantly via Siri and homebridge because at the end of the day who cares what the temperature actually is? It can only be either too cold, too hot or just right :slight_smile:

Thanks for the suggestion… I will give the “Nest Thermostat and Protect” a try. I also like your hot/cold scenes suggestion… brilliant idea!

Thanks again.

Shout back if you need any help setting up.

I tried setting up scenes like yours for increasing or decreasing the temp but I’m not able to.

The attached is what I get when adding the scene. Is this correct? Let’s say I’m setting up a scene to lower the temp. What do I need to do?

Thanks for your help.

Here’s the code to increase by 1 degree. To decrease is straightforward once you’ve seen this.

[code]local THERM_ID = 462

local CurrentSetpoint=luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“CurrentSetpoint”,THERM_ID)

luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,
“SetCurrentSetpoint”, {NewCurrentSetpoint=tonumber(CurrentSetpoint + 1)},THERM_ID)
[/code]

462 is the device number for MY Nest - yours will differ obvs.

Aha, that make sense now… need to use Luup calls.

Got it, and thanks for all your help.

[quote=“JuniorJedi, post:6, topic:193150”][code]local THERM_ID = 462

local CurrentSetpoint=luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“CurrentSetpoint”,THERM_ID)

luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,
“SetCurrentSetpoint”, {NewCurrentSetpoint=tonumber(CurrentSetpoint + 1)},THERM_ID)
[/code][/quote]

Not being an expert in Lua, I don’t see anything wrong with this code, but when I use it in a scene, the Vera strips the “+” (and only the +) and gives a script error. I’ve tried it multiple time, and the result is the same.

Oof!

I bet this is an issue with the latest firmware. I just created a new scene with this exact code and indeed the + was stripped.

I tried again replacing the + with a - and it works perfectly.

I’m afraid someone smarter than me will have to help here.

Mehdi,
I couldn’t put this down - it has definitely been broken by our green friends!

However, I just tried a little bit of junior school math and to my surprise it works!

[code]local THERM_ID = 462

local CurrentSetpoint=luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“CurrentSetpoint”,THERM_ID)

luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,
“SetCurrentSetpoint”, {NewCurrentSetpoint=tonumber(CurrentSetpoint - -1)},THERM_ID)[/code]

Watch the spacing on those minuses as that made a difference.

HTH

Did this “Nest Thermostat and Protect” plugin get pulled from the store? When I search Nest, I only see the WWN official plugin. The official plugin has issues.

  1. It will not set a temperature when the Thermostat is in Auto [Cannot set target_temperature while mode is heat-cool]

  2. Forces me to re-authorize

  3. Complains that the Thermostat is offline when I am in any mode but Home

I would love to try something else that may be more stable and allow me to use the thermostat the way it was designed.