Page 3 of 4

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Sunday 10 January 2021 22:05
by edwin1234
I had it Already on debugging ,
:cry:

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Sunday 10 January 2021 22:09
by Xenomes
There is a other script in the folder for testing.

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 5:47
by edwin1234
When i have Debugging all On i get: 2021-01-11 05:44:00.492 Error: (tuya) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-TUYA-Plugin/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2021-01-11 05:44:00.492 Error: (Tuya) Module Import failed, exception: 'SyntaxError'
2021-01-11 05:44:00.492 Error: (Tuya) Import detail: File: /usr/local/lib/python3.5/dist-packages/tuyaha/tuyaapi.py, Line: 69, offset: 87
2021-01-11 05:44:00.492 Error: (Tuya) Error Line ' f"Discovery interval below {MIN_DISCOVERY_INTERVAL} seconds is invalid"
2021-01-11 05:45:07.521 Error: Tuya hardware (18) thread seems to have ended unexpectedly
2021-01-11 05:45:21.533 Error: Tuya hardware (18) thread seems to have ended unexpectedly
2021-01-11 05:45:35.539 Error: Tuya hardware (18) thread seems to have ended unexpectedly
2021-01-11 05:45:49.544 Error: Tuya hardware (18) thread seems to have ended unexpectedly

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 12:45
by Xenomes
Can u check if these pip3 library's are installed.

threading
socket
html
sys
time
math
json

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 18:19
by edwin1234
How can i check them?

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 18:34
by Xenomes
With the command 'sudo pip3 show plugin'

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 18:42
by edwin1234
Cant find none of them

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 19:47
by Xenomes
I reread you error listing, now I see the problem! F Strings were introduce in Python 3.6 and you have 3.5.. There is a way to add F Strings by installing:

Code: Select all

sudo pip3 install future-fstrings
I can't test it, I hope that this works.

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 19:55
by edwin1234
I will try it,
I let you know the results
Thanks

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 20:04
by edwin1234
Nope , still the same error
:(

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 20:18
by Xenomes
You also need to add the flowing line to top of the script with the f string in it. That is /usr/local/lib/python3.5/dist-packages/tuyaha/tuyaapi.py

Code: Select all

# -*- coding: future_fstrings -*-

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 20:37
by edwin1234
Not working yet
I get this Error: (tuya) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-TUYA-Plugin/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2021-01-11 20:34:05.051 Error: (Tuya) Module Import failed, exception: 'SyntaxError'
2021-01-11 20:34:05.051 Error: (Tuya) Import detail: File: /usr/local/lib/python3.5/dist-packages/tuyaha/devices/climate.py, Line: 44, offset: 78
2021-01-11 20:34:05.051 Error: (Tuya) Error Line ' f"Unit can only be set to {UNIT_CELSIUS} or {UNIT_FAHRENHEIT}"
2021-01-11 20:34:05.051 '
2021-01-11 20:35:17.540 Error: Tuya hardware (18) thread seems to have ended unexpectedly

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 20:40
by Xenomes
Add the same line to /usr/local/lib/python3.5/dist-packages/tuyaha/devices/climate.py this is the same error but other file.

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 21:24
by edwin1234
It looks better now,
But get a login error while im 100% sure i put in the same credentials as in the tuya app
Any ideas?
Thanks for all your help

Error: (Tuya) handleThread: Get accesstoken failed. Username or password error! line 194
2021-01-11 21:17:32.346 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:17:42.370 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:17:52.434 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:18:02.448 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:18:12.508 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:18:22.572 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:18:32.735 Error: (Tuya) handleThread: Get accesstoken failed. Username or password error! line 196
2021-01-11 21:18:42.615 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:18:52.758 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:19:02.772 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:19:12.772 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:19:22.804 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:19:32.821 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:19:42.763 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:19:52.943 Error: (Tuya) handleThread: Get accesstoken failed. Username or password error! line 196
2021-01-11 21:20:02.795 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:20:12.859 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:20:23.037 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:20:33.049 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:20:43.024 Error: (Tuya) handleThread: login rate limited line 196
2021-01-11 21:20:53.194 Error: (Tuya) handleThread: Get accesstoken failed. Username or password error! line 196
© 2012-2021 Domoticz | WWW:

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 21:30
by Xenomes
My first idea, did you change back the 1200 to 600?

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 21:33
by edwin1234
Yes i did
Must i turn it back to 1200?

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 21:36
by Xenomes
No 600 is right one. Is the country code correct?
He had the same error: viewtopic.php?p=265506#p265506

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Monday 11 January 2021 21:42
by edwin1234
I look in to it

Thank u very much

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Friday 08 October 2021 8:42
by FreakNL
Okay, my Tuya isn't working anymore.

I cannot control my devices anymore (Switching on/off).

However (and this is weird), when I use the Tuya App I can switch on/off devices and that state IS reflected in Domoticz..

So Domoticz can still GET the stat of the Tuya devices, but I cannot PUT the devices in a state anymore..

2021-10-08 08:40:32.603 Status: User: mb initiated a switch command (1213/Ikea/On)
2021-10-08 08:40:53.917 (Tuya) Device: 5 - ID: 1213, Name: 'Ikea', nValue: 0, sValue: 'Off'
2021-10-08 08:40:53.918 (Tuya) Device Name: 'Ikea'
2021-10-08 08:40:54.014 (Ikea) Updating device from 0:'Off' to have values 0:'Off'.
2021-10-08 08:40:54.039 (Tuya) Update 0:'Off' (Ikea) TimedOut=True
2021-10-08 08:40:55.771 (Tuya) DEV name=Ikea state=False id=0264756140f520f0cb42_2 online=True
2021-10-08 08:40:55.771 (Ikea) Updating device from 0:'Off' to have values 0:'Off'.
2021-10-08 08:40:55.791 (Tuya) Update 0:'Off' (Ikea) TimedOut=False

and:
2021-10-08 08:39:43.458 (Tuya) Device Name: 'KeukenSpeaker-woox'
2021-10-08 08:39:43.458 (Tuya) Device nValue: 0
2021-10-08 08:39:43.458 (Tuya) Device sValue: 'Off'
2021-10-08 08:39:43.458 (Tuya) Device LastLevel: 0
2021-10-08 08:39:43.458 (Tuya) Device: 3 - ID: 1211, Name: 'Tuya - WOOX1', nValue: 0, sValue: 'Off'
2021-10-08 08:39:43.458 (Tuya) Device ID: '1211'
2021-10-08 08:39:43.458 (Tuya) Device Name: 'Tuya - WOOX1'
2021-10-08 08:39:43.458 (Tuya) Device nValue: 0
2021-10-08 08:39:43.459 (Tuya) Device sValue: 'Off'
2021-10-08 08:39:43.459 (Tuya) Device LastLevel: 100
2021-10-08 08:39:43.459 (Tuya) Device: 4 - ID: 1212, Name: 'Leeslamp', nValue: 1, sValue: 'On'
2021-10-08 08:39:43.459 (Tuya) Device ID: '1212'
2021-10-08 08:39:43.459 (Tuya) Device Name: 'Leeslamp'
2021-10-08 08:39:43.460 (Tuya) Device nValue: 1
2021-10-08 08:39:43.460 (Tuya) Device sValue: 'On'
2021-10-08 08:39:43.460 (Tuya) Device LastLevel: 0
2021-10-08 08:39:43.460 (Tuya) Device: 5 - ID: 1213, Name: 'Ikea', nValue: 0, sValue: 'Off'
2021-10-08 08:39:43.460 (Tuya) Device ID: '1213'
2021-10-08 08:39:43.460 (Tuya) Device Name: 'Ikea'
2021-10-08 08:39:43.460 (Tuya) Device nValue: 0
2021-10-08 08:39:43.461 (Tuya) Device sValue: 'Off'
2021-10-08 08:39:43.461 (Tuya) Device LastLevel: 0
2021-10-08 08:39:43.461 (Tuya) Device: 6 - ID: 1214, Name: 'AlwaysOn1', nValue: 1, sValue: 'On'
2021-10-08 08:39:43.461 (Tuya) Device ID: '1214'
2021-10-08 08:39:43.461 (Tuya) Device Name: 'AlwaysOn1'
2021-10-08 08:39:43.461 (Tuya) Device nValue: 1
2021-10-08 08:39:43.461 (Tuya) Device sValue: 'On'
2021-10-08 08:39:43.463 (Tuya) Device LastLevel: 0
2021-10-08 08:39:43.464 (Tuya) Device: 7 - ID: 1215, Name: 'f/u', nValue: 1, sValue: 'On'
2021-10-08 08:39:43.464 (Tuya) Device ID: '1215'
2021-10-08 08:39:43.464 (Tuya) Device Name: 'f/u'
2021-10-08 08:39:43.464 (Tuya) Device nValue: 1
2021-10-08 08:39:43.464 (Tuya) Device sValue: 'On'
2021-10-08 08:39:43.464 (Tuya) Device LastLevel: 0
2021-10-08 08:39:43.464 (Tuya) Device: 8 - ID: 1216, Name: 'Tuya1USB', nValue: 1, sValue: 'On'
2021-10-08 08:39:43.465 (Tuya) Device ID: '1216'
2021-10-08 08:39:43.465 (Tuya) Device Name: 'Tuya1USB'
2021-10-08 08:39:43.465 (Tuya) Device nValue: 1
2021-10-08 08:39:43.465 (Tuya) Device sValue: 'On'
2021-10-08 08:39:43.465 (Tuya) Device LastLevel: 0
2021-10-08 08:39:43.482 (Tuya) Update 0:'Off' (KeukenKast-woox) TimedOut=True
2021-10-08 08:39:43.520 (Tuya) Update 0:'Off' (KeukenSpeaker-woox) TimedOut=True
2021-10-08 08:39:43.520 (Tuya - WOOX1) Updating device from 0:'Off' to have values 0:'Off'.
2021-10-08 08:39:43.535 (Tuya) Update 0:'Off' (Tuya - WOOX1) TimedOut=True
2021-10-08 08:39:43.563 (Tuya) Update 0:'Off' (Leeslamp) TimedOut=True
2021-10-08 08:39:43.586 (Tuya) Update 0:'Off' (Ikea) TimedOut=True
2021-10-08 08:39:43.614 (Tuya) Update 0:'Off' (AlwaysOn1) TimedOut=True
2021-10-08 08:39:43.640 (Tuya) Update 0:'Off' (f/u) TimedOut=True
2021-10-08 08:39:43.640 (Tuya1USB) Updating device from 1:'On' to have values 0:'Off'.
2021-10-08 08:39:43.665 (Tuya) Update 0:'Off' (Tuya1USB) TimedOut=True
2021-10-08 08:39:43.666 (Tuya) in handlethread
2021-10-08 08:39:45.128 (Tuya) DEV name=WOOX1 state=True id=72865703c82b96c8cfba online=False
2021-10-08 08:39:45.128 (Tuya - WOOX1) Updating device from 0:'Off' to have values 1:'On'.
2021-10-08 08:39:45.153 (Tuya) Update 1:'On' (Tuya - WOOX1) TimedOut=True
2021-10-08 08:39:45.153 (Tuya - WOOX1) Updating device from 1:'On' to have values 0:'Off'.
2021-10-08 08:39:45.175 (Tuya) Update 0:'Off' (Tuya - WOOX1) TimedOut=True
2021-10-08 08:39:45.175 (Tuya) DeviceID=72865703c82b96c8cfba Turned off because device is offline.
2021-10-08 08:39:45.178 (Tuya) DEV name=Switch 1 state=True id=0078618210521cf2d1a1_1 online=False
2021-10-08 08:39:45.206 (Tuya) Update 1:'On' (KeukenKast-woox) TimedOut=True
2021-10-08 08:39:45.231 (Tuya) Update 0:'Off' (KeukenKast-woox) TimedOut=True
2021-10-08 08:39:45.231 (Tuya) DeviceID=0078618210521cf2d1a1_1 Turned off because device is offline.
2021-10-08 08:39:45.233 (Tuya) DEV name=Switch 2 state=False id=0078618210521cf2d1a1_2 online=False
2021-10-08 08:39:45.233 (Tuya) DEV name=Leeslamp state=True id=0264756140f520f0cb42_1 online=True
2021-10-08 08:39:45.262 (Tuya) Update 1:'On' (Leeslamp) TimedOut=False
2021-10-08 08:39:45.262 (Tuya) DEV name=Ikea state=False id=0264756140f520f0cb42_2 online=True
2021-10-08 08:39:45.280 (Tuya) Update 0:'Off' (Ikea) TimedOut=False
2021-10-08 08:39:45.281 (Tuya) DEV name=AlwaysON state=True id=0264756140f520f0cb42_3 online=True
2021-10-08 08:39:45.308 (Tuya) Update 1:'On' (AlwaysOn1) TimedOut=False
2021-10-08 08:39:45.309 (Tuya) DEV name=f/u state=True id=0264756140f520f0cb42_4 online=True
2021-10-08 08:39:45.331 (Tuya) Update 1:'On' (f/u) TimedOut=False
2021-10-08 08:39:45.331 (Tuya) DEV name=USB state=True id=0264756140f520f0cb42_5 online=True
2021-10-08 08:39:45.332 (Tuya1USB) Updating device from 0:'Off' to have values 1:'On'.
2021-10-08 08:39:45.358 (Tuya) Update 1:'On' (Tuya1USB) TimedOut=False
2021-10-08 08:39:52.064 Error: Tuya hardware (22) thread seems to have ended unexpectedly
2021-10-08 08:39:52.064 Error: Tuya hardware (22) nothing received for more than 1 Minute!....
2021-10-08 08:39:53.068 (Tuya) Pushing 'onStopCallback' on to queue
2021-10-08 08:39:53.118 (Tuya) Processing 'onStopCallback' message
2021-10-08 08:39:53.118 (Tuya) Calling message handler 'onStop'.
2021-10-08 08:39:53.118 (Tuya) onStop called
2021-10-08 08:39:53.066 Status: (Tuya) Stop directive received.
2021-10-08 08:39:53.068 Status: (Tuya) Exiting work loop.
2021-10-08 08:39:53.370 Status: (Tuya) Stopping threads.
2021-10-08 08:39:53.370 Status: (Tuya) Stopped.
2021-10-08 08:39:53.370 Status: (Tuya) Started.
2021-10-08 08:39:53.066 Error: Restarting: Tuya
2021-10-08 08:40:53.910 (Tuya) 'DomoticzVersion':'2020.2'
2021-10-08 08:40:53.910 (Tuya) 'DomoticzHash':'b63341bc0'
2021-10-08 08:40:53.910 (Tuya) 'DomoticzBuildTime':'2020-04-26 13:47:55'
2021-10-08 08:40:53.911 (Tuya) Device count: 8
2021-10-08 08:40:53.911 (Tuya) Device: 1 - ID: 1204, Name: 'KeukenKast-woox', nValue: 0, sValue: 'Off'
2021-10-08 08:40:53.911 (Tuya) Device ID: '1204'
2021-10-08 08:40:53.911 (Tuya) Device Name: 'KeukenKast-woox'
2021-10-08 08:40:53.911 (Tuya) Device nValue: 0
2021-10-08 08:40:53.911 (Tuya) Device sValue: 'Off'
2021-10-08 08:40:53.911 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.912 (Tuya) Device: 2 - ID: 1205, Name: 'KeukenSpeaker-woox', nValue: 0, sValue: 'Off'
2021-10-08 08:40:53.912 (Tuya) Device ID: '1205'
2021-10-08 08:40:53.912 (Tuya) Device Name: 'KeukenSpeaker-woox'
2021-10-08 08:40:53.912 (Tuya) Device nValue: 0
2021-10-08 08:40:53.912 (Tuya) Device sValue: 'Off'
2021-10-08 08:40:53.912 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.913 (Tuya) Device: 3 - ID: 1211, Name: 'Tuya - WOOX1', nValue: 0, sValue: 'Off'
2021-10-08 08:40:53.913 (Tuya) Device ID: '1211'
2021-10-08 08:40:53.913 (Tuya) Device Name: 'Tuya - WOOX1'
2021-10-08 08:40:53.913 (Tuya) Device nValue: 0
2021-10-08 08:40:53.913 (Tuya) Device sValue: 'Off'
2021-10-08 08:40:53.914 (Tuya) Device LastLevel: 100
2021-10-08 08:40:53.914 (Tuya) Device: 4 - ID: 1212, Name: 'Leeslamp', nValue: 1, sValue: 'On'
2021-10-08 08:40:53.914 (Tuya) Device ID: '1212'
2021-10-08 08:40:53.914 (Tuya) Device Name: 'Leeslamp'
2021-10-08 08:40:53.914 (Tuya) Device nValue: 1
2021-10-08 08:40:53.914 (Tuya) Device sValue: 'On'
2021-10-08 08:40:53.916 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.917 (Tuya) Device: 5 - ID: 1213, Name: 'Ikea', nValue: 0, sValue: 'Off'
2021-10-08 08:40:53.918 (Tuya) Device ID: '1213'
2021-10-08 08:40:53.918 (Tuya) Device Name: 'Ikea'
2021-10-08 08:40:53.918 (Tuya) Device nValue: 0
2021-10-08 08:40:53.918 (Tuya) Device sValue: 'Off'
2021-10-08 08:40:53.919 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.919 (Tuya) Device: 6 - ID: 1214, Name: 'AlwaysOn1', nValue: 1, sValue: 'On'
2021-10-08 08:40:53.919 (Tuya) Device ID: '1214'
2021-10-08 08:40:53.920 (Tuya) Device Name: 'AlwaysOn1'
2021-10-08 08:40:53.920 (Tuya) Device nValue: 1
2021-10-08 08:40:53.920 (Tuya) Device sValue: 'On'
2021-10-08 08:40:53.921 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.921 (Tuya) Device: 7 - ID: 1215, Name: 'f/u', nValue: 1, sValue: 'On'
2021-10-08 08:40:53.921 (Tuya) Device ID: '1215'
2021-10-08 08:40:53.921 (Tuya) Device Name: 'f/u'
2021-10-08 08:40:53.921 (Tuya) Device nValue: 1
2021-10-08 08:40:53.922 (Tuya) Device sValue: 'On'
2021-10-08 08:40:53.922 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.922 (Tuya) Device: 8 - ID: 1216, Name: 'Tuya1USB', nValue: 1, sValue: 'On'
2021-10-08 08:40:53.922 (Tuya) Device ID: '1216'
2021-10-08 08:40:53.922 (Tuya) Device Name: 'Tuya1USB'
2021-10-08 08:40:53.923 (Tuya) Device nValue: 1
2021-10-08 08:40:53.923 (Tuya) Device sValue: 'On'
2021-10-08 08:40:53.923 (Tuya) Device LastLevel: 0
2021-10-08 08:40:53.944 (Tuya) Update 0:'Off' (KeukenKast-woox) TimedOut=True
2021-10-08 08:40:53.963 (Tuya) Update 0:'Off' (KeukenSpeaker-woox) TimedOut=True
2021-10-08 08:40:53.963 (Tuya - WOOX1) Updating device from 0:'Off' to have values 0:'Off'.
2021-10-08 08:40:53.980 (Tuya) Update 0:'Off' (Tuya - WOOX1) TimedOut=True
2021-10-08 08:40:54.014 (Tuya) Update 0:'Off' (Leeslamp) TimedOut=True
2021-10-08 08:40:54.039 (Tuya) Update 0:'Off' (Ikea) TimedOut=True
2021-10-08 08:40:54.089 (Tuya) Update 0:'Off' (AlwaysOn1) TimedOut=True
2021-10-08 08:40:54.117 (Tuya) Update 0:'Off' (f/u) TimedOut=True
2021-10-08 08:40:54.117 (Tuya1USB) Updating device from 1:'On' to have values 0:'Off'.
2021-10-08 08:40:54.153 (Tuya) Update 0:'Off' (Tuya1USB) TimedOut=True
2021-10-08 08:40:54.154 (Tuya) in handlethread
2021-10-08 08:40:54.155 (Tuya) Processing 'onCommandCallback' message
2021-10-08 08:40:54.156 (Tuya) Calling message handler 'onCommand'.
2021-10-08 08:40:54.156 (Tuya) onCommand called for Unit 5: Parameter 'On', Level: 0
2021-10-08 08:40:54.156 Error: (Tuya) Command for DeviceID=0264756140f520f0cb42_2 but device is not available.
2021-10-08 08:40:55.606 (Tuya) DEV name=WOOX1 state=True id=72865703c82b96c8cfba online=False
2021-10-08 08:40:55.606 (Tuya - WOOX1) Updating device from 0:'Off' to have values 1:'On'.
2021-10-08 08:40:55.638 (Tuya) Update 1:'On' (Tuya - WOOX1) TimedOut=True
2021-10-08 08:40:55.638 (Tuya - WOOX1) Updating device from 1:'On' to have values 0:'Off'.
2021-10-08 08:40:55.664 (Tuya) Update 0:'Off' (Tuya - WOOX1) TimedOut=True
2021-10-08 08:40:55.664 (Tuya) DeviceID=72865703c82b96c8cfba Turned off because device is offline.
2021-10-08 08:40:55.665 (Tuya) DEV name=Switch 1 state=True id=0078618210521cf2d1a1_1 online=False
2021-10-08 08:40:55.707 (Tuya) Update 1:'On' (KeukenKast-woox) TimedOut=True
2021-10-08 08:40:55.741 (Tuya) Update 0:'Off' (KeukenKast-woox) TimedOut=True
2021-10-08 08:40:55.741 (Tuya) DeviceID=0078618210521cf2d1a1_1 Turned off because device is offline.
2021-10-08 08:40:55.741 (Tuya) DEV name=Switch 2 state=False id=0078618210521cf2d1a1_2 online=False
2021-10-08 08:40:55.742 (Tuya) DEV name=Leeslamp state=True id=0264756140f520f0cb42_1 online=True
2021-10-08 08:40:55.770 (Tuya) Update 1:'On' (Leeslamp) TimedOut=False
2021-10-08 08:40:55.771 (Tuya) DEV name=Ikea state=False id=0264756140f520f0cb42_2 online=True
2021-10-08 08:40:55.791 (Tuya) Update 0:'Off' (Ikea) TimedOut=False
2021-10-08 08:40:55.791 (Tuya) DEV name=AlwaysON state=True id=0264756140f520f0cb42_3 online=True
2021-10-08 08:40:55.814 (Tuya) Update 1:'On' (AlwaysOn1) TimedOut=False
2021-10-08 08:40:55.815 (Tuya) DEV name=f/u state=True id=0264756140f520f0cb42_4 online=True
2021-10-08 08:40:55.837 (Tuya) Update 1:'On' (f/u) TimedOut=False
2021-10-08 08:40:55.837 (Tuya) DEV name=USB state=True id=0264756140f520f0cb42_5 online=True
2021-10-08 08:40:55.838 (Tuya1USB) Updating device from 0:'Off' to have values 1:'On'.
2021-10-08 08:40:55.866 (Tuya) Update 1:'On' (Tuya1USB) TimedOut=False
2021-10-08 08:41:02.809 Error: Tuya hardware (22) thread seems to have ended unexpectedly
2021-10-08 08:41:02.810 Error: Tuya hardware (22) nothing received for more than 1 Minute!....
2021-10-08 08:41:03.813 (Tuya) Pushing 'onStopCallback' on to queue
2021-10-08 08:41:03.812 Status: (Tuya) Stop directive received.
2021-10-08 08:41:03.812 Error: Restarting: Tuya
2021-10-08 08:41:13.078 (Tuya) Processing 'onStopCallback' message
2021-10-08 08:41:13.078 (Tuya) Calling message handler 'onStop'.
2021-10-08 08:41:13.078 (Tuya) onStop called
2021-10-08 08:41:13.792 (Tuya) Waiting 60 seconds to connect TuyaApi login timeout
2021-10-08 08:41:13.078 Status: (Tuya) Exiting work loop.
2021-10-08 08:41:13.295 Status: (Tuya) Stopping threads.
2021-10-08 08:41:13.295 Status: (Tuya) Stopped.
2021-10-08 08:41:13.295 Status: (Tuya) Started.
2021-10-08 08:41:13.791 Status: (Tuya) Initialized version 1.0.12, author 'Wagner Oliveira contributed Xenomes'
2021-10-08 08:41:13.791 Status: (Tuya) Entering work loop.





Disregard the WOOX stuff, that device is currently unplugged.


Anyone have any idea?

Re: Tuya Cloud Plugin [No custom firmware require]: Finally for Domoticz

Posted: Saturday 12 February 2022 15:27
by manjh
Today I purchased a Flinq panel heater. Instructions show how to link it to the Tuya Smart app, works great.
So I added it as well in Domoticz (I already have about 10 Tuya lamps), and sure enough it comes in as a device.

But: the only function I can control from Domoticz is on/off, basically it shows up as a switch.
In the Tuya app I can do much more:
switch on/off
set temperature
set high/low power
set/reset child lock
set timer
set weekly timer

Is there a way to add this device including all the functions that are offered in Tuya Smart app?