homebridge-nest icon indicating copy to clipboard operation
homebridge-nest copied to clipboard

Celsius decimal places

Open Hpridham opened this issue 7 years ago • 16 comments

I have a Nest set to Celsius and I’m unable to use homebridge and Apple’s home app to adjust the temperature in .5 increments (this is possible the Nest app). At present, everything is rounded up when controlling and displaying temperature. For example, the current temperature is set to 19.5 but it is displayed at 20. The actual temperature is 20.5 but it is displayed at 21.

As I imagine most of the developers are American, was the need for decimal places overlooked or am I missing something? .5 have a degree is a big deal in Celsius.

Hpridham avatar Feb 11 '18 05:02 Hpridham

try using my fork, it has a lot of fixes from people merged in, along with °C fixes (not sure they address what you are seeing though): npm install -g "https://github.com/chrisjshull/homebridge-nest"

Also, was the Nest in °F when you first set up Homebridge / Home?

chrisjshull avatar Feb 11 '18 06:02 chrisjshull

Thanks! This looks to be just the fix I need. I didn’t have my Nest set to Fahrenheit when I setup Homebridge.

Unfortunately, after trying to install this I’m getting the following errors:

npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone -q https://github.com/chrisjshull/homebridge-nest.git /root/.npm/_cacache/tmp/git-clone-344f28c5 npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-344f28c5': Permission denied

I’m already using sudo. Any thoughts?

Hpridham avatar Feb 12 '18 04:02 Hpridham

@chrisjshull Thanks for keeping the plugin up-to-date! I’m I’d definitely like to run your forked version but how I’m running Homebridge is through Home Assistant (via Hassio). My understanding is I can only install plugins that are listed on npmjs.com but I don’t see your forked version of this plugin when I search for “homebridge-nest” (there’s about 6 other versions though). Any chance your version will be listed on NPM soon?

On a side note, any idea what happened to @KraigM? I’m assuming no one can update this “homebridge-nest” plugin hence all the forked versions?

shred86 avatar Feb 12 '18 05:02 shred86

@shred86 @Hpridham git clone https://github.com/chrisjshull/homebridge-nest directly in your global node_modules directory. I used nodesource distribution so it would be under /usr/lib/node_modules. Afterward, cd into the directory and do a sudo npm install.

zllovesuki avatar Feb 13 '18 02:02 zllovesuki

Thanks for the info. Unfortunately, I can’t use the terminal to install anything. I’m running Home Assistant via Hassio, which is basically resinOS running Home Assistant in a docker that doesn’t allow you to have true “root” access, or really any access to anything other than the Home Assistant configuration files. Basically, any Homebridge plugin needs to be listed on NPM in order for me to be able to install it...

shred86 avatar Feb 13 '18 04:02 shred86

@shred86, I'm not sure what happened to @KraigM. I'll look into publishing to npm soon (but I'm on vacation for a few weeks). Will let you know when there's something to know. ;)

chrisjshull avatar Feb 13 '18 04:02 chrisjshull

Thanks for the help @zllovesuki. I got it installed. Unfortunately, it doesn't address the .5 degree issue. However, now I have fan control.

Perhaps I did the install wrong? I deleted the old homebridge-nest plugin folder before cloning this plugin, rather than performing an uninstall...

Hpridham avatar Feb 13 '18 05:02 Hpridham

Rats. Well, I've put my nest and phone into °C mode, and I too am seeing this issue. Not sure why. Oddly, third party apps seem to handle this better: https://itunes.apple.com/us/app/idevices-connected/id682656390?mt=8. I can also tell Siri "Set the temperature to 19.5°C" and the correct temperature is set on the Nest (but shown wrong in Home). Part of me wonders if Apple has a bug here.

chrisjshull avatar Feb 13 '18 05:02 chrisjshull

@chrisjshull I am new to using Homebridge but have my nest products working fine in HomeKit using the KraigM version. To use your new fork version, do I just install it as mentioned above and it “updates” or “overwrites” my current version, or do I have to uninstall the KraigM version first? Also, in HomeKit do I have to delete the Homebridge accessory and re add it for HomeKit to see the nest devices updated? Thank you.

jbixby11 avatar Feb 14 '18 13:02 jbixby11

@chrisjshull clearly the developer(s) at Apple who work on Home.app don't speak Celsius very well... It's a minor annoyance right now that it doesn't show the .5 in the app, but the thermostat is fine.

zllovesuki avatar Feb 14 '18 19:02 zllovesuki

@jbixby11

  1. Shutdown your homebridge instance
  2. Remove the KraigM version with sudo npm remove -g homebridge-nest
  3. sudo git clone https://github.com/chrisjshull/homebridge-nest directly in your global node_modules directory. I used nodesource distribution so it would be under /usr/lib/node_modules
  4. cd into node_modules, and do a sudo npm install
  5. Start homebridge again. Your config should still work.

zllovesuki avatar Feb 14 '18 19:02 zllovesuki

@zllovesuki

Ok, dumb newbie question, in line 4 when you say sudo npm install, I also add Homebridge-nest to the end of that line?

jbixby11 avatar Feb 16 '18 14:02 jbixby11

@jbixby11 No, just npm install

zllovesuki avatar Feb 18 '18 03:02 zllovesuki

Thank you all. Got the new fork installed. Works great. I especially like that the AUTO function allows changing upper and lower temps.

jbixby11 avatar Feb 18 '18 13:02 jbixby11

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.

chrisjshull avatar Feb 27 '18 02:02 chrisjshull

... If you've been using the fork via URL, simply do npm install -g homebridge-nest.

chrisjshull avatar Feb 27 '18 02:02 chrisjshull