Page 1 of 1

Sleeping scene with Nest

Posted: Thursday 29 October 2015 11:08
by ErikJ
I need some help with the following:

When I go to bed is use a scene ‘sleeping’ and after a minute all the lights switch off. My wish is that also my Nest thermostat sets to a lower temperature when I use the scene ‘sleeping’.

So I made a dummy switch named ‘Nest’ and I tried to configure an event when the dummy switch ‘Nest’ is switch off the Nest sets to a temperature of 17 degrees.
Capture.PNG
Capture.PNG (19.28 KiB) Viewed 4608 times
When I test the event I receive the following error: Error: EventSystem: Malformed action sequence!

Any suggestions?

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 13:14
by Luppie
Right now, it is not possible to set the temperature with blocky.
To work around this you could add a URL to you'r scene 'On Action'

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=udevice&idx=XXX&nvalue=0&svalue=17
Replace XXX with the idx of the Dummy Nest Switch

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 15:09
by ErikJ
Hello Luppie,

Thanks for your reply!

I tried the URL in the dummy switch and even in the scene but no action on the Nest. I also tried different IDX numbers, but no result on the Nest.

Some more suggestions?
Capture.PNG
Capture.PNG (316.3 KiB) Viewed 4582 times
Capture2.PNG
Capture2.PNG (185.84 KiB) Viewed 4582 times

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 15:29
by ThinkPad
I think Luppie made a mistake in his post. The URL he posted is probably right (to update a virtual thermostat), but you don't fill in the IDX of the Nest switch but the URL of the Nest thermostat device.

So in your case the thermostat is IDX 113. This would make the URL look like:

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=udevice&idx=113&nvalue=0&svalue=17
The temperature is the '17' at the end. Change it to your own preferred value.

I don't know how the Nest implementation in Domoticz is done, but this will probably work.

P.S. You can call the URL from the switch like you are doing now, but in the Blockly editor there is also a block for calling a URL. Might be useful if you extend your event later on.

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 15:54
by ErikJ
Hello ThinkPad,

I already tried the 113 idx but no action on the Nest.

For some reason there is no action on the Nest and in the log file there are no errors.

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 17:12
by Luppie
ThinkPad is right, I ment the IDX of the virtual thermostat.
Because a scene is a momentary button I'm not sure if there is a Off mode, thats why I've put the URL @ On Action (I see that you have put it @ Off Action - I've tested it with my config and the Off Action does nothing with a Scene.)

Also, when updating the virtual thermostat, do you have any actions that tells your Nest to change the temperature ?
Only a virtual dummy thermostat, will do nothing.

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 17:45
by ErikJ
When I set the temperature in the utility tab, I get the following information:

In the log file: 2015-10-29 17:30:56.967 (Nest) Thermostat (Nest)

In the devices overview:
Capture.PNG
Capture.PNG (44.75 KiB) Viewed 4560 times
When I active the scene, and I tried also enter the command in de off and on path. There is in the log file the same message as above, but in the devices tab no change. And there is also no change on the Nest.

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 18:17
by Luppie
When I open the URL in a browser (not in domoticz) I get the following log entry:

Code: Select all

2015-10-29 18:16:40.620 Sending SetPoint to device....
2015-10-29 18:16:40.621 (Thermostaat) Thermostat (Thermostaat)
Can you try the URL in a browser (not in domoticz) and see what the log says ?

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 19:12
by ErikJ
Found it!!

I had to change the port number, my domoticz is working under 8084 in stead of 8080.

Thanks for your help, I am very happy this works!

Re: Sleeping scene with Nest

Posted: Thursday 29 October 2015 19:54
by ThinkPad
Doh..... but good to hear it is working!

Re: Sleeping scene with Nest

Posted: Friday 11 March 2016 8:25
by ErikJ
Hello,

For some reason my "on action" or "off action" for the Nest is not working anymore.

Used for more than four months the action: http://127.0.0.1:8084/json.htm?type=com ... &svalue=17 but a few weeks ago nothing happens anymore :?

When I use it in the browser and change the url IP-address to the address of the Domoticz server it still works. I receive the message:

{
"status" : "OK",
"title" : "Update Device"
}

In Domoticz log there is no error. Also when I change the URL in the event switch from 127.0.0.1 to IP-address of the server there is no error in the log. When I change http to https, there is an error, that Domoticz cannot open url.

I can change the temperature in Domoticz but only with a setpont command in the tab utility.

Any suggestions?

Using Domoticz version: V3.4834 on sysnology NAS

Re: Sleeping scene with Nest

Posted: Tuesday 13 December 2016 15:22
by springfield
Have you find a fix for it?

Re: Sleeping scene with Nest

Posted: Monday 11 December 2017 8:51
by TurnAround
Hi, Could I get this bed with bedding here in Australia?