Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Release 0.9.84 Available

Featured Replies

Posted

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. 

 

 

  • Author

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 

On 11/16/2023 at 4:48 PM, Panda88 said:

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

I'm not seeing this version in the Plugins Store yet - has it been posted? 

  • Author

Sorry - forgot to update version number - should be there now

4 hours ago, Panda88 said:

Sorry - forgot to update version number - should be there now

Got it - thanks!  Installation went smoothly. 

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.