potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
134 stars 15 forks source link

Duplicate Thermostat Device in Home #104

Closed left-aligned closed 9 months ago

left-aligned commented 9 months ago

I recently replaced my Nest Thermostat (Wi-Fi died on my original unit). Now I appear to be seeing both the original thermostat and the new one in HomeKit & Homebridge.

I removed the original from my google account before setting up the new unit. The original unit was offline for a while before I noticed that it stopped working. I did a device call and it looks like only one thermostat returns, so I'm unsure how this is getting pulled in by the plugin.

Device call response:

{
  "devices": [
    {
      "name": "enterprises/c153c774-718d-48f1-bb88-0c2d8b239290/devices/AVPHwEuxP08YJtAxEbEeUOvZZ6dPhR6Hmo7jUtexj9UlFvdb9YDnimFyQ-k2k_ycBe2XQYEmfWPX8JjaiJlNbOe11y90_g",
      "type": "sdm.devices.types.THERMOSTAT",
      "assignee": "enterprises/c153c774-718d-48f1-bb88-0c2d8b239290/structures/AVPHwEsCHvjW12atm4dGob4jWNRK5i0Cqt4mNINGQRBMWn_8MhG5kg9fi5lUYSUHMUGQw27VugJZiTx0IGkvT-_DAxtiaw/rooms/AVPHwEuauUSOs6xF2JISaHXK84ReqE9RNhgPQUHvb3RzRkFstar317Pw58m9wPbTWSl6WQoO1rybaEy7nT5HMLX0RlFwt4LI88yNOtEgnP4Qk6oEuH4Lr1Y48Og6eaewwNUbRhstHlxOsSg",
      "traits": {
        "sdm.devices.traits.Info": {
          "customName": ""
        },
        "sdm.devices.traits.Humidity": {
          "ambientHumidityPercent": 53
        },
        "sdm.devices.traits.Connectivity": {
          "status": "ONLINE"
        },
        "sdm.devices.traits.Fan": {},
        "sdm.devices.traits.ThermostatMode": {
          "mode": "HEAT",
          "availableModes": [
            "HEAT",
            "OFF"
          ]
        },
        "sdm.devices.traits.ThermostatEco": {
          "availableModes": [
            "OFF",
            "MANUAL_ECO"
          ],
          "mode": "OFF",
          "heatCelsius": 10,
          "coolCelsius": 24.444443
        },
        "sdm.devices.traits.ThermostatHvac": {
          "status": "OFF"
        },
        "sdm.devices.traits.Settings": {
          "temperatureScale": "FAHRENHEIT"
        },
        "sdm.devices.traits.ThermostatTemperatureSetpoint": {
          "heatCelsius": 20.603165
        },
        "sdm.devices.traits.Temperature": {
          "ambientTemperatureCelsius": 21.439987
        }
      },
      "parentRelations": [
        {
          "parent": "enterprises/c153c774-718d-48f1-bb88-0c2d8b239290/structures/AVPHwEsCHvjW12atm4dGob4jWNRK5i0Cqt4mNINGQRBMWn_8MhG5kg9fi5lUYSUHMUGQw27VugJZiTx0IGkvT-_DAxtiaw/rooms/AVPHwEuauUSOs6xF2JISaHXK84ReqE9RNhgPQUHvb3RzRkFstar317Pw58m9wPbTWSl6WQoO1rybaEy7nT5HMLX0RlFwt4LI88yNOtEgnP4Qk6oEuH4Lr1Y48Og6eaewwNUbRhstHlxOsSg",
          "displayName": "Living Room"
        }
      ]
    }
  ]
}

From my Homebridge logs:


[10/6/2023, 12:16:37 PM] [homebridge-google-nest-sdm] Adding new accessory: Living Room Thermostat
[Living Room Thermostat@@Eco] Characteristic not in required or optional characteristic section for service Thermostat. Adding anyway.
potmat commented 9 months ago

Try clearing your accessory cache in homebridge.

left-aligned commented 9 months ago

Didn't even realize homebridge had this feature. That took care of the issue thanks!