Jump to content

Release 0.9.84 Available


Panda88

Recommended Posts

An updated release to deal with limitations YoLink has imposed on calls from node server to their server (it is not limiting responses from their server)

Per the latest you can only call 100 times per 5 min, you can only call the same device 6 time in 1 min and you cannot call the same device within 200ms of a call - all using a rolling window.  

Note, a multiOutput device counts all outputs as the same device, so if updating/changing multiple outputs, please add 1sec wait between calls (code should delay calls, but to be sure).

The code will now try to delay call to meet the above requirements, but if too many calls are issued simultaneously, it may not work (due to too many parallel threads).  (Note, I do not think the YoLink limits work 100% correctly yet, so there are some limitations to what the code can handle - the code follows the rules above, but I cannot find the pattern to when it fails, and the issued error codes do not match what they tell me :-) - may get fixed over time)

In general one should be careful in not programming/updating the same device too often.  Also - use of devices in scenes can become troublesome as calls are very close in time when changing a scene

Increased the default shortPoll time to 10 min - suggest to change it if a lot of devices are used - The code spaces the calls to be 4 sec apart

ShortPoll is only a safety precaution in case a MQTT packet from YoLink is missed causing the state in the node to be different than the YoLink server

Fixed a bug when removing YoLink devices that are no longer registered (they get removed correctly now - I hope) 

Added a suspended variable to check against if calls to a device gets suspended. 

 

 

Link to comment

Updated to 0.9.85 - found a minor bug causing the delay of calls to start too early 

Checked the code once more - shortPoll does not update deviced with calls to YoLink servers (so it should not add to calls) - only LongPoll does an update - set shortPoll back to 5min

Still seeing unexplained supression by YoLink servers - waiting to hear back from them 

Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...