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

Plugin not working #22

Open
pczolee opened this issue May 4, 2021 · 1 comment
Open

Plugin not working #22

pczolee opened this issue May 4, 2021 · 1 comment

Comments

@pczolee
Copy link

pczolee commented May 4, 2021

Hello.

I have Domoticz 2020.2, installed everything, but the plugin not working. In the Domoticz log I have:

'onMessage' failed 'TypeError':'onMessage() missing 2 required positional arguments: 'Connection' and 'Data''.

When I try to use the get_dps.py, I have:

Unexpected status() payload=b'\xb3\xc9\x80\xfd\x8a5a\xf1DB\xa2\xb8U\xf6\x08k\xbf\xab\xd6\x9bZ\xecO\xc7)\xb7\xb6}*\x02\xf5 '

Plug State Information:
b'\xb3\xc9\x80\xfd\x8a5a\xf1DB\xa2\xb8U\xf6\x08k\xbf\xab\xd6\x9bZ\xecO\xc7)\xb7\xb6}*\x02\xf5 '

Plug DPS List:
Traceback (most recent call last):
File "./get_dps.py", line 58, in
for key in data['dps'].keys():
TypeError: byte indices must be integers or slices, not str

I have the key etc, but something goes wrong :( . Help please.

Thanks

@pczolee
Copy link
Author

pczolee commented Nov 15, 2021

I found that the problem is with pytuya! Can we move to tinytuya: https://github.com/jasonacox/tinytuya
Which is working fine!
Also have a look to this fork: https://github.com/sincze/Domoticz-Tuya-SmartPlug-Plugin
which adds sensors support.

Now we have everything to make this plugin to work fine, can you implement it?

Thanks

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