-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add switch entity for Home/Away control #100
Comments
+1 for this. |
It took a while, but I will have a look again. Can you try to execute this via https://home.nest.com/ and capture the POST request (JSON). I don't have a thermostat, so I am not able to add this. Is this not supported in the Nest integration in core? |
Hi Mick, I did speak to Allen Porter about this a while ago, and it was because this HomeAway Sensor/Switch is not directly in the SDM API, same reason the Protects are not in the Nest Core. I did find this switch does exist in the full blown HomeKit/Homebridge nest API (https://github.com/chrisjshull/homebridge-nest) which I understand the Protect integration is based on. If you scroll down to the Feature Options of that page you will see: "HomeAway.AsOccupancySensorAndSwitch" - create Home/Away indicator as an OccupancySensor and a Switch I found the Home/Away code is in the file lib/nest-homeaway-accessory.js In particular the getHome() and setHome() functions look relevant.
|
They are using Protobuf (a different protocol) for this, which we didn't implement for the Nest Protect integration (yet). |
Hi Mick, So I've traced the POST request down in Chrome Dev Tools and it seems they are not using application/json for Content-Type but instead application/x-protobuf in the actual request headers: Request URL: And the request payload looks to be the serialized class object: |
Description
Another feature lacking from Nest SDM is the ability to toggle home/away for the structure.
The
structure.xxx
data bucket already includes theaway
boolean parameter, so I believe it should be an easy addition (no protobufs required?).Device (optional)
Structure
Additional information
No response
The text was updated successfully, but these errors were encountered: