Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Characteristic value/descriptor read failed: Invalid handle #13

Open
MennoLabs opened this issue Nov 23, 2022 · 0 comments
Open

Characteristic value/descriptor read failed: Invalid handle #13

MennoLabs opened this issue Nov 23, 2022 · 0 comments

Comments

@MennoLabs
Copy link

I had to add #! /usr/bin/python3 to the script to get it to execute at all.

Now I am getting:
./domoticz_mijia.py
./domoticz_mijia.py:24: DeprecationWarning: encodestring() is a deprecated alias since 3.1, use encodebytes()
base64string = base64.encodestring(('%s:%s' % (domoticzusername, domoticzpassword)).encode()).decode().replace('\n', '')

1: updating
Characteristic value/descriptor read failed: Invalid handle
Characteristic value/descriptor read failed: Invalid handle
Characteristic value/descriptor read failed: Invalid handle
Characteristic value/descriptor read failed: Invalid handle
Error reading value retry after 5 seconds...

Changing encodestring to encodebytes gets rid of the deprecation warning, but nets the same consecutive errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant