All I can think off is the cookie and token not being correct. Make sure to copy the whole string for both, as they are several lines long. And make sure to use Incognito mode in Chrome.
Region can be set to any country and should work, but it’s only needed for camera’s.
I don’t have any Nest camera’s so I’m not using the region option at all and it’s been working fine.
Other than that all I can think of is the cookie and issue token not being
Well… sorta…
I have a Thermostat (v3) and 2 Protects connected with this integration, but since 2 days my logs are getting hammered with errors like this:
2020-01-29 03:36:48 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.attic_protect_smoke_status fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 461, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/badnest/sensor.py", line 123, in update
self.device.update()
File "/config/custom_components/badnest/api.py", line 191, in update
for bucket in r.json()["updated_buckets"]:
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I get similar errors on all of the sensors I’ve made for my ‘Nest’ devices. (Thermostat, the other Protect)
Is there anything I can do to fix this? Or could this be caused by a change on Google’s end?