According to the documentation Report State request should be send right after QUERY or EXECUTE request. However, when I do so I get the exception:
{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"status": "NOT_FOUND"
}
}
After ~1 minute those request works as expected. However, first request always fails. I believe this is because google haven't update the state inside for the linked device.
So my question is - how should I deal with that initial request in order to avoid the error?