Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TuYa TS004F action exposes not as expected #8262

Closed
Kilkenny-82 opened this issue Aug 5, 2021 · 2 comments
Closed

TuYa TS004F action exposes not as expected #8262

Kilkenny-82 opened this issue Aug 5, 2021 · 2 comments
Labels
new device support New device support request

Comments

@Kilkenny-82
Copy link

Not sure if it should go in New device support, but recently after I updated Zigbee2MQTT to the latest version my TS004F was supported. I bought 2 of these, one is described as a TS0044 and was supported right away, the other ordered some time later added as TS004F. They both look very much the same, only the actions coming from the switches are very different. The TS0044 has for each of the 4-buttons a Press, Double Press and Hold (total of 12 actions). The TS004F has on, off and brightness step and move up & down.
Shouldn't they work the same, since they are practically the same? I would have expected something like this:
const definition = { zigbeeModel: ['TS004F'], model: 'TS004F', vendor: 'TuYa', description: 'Wireless switch with 4 buttons', fromZigbee: [fz.tuya_on_off_action, fz.battery], toZigbee: [], exposes: [e.battery(), e.action(['1_single', '1_double', '1_hold', '2_single', '2_double', '2_hold', '3_single', '3_double', '3_hold', '4_single', '4_double', '4_hold'])], };

@Kilkenny-82 Kilkenny-82 added the new device support New device support request label Aug 5, 2021
@Koenkk
Copy link
Owner

Koenkk commented Aug 5, 2021

While these devices may look very similar from the outside, the software on these device really differs.

  • TS0044: only sends non standard zigbee commands
  • TS004F: sends native zigbee commands (e.g. turn on /off command). This is what you see in the actions.

@Koenkk Koenkk closed this as completed Aug 5, 2021
@ARafaelSF
Copy link

@Koenkk

With Tuya Hub It´s possible change mode, to device works like dimmer ou trigger.

If I made a sniff, do you think it is possible to add this n option?

WhatsApp Image 2021-10-05 at 11 40 42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

3 participants