Jump to content

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


  • 0

Nest virtual device


Question

Posted

Hi,

here a sample virtual device that connects to your Nest and allows view & control of some functions of the thermostat.

A webserver with php is required as a gateway to Nest.com apis.

Read the How-to.txt for instructions and read lua scritps comments to apply your params.

Icons for every status are included.

Warning: in the main loop the sleep time should not be lowered too much: it seems that Nest apis does not like too many frequent connections and when this happens the thermostat is forced offline for some minutes.

Hope you enjoy it.

Please login or register to see this link.

Please login or register to see this attachment.

Please login or register to see this attachment.

Recommended Posts

  • 0
Posted

Great

Please login or register to see this image.

/emoticons/default_icon_biggrin.gif" alt=":-D" />

  • 0
Posted

Good Work, thank you for share.

Could you help me?. I follow your instructions but not run in my HC2. (firm 3580)

The first doubt:

When I execute the script on my PHP server I obtain this result, It's ok?

Location information:

[

{

"name": "",

"address": null,

"city": null,

"postal_code": "08213",

"country": "ES",

"outside_temperature": -4.2,

"away": false,

"away_last_changed": "2014-02-02 19:25:58",

"thermostats": [

"02A************"

]

}

]

  • 0
  • Inquirer
  • Posted
    Good Work, thank you for share.

    Could you help me?. I follow your instructions but not run in my HC2. (firm 3580)

    The first doubt:

    When I execute the script on my PHP server I obtain this result, It's ok?

    Location information:

    [

    {

    "name": "",

    "address": null,

    "city": null,

    "postal_code": "08213",

    "country": "ES",

    "outside_temperature": -4.2,

    "away": false,

    "away_last_changed": "2014-02-02 19:25:58",

    "thermostats": [

    "02A************"

    ]

    }

    ]

    Hi, yes, this output is correct if you are calling the nest.php file from a browser with no command parameters.

    You see the serial of your thermostat. If you have more than one, you will see more serials.

    You can try now some direct commands on the url:

    nest.php?serial=YOURSERIALNUMBER&info=1

    nest.php?serial=YOURSERIALNUMBER&setTemp=23

    nest.php?serial=YOURSERIALNUMBER&setAway=on

    nest.php?serial=YOURSERIALNUMBER&setAway=off

    nest.php?serial=YOURSERIALNUMBER&mode=heat

    nest.php?serial=YOURSERIALNUMBER&mode=off

    the sample virtual device i posted is using these commands.

    cheeers

    • 0
    Posted
    Good Work, thank you for share.

    Could you help me?. I follow your instructions but not run in my HC2. (firm 3580)

    The first doubt:

    When I execute the script on my PHP server I obtain this result, It's ok?

    Location information:

    [

    {

    "name": "",

    "address": null,

    "city": null,

    "postal_code": "08213",

    "country": "ES",

    "outside_temperature": -4.2,

    "away": false,

    "away_last_changed": "2014-02-02 19:25:58",

    "thermostats": [

    "02A************"

    ]

    }

    ]

    Hi, yes, this output is correct if you are calling the nest.php file from a browser with no command parameters.

    You see the serial of your thermostat. If you have more than one, you will see more serials.

    You can try now some direct commands on the url:

    nest.php?serial=YOURSERIALNUMBER&info=1

    nest.php?serial=YOURSERIALNUMBER&setTemp=23

    nest.php?serial=YOURSERIALNUMBER&setAway=on

    nest.php?serial=YOURSERIALNUMBER&setAway=off

    nest.php?serial=YOURSERIALNUMBER&mode=heat

    nest.php?serial=YOURSERIALNUMBER&mode=off

    the sample virtual device i posted is using these commands.

    cheeers

    Thankyou umbex, It was getting bad settings in lua, now it's solved.

    Other question, Is it possible to read the humidity setting and put it in the main configuration HC2 like a physical device? In HC2 -->Configuration-->General-->The main humidity sensor:

    • 0
  • Inquirer
  • Posted

    Other question, Is it possible to read the humidity setting and put it in the main configuration HC2 like a physical device? In HC2 -->Configuration-->General-->The main humidity sensor:

    Good question, but I've never tried this... sorry I don't have a clue about it.

    • 0
    Posted

    Hello, Is this integration working completely for now?

    • 0
  • Inquirer
  • Posted
    Hello, Is this integration working completely for now?

    Hi, it is running fine so far.

    I have to say that it is almost useless in my case because I haven't done many changes to my Nest settings after the first period.

    • 0
    Posted

    I only wish to achieve climate control from it. And this works with Nest latest version right?

    EDIT: Fibaro os 4.x is bringing Nest plugin that works out of the box!! Release date? End of March

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> :)

    • 0
    Posted

    What is pretty about it that they said end of March. But did't mention the year

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    maybe March 2016

    Please login or register to see this image.

    /emoticons/default_biggrin.png" alt=":D" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    Any plans for a Nest Protect script and virtual device? As the built in functions on Fibaro 4.017 are absolute garbage!

    Yours is SO much more reliable!

    • 0
    Posted

    what options does the current Nest thermostat plugin in 4.x support? any screenshots?

    • 0
    Posted

    All standard functions but the gui is a mess... buttons everywhere looks horrible!

    Please login or register to see this attachment.

    • 0
    Posted

    Thanks!

    mh oke. Looks eh interesting.

    Well what I am after moslty is to make a good integration between the two heating systems.

    And try to use the present status of the house to help the nest and the other way around.

    Can you call the functions from the nest plugin in a lua scene already?

    • 0
    Posted

    Hi,

    I cant get my nest communicating with HC2 beta 4.018

    I made nest account, added thermostat so I can control it from home.nest.com

    Also added nest plugin to HC2, input my email and password - no connection with account.

    Did I forgot to do something or there is something else?

    • 0
    Posted

    It works perfectly fine for me (Thermostat, not NEST protect yet), once you have added the NEST device, you have to click GET DEVICES under Refresh device list which can be found on the ADVANCED tab

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    After a few seconds the devices (temp, humidity) should show up under unassigned devices.

    [ Added: 2014-12-12, 11:29 ]

    What im wondering now is how you could make it so that when NEST is set to AWAY, a scene will get activated to turn off all lights, anyone any idea?

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    Nice idea @tcviper -- did you ever find a solution to triggering a scene from the AWAY status ?

    • 0
    Posted

    Is it possible to set the Nest Thermostat to away by a scene?

    I can use the Fibaro virtual device as shown by deanrparry above and manually press the Away button.

    Once I leave home, I would like to set the Nest Thermostat automatically to away. And script or command you can share?

    • 0
    Posted

    This doesn't show in the building blocks as a device, so it would need to be LUA code. Is it possible to pass calendar events into HC2? If you are away for 3 or 4 days, you could add an event to your calendar which would turn 'away' off in good time to re-heat the home.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...