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

Homebridge not picking up units of Nest on initialization

Open gonenutsbrb opened this issue 7 years ago • 3 comments

Sorry for the random issue right in the middle of the holidays.

I just re-setup my homebridge install and it now appears that when starting homebridge, it doesn't pick up the units of the nest. And even when changing the units in the Nest app back and forth as suggested in a different thread, it still doesn't show anything in the logs.

I do see the expected error regarding the software-version characteristic, but nothing else:

Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] Loaded plugin: homebridge-nest Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] Registering platform 'homebridge-nest.Nest' Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] --- Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] Loaded config.json with 0 accessories and 1 platforms. Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] --- Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] Loading 1 platforms... Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] [Nest] Initializing Nest platform... Dec 31 19:08:04 hlserver homebridge[13610]: [12/31/2017, 7:08:04 PM] [Nest] Fetching Nest devices. Dec 31 19:08:07 hlserver homebridge[13610]: HAP Warning: Characteristic 00000054-0000-1000-8000-0026BB765291 not in required or optional characteristic Dec 31 19:08:07 hlserver homebridge[13610]: [12/31/2017, 7:08:07 PM] [Nest] Initializing platform accessory 'Living Room Thermostat'... Dec 31 19:08:07 hlserver homebridge[13610]: Setup Payload:

So I do have Siri giving me correct units (Fahrenheit) and the nest displaying correct units, but the logs show Celcius (see below) and it causes Siri to respond with decimal based responses (which may be a different issue).

Dec 31 19:10:16 hlserver homebridge[13869]: [12/31/2017, 7:10:16 PM] Homebridge is running on port 35131. Dec 31 19:12:29 hlserver homebridge[13869]: [12/31/2017, 7:12:29 PM] [Nest] Trying to set temperature 23.5 Dec 31 19:12:34 hlserver homebridge[13869]: [12/31/2017, 7:12:34 PM] [Nest] Temperature set to 23.5

No rush, but any ideas?

gonenutsbrb avatar Jan 01 '18 03:01 gonenutsbrb

+1 for this issue except I'm seeing incorrect temperature in Home app compared to the Nest app. Home app is always off by -1 degree using F units.

gee4vee avatar Jan 03 '18 22:01 gee4vee

I'm seeing the same behavior. Siri is responding with the decimal points, i.e. "Hey Siri set the temperature to 72-degrees" -> "Ok, I set the temperature to 71.6-degrees fahrenheit."

Looking at the logs:

[2018-1-4 10:40:58] [Nest] Trying to set temperature 22
[2018-1-4 10:41:03] [Nest] Temperature set to 22

22C = 71.6F

I just set up Homebridge and homebridge-nest over the holidays, so perhaps this is an issue with a newer version of the API? The API version was 1 or 2 versions higher for most of the permissions requested.

ronaldheft avatar Jan 04 '18 15:01 ronaldheft

Found the issue with decimal rounding and will submit a PR shortly.

On a side note, I've also found the logging for new API is slightly different than before. In the logs all temperatures will be reporting in Celsius, which is to be expected. You will also not see any logs detecting the units.

ronaldheft avatar Jan 04 '18 17:01 ronaldheft