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

Nest Fan Service #130

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

saverchenkov
Copy link

@saverchenkov saverchenkov commented Jul 7, 2017

Added a separate "Fan" service to control nest fan. Works as expected. Unfortunately, there is no way to set fan timer, but basic on/off states work as expected. I tested this with latest homebridge.

@djensenius
Copy link

Is the reason that timers can't be set a limitation of HomeKit? It appears possible in the Nest API unless I'm misreading it?

@zeve-zz
Copy link

zeve-zz commented Aug 29, 2017

@saverchenkov i integrated your code

I'm now seeing two separate items for my nest. one for thermostat as it was, and now one that has a fan icon which is a power on/off toggle

however, the fan item isn't operable ('no response'). when i run the ac, or the fan via the nest app, the fan icon will update and begin to spin, but i can't actually interact with it. did i miss a step here?

edit:
seeing the following now in my logs. this is new.

Aug 28 21:28:28 raspberrypi homebridge[538]: FIREBASE WARNING: set at /devices/thermostats/bjThYz57rt_21QJnOsB871nYKoB9bDtC/fan_timer_active failed: blocked

and

Aug 28 21:29:25 raspberrypi homebridge[538]: FIREBASE WARNING: set at /devices/thermostats/bjThYz57rt_21QJnOsB871nYKoB9bDtC/target_temperature_high_f failed: blocked

@saverchenkov
Copy link
Author

Thank you for merging and apologies for the delay in response.

Second device is normal. This is as intended. Homekit does not seem to have a "fan" feature on a thermostat, so I exposed it as a separate device.

"Blocked" sounds like a rate limit exceeded issue. Can you try again? Do you have a way to catch the exact HTTP status code? Alternatively, this could be permissions issue, but for as long as your app has read/write for thermostat, it should work.
https://developers.nest.com/documentation/cloud/error-messages

I use this feature daily on my home thermostat.

@chrisjshull
Copy link

Great news! I have taken up maintenance of the homebridge-nest plugin in npm. The source code now lives at https://github.com/chrisjshull/homebridge-nest/. To update to the latest version of homebridge-nest, simply run npm update -g homebridge-nest.

I believe this PR is merged in that repo. If not, please submit a new issue/PR there.

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.

5 participants