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

Request: ability to toggle humidifier on/off #22

Closed
doctorkb opened this Issue Dec 6, 2013 · 7 comments

Comments

Projects
None yet
2 participants
@doctorkb

doctorkb commented Dec 6, 2013

I've noticed my Nest will often stick in "Humidifying" mode even after it has passed the target by 2-3%. By turning the humidifier off, then on again, it resets this behaviour.

I'd like to add this to my cron script that uses nest-api -- to check to see if it is

  • currently humidifying (can do)
  • if the target is more than 2% lower than current (can do)
  • if it is, then turn the humidifier off, sleep(3), then turn it on. (can't do, AFAIK).

Thanks... and keep up the great work!

@gboudreau

This comment has been minimized.

Owner

gboudreau commented Dec 6, 2013

I have no humidifier that my NEST thermostat can control, so I can't see what call is made to their API when you do this using the website.
Maybe you can try to setHumidity(0) then setHumidity(whatever_value) ?

@doctorkb

This comment has been minimized.

doctorkb commented Dec 6, 2013

Unfortunately, tweaking the humidity percentage doesn't seem to do it.

If you can tell me how to snoop on their API, I'd be happy to do so and report back. :)

I'm a halfways decent PHP coder, but I've never gotten the hang of JS.

@gboudreau

This comment has been minimized.

Owner

gboudreau commented Dec 6, 2013

I use Chrome Dev tools to see what is sent via http when I click something
on home.nest.com. paste here what you see when activating or disabling your
humidifier and that should be enough.

@doctorkb

This comment has been minimized.

doctorkb commented Dec 6, 2013

I think this is what you're after:

base_object_revision: -1999078493
object_key: "device.XXXXXXXXXXXXX"
op: "MERGE"
value: {target_humidity_enabled:false}
target_humidity_enabled: false

and
base_object_revision: -1021022436
object_key: "device.XXXXXXXXXXXXX"
op: "MERGE"
value: {target_humidity_enabled:true}
target_humidity_enabled: true

@gboudreau gboudreau closed this in 296017a Dec 7, 2013

@gboudreau

This comment has been minimized.

Owner

gboudreau commented Dec 7, 2013

Let me know if that works or not.

@doctorkb

This comment has been minimized.

doctorkb commented Dec 7, 2013

Works great... Thanks!

@doctorkb

This comment has been minimized.

doctorkb commented Dec 7, 2013

Now... if only Nest Labs support was as available and responsive... :)

sameerparekh pushed a commit to sameerparekh/nest-api that referenced this issue May 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment