I made a crappy Nest Thermostat integration that will work as a stopgap until alternatives come out

I also have similar issue. Unable to find hello.

I have observed that the hello cam is not showing as an entity. But, there are several services that I can see.

camera.enable_motion_detection
camera.disable_motion_detection
camera.play_stream
camera.record
camera.snapshot
camera.turn_off
camera.turn_on

I use picture entity card. Entity is camera.front_door which was created after I installed through HACS and modified my configuration.yaml.

I’m am a beginner and on default Lovelace UI and have not yet experimented with picture cards. Could you please share the config?

aspect_ratio: 75%
entity: camera.front_door
type: picture-entity

Nothing special. Used configure UI in lovelace. Chose picture entity card.

I wonder if anybody of you who are missing something tried to “delete” the affected device and add it again to the account.

Tagging for later. Came to ask whether BadNest could be used simultaneously with the original Nest integration, but it seems something is preventing logins using the now defunct WwN method and the author has been MIA since November. Hopefully this project stays active because it is definitely fulfilling a need.

Great integration. How does badnest handle different “structures”? I have a nest hello in one structure and four nest thermostats in another. I can see the thermostats but the nest hello in the other structure doesn’t appear.

Hi I’m trying to use set_temperature in a Node Red flow to set target_temp_high and target_temp_low but I keep getting API errors in node red. I believe the error is…

2020-01-25 14:55:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140301615110416] some but not all values in the same group of inclusion ‘temperature’ @ data[]
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 134, in handle_call_service
connection.context(msg),
File “/usr/src/homeassistant/homeassistant/core.py”, line 1204, in async_call
processed_data = handler.schema(service_data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/validators.py”, line 208, in call
return self._exec((Schema(val) for val in self.validators), v)
File “/usr/local/lib/python3.7/site-packages/voluptuous/validators.py”, line 287, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File “/usr/local/lib/python3.7/site-packages/voluptuous/validators.py”, line 283, in _exec
v = func(v)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/validators.py”, line 205, in _run
return self._exec(self._compiled, value, path)
File “/usr/local/lib/python3.7/site-packages/voluptuous/validators.py”, line 287, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File “/usr/local/lib/python3.7/site-packages/voluptuous/validators.py”, line 285, in _exec
v = func(path, v)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 817, in validate_callable
return schema(data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 591, in validate_dict
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: some but not all values in the same group of inclusion ‘temperature’ @ data[]

Is this supported or am I doing something wrong? I have other flows for setting eco mode and those work fine so I feel like I’ve at least written out the data field correctly ex. {“target_temp_low”:“70”}.

Any help would be appreciated! Thanks

I did try that with no luck. I can only see one thermostat. I would love to figure out why. I have tried everything I can think of.

Hello All,
whatever I try I keep getting errors after installing.
I installed using HACS. First it installed only badnest.zip. Unpacking this did not help.
Reinstall installed \custom_components\badnest with 7 files in it.
Restarting HA resulted in an error:

Blockquote
Platform error sensor.badnest - Integration ‘badnest’ not found.
Component error: badnest - Integration ‘badnest’ not found.
Platform error climate.badnest - Integration ‘badnest’ not found.

So uninstalled and installed again. Result: badnest.zip in \custom_components\badnest
What do I do wrong?
This is an integration I really would like to use. And it is not BAD but BESTNest.

For mine I had to install HACS and then once it was installed…from within HACS install badnest…it works well.

Did anyone get the Hot Water control working?

Hi everyone,

I have been trying to install badnest but am having no luck. Any advice will be welcome. I have installed HACS and through this have successfully installed the badnest integration (i.e. I see the badnest in the HACS “installed” tab). At this point, all seems normal. However, when I change the configuration.yaml file appropriately (using the appropriate issue_token and cookie parameters as per instruction) and restart HA, then everything breaks down. I cannot even see the HA main page and the HA log file says that badnest is taking more than 10 seconds to load. No amount of waiting changes anything. My configuration.yaml file looks like:

badnest:
  issue_token: "https://accounts.google.com/o/oauth2/ifra.....%2F%2Fhome.nest.com"
  cookie: "OCAK=csVn0t....8Q5joL7"
  region: ca

climate:
  - platform: badnest
    scan_interval: 10

Any ideas os to what I am doing wrong??

My nest is a 2nd gen one and I run HA on a raspberrypi in a python virtual environment.

Many thanks for any input.

Best, Yves

I believe region is either US or EU. I could be wrong but worth a try

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… :smiley:

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?

1 Like

Thanks Martijn for your response. I too feel it is my particular token/cookie values but… Sadly, I have done exactly that and to no avail. Just to make sure I’m not doing something stupid:
both the token and cookie have to be in double quotes, right?
Each of them on a single line in the configuration.yaml file?
They can be anywhere in that configuration file?

Thanks anyone for helping me here, it is driving me nuts…!

I also cannot get it working, the only thing I can think of is the token. Can I confirm the general structure of these?

  1. Token - starts with https://accounts.google.com and ends with &ss_domain=https%3A%2F%2Fhome.nest.com

  2. Cookie - starts with OCAK and has over a thousand characters in it (according to notepad++). Also contains several distinct “;” start and end strings. Ending with “SIDCC=xxx”

Anyone know how to use the value of the inside temperature as a sensor?

Use a template sensor for the current_temperature attribute

image

Yes this is the same format as my token and cookie