Page 11 of 14

Re: NEST Account migration

Posted: Monday 27 April 2020 1:50
by kitopopo
Hi dear Roland,

I have a question,

I have not yet migrated my account to google, I still have my account in nest but I do not have access from domoticz.
My question is if your script works with old Nest accounts or do I need to migrate my account to Google Nest instead?
Does your plugin currently work?

Thanks in advance, you receive a warm greeting

Re: NEST Account migration

Posted: Monday 27 April 2020 12:46
by rolandbreedveld
kitopopo wrote: Monday 27 April 2020 1:50 Hi dear Roland,

I have a question,

I have not yet migrated my account to google, I still have my account in nest but I do not have access from domoticz.
My question is if your script works with old Nest accounts or do I need to migrate my account to Google Nest instead?
Does your plugin currently work?

Thanks in advance, you receive a warm greeting
yes, you need a Google account, a new or a migrated one.

Re: NEST Account migration

Posted: Tuesday 28 April 2020 1:41
by kitopopo
Ok, thanks. And works correctly?
I am afraid to migrate my account to google and after the plugin does not work correctly, I do not know if there is another way to make nest work with domoticz with old nest account. thanks in advance

Re: NEST Account migration

Posted: Tuesday 28 April 2020 7:13
by krizzz
kitopopo wrote:Ok, thanks. And works correctly?
I am afraid to migrate my account to google and after the plugin does not work correctly, I do not know if there is another way to make nest work with domoticz with old nest account. thanks in advance
It works! But only if you setup correctly ofcourse.


Verzonden vanaf mijn iPhone met Tapatalk

Re: NEST Account migration

Posted: Tuesday 05 May 2020 16:09
by Ptje
Hello,

When my Nest goes to "away" it goes to 17.1 degrees. When it goed back to "Home" it stays 17.1 degrees.This is till a new timer begins or I change it my self to an other temperature. Any one has tips ?

Greeting,
Peter

Re: NEST Account migration

Posted: Tuesday 05 May 2020 19:07
by rolandbreedveld
Ptje wrote: Tuesday 05 May 2020 16:09 Hello,

When my Nest goes to "away" it goes to 17.1 degrees. When it goed back to "Home" it stays 17.1 degrees.This is till a new timer begins or I change it my self to an other temperature. Any one has tips ?

Greeting,
Peter
This is how a Nest works if you do the scheduling in the Nest.
if you want better controls, make events and timers in Domoticz, but not both, this will give conflicts

Re: NEST Account migration

Posted: Tuesday 05 May 2020 20:54
by Ptje
Hello Roland,

I have the Nest several years, this is not the way how it worked. This is sinds Domoticz does not work anymore out of the box with Nest.

When there is no movement in the room, Nest goes to "Away" So Domoticz goes also to "Away" The setpoint from the Nest goes then to the "Eco temperature" In my case, 17 degrees. The setpoint in Domoticz also wents to 17 degrees after a update true the script. But when the Nest does see movement in the room, it sets "Away" off. This also happens in Domoticz.

So far so good, but the Setpoint stays at the "Eco temperature" This is not normal. When you don't change the temperature by hand, it stays cold.

This was not so.

Greetings,
Peter

Re: NEST Account migration

Posted: Wednesday 06 May 2020 12:50
by rolandbreedveld
Ptje wrote: Tuesday 05 May 2020 20:54 Hello Roland,

I have the Nest several years, this is not the way how it worked. This is sinds Domoticz does not work anymore out of the box with Nest.

When there is no movement in the room, Nest goes to "Away" So Domoticz goes also to "Away" The setpoint from the Nest goes then to the "Eco temperature" In my case, 17 degrees. The setpoint in Domoticz also wents to 17 degrees after a update true the script. But when the Nest does see movement in the room, it sets "Away" off. This also happens in Domoticz.

So far so good, but the Setpoint stays at the "Eco temperature" This is not normal. When you don't change the temperature by hand, it stays cold.

This was not so.

Greetings,
Peter
Hi Peter
I see what you mean, I did some testing, If I switch quick to eco (from Domoticz) and back, setpoint is also changing to 17gr and back to 20gr.
This part works fine.
But if you switch to ECO, and wait for the cron script, it updates the setpoint Domoticz to 17gr, which triggers to update Google to 17gr.
From that point, Google thinks this is the real setpoint and stays that way, until a schedule occurs.
I'll think I can solve this by blocking the update to Google in the dzvents script, if ECO mode is on.
I don't see this in the Away mode, or did you make an event to go in ECO if away?
in my case, I use Domoticz also as Alarm system, if nobody is at home (no Cell-phones detected) the Alarm system goes on, which both sets ECO and Away.

will you try to change the dzvents event to this:
(my setpoint is named "Nest")

Code: Select all

return{
  on = {
    devices = {
      'Nest'
    }
  },
  execute = function(domoticz, device)
  local setpoint = tostring(domoticz.devices('Nest').setPoint)
  if (domoticz.devices('NestEcoMode').state == 'On') then
    print("Nest Setpoint not Called because in EcoMode")
  else
    print("Nest Setpoint Called, change SetPoint to :" .. setpoint .. " ...") 
    cmd = "/usr/bin/php /home/pi/nest-api/nest_setpoint.php " .. setpoint
    print(cmd)
    os.execute(cmd)
  end
end
}
in my case this works, logging cronscript after activate EcoMode:
2020-05-06 12:46 Update TEMPHUM to 20.8;36.0;0
2020-05-06 12:46 Update SETPOINT to 17.3
same time, logging in Domoticz
2020-05-06 12:46:09.730 (Virtual Sensors) Thermostat (Nest)
2020-05-06 12:46:09.968 Status: dzVents: Nest Setpoint not Called because in EcoMode

after disable EcoMode, Domoticz log:
2020-05-06 13:03:37.622 Status: User: Admin initiated a switch command (491/NestEcoMode/Off)
2020-05-06 13:03:37.647 (Virtual Sensors) Light/Switch (NestEcoMode)
cron-script log:
2020-05-06 13:06 Update TEMPHUM to 20.8;36.0;0
2020-05-06 13:06 Update SETPOINT to 20.0
Domoticz log:
2020-05-06 13:06:09.459 (Virtual Sensors) Thermostat (Nest)
2020-05-06 13:06:09.740 Status: dzVents: Nest Setpoint Called, change SetPoint to :20.0 ...
2020-05-06 13:06:09.741 Status: dzVents: /usr/bin/php /home/pi/nest-api/nest_setpoint.php 20.0

if it's ok, I'll update it in GitHub

Re: NEST Account migration

Posted: Wednesday 06 May 2020 21:41
by Ptje
Hello Roland,

When I check the logs, I think that you are wright that it goes wrong with the eco temp. I did make the changes. Tomorrow I can tell you if it works. Am I the only one who did have this problem ? Thanks for checking.

Ps. I also saw now, that my wife lets the door open for al longer time during the day, even when its cold. My Nest goes to "Eco" to prevent that the heating went on :D

Greetings,
Peter

Re: NEST Account migration

Posted: Thursday 07 May 2020 12:01
by rolandbreedveld
Ptje wrote: Wednesday 06 May 2020 21:41 Hello Roland,

When I check the logs, I think that you are wright that it goes wrong with the eco temp. I did make the changes. Tomorrow I can tell you if it works. Am I the only one who did have this problem ? Thanks for checking.
Hi Peter
I didn't hear this from others, but I saw this behaviour, thinking it was normal, which wasn't, thanks for report it.
Ps. I also saw now, that my wife lets the door open for al longer time during the day, even when its cold. My Nest goes to "Eco" to prevent that the heating went on :D
How does this work, to put it in ECO when the door is open ?, I like that!

Re: NEST Account migration

Posted: Thursday 07 May 2020 18:40
by ghubert
Hello,

After multiple tries, I finally managed to get the get_nest.sh script working with rolandbreedveld/nest-api.


However I have two thermostats in my account, the get_nest.php does repatriate both devices, but the script can only handle one device.

has anyone ever tested it with two thermostats ?

