Skip to content
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 support for Nest platform. #70

Merged
merged 7 commits into from
Jul 18, 2015
Merged

Add support for Nest platform. #70

merged 7 commits into from
Jul 18, 2015

Conversation

spacecowgirl314
Copy link
Contributor

Most support for Nest is here. Some things I've been unable to test, such as the response for the current_schedule_mode because I do not have AC. The responses seem to mirror the output of the target_temperature_type though and can verify the output there should be correct by the results of others taking a look at the nest api. So with any luck the responses from current_schedule_mode should be correct but I cannot verify it. Other things to note, it doesn't seem like the api provides near current updates and for whatever reason HomeKit's automatic conversion to Fahrenheit seems to be off by a smidgen (.5) when comparing the temperature to what's on the thermostat. The module I was using for nest support had to be forked in order to accept setting the thermostat to off so I forked it and the package in the json points to my fix in a repo of mine. Let me know what you think.

[Edit by @nfarina: Fixes #30]

Some things are missing or may not be working correctly but the main
things like checking the current temperature, the target temperature,
the humidity, setting the target temperature and etc.. I don’t think
the current heating mode is correct.
It works but the API doesn’t reflect the change soon enough for HomeKit
to be aware it worked. Not sure what to do here.
For now the package location has been changed to reflect this. I've submitted a pull request but it doesn't look like it's been touched in a while so I'm not sure it's going to get merged.
@nfarina
Copy link
Contributor

nfarina commented Jul 18, 2015

This looks awesome and works great for me!! Last piece of my home that wasn't on homebridge 🎅

@nfarina
Copy link
Contributor

nfarina commented Jul 18, 2015

I think it's fine to point at your forked nest API until they merge your PR.

nfarina added a commit that referenced this pull request Jul 18, 2015
Add support for Nest platform.
@nfarina nfarina merged commit 38f3d9b into homebridge:master Jul 18, 2015
@nfarina
Copy link
Contributor

nfarina commented Jul 18, 2015

So it looks like HomeKit thermostats can be set to Celsius or Fahrenheit directly. Notice how in the HomeKit Accessory Simulator you can set the unit type. And in the JSON service info, there's a TEMPERATURE_UNITS_CTYPE setting, as well as a unit: property for the TARGET_TEMPERATURE_CTYPE. I'm trying to figure out how this is supposed to work though.

@nfarina nfarina mentioned this pull request Jul 19, 2015
@nfarina
Copy link
Contributor

nfarina commented Jul 19, 2015

Moved last comment to #71.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Support Nest
3 participants