Xenomes wrote: ↑Sunday 27 November 2022 16:39
It is still in startup phase so any every feedback is welcome.
Xenomes
Hi again.

Here is my feedback. This plugin seems working better than previous, atleast for me.
Little more to do to get tuya-iot-account, but not bad.
This (or the tuya-iot-account) don't work with (ie.) Nedis SmartLife app? Or at least it won't link with qr to it.
Anyway. So installed Tuya Smart, and one bulb there, "works", connects but this happens with domoticz..
Code: Select all
2022-11-30 14:36:40.681 tuya: Worker thread started.
2022-11-30 14:36:40.681 Status: tuya: Entering work loop.
2022-11-30 14:36:40.681 Status: tuya: Started.
2022-11-30 14:36:41.109 tuya: TinyTUYA plugin started
2022-11-30 14:36:41.109 tuya: Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE
2022-11-30 14:36:41.109 tuya: 'HardwareID':'12'
2022-11-30 14:36:41.109 tuya: 'HomeFolder':'/opt/domoticz/plugins/Domoticz-TinyTUYA-Plugin/'
2022-11-30 14:36:41.109 tuya: 'StartupFolder':'/opt/domoticz/'
2022-11-30 14:36:41.109 tuya: 'UserDataFolder':'/opt/domoticz/'
2022-11-30 14:36:41.109 tuya: 'Database':'/opt/domoticz/domoticz.db'
2022-11-30 14:36:41.109 tuya: 'Language':'en'
2022-11-30 14:36:41.109 tuya: 'Version':'1.0.0'
2022-11-30 14:36:41.109 tuya: 'Author':'Xenomes'
2022-11-30 14:36:41.109 tuya: 'Name':'tuya'
2022-11-30 14:36:41.109 tuya: 'Port':'0'
2022-11-30 14:36:41.109 tuya: 'Username':'vj34ymhhcwrky5nxe8f3'
2022-11-30 14:36:41.109 tuya: 'Password':'ca0f51e512574cfc88a7c1412007a198'
2022-11-30 14:36:41.109 tuya: 'Key':'tinytuya'
2022-11-30 14:36:41.109 tuya: 'Mode1':'eu'
2022-11-30 14:36:41.109 tuya: 'Mode2':'75771060a4cf12a122e3'
2022-11-30 14:36:41.109 tuya: 'Mode6':'-1'
2022-11-30 14:36:41.109 tuya: 'DomoticzVersion':'2022.2 (build 14784)'
2022-11-30 14:36:41.109 tuya: 'DomoticzHash':'e04d1d3e2'
2022-11-30 14:36:41.109 tuya: 'DomoticzBuildTime':'2022-11-29 08:53:03'
2022-11-30 14:36:41.109 tuya: Device count: 0
2022-11-30 14:36:41.108 Status: tuya: Initialized version 1.0.0, author 'Xenomes'
2022-11-30 14:36:42.539 tuya: Device name=Lamppu id=75771060a4cf12a122e3
2022-11-30 14:36:43.374 tuya: Create devices
2022-11-30 14:36:43.714 tuya: handleThread: Device not found! Removed? line 316
2022-11-30 14:36:43.714 tuya: Acquiring GIL for 'onStartCallback'
2022-11-30 14:36:43.713 Error: tuya: No controls found for your light device!
2022-11-30 14:36:43.714 Error: tuya: handleThread: Device not found! Removed?
2022-11-30 14:36:50.025 tuya: Pushing 'onHeartbeatCallback' on to queue
2022-11-30 14:36:50.076 tuya: Processing 'onHeartbeatCallback' message
2022-11-30 14:36:50.076 tuya: Acquiring GIL for 'onHeartbeatCallback'
2022-11-30 14:36:50.076 tuya: Calling message handler 'onHeartbeat' on 'module' type object.
2022-11-30 14:36:50.076 tuya: onHeartbeat called
2022-11-30 14:36:50.668 tuya: Device name=Lamppu id=75771060a4cf12a122e3
2022-11-30 14:36:51.538 tuya: handleThread: Device not found! Removed? line 316
2022-11-30 14:36:51.538 tuya: Acquiring GIL for 'onHeartbeatCallback'
2022-11-30 14:36:51.538 Error: tuya: handleThread: Device not found! Removed?
Seems it detects my "Lamppu" (light bulb might be closest, sorry my finnish... ) , but then it lost it somehow?
Will put json to github. .. forgot my password, i'll put debug_discovery here.. Sorry...
Funny enough.. As it implies at "name id .. Key : 'deleted'... But at tuya-app working, and status of device shows sensible data, switch / brightness / temp changes as they are changed at app..
Anyway!-) following is Nedis Wi-Fi Smart Bulb (SmartLife logo), WIFILW10CRGU10, GU10 4.9W/345lm 2700-6500K ..
Code: Select all
List of devices:
[{'name': 'Lamppu', 'id': '75771060a4cf12a122e3', 'key': 'Deleted', 'mac': 'a4:cf:12:a1:22:e3', 'category': 'dj', 'product_name': 'Smart bulb', 'product_id': 'djjv8ioc4zyzv8tc', 'biz_type': 0, 'model': 'WIFILW10CRGU10', 'sub': False, 'icon': 'https://images.tuyaeu.com/smart/icon/ay1513237774906SMBA3/15585187678fd13b5d5cb.png'}]
Functions of device: 75771060a4cf12a122e3
{'result': {'category': 'dj', 'functions': [{'code': 'switch_led', 'desc': 'switch led', 'name': 'switch led', 'type': 'Boolean', 'values': '{}'}, {'code': 'bright_value', 'desc': 'bright value', 'name': 'bright value', 'type': 'Integer', 'values': '{"min":25,"scale":0,"unit":"","max":255,"step":1}'}, {'code': 'temp_value', 'desc': 'temp value', 'name': 'temp value', 'type': 'Integer', 'values': '{"min":0,"scale":0,"unit":"","max":255,"step":1}\t'}]}, 'success': True, 't': 1669812740555, 'tid': 'd3e94e8770ad11edac99da3a06eee480'}
Status of device: 75771060a4cf12a122e3
{'result': [{'code': 'switch_led', 'value': True}, {'code': 'bright_value', 'value': 143}, {'code': 'temp_value', 'value': 50}], 'success': True, 't': 1669812740762, 'tid': 'd408b66470ad11edb328265ef7a90a71'}