Nest Integration not publishing updates

I have tried setting up the nest integration a few times now and every time changes are not being added to the topic/subscription. If I update the temperature from homeassistant, the temp changes on the thermostat but then in homeassistant the temp goes back to what was previously set. If I reload the integration the values sync back up.

Logs do not show any errors even with debug mode turned on. I manually made a call to the device endpoint and that also did not work. If I view messages within the google console no messages appear even when changing temps on the thermostat.

I dont see any permissions missing within PCM or the google home app everything seems to be correct. Any one have any ideas on what to check?

Thanks!

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.5.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.11",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.04.1",
    "host_os": "Home Assistant OS 10.1",
    "docker_version": "23.0.3",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "coway": {
      "version": "0.1.9",
      "requirements": [
        "cowayaio==0.1.7"
      ]
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "nest",
    "name": "Google Nest",
    "after_dependencies": [
      "media_source"
    ],
    "codeowners": [
      "@allenporter"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg",
      "http",
      "application_credentials"
    ],
    "dhcp": [
      {
        "macaddress": "18B430*"
      },
      {
        "macaddress": "641666*"
      },
      {
        "macaddress": "D8EB46*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/nest",
    "iot_class": "cloud_push",
    "loggers": [
      "google_nest_sdm",
      "nest"
    ],
    "quality_scale": "platinum",
    "requirements": [
      "python-nest==4.2.0",
      "google-nest-sdm==2.2.4"
    ],
    "is_built_in": true
  },
  "data": {
    "subscriber": {
      "create_subscription.attempt": 1,
      "start": 2,
      "stop": 1
    },
    "devices": [
      {
        "data": {
          "name": "**REDACTED**",
          "type": "sdm.devices.types.THERMOSTAT",
          "assignee": "**REDACTED**",
          "traits": {
            "sdm.devices.traits.Info": {
              "customName": "**REDACTED**"
            },
            "sdm.devices.traits.Humidity": {
              "ambientHumidityPercent": 49
            },
            "sdm.devices.traits.Connectivity": {
              "status": "ONLINE"
            },
            "sdm.devices.traits.Fan": {
              "timerMode": "OFF"
            },
            "sdm.devices.traits.ThermostatMode": {
              "mode": "OFF",
              "availableModes": [
                "HEAT",
                "COOL",
                "HEATCOOL",
                "OFF"
              ]
            },
            "sdm.devices.traits.ThermostatEco": {
              "availableModes": [
                "OFF",
                "MANUAL_ECO"
              ],
              "mode": "OFF",
              "heatCelsius": 15.531998,
              "coolCelsius": 25.334091
            },
            "sdm.devices.traits.ThermostatHvac": {
              "status": "OFF"
            },
            "sdm.devices.traits.Settings": {
              "temperatureScale": "FAHRENHEIT"
            },
            "sdm.devices.traits.ThermostatTemperatureSetpoint": {},
            "sdm.devices.traits.Temperature": {
              "ambientTemperatureCelsius": 24.159988
            }
          },
          "parentRelations": [
            {
              "parent": "**REDACTED**",
              "displayName": "**REDACTED**"
            }
          ]
        }
      }
    ]
  }
}
2023-05-08 11:09:20.515 DEBUG (MainThread) [homeassistant.components.nest] Stopping nest subscriber
2023-05-08 11:09:20.532 INFO (Thread-ConsumeBidirectionalStream) [google.api_core.bidi] Thread-ConsumeBidirectionalStream exiting
2023-05-08 11:09:21.308 DEBUG (ThreadPoolExecutor-2_0) [google_nest_sdm.google_nest_subscriber] Subscriber 'projects/<REMOVED>/subscriptions/<REMOVED>' configured on topic 'projects/sdm-prod/topics/<REMOVED>'
2023-05-08 11:09:21.323 DEBUG (MainThread) [google_nest_sdm.google_nest_subscriber] Starting background watchdog thread
2023-05-08 11:09:21.323 DEBUG (MainThread) [google_nest_sdm.auth] request[get]=https://smartdevicemanagement.googleapis.com/v1/enterprises/<REMOVED>/structures
2023-05-08 11:09:21.733 DEBUG (MainThread) [google_nest_sdm.auth] response={'structures': [{'name': 'enterprises/<REMOVED>/structures/<REMOVED>', 'traits': {'sdm.structures.traits.Info': {'customName': 'Huntington'}}}]}
2023-05-08 11:09:21.734 DEBUG (MainThread) [google_nest_sdm.auth] request[get]=https://smartdevicemanagement.googleapis.com/v1/enterprises/<REMOVED>/devices
2023-05-08 11:09:22.303 DEBUG (MainThread) [google_nest_sdm.auth] response={'devices': [{'name': 'enterprises/<REMOVED>/devices/AVPHwEundERve_bBDZHlNVpB6O_ngPNgARQsY1pSvra-crNyzmiUfJEqWHORz05VZQaSfYhtC0D_Orkb3MeL-Au-f9lM_Q', 'type': 'sdm.devices.types.THERMOSTAT', 'assignee': 'enterprises/<REMOVED>/structures/<REMOVED>/rooms/<REMOVED>', 'traits': {'sdm.devices.traits.Info': {'customName': ''}, 'sdm.devices.traits.Humidity': {'ambientHumidityPercent': 49}, 'sdm.devices.traits.Connectivity': {'status': 'ONLINE'}, 'sdm.devices.traits.Fan': {'timerMode': 'OFF'}, 'sdm.devices.traits.ThermostatMode': {'mode': 'OFF', 'availableModes': ['HEAT', 'COOL', 'HEATCOOL', 'OFF']}, 'sdm.devices.traits.ThermostatEco': {'availableModes': ['OFF', 'MANUAL_ECO'], 'mode': 'OFF', 'heatCelsius': 15.531998, 'coolCelsius': 25.334091}, 'sdm.devices.traits.ThermostatHvac': {'status': 'OFF'}, 'sdm.devices.traits.Settings': {'temperatureScale': 'FAHRENHEIT'}, 'sdm.devices.traits.ThermostatTemperatureSetpoint': {}, 'sdm.devices.traits.Temperature': {'ambientTemperatureCelsius': 24.159988}}, 'parentRelations': [{'parent': 'enterprises/<REMOVED>/structures/<REMOVED>/rooms/<REMOVED>', 'displayName': 'Living Room'}]}]}
2023-05-08 11:09:22.305 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.nest
2023-05-08 11:09:22.306 INFO (MainThread) [homeassistant.components.camera] Setting up camera.nest
2023-05-08 11:09:22.306 INFO (MainThread) [homeassistant.components.climate] Setting up climate.nest

Added some extra logging options around subs.

2023-05-08 15:36:38.677 DEBUG (ThreadPoolExecutor-0_0) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Creating a stream, default ACK deadline set to 60 seconds.
2023-05-08 15:36:38.681 DEBUG (ThreadPoolExecutor-0_0) [google.cloud.pubsub_v1.subscriber._protocol.dispatcher] Started helper thread Thread-CallbackRequestDispatcher
2023-05-08 15:36:38.684 INFO (MainThread) [homeassistant.setup] Setting up cover
2023-05-08 15:36:38.698 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:36:38.699 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.268025 seconds.
2023-05-08 15:36:50.190 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:36:50.191 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.954852 seconds.
2023-05-08 15:36:54.146 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:36:54.147 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.386542 seconds.
2023-05-08 15:36:56.534 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:36:56.534 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.034400 seconds.
2023-05-08 15:37:02.569 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:37:02.570 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.788185 seconds.
2023-05-08 15:37:03.361 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:37:03.361 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.890265 seconds.
2023-05-08 15:37:06.252 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2023-05-08 15:37:06.253 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.776986 seconds.
2023-05-08 15:37:08.708 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.

@allenporter Sorry to be a pain but if you have a second at some point to take a peek at this I would greatly appreciate it.

If the messages don’t show as being published from the console then it’s a nest issue. Seems like things would be configured right if you got this far.i would suggest trying to “unstick” the device by doing this like adding and removing from the home or moving between homes etc as a shot in the dark.

Thanks for the response. Its a Nest Thermostat E. I deleted it from my home and factory reset the thermostat, no dice after re doing the permissions. API controls work but no events seem to be flowing. This thermostat came with the place but I actually have another thermostat (non E) that I might try and set up and see if it works.

Insanely annoying but I appreciate the idea.