-
Notifications
You must be signed in to change notification settings - Fork 2
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
The plugin does not work #7
Comments
I just pushed a new version. Can you test it and see if the error still occurs? |
It did help with the error. Many thanks. |
Testing with the version downloaded this morning. I got the following error: Error: WiFi RF Receiver Garage: handleThread: '2' line 356 Few minutes later: Error: CheckAuthToken(xxx) : auth token mismatch any idea? Thx |
Okay, that could be a issue, wil try to test more. |
Could you share the line from the device file from the wifi rf where id 2 is, mask any key if shown. |
devices.json |
Device 2 is just a Boolean, same as Device 1. There should be no difference. |
Not sure I got your answer :(. Why the 2 errors above? |
Can you run this in Python? And post the output? Oh, you need to add you key of the device in the line. see the device file.
|
Here you are (apologies for delay) Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
BTW tonight it reported several errors on log: 2024-10-07 04:04:59.670 Error: WiFi RF Receiver Garage: handleThread: 'dps' line 356 |
Here is the call for the device ID. I will implement a fix so that if the DPS is empty, it will skip and not throw an error. |
Build a fix, please test again! 😁 |
Test in progress :) |
At the moment, the issue has not occurred again. Super!!! I have noticed that if the device loses the connection, Domoticz no longer tries to reconnect it. In the logs, I found the following error: 2024-10-12 10:36:42.090 Error: WiFi RF Receiver Garage: Device :xxx is Offline! |
Perfect!
It could be that the device wasn’t registered as online. The Wi-Fi connection or network traffic could be anything. |
That’s exactly the case. What I’m saying is that domoticz does not try to reconnect when this happens |
Can you run this again when the device is in Offline modus..
|
I noticed something interesting… if triggered by an event in Domoticz, the button that was previously offline is actually responsive, and then, after being activated, it appears online. |
Okay, that is interesting indeed... |
Hi,
I can pull all devices on my account but I cannot do much more. This is what I am getting in the log file:
2024-10-04 21:01:33.976 Error: TinyTuyaLocal: Call to function 'onCommand' failed, exception details:
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: Traceback (most recent call last):
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Local-Plugin/plugin.py", line 142, in onCommand
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Local-Plugin/plugin.py", line 101, in onCommand
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: SendCommand(DeviceID, Unit, True if Command not in ['Off', 'Closed', False] else False, category)
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Local-Plugin/plugin.py", line 564, in SendCommand
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: item = selected_device['mapping'][str(Unit)]
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
2024-10-04 21:01:33.987 Error: TinyTuyaLocal: KeyError: '4'
2024-10-04 21:01:43.110 Error: TinyTuyaLocal: handleThread: string indices must be integers, not 'str' line 355
The text was updated successfully, but these errors were encountered: