domoticz-zigbee2mqtt-plugin icon indicating copy to clipboard operation
domoticz-zigbee2mqtt-plugin copied to clipboard

Tuya TS011F_plug_3 on/off state in plugin not working after update zigbee2mqtt 1.24.0

Open jupstra opened this issue 3 years ago • 9 comments

Issue description I've got some nice TS011F_plug_3 Tuya's, but after updating Z2M to v1.24.0 the on/off switch doesn't work anymore in Domoticz. It remains off / switches back immediately to off. In the Z2M Frontend the plugs are working properly. Updating the plugin to 3.1 beta is not an option, since in that one doesn't load in domoticz, see issue #780. Thanks!

Additional information Zigbee2MQTT version: 1.24.0 Python version: 3.7.3 Domoticz version: 2022.1 Plugin version: 3.0

jupstra avatar Mar 09 '22 22:03 jupstra

Same for the NAS-WR01B which presents it self as a TS011F_plug_1 in Z2M 1.24.0-dev commit: [0cd02c74] Also using the 'OLD' plugin version.

SargonofAssyria avatar Mar 21 '22 15:03 SargonofAssyria

I found a temporarily solution by removing some lines in Z2M see here: https://github.com/Koenkk/zigbee2mqtt/issues/11939

SargonofAssyria avatar Mar 23 '22 17:03 SargonofAssyria

Probably found the culprit. This device is a powerplug with a child_lock. @stas-demydiuk How can I make a powerplug definition with a child_lock?

SargonofAssyria avatar Mar 23 '22 18:03 SargonofAssyria

I found a temporarily solution by removing some lines in Z2M see here: Koenkk/zigbee2mqtt#11939

Thanks @SargonofAssyria for puzzling on this. I removed the child_lock line (and also indicator_mode) under the plug_3 device in tuya.js (the one in devices folder). Unfortunately the issue remains... Maybe you could be somewhat more precise in what you actually removed? Many thanks!

jupstra avatar Mar 23 '22 20:03 jupstra

You only have to remove the child_lock part on the following places. the 'fromZigbee', 'toZigbee' and the exposes part.

SargonofAssyria avatar Mar 23 '22 20:03 SargonofAssyria

You only have to remove the child_lock part on the following places. the 'fromZigbee', 'toZigbee' and the exposes part.

Unfortunately, this didn't work for me.

awalsum avatar Jun 22 '22 11:06 awalsum

The other solution is for me to add attached external converter in Z2M under Settings -> External converters. Remove the .txt so the filename is TS001_TZ3000.js Place the file in the data dir. TS011F_TZ3000.js.txt .

SargonofAssyria avatar Jun 23 '22 13:06 SargonofAssyria

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 13:09 stale[bot]

The other solution is for me to add attached external converter in Z2M under Settings -> External converters. Remove the .txt so the filename is TS001_TZ3000.js Place the file in the data dir. TS011F_TZ3000.js.txt .

I haven't tried this yet and missed this comment. I will try it out soon. Thanks.

awalsum avatar Sep 21 '22 16:09 awalsum

This works for me. Thanks!

awalsum avatar Oct 01 '22 20:10 awalsum

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 31 '22 00:12 stale[bot]