08-03-2023 01:15 AM
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"
}
Answered! Go to the Recommended Answer.
08-07-2023 06:30 AM - edited 08-07-2023 06:32 AM
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.
08-07-2023 06:30 AM - edited 08-07-2023 06:32 AM
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.