TL;DR - If your climate device is not detected but other devices within your Nest account are, try doing a WWN RESET on your thermostat
First of all, thank you USA-RedDragon and everyone on this topic for all the work you’ve put in to this. I feel like I’ve read this thread up and down and backwards twice already and as a newbie to HA you guys have been awesome in your responses.
I am running HA 0.112.4 in Synology installed from the SynoCommunity Hass.io package. I feel like I have tried every which way to get Badnest working properly.
I am using 2FA auth, here is my config.yaml
badnest:
issue_token: "accounts.../o/oauth2/...home.nest..."
cookie: "SMSV=...."
region: us
climate:
- platform: badnest
scan_interval: 10
camera:
- platform: badnest
camera badnest:
- platform: badnest
sensor:
- platform: badnest
I tried both
/USA-RedDragon/badnest
and
/vinodmishra/badnest
I have a Gen3 US version of the Nest Thermostat, I also have the external sensors. I also have a Nest Hello Doorbell.
The three sensors show up just fine in HA, I am getting video from the Nest Hello even! The one thing that NEVER CREATES is the Climate entity. I feel like I am doing something wrong as in the forum here the problem usually ends up being someone is going from an old Nest account to a Google account or they have to refresh their token. I have already refreshed my token (as of today) and I am authenticating as I am getting data from my camera and other sensors, it is just the camera entity that is not working.
I have uninstalled [restarted] reinstalled [restarted] the two above repositories a few times and I don’t get an errors in the logs (or I am looking in the wrong logs? right now I go to Supervisor -> System -> Core Provider) and I see the sensors come up with IDs…
2020-07-20 18:56:46 INFO (MainThread) [custom_components.badnest.sensor] Adding nest temp sensor uuid: somecoolid1
2020-07-20 18:56:46 INFO (MainThread) [custom_components.badnest.sensor] Adding nest temp sensor uuid: somecoolid2
2020-07-20 18:56:46 INFO (MainThread) [custom_components.badnest.sensor] Adding nest temp sensor uuid: somecoolid3
But this is all I get back for the climate entity
2020-07-20 18:56:46 INFO (MainThread) [homeassistant.components.climate] Setting up climate.badnest
2020-07-20 18:56:46 INFO (MainThread) [custom_components.badnest.climate] Adding thermostats
Is there something else I can try? Or even look at to help me find the smoking gun to help my google-fu?
Thanks again!
EDIT: I updated the climate.py to see what was goin on…
async def async_setup_platform(hass,
config,
async_add_entities,
discovery_info=None):
"""Set up the Nest climate device."""
api = hass.data[DOMAIN]['api']
_LOGGER.info(f"API returned : {api}")
_LOGGER.info(vars(api))
thermostats = []
_LOGGER.info("Adding thermostats")
for thermostat in api['thermostats']:
_LOGGER.info(f"Adding nest thermostat uuid: {thermostat}")
thermostats.append(NestClimate(thermostat, api))
async_add_entities(thermostats)
When i added “_LOGGER.info(vars(api))” to Climate.py here is what I got in the logs:
'device_data': {
'yyyyyyyyyyyyyyyyyy': {
'name': 'Living Room Temperature',
'temperature': 21.299988,
'battery_level': 100
},
'zzzzzzzzzzzzzzzz': {
'name': 'Basement Temperature',
'temperature': 18.0,
'battery_level': 100
},
'xxxxxxxxxxxxxxxx': {
'name': "Some Room Temperature",
'temperature': 21.899994,
'battery_level': 100
},
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: {
'camera_url': 'nexusapi-us1.camera.home.nest.com',
'name': 'Front Door',
'is_online': True,
'is_streaming': True,
'battery_voltage': 0,
'ac_voltage': 0,
'location': None,
'data_tier': 120
}
},
Also…
'_czfe_url': 'https://abc1234-wxyzabc-whatever01.whatsup.home.nest.com',
'cameras': ['wwwwwwwwwwwwwwwwwwwww'],
'thermostats': set(),
'temperature_sensors': {
'xxxxxxxxxxxxxxxxxxx',
'yyyyyyyyyyyyyyyyyyy',
'zzzzzzzzzzzzzzzzzzz'
},
'protects': set()
I reset my nest thermostat and re-added it to my account, and pulled the cookie again (issue_token was the same). Can someone that has this working confirm or deny if they can see this in the payload?
EDIT 2: I got this working! In case someone else has a similar problem…
My situation was that I bought a house that had this Nest already installed. I believe it was setup long before the Works With Nest went out the window.
As I was going through the menu on the thermostat I had already factory reset it and set it back up with my HVAC to no avail but I saw WWN RESET
When I gave this a shot, it decoupled my thermostat again from the app and I saw a very different entry code when I was re-pairing it.
Low and behold, now it appears!