Tuya TS0042 Topic is solved

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
julienb
Posts: 13
Joined: Friday 13 May 2022 7:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Tuya TS0042

Post by julienb »

Hi all,

I'm currently in the process of setting up a domoticz home, using zigbee devices, raspberry pi 3, debian buster, zigate+ and zigate plugin. I have successfully paired several devices (mostly lidl home devices). Now i'm trying to control everything via physical switches, instead of clicking on domoticz ui buttons. So, i bought a Moe's two-button scene switch, which appears to be a Tuya TS0042.

I have paired it fine, and both buttons are recognized. I have click, double click and long click working correctly. However, i struggle to understand how to put it back to "OFF" position. Clicking on the OFF button in domoticz does not yield any result, and gives the following in the logs :

Code: Select all

2022-05-13 13:16:58,384 INFO    : [       MainThread] mgtCommand - You are trying to action not allowed for Device: Inter cuisine 1 Type: [('01', '26', 'Button_3')] and DeviceType: Button_3 Command: Off Level:0
First question: is this expected ?

Second question: the idea is to use it as a toggle switch : 1 click toggle light status, next click, toggle again. Is this possible ? (currently, i need to double click to get a click event again). I can't find the module in blockly, did not try yet with dzvents, but obviously i am missing something.

Thanks for your help.
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Tuya TS0042

Post by pipiche »

You might have a look to the WebUI > Settings > Advanced

In the Devices Management settings,

you can enable "forcePassiveWidget" this will allow you to be able to action the Widgets itself.
you can also set the "Number of sec after the Selector is reset to Off" to a value different than 0 to get the switch back to Off.

For the scripting I leave to other specialists which probably can help you. I think in dzVents there is a way to toggle the state of a widget
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
julienb
Posts: 13
Joined: Friday 13 May 2022 7:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tuya TS0042

Post by julienb »

This is exactly what i was looking for (and would never have found), this works fine, thanks.

For the missing module in blockly, it looks like it was a refresh issue, everything works fine, and also with dzVents.
glory50
Posts: 38
Joined: Thursday 07 June 2018 22:23
Target OS: Linux
Domoticz version: 2022.1
Location: Sud de France
Contact:

Re: Tuya TS0042

Post by glory50 »

Hi,

I have the same problem but in the WebUI of my Zigate, there is no "forcePassiveWidget" paramter neither "Advanced" section.

Plugin 6.3.008, fw 320
Zigbee.png
Zigbee.png (157.28 KiB) Viewed 919 times
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Tuya TS0042

Post by pipiche »

This as been Named into 'Allow Domoticz actions on Widgets fromremote devices'
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
glory50
Posts: 38
Joined: Thursday 07 June 2018 22:23
Target OS: Linux
Domoticz version: 2022.1
Location: Sud de France
Contact:

Re: Tuya TS0042

Post by glory50 »

As you see from my posts' screenshot, it is enabled. I made a longer description here:

viewtopic.php?t=39717
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest