Diego
Diego

Reputation: 45

Google Home - Is reporting state mandatory?

I'm trying to validate our integration with Google Home, and as it turns out, the smart home test suite expects reporting state to be implemented. AFAIK, this is not necessary, but evidently, at least for this test suit, it is. I'm always reporting "willReportState" as false, which should be fine, and the test suite skips most devices because of this, but for some reason, it still expects thermostats to report state.

Does this mean that the only way to get our integration approved and listed is if we implement a reporting state?

Here's an example of the sync for a thermostat:

{ 
   "id":"112299",
   "type":"action.devices.types.THERMOSTAT",
   "traits":[ 
      "action.devices.traits.OnOff",
      "action.devices.traits.TemperatureSetting"
   ],
   "name":{ 
      "name":"Calefacción Agus"
   },
   "willReportState":false,
   "attributes":{ 
      "availableThermostatModes":"off,heat",
      "thermostatTemperatureUnit":"C"
   },
   "roomHint":"Cuarto Agus",
   "deviceInfo":{ 
      "model":"HPA-4412",
      "swVersion":""
   }
}

Thanks!

Upvotes: 1

Views: 348

Answers (1)

Nick Felker
Nick Felker

Reputation: 11978

Report state is a requirement for submitting your smart home action unless your device traits use the commandOnly<TraitName> attribute and do not know the state.

For example, some devices like an IR blaster may only know how to send commands and don't know the state, so it would use OnOff with the commandOnlyOnOff attribute.

Upvotes: 1

Related Questions