Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

Curtain are inserted in Domoticz but #35

Closed flylowgofastturnleft closed 1 year ago

flylowgofastturnleft commented 1 year ago

Hello,

The plugin insert properly curtains in Domoticz, but nothing append when I switch one on or off ? My curtains are online, and all other devices work properly. Any idea ?

regards

Xenomes commented 1 year ago

Did you update the plugin and are you on Domoticz 2022.2?

flylowgofastturnleft commented 1 year ago

Hello, yes I have last version of your plugin and my Domoticz is 2022.2. My python is 3.7 version, How I can help to find a solution ? In my domoticz log I found this error : 2022-12-27 11:11:13.749 Error: tuya plugin hardware (8) thread seems to have ended unexpectedly And Tuya app works fine with my curtains.

Xenomes commented 1 year ago

Hi, Strange this plugin had never this issue. Can you enable debug and post the full startup log?

flylowgofastturnleft commented 1 year ago

Hello, here are starting logs:

2022-12-28 11:30:35.571 Status: Domoticz V2022.2 (c)2012-2022 GizMoCuz 2022-12-28 11:30:35.574 Status: Build Hash: eea9db734, Date: 2022-11-05 13:05:35 2022-12-28 11:30:35.574 Status: Startup Path: /home/pi/domoticz/ 2022-12-28 11:30:36.132 Status: PluginSystem: Started, Python version '3.7.3', 3 plugin definitions loaded. 2022-12-28 11:30:36.184 Status: WebServer(HTTP) started on address: :: with port 8080 2022-12-28 11:30:36.209 Status: WebServer(SSL) started on address: :: with port 443 2022-12-28 11:30:36.218 Status: TCPServer: shared server started... 2022-12-28 11:30:36.219 Status: RxQueue: queue worker started... 2022-12-28 11:30:38.225 Status: HomeAutomation: trying to connect to: 192.168.1.70:5003 2022-12-28 11:30:38.226 Status: tuya plugin: Entering work loop. 2022-12-28 11:30:38.226 Status: tuya plugin: Started. 2022-12-28 11:30:38.227 Status: NotificationSystem: thread started... 2022-12-28 11:30:38.229 Status: HomeAutomation: connected to: 192.168.1.70:5003 2022-12-28 11:30:38.235 Status: EventSystem: reset all events... 2022-12-28 11:30:38.248 Status: EventSystem: reset all device statuses... 2022-12-28 11:30:38.319 Status: PluginSystem: 1 plugins started. 2022-12-28 11:30:38.497 Status: Python EventSystem: Initializing event module. 2022-12-28 11:30:38.498 Status: EventSystem: Started 2022-12-28 11:30:38.498 Status: EventSystem: Queue thread started... 2022-12-28 11:30:40.003 Status: tuya plugin: Initialized version 1.0.9, author 'Wagner Oliveira contributed Xenomes' 2022-12-28 11:31:19.788 Status: Incoming connection from: 192.168.1.152 2022-12-28 11:31:44.412 Error: tuya plugin hardware (8) thread seems to have ended unexpectedly 2022-12-28 11:31:48.809 Status: Incoming connection from: 192.168.1.97 2022-12-28 11:31:51.978 tuya plugin: 'Mode1':'33' 2022-12-28 11:31:51.978 tuya plugin: 'Mode2':'tuya' 2022-12-28 11:31:51.978 tuya plugin: 'Mode6':'-1' 2022-12-28 11:31:51.978 tuya plugin: 'DomoticzVersion':'2022.2' 2022-12-28 11:31:51.978 tuya plugin: 'DomoticzHash':'eea9db734' 2022-12-28 11:31:51.978 tuya plugin: 'DomoticzBuildTime':'2022-11-05 13:05:35' 2022-12-28 11:31:51.978 tuya plugin: Device count: 7 2022-12-28 11:31:51.978 tuya plugin: Device: 1 - ID: 60, Name: 'tuya plugin - Curtain switch south', nValue: 1, sValue: 'On' 2022-12-28 11:31:51.978 tuya plugin: Device ID: '60' 2022-12-28 11:31:51.978 tuya plugin: Device Name: 'tuya plugin - Curtain switch south' 2022-12-28 11:31:51.978 tuya plugin: Device nValue: 1 2022-12-28 11:31:51.979 tuya plugin: Device sValue: 'On' 2022-12-28 11:31:51.979 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.979 tuya plugin: Device: 2 - ID: 61, Name: 'tuya plugin - curtain switch north', nValue: 1, sValue: 'On' 2022-12-28 11:31:51.979 tuya plugin: Device ID: '61' 2022-12-28 11:31:51.979 tuya plugin: Device Name: 'tuya plugin - curtain switch north' 2022-12-28 11:31:51.979 tuya plugin: Device nValue: 1 2022-12-28 11:31:51.979 tuya plugin: Device sValue: 'On' 2022-12-28 11:31:51.979 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.979 tuya plugin: Device: 3 - ID: 62, Name: 'tuya plugin - Temp Humid Sens salon', nValue: 0, sValue: 'Off' 2022-12-28 11:31:51.979 tuya plugin: Device ID: '62' 2022-12-28 11:31:51.979 tuya plugin: Device Name: 'tuya plugin - Temp Humid Sens salon' 2022-12-28 11:31:51.979 tuya plugin: Device nValue: 0 2022-12-28 11:31:51.979 tuya plugin: Device sValue: 'Off' 2022-12-28 11:31:51.979 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.980 tuya plugin: Device: 4 - ID: 63, Name: 'tuya plugin - Temp Humid cave', nValue: 0, sValue: 'Off' 2022-12-28 11:31:51.980 tuya plugin: Device ID: '63' 2022-12-28 11:31:51.980 tuya plugin: Device Name: 'tuya plugin - Temp Humid cave' 2022-12-28 11:31:51.980 tuya plugin: Device nValue: 0 2022-12-28 11:31:51.980 tuya plugin: Device sValue: 'Off' 2022-12-28 11:31:51.980 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.980 tuya plugin: Device: 5 - ID: 57, Name: 'tuya plugin - Curtain switch south west', nValue: 1, sValue: 'On' 2022-12-28 11:31:51.980 tuya plugin: Device ID: '57' 2022-12-28 11:31:51.980 tuya plugin: Device Name: 'tuya plugin - Curtain switch south west' 2022-12-28 11:31:51.980 tuya plugin: Device nValue: 1 2022-12-28 11:31:51.980 tuya plugin: Device sValue: 'On' 2022-12-28 11:31:51.980 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.980 tuya plugin: Device: 6 - ID: 64, Name: 'tuya plugin - Curtain open ', nValue: 1, sValue: 'On' 2022-12-28 11:31:51.980 tuya plugin: Device ID: '64' 2022-12-28 11:31:51.980 tuya plugin: Device Name: 'tuya plugin - Curtain open ' 2022-12-28 11:31:51.981 tuya plugin: Device nValue: 1 2022-12-28 11:31:51.981 tuya plugin: Device sValue: 'On' 2022-12-28 11:31:51.981 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.981 tuya plugin: Device: 7 - ID: 65, Name: 'tuya plugin - Curtain close', nValue: 1, sValue: 'On' 2022-12-28 11:31:51.981 tuya plugin: Device ID: '65' 2022-12-28 11:31:51.981 tuya plugin: Device Name: 'tuya plugin - Curtain close' 2022-12-28 11:31:51.981 tuya plugin: Device nValue: 1 2022-12-28 11:31:51.981 tuya plugin: Device sValue: 'On' 2022-12-28 11:31:51.981 tuya plugin: Device LastLevel: 0 2022-12-28 11:31:51.982 (tuya plugin - Curtain switch south) Updating device from 1:'On' to have values 0:'Off'. 2022-12-28 11:31:52.012 tuya plugin: Update 0:'Off' (tuya plugin - Curtain switch south) TimedOut=True 2022-12-28 11:31:52.012 (tuya plugin - curtain switch north) Updating device from 1:'On' to have values 0:'Off'. 2022-12-28 11:31:52.018 tuya plugin: Update 0:'Off' (tuya plugin - curtain switch north) TimedOut=True 2022-12-28 11:31:52.018 (tuya plugin - Temp Humid Sens salon) Updating device from 0:'Off' to have values 0:'Off'. 2022-12-28 11:31:52.023 tuya plugin: Update 0:'Off' (tuya plugin - Temp Humid Sens salon) TimedOut=True 2022-12-28 11:31:52.023 (tuya plugin - Temp Humid cave) Updating device from 0:'Off' to have values 0:'Off'. 2022-12-28 11:31:52.028 tuya plugin: Update 0:'Off' (tuya plugin - Temp Humid cave) TimedOut=True 2022-12-28 11:31:52.028 (tuya plugin - Curtain switch south west) Updating device from 1:'On' to have values 0:'Off'. 2022-12-28 11:31:52.046 tuya plugin: Update 0:'Off' (tuya plugin - Curtain switch south west) TimedOut=True 2022-12-28 11:31:52.047 (tuya plugin - Curtain open ) Updating device from 1:'On' to have values 0:'Off'. 2022-12-28 11:31:52.055 tuya plugin: Update 0:'Off' (tuya plugin - Curtain open ) TimedOut=True 2022-12-28 11:31:52.055 (tuya plugin - Curtain close) Updating device from 1:'On' to have values 0:'Off'. 2022-12-28 11:31:52.066 tuya plugin: Update 0:'Off' (tuya plugin - Curtain close) TimedOut=True 2022-12-28 11:31:52.069 tuya plugin: in handlethread 2022-12-28 11:31:52.073 tuya plugin: Acquiring GIL for 'onStartCallback' 2022-12-28 11:31:52.124 tuya plugin: Pushing 'onHeartbeatCallback' on to queue 2022-12-28 11:31:52.174 tuya plugin: Processing 'onHeartbeatCallback' message 2022-12-28 11:31:52.174 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:31:52.174 tuya plugin: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-28 11:31:52.175 tuya plugin: onHeartbeat called time=1672223512.174972 2022-12-28 11:31:52.176 tuya plugin: in handlethread 2022-12-28 11:31:52.176 tuya plugin: Device count: 7 2022-12-28 11:31:52.176 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:31:53.700 tuya plugin: DEV name=Curtain switch south state=3 id=bfe8482618033da610cjth online=True 2022-12-28 11:31:53.700 (tuya plugin - Curtain switch south) Updating device from 0:'Off' to have values 1:'On'. 2022-12-28 11:31:53.717 tuya plugin: Update 1:'On' (tuya plugin - Curtain switch south) TimedOut=False 2022-12-28 11:31:53.717 tuya plugin: DEV name=curtain switch north state=3 id=52550043c82b96597282 online=True 2022-12-28 11:31:53.718 (tuya plugin - curtain switch north) Updating device from 0:'Off' to have values 1:'On'. 2022-12-28 11:31:53.725 tuya plugin: Update 1:'On' (tuya plugin - curtain switch north) TimedOut=False 2022-12-28 11:31:53.725 tuya plugin: DEV name=Temp Humid Sens salon state=False id=bf70875f2b1d6fd90bwasw online=True 2022-12-28 11:31:53.725 (tuya plugin - Temp Humid Sens salon) Updating device from 0:'Off' to have values 0:'Off'. 2022-12-28 11:31:53.729 tuya plugin: Update 0:'Off' (tuya plugin - Temp Humid Sens salon) TimedOut=False 2022-12-28 11:31:53.729 tuya plugin: DEV name=Temp Humid cave state=False id=bf972b5a913b51d48fvfi9 online=True 2022-12-28 11:31:53.729 (tuya plugin - Temp Humid cave) Updating device from 0:'Off' to have values 0:'Off'. 2022-12-28 11:31:53.732 tuya plugin: Update 0:'Off' (tuya plugin - Temp Humid cave) TimedOut=False 2022-12-28 11:31:53.732 tuya plugin: DEV name=Curtain switch south west state=3 id=bf040fb81db25c8d85jyxm online=True 2022-12-28 11:31:53.733 (tuya plugin - Curtain switch south west) Updating device from 0:'Off' to have values 1:'On'. 2022-12-28 11:31:53.746 tuya plugin: Update 1:'On' (tuya plugin - Curtain switch south west) TimedOut=False 2022-12-28 11:31:53.746 tuya plugin: DEV name=Curtain open state=None id=mLlwRf6l1CkbXyfQ online=True 2022-12-28 11:31:53.746 (tuya plugin - Curtain open ) Updating device from 0:'Off' to have values 1:'On'. 2022-12-28 11:31:53.750 tuya plugin: Update 1:'On' (tuya plugin - Curtain open ) TimedOut=False 2022-12-28 11:31:53.750 tuya plugin: DEV name=Curtain close state=None id=KzZrBhFTmc9fUBWA online=True 2022-12-28 11:31:53.750 (tuya plugin - Curtain close) Updating device from 0:'Off' to have values 1:'On'. 2022-12-28 11:31:53.755 tuya plugin: Update 1:'On' (tuya plugin - Curtain close) TimedOut=False 2022-12-28 11:32:02.050 tuya plugin: Pushing 'onHeartbeatCallback' on to queue 2022-12-28 11:32:02.100 tuya plugin: Processing 'onHeartbeatCallback' message 2022-12-28 11:32:02.100 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:02.100 tuya plugin: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-28 11:32:02.100 tuya plugin: onHeartbeat called time=1672223522.1005857 2022-12-28 11:32:02.100 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:12.024 tuya plugin: Pushing 'onHeartbeatCallback' on to queue 2022-12-28 11:32:12.074 tuya plugin: Processing 'onHeartbeatCallback' message 2022-12-28 11:32:12.074 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:12.074 tuya plugin: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-28 11:32:12.074 tuya plugin: onHeartbeat called time=1672223532.0748103 2022-12-28 11:32:12.075 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:22.048 tuya plugin: Pushing 'onHeartbeatCallback' on to queue 2022-12-28 11:32:22.098 tuya plugin: Processing 'onHeartbeatCallback' message 2022-12-28 11:32:22.098 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:22.099 tuya plugin: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-28 11:32:22.099 tuya plugin: onHeartbeat called time=1672223542.099149 2022-12-28 11:32:22.099 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:32.023 tuya plugin: Pushing 'onHeartbeatCallback' on to queue 2022-12-28 11:32:32.073 tuya plugin: Processing 'onHeartbeatCallback' message 2022-12-28 11:32:32.073 tuya plugin: Acquiring GIL for 'onHeartbeatCallback' 2022-12-28 11:32:32.073 tuya plugin: Calling message handler 'onHeartbeat' on 'module' type object. 2022-12-28 11:32:32.074 tuya plugin: onHeartbeat called time=1672223552.073998 2022-12-28 11:32:32.074 tuya plugin: Acquiring GIL for 'onHeartbeatCallback'

Xenomes commented 1 year ago

Yes thank you for the log, I see you are on Domoticz 2022.2 but the plugin is on version 1.0.9, as you can read in the readme 1.0.14 is updated for the 2022.2 version of Domoticz. Update the plugin and try again.

flylowgofastturnleft commented 1 year ago

it's amazing because I directly made a git clone ? I'll try an other way.

Xenomes commented 1 year ago

In the plugin folder do a 'git pull'.

flylowgofastturnleft commented 1 year ago

Thank you for your work, now all works fine Good happy new year