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 Smart Scene Switch 4-Gang Battery #8075

Closed
1 task done
YvesSun23 opened this issue Dec 27, 2024 · 9 comments
Closed
1 task done

Tuya Smart Scene Switch 4-Gang Battery #8075

YvesSun23 opened this issue Dec 27, 2024 · 9 comments

Comments

@YvesSun23
Copy link

Is there already an existing issue for this?

  • I have searched the existing issues and there is none for my device

Product name

Smart Scene Switch 4-Gang

Manufacturer

_TZ3000_0ht8dnxj

Model identifier

TS004F

Device type to add

Switch

Node info

I try to include a Tuya compatible 4 gang scene switch (12 scenes).
4 buttons with single press, double press and long press.
I found on my RPi with ConbeeII the _TZ3000_TS004F_switch.json but it's only a single switch.

IMG_0617

Bildschirmfoto 2024-12-26 um 19 23 28

Endpoints and clusters

Bildschirmfoto 2024-12-27 um 07 53 26

Basic

Bildschirmfoto 2024-12-26 um 19 26 17

Further relevant clusters

Power Configuration

Bildschirmfoto 2024-12-26 um 19 24 02

On/Off

Bildschirmfoto 2024-12-26 um 19 26 01

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

@Smanar
Copy link
Collaborator

Smanar commented Dec 27, 2024

Hello what is your OS ?
You need to add your model to this DDF for exemple https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/_TZ3000_ja5osu5g_smart_button.json
But need to edit the buttonmap file, and not easy on all OS.

@YvesSun23
Copy link
Author

Hi, it's Linux running on a raspberry.
Where can I find the button map file?

@Smanar
Copy link
Collaborator

Smanar commented Dec 27, 2024

Ha nice so it's easy, on my side I have it in /usr/share/deCONZ/devices/button_maps.json
Just add your model to this list

        "TuyaDimmerMap": {
            "vendor": "Tuya",
            "doc": "4-gang remote",
            "modelids": ["_TZ3000_xabckq1v"],
            "map": [

And restart deconz after having edited the DDF too.

And BTW you can use too "_TZ3000_TS004F_switch.json" but this file haven't the tuya unlock feature (and as IDK if your device need it ...)

The importany thing is the clusters used, not the button number, thoses devices use only the endpoint 0x01 and clusters 0x0006 and 0x0008 so DDF are compatibles.

2 gangs use 2 endpoint, 3 gangs 3 endpoint (and ect ...), but scene switch have only 1 endpoint.

You can miss some requests, but will see later how to add them using logs.

The name is TuyaDimmerMap, but it's a scene switch too #5686

Edit:
I m looking the PR , and was forced to add a hack to make the code working, I hope deconz have evolved enought for your device don't need it too.

@YvesSun23
Copy link
Author

Thank you for your assistance. The system is generally working, but I am experiencing some issues that I may not fully understand.

  1. In the Phoscon app, the mapping for on/off functions for all four keys is functioning correctly. However, I would like to know if it is possible to implement a feature similar to that of Ikea switches, where a single press turns the light on and a long press dims it up, among other functionalities.
Bildschirmfoto 2024-12-27 um 19 44 15 Bildschirmfoto 2024-12-27 um 19 44 23
  1. Additionally, in HomeKit, it only shows as a single switch with options for single press, double press, and long press.

IMG_0621

IMG_0622

@YvesSun23
Copy link
Author

I have used the _TZ3000_ja5osu5g_smart_button.json file

@Smanar
Copy link
Collaborator

Smanar commented Dec 28, 2024

I m sorry but I don't know phoscon, and IDK how this device is handled by their code.
If the code is working you need to have diffeent values on state/buttonevent field, with value like X00Y, X is the button number and Y the action.

@YvesSun23
Copy link
Author

ok, that's no problem I will try it by myself.
Thank you very much for your help :)

Copy link
Contributor

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Jan 19, 2025
Copy link
Contributor

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants