Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
TW1979 6
Hi,
.
.
This is an update of the first post which now contains the workaround I created (with code found all over the net). Makes it easier to find what you are looking for when you open this thread
This is more a replacement / edit for the original plugin. I still use the original Plugin, so I have a device that is registered in the system as a Thermometer and an Humidity Sensor (devices 112 and 113, whose values are updatet by the VD). For the moment, I don’t think this can be done with a VD alone.
Worth mentioning: don’t make too many calls in a short timeframe to the Nest API, it will just slow down everything.
I did it this way, but you can change whatever you like, this makes programming fun
Getting started: (For easy first steps to get to your access token, use something like “Postman”)
Please login or register to see this link.
Please login or register to see this link.
using something like Postman (I did it using Fibaro scenes, but Postman is easier).I made these Global variables:
I made a VD with some labels and buttons. I also did a VD with a slider to set the temperature, but that didn’t work the way I wanted it to. The slider is always 0 - 100. I edited it to be able to choose a temperature between 10°C and 30°C, but when you move the slider, the value isn’t visible “on the fly”. Changes to the slider are only possible with reload of page, for as far as I know. The new temperature did come in a label, but I found it to sluggish to use. Look at the attached images for more info.
The main loop for the VD (I like "," as decimal seperator, not ".", you can delete all that off course):
Please login or register to see this code.
The code for my button Temp +
Please login or register to see this code.
The code for button Temp -
Please login or register to see this code.
The code for button "Instellen" (you eventually have to push that button, to set Nest to your new wanted temp, I did this to limit the API calls) Scene 66 will follow
Please login or register to see this code.
The other buttons are readable in the images.
The Nest Refresh scene, which updates the global variables. Runs once a minute, don’t run it too fast. Just change the << >> values to your own.
Please login or register to see this code.
The Scene to set Nest to "Home" (scene 65)
Please login or register to see this code.
The scene to set Nest "Away" or "Eco" (scene 64)
Please login or register to see this code.
The scene that sets the new temperature to Nest (scene 66)
Please login or register to see this code.
Hope some more people can be helped by this
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Edited by TW1979New first post
Link to comment
Share on other sites
Top Posters For This Question
18
11
6
4
Popular Days
Oct 14
19
Oct 13
3
Nov 5
3
Sep 24
3
Top Posters For This Question
TW1979 18 posts
malzbier 11 posts
morpheus75 6 posts
Sardar 4 posts
Popular Days
Oct 14 2016
19 posts
Oct 13 2016
3 posts
Nov 5 2016
3 posts
Sep 24 2016
3 posts
Popular Posts
TW1979
Sure, but remember, the API has you go through a few stages, so the code is kind of "incomplete" when you use it like this. First, get a developer account from NEST. Then you get a "ProductID" an
Posted Images
47 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.