Search code examples
google-smart-home

Utterance "What is the temperature in the room" always reports device is off


I have a device as "Heater" to support the utterance "what is the temperature in the room?", and my instance returns following JSON object of device status to Home Service: {'devices': {'': {'online': True, 'on': True, 'thermostatTemperatureSetpoint': 21, 'thermostatTemperatureAmbient': 29, 'currentModeSettings': {'mode': 'Heating'}, 'currentFanSpeedSetting': 'L1'}}}

But Google always returns " is off and it's curretnly 29 degrees". Does anyone know why Google thinks device is off?


Solution

  • It looks like your device is generally implementing the TemperatureSetting trait, but your device state seems to use currentModeSettings rather than the expected activeThermostatMode for the current mode. As such, the activeThermostatMode is going to use a default value.