Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Python and python framework

Moderator: leecollings

User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Akerboom wrote: Thursday 28 November 2024 9:55 Please help.

I deleted a TUYA device in Domoticz and got an error:

Code: Select all

Error: TinyTUYA: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324
Tried to delete the plugin in Domoticz Hardware and reinstall with a diffent name. Now all my TUYA devices are gone and I only get the above error.

How to reset and re-add all my devices to Domoticz?
As discust on github: https://github.com/Xenomes/Domoticz-Tin ... issues/144
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
Akerboom
Posts: 36
Joined: Thursday 15 March 2018 19:40
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Akerboom »

Xenomes wrote: Saturday 30 November 2024 19:58
Akerboom wrote: Thursday 28 November 2024 9:55 Please help.

I deleted a TUYA device in Domoticz and got an error:

Code: Select all

Error: TinyTUYA: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324
Tried to delete the plugin in Domoticz Hardware and reinstall with a diffent name. Now all my TUYA devices are gone and I only get the above error.

How to reset and re-add all my devices to Domoticz?
As discust on github: https://github.com/Xenomes/Domoticz-Tin ... issues/144
The plugin was working just fine, I just deleted the Domoticz diveces. How do I reset everything so the devices are created in Domoticz again?

[edit] It was another github ticket: https://github.com/Xenomes/Domoticz-Tin ... issues/126
I found a workaround, posted on github, fine for me.
desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by desertdog »

I installed the TunyTuya plugin and followed all steps. Got one of the device ID from an hardware item in the Tiya cloud. But no device is added to Domotic and I get the error: Tuya: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324

Is there any way to fix this?
BobKooi
Posts: 5
Joined: Sunday 15 May 2022 13:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by BobKooi »

Hello everyone,
I am experimenting with TinyTuya to get a Water Detector and a few Smoke Detectors working within Domoticz; at least I would like to see the alarm messages from these devices being passed on within domoticz. So far no success. They are detected but not entirely correctly I suspect. See log. Am I doing something wrong or are these devices not sufficiently supported within the plugin?
I can see and hear the alarm in the tuya app.
Also, does anyone perhaps already have other Contribs for these devices?
Water Detector is: Nedis Wi-Fi, type: WIFIDW10WT (with battery)
Smoke Detector is: Nedis Wi-Fi, type: WIFIDS10WT (with battery)
I’m running Dom version 2024.7 with Python version 3.11.2 and TinyTuya 2.0.6
I have already run 'debug_discovery.py' and they all appear in the json file.

Log:
2025-01-07 17:34:13.094 Status: TinyTUTA: Entering work loop.
2025-01-07 17:34:13.095 Status: TinyTUTA: Started.
2025-01-07 17:34:13.601 Status: TinyTUTA: Initialized version 2.0.6, author 'Xenomes'
..
2025-01-07 17:29:53.365 TinyTUTA: Device name=WD1_WaterDtctr1Kelder id=12080343500291ccb5d7 category=waterleak
2025-01-07 17:29:53.998 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 FunctionProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 StatusProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 result= []
2025-01-07 17:29:54.000 TinyTUTA: Device name=RM1_RookMldrWnkmr id=4520030524a160215cee category=smokedetector
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee FunctionProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee StatusProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee result= []
Evolverixw04c7i
Posts: 3
Joined: Wednesday 15 January 2025 9:19
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Evolverixw04c7i »

I have a lot of Error on Synctime on heartbeat.

see log below

2025-01-15 09:13:39.097 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:39.097 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:39.097 Error: tuya: NameError: name 'synctime' is not defined
2025-01-15 09:13:49.105 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:49.105 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:49.105 Error: tuya: NameError: name 'synctime' is not defined

Can this be fixed?

Also then i try to control one of the tuya devices i get this error.

2025-01-15 09:22:23.094 Error: tuya: Call to function 'onCommand' failed, exception details:
2025-01-15 09:22:23.095 Error: tuya: Traceback (most recent call last):
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 844, in onCommand
2025-01-15 09:22:23.095 Error: tuya: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 137, in onCommand
2025-01-15 09:22:23.095 Error: tuya: if Error is not None:
2025-01-15 09:22:23.095 Error: tuya: NameError: name 'Error' is not defined
User avatar
waltervl
Posts: 5715
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by waltervl »

Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Evolverixw04c7i
Posts: 3
Joined: Wednesday 15 January 2025 9:19
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Evolverixw04c7i »

Thanks.

Found out this was a new settings in the latest version what had a new settings in the plugin.

So i needed to set the API Polling interval to a number, and when it worked.