Cdt
Gabriel

Re: NEST Account migration

Posted: Thursday 07 May 2020 18:59
by Ptje
rolandbreedveld wrote: Thursday 07 May 2020 12:01
Ptje wrote: Wednesday 06 May 2020 21:41 Hello Roland,

When I check the logs, I think that you are wright that it goes wrong with the eco temp. I did make the changes. Tomorrow I can tell you if it works. Am I the only one who did have this problem ? Thanks for checking.
Hi Peter
I didn't hear this from others, but I saw this behaviour, thinking it was normal, which wasn't, thanks for report it.
Ps. I also saw now, that my wife lets the door open for al longer time during the day, even when its cold. My Nest goes to "Eco" to prevent that the heating went on :D
How does this work, to put it in ECO when the door is open ?, I like that!
Hello Roland,

My English is not very good, but I give it try.

At first,

I have a blockly script with several little thing. There I have made that when the "front door" opens, at the same time a switch "front door timer" goes on after 60 seconds. When the "front door timer is on and I close the door, the timer has to switch out.

The second I have is a blockly script for my gas heating. There I Switch the Nest to " Eco" when "front door" is open and "front door timer" is on. "eco" is going out when the " front door is closed.

So as the front door is longer then 60 seconds, the Nest is going to Eco. My wife makes the front door open when it is nice weather. But it can be 10 degrees and nice sunny weather. It was not getting cold inside, because the heating went on and the temperature was nice inside.

I also made in the same script, that when the temp outside is lower then 21 degrees room temperature from the Nest and the tv is on and the door is open, it sends a message to my tv screen. "The door is still open and the outside temperature is getting cold"

I hope you understand my English.

Greetings,
Peter

Ps. The Eco temperature seems to be working now.

Re: NEST Account migration

Posted: Thursday 07 May 2020 19:14
by rolandbreedveld
ghubert wrote: Thursday 07 May 2020 18:40 Hello,

After multiple tries, I finally managed to get the get_nest.sh script working with rolandbreedveld/nest-api.


However I have two thermostats in my account, the get_nest.php does repatriate both devices, but the script can only handle one device.

has anyone ever tested it with two thermostats ?

Cdt
Gabriel
Hi Gabriel
I have 1 Nest, so I can't test this, but if you send me the output of:
php get_nest.php
I'll look if it can be extended for more thermostats
send it in a "private message" if you don't want to have all the info public.
regards Roland

Re: NEST Account migration

Posted: Thursday 07 May 2020 19:32
by rolandbreedveld
Ptje wrote: Thursday 07 May 2020 18:59
Hello Roland,

My English is not very good, but I give it try.

At first,

I have a blockly script with several little thing. There I have made that when the "front door" opens, at the same time a switch "front door timer" goes on after 60 seconds. When the "front door timer is on and I close the door, the timer has to switch out.

The second I have is a blockly script for my gas heating. There I Switch the Nest to " Eco" when "front door" is open and "front door timer" is on. "eco" is going out when the " front door is closed.

So as the front door is longer then 60 seconds, the Nest is going to Eco. My wife makes the front door open when it is nice weather. But it can be 10 degrees and nice sunny weather. It was not getting cold inside, because the heating went on and the temperature was nice inside.

I also made in the same script, that when the temp outside is lower then 21 degrees room temperature from the Nest and the tv is on and the door is open, it sends a message to my tv screen. "The door is still open and the outside temperature is getting cold"

I hope you understand my English.

Greetings,
Peter

Ps. The Eco temperature seems to be working now.
Hi Peter
this is a great idea!!
I definitely need this too, it happens a lot of times (sun is shining, 18 dg outside) door open and Nest heating!
so going for some Z-Wave or WiFi (MQTT) door-censors.

also thanks 4 testing, repos is updated!
regards, Roland

Re: NEST Account migration

Posted: Thursday 07 May 2020 19:50
by Ptje
Hello Roland,

I think that your scripting skills are much better, blockly is not the most flexible option for this. I want to try this in Lua. I thing it can work without my "front door timer" switch. You have to create a way to set the Nest to "Eco" after the switch "front door" is open for 60 seconds.

But what I made, works fine.That is the reason I asked for plitting the "Eco" function and "Away" function some posts back. Thanks for fixing that also. I do the same action with windows of the bedrooms. I set the temperature lower when the window is open. I have z-wave radiator knops in the bedrooms.

Greetings,
Peter

Re: NEST Account migration

Posted: Sunday 10 May 2020 16:08
by ghubert
rolandbreedveld wrote: Thursday 07 May 2020 19:14
ghubert wrote: Thursday 07 May 2020 18:40 Hello,

After multiple tries, I finally managed to get the get_nest.sh script working with rolandbreedveld/nest-api.


However I have two thermostats in my account, the get_nest.php does repatriate both devices, but the script can only handle one device.

has anyone ever tested it with two thermostats ?

Cdt
Gabriel
Hi Gabriel
I have 1 Nest, so I can't test this, but if you send me the output of:
php get_nest.php
I'll look if it can be extended for more thermostats
send it in a "private message" if you don't want to have all the info public.
regards Roland
Hi Roland,
Thanks for your return I will try to send this by private message
Regard Gabriel

Re: NEST Account migration

Posted: Sunday 10 May 2020 16:36
by ghubert
ghubert wrote: Sunday 10 May 2020 16:08
rolandbreedveld wrote: Thursday 07 May 2020 19:14
ghubert wrote: Thursday 07 May 2020 18:40 Hello,

After multiple tries, I finally managed to get the get_nest.sh script working with rolandbreedveld/nest-api.


However I have two thermostats in my account, the get_nest.php does repatriate both devices, but the script can only handle one device.

has anyone ever tested it with two thermostats ?

Cdt
Gabriel
Hi Gabriel
I have 1 Nest, so I can't test this, but if you send me the output of:
php get_nest.php
I'll look if it can be extended for more thermostats
send it in a "private message" if you don't want to have all the info public.
regards Roland
Hi Roland,
Thanks for your return I will try to send this by private message
Regard Gabriel
Private message don't work for my account :

Sorry about my English, it’s just "Reverso" French.

I added a few lines in get_nest.php to display the second thermostat.

echo "Device information1:\n";
$infos = $nest->getDeviceInfo($devices_serials[1]);
jlog($infos);
echo "----------\n\n";

I am not good at awk level, so it is difficult for me to change the get_nest.sh.

Below the result of the php get_nest.php
get_nest_php_result.txt
(4.33 KiB) Downloaded 40 times
Regard Gabriel

Re: NEST Account migration

Posted: Tuesday 12 May 2020 9:01
by Superdeboer
I recently installed my RaspberriPi on Raspbian with Domoticz. Yesterday I got my Nest Thermostat (v3). I immediately installed the plugin via the instructions on https://github.com/rolandbreedveld/nest-api and so far it seems to work like a charm, so I am very pleased. Thank you for your effort rolandbreedveld!
Now I have to figure out what I can do with it in the Domoticz environment. :D

Re: NEST Account migration

Posted: Wednesday 13 May 2020 16:12
by rolandbreedveld
ghubert wrote: Sunday 10 May 2020 16:36 echo "Device information1:\n";
$infos = $nest->getDeviceInfo($devices_serials[1]);
jlog($infos);
echo "----------\n\n";

I am not good at awk level, so it is difficult for me to change the get_nest.sh.

Below the result of the php get_nest.php

get_nest_php_result.txt

Regard Gabriel
Hi Gabriel
my api is using the php script from:
https://github.com/gboudreau/nest-api
suggest you fire a question on his site, if and if so, how to change the setpoint e.g. of multiple devices, and test if this will work 4 you.
you can test this with both your Nests, if this works, I can simply implement it.
Regards, Roland

Re: NEST Account migration

Posted: Saturday 23 May 2020 22:24
by thebartzman
Hi i've been searching for a while, but can anybody explain what the nest features are in Domoticz? I have several Nest Protects in use and I'm curious what the Domoticz features are when Nest project is integrated.
Thanks