I’m currently using a SmartThings Schema connector with AWS Lambda.
It seems that the SmartThings platform periodically sends Discovery and State Refresh requests to my Lambda for all(?) integrated user account and devices.
Though I do note that the reference manual ( SmartThings Developers | Documentation ) mentioned this(currently observed time interval in my Lambda seems 24 hours which is somewhat different from the value mentioned in the manual though),
NOTE : Automatic polling occurs approximately every 6 hours. The Discovery request is followed by the State Refresh request.
I could not distinguish whether the request is by automatic polling or by actual user interaction(I would like to distinguish this for figuring out request statistics).
So my question is,
Is there a way I can modify or disable settings for automatic polling?
Of course, my Lambda support device state callback logic caused by the device.
Or at least, is there a way I can distinguish request origin?
I cannot find any difference between the request payload on automatic polling and actual user interaction.