Closed piadam closed 1 year ago
I believe that I'm getting a similar reply:
[1/2/2023, 4:55:25 PM] [Nest] initing thermostat (P) "Living Room Thermostat": deviceId: 641666XXXE9A9A structureId: 93e25b00-cccc-11e8-XXXX-0e4083e004d4 [Living Room Thermostat@@Heating Threshold Temperature] characteristic was supplied illegal value: number 0 exceeded minimum of 10 [1/2/2023, 4:55:25 PM] [Nest] initing home_away_sensor "Home Occupied": deviceId: 93e25b00-cccc-XXX
@piadam & @EVfrank - please post your config.json
. Thanks.
@EVfrank - just want to make sure I understand exactly what you're experiencing. You say the service is only working for a short time - how long? (Note, I deleted your config.json post since no need for it to stick around here with your tokens - but grateful for it!)
Funny you ask! It seems, at the moment, not at all. I just restarted HB, and there was no connection - immediately. Perhaps this Log snip might be helpful:
[1/4/2023, 6:14:37 PM] [Nest] initing thermostat (P) "Living Room Thermostat": deviceId: 64166600008E9A9A structureId: 93e25b00-cccc-11e8-8eXX-0e4083e004d4 [Living Room Thermostat@@Heating Threshold Temperature] characteristic was supplied illegal value: number 0 exceeded minimum of 10 [1/4/2023, 6:14:37 PM] [Nest] initing home_away_sensor "Home Occupied": deviceId: 93e25b00-cccc-11e8-8eXX-0e4083e004d4 structureId: 93e25b00-cccc-11e8-8eXX-0e4083e004d4
What do you mean when you say there is 'no connection'? Those lines you posted look like the service is connecting normally, although it would be helpful to see the whole log.
Ah, I meant that the Nest data is visible in any of my HomeKit UIs. Thus, when I say it drops, I mean that it is indeed there, in Home for example, then it goes away. Often, rebooting Homebridge brings it back. Here's a screenshot:
Is Nest the only plug-in you're using, or do you have other plug-ins? If so, are they working right now?
I'm using a couple of other plug-ins, including Hue and Ring, and they seem to be working fine.
First this is a very different problem to what @piadam is talking about, which is about expiring tokens or cookies. So that confused me for a while.
I would try removing the Homebridge instance from HomeKit, resetting the Homebridge instance (either via the UI, or change the bridge.username in config.json
), and then re-adding. Also are you using the iOS 16.2 new architecture (that was withdrawn by Apple recently)? That seems to be causing a lot of problems for people, with random devices not working.
Yes, I'm running 16.2 - unfortunately I had faith that Apple had tested it!
Let me try your other suggestions. As I said, I'm relatively new at this, so it'll take me a bit of time.
Thanks for your help!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had it working for some time, probably an hour or so... Have been able to use Siri to set new temperatures and so... After a while however it stopped working and the Homebridge-log told me:
[20/12/2022, 17:38:08] [Nest] Setting temperature to 21 °C / 69.8 °F [20/12/2022, 18:10:07] [Nest] Reauthenticating on Nest service ... [20/12/2022, 18:10:07] [Nest] Auth failed: access token specified in Homebridge configuration rejected [20/12/2022, 18:10:08] [Nest] API observe: error not_connected [20/12/2022, 18:10:08] [Nest] ^^^^^ this message is for information only, it does not mean there is a problem, please do not file a ticket unless you actually have a problem with the function of the plug-in [20/12/2022, 18:10:08] [Nest] Retrying in 10 seconds.
After loggin in to my Nest account and installing a new access-token in the json file it worked again...
[20/12/2022, 22:11:32] [Nest] initing thermostat "Living Room Thermostat": deviceId: 09AA01ACXXX70091 structureId: 3aa0b250-f7b5-XXXX-XXXX-22000aa4XXX2 [Living Room Thermostat@@Heating Threshold Temperature] characteristic was supplied illegal value: number 0 exceeded minimum of 9
I understand I should not logout from the Nest-site, I just closed the window, but I believe that somehow the token gets invalidated after some time.
Is there any way to keep it valid for a longer time, like days/weeks/months?