cancel
Showing results for 
Search instead for 
Did you mean: 

Smoke sencor

tracyhenryduck
Community Member
why i can't report event?
"currentSensorStateData"
: [
   
{
     
"name": "SmokeLevel",
     
"currentSensorState": "smoke detected"
   
}
 
]
query is this and report next:
{
 
"SensorState": {
   
"priority": 0,
   
"name": "SmokeLevel",
   
"currentSensorState": "high"
 
}
}
but failed !!!
{
"code": 400,
"errors": [
{
"domain": "global",
"message": "Request contains an invalid argument.",
"reason": "badRequest"
}
],
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}

 

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert

Can you try making use of report state to validate your query and response ? Report State is an important feature which lets the Home Action proactively report the latest status of the user’s device back to Google Home Graph rather than waiting for a QUERY intent.

View Recommended Answer in original post

1 REPLY 1

sipriyadarshi
Solutions Expert
Solutions Expert

Can you try making use of report state to validate your query and response ? Report State is an important feature which lets the Home Action proactively report the latest status of the user’s device back to Google Home Graph rather than waiting for a QUERY intent.