Open helsdingen opened 1 week ago
On my test system, I encountered the same message:
Crypto library does not support GCM
I used the following line to install the necessary packages and fix the Crypto error:
pip3 install tinytuya PyCryptodome chardet requests==2.23.0 charset-normalizer==3.0.1
The exit on line 2220 occurs when the device list length returns 0. So creation of hardware is blocked.
I installed the PyCryptodome, restarted the plugin and rebooted the raspberry but still the same errors. Any other tips?
Hi Helsdingen, I can to test the device creation. Could you run debug_discovery.py from the tools directory and upload the dump.json file here, or send it to xenomes@outlook.com?
Hi Xenomes,
Attached the dump. When I run the script, the first message is: No device data returnd for Tuya. Trying again!
After that all devices are discovered and recorded in the dump file: dump.json
Thanks!
No device data returnd for Tuya. Trying again!
Is not a big issue, Tuya didn't respond to the first call, the script loops five times before error out.
Devices are created...
Try to disable the accept new Hardware Devices..
Hi Xenomes,
Thanks for checking. Really appreciate it. Unfortunately, whatever I try with the accept new hardware and allow for 5 minutes, the tags won't be created.
Since it's not your plugin that's the issue, I'll check the Domoticz forum to see if I can get any help. Just to be sure. I'm running Domoticz2022.2 (build 14795). What version did you test on?
I have the latest stable and develop, running in Docker. 2022.2 is after the big change if i am not wrong.
I just upgaded to 2024.7 but still the same issue
Can you Set the switch to red and restart domoticz?
Just did, no effect, still Error: Tuya: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2220
What is the version of the plugin?
I installed this plug-in in Domoticz according to the instructions (including installing Python 3.8) on Raspberry 4. Connection to Tuya works and all JSON files are created using the tinytuya commands. Devices (configured as DP instruction) are being found.
Starting the plugin from Domoticz causes 2 errors. The first one is:
2024-10-08 18:04:10.781 Error: Tuya: handleThread: Crypto library does not support GCM line 925
I think that this is no issue since the devices are all version 3.4 or below.The second error is:
So every first device (tried multiple devices) is being rejected to be added to Domoticz while it does not exist in Domoticz. "Accept new hardware" is enabled so I would expect the devices being added. No other devices are processed after the first device failed to be added to Domoticz.
I've tried restarting, reconfiguring Tuya and reinstalling software packages bur no success. What is the issue of the devices not being added?