A error i get now is Error: tuya: handleThread: string indices must be integers line 956
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

desertdog wrote: Tuesday 10 December 2024 13:07 I installed the TunyTuya plugin and followed all steps. Got one of the device ID from an hardware item in the Tiya cloud. But no device is added to Domotic and I get the error: Tuya: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324

Is there any way to fix this?
Can you try the new version of the plugin, line 2324 has moved by code update.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

BobKooi wrote: Tuesday 07 January 2025 18:31 Hello everyone,
I am experimenting with TinyTuya to get a Water Detector and a few Smoke Detectors working within Domoticz; at least I would like to see the alarm messages from these devices being passed on within domoticz. So far no success. They are detected but not entirely correctly I suspect. See log. Am I doing something wrong or are these devices not sufficiently supported within the plugin?
I can see and hear the alarm in the tuya app.
Also, does anyone perhaps already have other Contribs for these devices?
Water Detector is: Nedis Wi-Fi, type: WIFIDW10WT (with battery)
Smoke Detector is: Nedis Wi-Fi, type: WIFIDS10WT (with battery)
I’m running Dom version 2024.7 with Python version 3.11.2 and TinyTuya 2.0.6
I have already run 'debug_discovery.py' and they all appear in the json file.

Log:
Spoiler: show
2025-01-07 17:34:13.094 Status: TinyTUTA: Entering work loop.
2025-01-07 17:34:13.095 Status: TinyTUTA: Started.
2025-01-07 17:34:13.601 Status: TinyTUTA: Initialized version 2.0.6, author 'Xenomes'
..
2025-01-07 17:29:53.365 TinyTUTA: Device name=WD1_WaterDtctr1Kelder id=12080343500291ccb5d7 category=waterleak
2025-01-07 17:29:53.998 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 FunctionProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 StatusProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 result= []
2025-01-07 17:29:54.000 TinyTUTA: Device name=RM1_RookMldrWnkmr id=4520030524a160215cee category=smokedetector
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee FunctionProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee StatusProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee result= []
The FunctionProperties, StatusProperties and result are empty, put your device on 'DP instruction' on the iot.tuya.com instruction are on the pdf in the readme.
Last edited by Xenomes on Tuesday 28 January 2025 20:57, edited 2 times in total.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Evolverixw04c7i wrote: Wednesday 15 January 2025 9:23 I have a lot of Error on Synctime on heartbeat.

see log below
Spoiler: show
2025-01-15 09:13:39.097 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:39.097 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:39.097 Error: tuya: NameError: name 'synctime' is not defined
2025-01-15 09:13:49.105 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:49.105 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:49.105 Error: tuya: NameError: name 'synctime' is not defined
Can this be fixed?

Also then i try to control one of the tuya devices i get this error.
Spoiler: show
2025-01-15 09:22:23.094 Error: tuya: Call to function 'onCommand' failed, exception details:
2025-01-15 09:22:23.095 Error: tuya: Traceback (most recent call last):
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 844, in onCommand
2025-01-15 09:22:23.095 Error: tuya: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 137, in onCommand
2025-01-15 09:22:23.095 Error: tuya: if Error is not None:
2025-01-15 09:22:23.095 Error: tuya: NameError: name 'Error' is not defined
This issue is fixed in a newer version.
Evolverixw04c7i wrote: Thursday 16 January 2025 9:38 Thanks.

Found out this was a new settings in the latest version what had a new settings in the plugin.

So i needed to set the API Polling interval to a number, and when it worked.

A error i get now is Error: tuya: handleThread: string indices must be integers line 956
Set a default value in the current plugin version, also the readme is updated with Important flag for the extra setting update.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Looking for a tester for the Tuya Pulsar push system (tuya-connector), preferably someone with a variety of Tuya WiFi devices, a separate Domoticz setup for testing, and some basic Python knowledge.

Tuya-connector-python is a Python library for communicating with the Tuya IoT Cloud API, enabling easy integration and control of Tuya-compatible IoT devices, with support for message queue handling.

See https://github.com/Xenomes/Domoticz-Tin ... ree/pulsar

When Pulsar is used, the tuya-connector-python module meets to be installed and the message service on iot.tuya.com needs to be enabled!

Code: Select all

sudo pip3 install tuya-connector-python
2025-01-28 21_44_50-Tuya Developer Platform – Mozilla Firefox.png
2025-01-28 21_44_50-Tuya Developer Platform – Mozilla Firefox.png (26.1 KiB) Viewed 1307 times
2025-01-28 21_50_09-Domoticz – Mozilla Firefox.png
2025-01-28 21_50_09-Domoticz – Mozilla Firefox.png (8.47 KiB) Viewed 1307 times

Please report issues here at github and start the issue with [Pulsar].
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by remko2000 »

I have installed the tuya plugin within domoticz. Devices such as Tuya dimmers work well with this within domoticz. These are immediately recognized as new devices when I first add them to the Tuya smart app. Now I have bought a Nova100 and this is also immediately recognized within the Tuya smart app, but domoticz does not see it via the plugin. Is this not supported? If not, is there another way to get this working within domoticz?
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

If a device is not recognized, a text device is created with instructions to submit a ticket on GitHub so the device can be added. If no device appears, the plugin needs to be reloaded. Go to the hardware page in Domoticz, select the plugin, and press 'Update'.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
athoopen
Posts: 40
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by athoopen »

Hello Xenomes,

My log is now filling with following error messages:

Code: Select all

2025-03-03 15:30:38.102 Error: Tuya: handleThread: string indices must be integers line 969
Any idea what is going on (running V2.1.5).

PS: I also noticed that my Luxmeter gets no updates, however in the Tuya app on my mobile it operates as expected.
Cheers,
Arjan
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

athoopen wrote: Monday 03 March 2025 15:32 Hello Xenomes,

My log is now filling with following error messages:

Code: Select all

2025-03-03 15:30:38.102 Error: Tuya: handleThread: string indices must be integers line 969
Any idea what is going on (running V2.1.5).

PS: I also noticed that my Luxmeter gets no updates, however in the Tuya app on my mobile it operates as expected.
Hi, line 969 is a debug log entry. I've modified it can you try version 2.1.6a?
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
athoopen
Posts: 40
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by athoopen »

Line has changed into:

Code: Select all

2025-03-04 07:35:40.926 Error: Tuya: handleThread: 'str' object has no attribute 'get' line 969
If I comment the line and restart I get:

Code: Select all

2025-03-04 08:13:29.738 Error: Tuya: handleThread: Credentials are incorrect or tuya subscription has expired! line 981
However I do not understand this one. Via de Tuya app I can still operate my tuya devices. To which subscription is the tool revering to?
Cheers,
Arjan
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Maybe the last error is caused by the first one. I split the debug line into separate lines. I hope you can update it again and list the specific line so I can see why it's erroring out.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
athoopen
Posts: 40
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by athoopen »

Something strange is going on. Today a charger is placed at my house therefore i was fully powered down. After that I pulled the new version and it showed no errors or what so ever :) That's good .. but strange.

I remembered that yesterday (or the day before yesterday) I also extended my subscription, yesterday evening it was not yet extended. This afternoon it was.
My guess is that all the errors were related to an expired subscription ... really sorry for the inconvenience.

PS: just one question (somewhat related), how often is a luxmeter read. My lux meter is now operational (python -m tinytuya scan shows it as expected) but it's not read for a number of hours (although I have to admit that the lux value (1000) did not change).
Cheers,
Arjan
User avatar
Xenomes
Posts: 396
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

athoopen wrote: Wednesday 05 March 2025 17:11 Something strange is going on. Today a charger is placed at my house therefore i was fully powered down. After that I pulled the new version and it showed no errors or what so ever :) That's good .. but strange.

I remembered that yesterday (or the day before yesterday) I also extended my subscription, yesterday evening it was not yet extended. This afternoon it was.
My guess is that all the errors were related to an expired subscription ... really sorry for the inconvenience.
Thanks for the update, i have moved the debug line in the subscription test, so this won't happen again. 😅
athoopen wrote: PS: just one question (somewhat related), how often is a luxmeter read. My lux meter is now operational (python -m tinytuya scan shows it as expected) but it's not read for a number of hours (although I have to admit that the lux value (1000) did not change).
At the plugin you can setup a API Polling interval, keep in mind that what you set here is: 60 / interval × devices × 24 × 31 = polls a month max 35000.

For the lux device it is a option to switch the the pulsar version: viewtopic.php?p=323360#p323360
The pulsar calls are 68000 a month and the send is done by the api of 35000 calls.

The pulsar is almost done testing, so it will be the master in some weeks.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
athoopen
Posts: 40
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by athoopen »

Xenomes,

Suddenly my Tuya devices stopt working. The log showed many lines of:

Code: Select all

Credentials are incorrect or tuya subscription has expired! line 997
There was no changes in credentials and I double checked my subscription (extended to 2025-09-04).
So I think I've run out of "polls". Is there somewhere a location where I can see the polls I've used?

TIA,
Cheers,
Arjan
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest