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.

Plugins no longer working with error: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md

Featured Replies

Posted

Paho-mqtt now has a new version 2.x of their library which is breaking plugins.

You will see this error in the log:

ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md 

Traceback (most recent call last):
  File "/var/polyglot/pg3/ns/0021b902606d30/hunterdouglas-poly.py", line 77, in <module>
    polyglot = udiinterface.Interface([])
  File "/var/polyglot/pg3/ns/0021b902606d_30/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 253, in __init
    self.mqttc = mqtt.Client(self.id, True)
  File "/var/polyglot/pg3/ns/0021b902606d30/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 766, in __init
    raise ValueError(
ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md 

This impacts new installation of plugins. Plugins already installed will continue to work as long as they are not reinstalled.

On monday a new UDI interface will be release to fix this. Stay tuned.

Thanks for the fix!

  • Author

The fix to the interface is implemented. 

If you have a plugin with the error, delete and reinstall the plugin.

  • Author

Please be aware of these changes in the new interface:

 

  • 4 months later...

I opened a ticket on this error as my YoLink devices aren't working any longer after I did the latest updates.  I've checked all the logs, and the error you posed above is the error I'm seeing in the YoLink node log when I restart the node server.  Can you please tell me how to fix this?

4 hours ago, mdfled said:

I opened a ticket on this error as my YoLink devices aren't working any longer after I did the latest updates.  I've checked all the logs, and the error you posed above is the error I'm seeing in the YoLink node log when I restart the node server.  Can you please tell me how to fix this?

If you have a plugin with the error, delete and reinstall the plugin.

Thanks gzahar, after trying other things, I did delete and recreate the NS plugin and it fixed most of the problem.  I still had to go in and correct some of my IF statements related to the YoLink devices, but the deletion and recreation solved most of the issue.  Thanks again!

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.