JohanBendz / com.tuya.zigbee

MIT License
61 stars 117 forks source link

Bug report - Button push is registered twice on TZ3000_wkai4ga5 #793

Open strejda603 opened 5 months ago

strejda603 commented 5 months ago

Hello @JohanBendz,

first of all, thank you very much for your work on Tuya Zigbee App for Homey!

Describe the bug

When pushing any button on 4 Gang Wall Remote (TZ3000_wkai4ga5), a light switch flow assigned to that button is run twice.

To Reproduce

Steps to reproduce the behavior:

  1. Create a flow (see screenshot)
  2. Push any button on the actual remote
  3. See error

Expected behavior

After pushing a button, a flow should run only once.

App and Homey version

Screenshots

Screenshot

Additional context

Small talk on Community Forum Reference to another issue

pwvandeursen commented 5 months ago

You need to change the setting of the unit from switch to push button mode. this can only be done in tbe Tuya gateway which you need to buy and connect the unit to

strejda603 commented 5 months ago

You need to change the setting of the unit from switch to push button mode. this can only be done in tbe Tuya gateway which you need to buy and connect the unit to

What? So you're telling me, that this 400$ device can't change mode of 20$ button and 25$ gateway can? 😮

pwvandeursen commented 5 months ago

Eeeuh yes, because it is not made to change all settings of all different devices of all different suppliers. Needs to be programed in. And again tuya support is not made by Homey but by Johan and all his supporting co-collaborators.

strejda603 commented 5 months ago

When I try to use that switch when it's in "Interview mode", it works good without duplications...

strejda603 commented 5 months ago

I have found a "solution" for this bug:

I've created a new numeric variables with value 4, and then using Better Logic Library app in a flow (as described below), I was able to make buttons work good without purchasing any additional gateway and changing modes. If you're interested, you could probably somehow integrate it in the driver. 🙂

Screenshot