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

3 gang scene switch - TUYA - TZ3000_TS0043 #7115

Closed
Dewcal opened this issue Jul 19, 2023 · 6 comments · Fixed by #7148
Closed

3 gang scene switch - TUYA - TZ3000_TS0043 #7115

Dewcal opened this issue Jul 19, 2023 · 6 comments · Fixed by #7148

Comments

@Dewcal
Copy link

Dewcal commented Jul 19, 2023

Device

  • Product name: 3 gang scene switch -TZ3000_TS0043_Switch with battery
  • Manufacturer: _TZ3000_pkeqinnt
  • Model identifier: TS0043
  • Device type : RFD
    • Switch

Screenshots

image

image

image

image

image

image

Basic

Identify

Alarms

Device Temperature

Scenes

On/Off

Level Control

Color Control

Simple Metering

Diagnostics

Other clusters that are not mentioned above

@Smanar
Copy link
Collaborator

Smanar commented Jul 19, 2023

So 2 thing to do

Can create this DDF or edit the devices\tuya_TZ3000_TS0043_3gang_remote.json

{
  "schema": "devcap1.schema.json",
  "manufacturername": ["_TZ3000_gbm10jnj", "_TZ3000_sj7jbgks", "_TZ3000_w8jwkczz", "_TZ3000_famkxci2", "_TZ3000_w3c7ouru", "_TZ3000_pkeqinnt"],
  "modelid": ["TS0043", "TS0043", "TS0043", "TS0043", "TS0043", "TS0043"],
  "product": "Tuya 3 gangs switch battery",
  "sleeper": false,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0006"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "refresh.interval": 86400,
          "parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
          "read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "refresh.interval": 86400,
          "read": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "fn": "zcl"
          },
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2"
          },
          "default": 0
        },        
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/buttonevent"
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 60,
          "max": 3600,
          "change": "0x00000001"
        }
      ]
    },    
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0006"
    },
    {
      "bind": "unicast",
      "src.ep": 2,
      "dst.ep": 1,
      "cl": "0x0006"
    },
    {
      "bind": "unicast",
      "src.ep": 3,
      "dst.ep": 1,
      "cl": "0x0006"
    }
  ]
}

And need to edit the button_maps.json file

    "Tuya3gangMap": {
        "vendor": "Tuya",
        "doc": "3-gang remote",
        "modelids": ["_TZ3000_czuyt8lz","_TZ3000_ee8nrt2l", "_TZ3000_ygvf9xzp", "_TZ3000_t8hzpgnd", "_TZ3000_wkai4ga5", "_TZ3000_bi6lpsew", "_TZ3400_keyjhapk", "_TYZB02_key8kk7r", "_TZ3400_keyjqthh", "_TZ3400_key8kk7r", "_TZ3000_vp6clf9d", "_TYZB02_keyjqthh", "_TZ3000_peszejy7", "_TZ3000_qzjcsmar", "_TZ3000_owgcnkrh", "_TZ3000_adkvzooy", "_TZ3000_arfwfgoa", "_TZ3000_a7ouggvs", "_TZ3000_rrjr1q0u", "_TZ3000_abci1hiu", "_TZ3000_dfgbtub0", "_TZ3000_rco1yzb1", "_TZ3000_gbm10jnj", "_TZ3000_5e235jpa", "_TZ3000_sj7jbgks", "_TZ3000_w8jwkczz", "_TZ3000_dziaict4", "_TZ3000_famkxci2", "_TZ3000_itb0omhv", "_TZ3000_tzvbimpq", "_TZ3000_mh9px7cq", "_TZ3000_b7bxojrg", "_TZ3000_ufhtxr59", "_TZ3000_4upl1fcj", "_TZ3000_i3rjdrwu", "_TZ3000_w3c7ouru", "_TZ3000_abci1hiu","_TZ3000_wqcbzbae", "_TZ3000_pkeqinnt"],
        "map": [

@Dewcal
Copy link
Author

Dewcal commented Jul 19, 2023 via email

@Dewcal
Copy link
Author

Dewcal commented Jul 20, 2023

Many thanks for these suggestions. I created a new ….remote.json file (having saved the original as .OLD) and put it in the users/ folder.

I then added "_TZ3000_pkeqinnt" to the “maps” file in the same folder. Exited and restarted deCONZ and am pleased to say that I now have “Switch 87” appearing.

Many thanks for this. I have now programmed the switch with 9 events / scenes and all are working - despite the fact that there appear to be four switches available! Pleased to say that battery percentage is also visible.

@Dewcal Dewcal closed this as completed Jul 20, 2023
@Dewcal
Copy link
Author

Dewcal commented Jul 20, 2023

Many thanks again fro such prompt help.

@Mimiix
Copy link
Collaborator

Mimiix commented Jul 20, 2023

Hi,

Please keep open so we can have this added to the code base

@Mimiix Mimiix reopened this Jul 20, 2023
@Smanar
Copy link
Collaborator

Smanar commented Jul 20, 2023

Ha yes BTW, someone want to make the PR ?

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

Successfully merging a pull request may close this issue.

3 participants