question

Chris avatar image
Chris asked ·

uncertaintyInMilliseconds: what is it used for?

In the ChangeReport and StateReport responses there is a property called `uncertaintyInMilliseconds`, and it is described as:

Number of milliseconds the property value could be

I don't understand what this means. Does this property influence behavior in the Alexa app at all? What is its intention?

skillalexa smart homeapi
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

AlanT avatar image
AlanT answered ·

"Indicates the uncertainty of the reported property in milliseconds of elapsed time since the property value was possibly retrieved. For example, if you obtain this value by polling a hardware device every 60 seconds, then the uncertainty in the time of the sampled value would be 60000 in milliseconds."

https://developer.amazon.com/docs/smarthome/smart-home-skill-api-message-reference.html

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.