I am making rest calls to eight endpoints on a small (as in resources) IoT device. When HA kicks off the rest call, it seems they are sent at the same time causing it to become unresponsive for a while. Is there an option to add a delay? Maybe something like using cron? I understand I can increment the scan_interval by a few seconds. As I add more endpoints, the incrementing may take me over the refresh period, missing those values during the window.
example
rest:
- resource: https://10.1.1.1/foo/1
scan_interval: 120
<other stuff for sensors>
>> wait for this rest call to complete, then go<<
- resource: https://10.1.1.1/buzz/fiz
scan_interval: 120
<other stuff for sensors>
>> wait for this rest call to complete, then go<< etc, etc...