question

HugoDev avatar image
HugoDev asked ·

ReportState directive is frequently triggered

I implemented ReportState directive, but from CloudWatch, the Lambda is triggered by ReportState directive very frequently, just finished a ReportState at 13:05:20, and the new ReportState directive comes in at 13:05:21. Seems if I stay on the Alexa app device page, the inquiry will keep going and does not stop. This will use a lot of Lambda time.

Can we somehow reduce the frequency of pulling this ReportState?

Thanks.


Hugo

alexa skills kitlambdasmart homereportstate
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

KirkC@Amazon avatar image
KirkC@Amazon answered ·

Hi Hugo, your observation that when looking at a particular device's page in the Alexa app, ReportState directives are frequently sent is correct. They're sent every 2 - 3 seconds.

This behavior is by design and the intent is to ensure that when a customer is looking at a device in the Alexa app, any changes to that devices state (say from physical interaction or by verbally interacting with an Echo) are promptly updated within the Alexa app's graphical user interface.

It is not currently possible to reduce the frequency of these directive.

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.