HASS-sonoff-ewelink icon indicating copy to clipboard operation
HASS-sonoff-ewelink copied to clipboard

It is recommended that you use websocket to get device status instead of requesting API

Open ghost opened this issue 5 years ago • 3 comments

Hello,

There are some problems in the way of getting the device status of your project. Although the request device list (/api/user/device) can get all the device status, too many requests for the interface will cause great pressure on the coolkit server. It is recommended to use websocket to monitor and get the latest status of the device in real time.

Relevant document address: https://coolkit-technologies.github.io/apiDocs/findStatus_en.html

It can improve your project and hope to adopt it.

Thank you!

ghost avatar Feb 04 '20 09:02 ghost

Thanks @coolkit-carl 🙌

I'll definitely look into it! To be honest I've previously skimmed through the documentation from here (ps: yesterday the above link was not working 404) and it wasn't quite clear that the information is offered via websocket, now some light has been shed upon it :D

in all fairness i tried to increase the polling times as much as possible mostly for the reason listed above 😊

peterbuga avatar Feb 05 '20 09:02 peterbuga

Will it improve the change group state?

elserge82 avatar Feb 08 '20 08:02 elserge82

@elserge82

Will it improve the change group state?

what do you mean ?

peterbuga avatar Feb 09 '20 10:02 peterbuga