Moes Tuya Scene Switch Battery Drain

Hey :slight_smile:

I bought this Moes Tuya 3-Way Scene Switch

and have a RaspBee II Coordinator (deconz). In General the Switch works very good but the Battery (CR2430) is down to 2.7 V after a couple of days (maybe 5-6). Then LEDs of the Switch start flashing continuously.

Otherwise I have no problems with my Zigbee network. What could be the reason for this? What other information do you need to be able to help me? What can I do to find out what the problem could be?

Thanks a lot

Jens

I found this Info: Update _TZ3000_ygvf9xzp_4gang_remote.json by sinus61 · Pull Request #6744 · dresden-elektronik/deconz-rest-plugin · GitHub

… but I honestly don’t understand what that means for me or what I have to do to solve the problem

Can try with this DDF

{
  "schema": "devcap1.schema.json",
  "uuid": "d333ea82-790f-42e4-ac3b-c255f67a95be",
  "manufacturername": [
    "_TZ3000_gbm10jnj",
    "_TZ3000_sj7jbgks",
    "_TZ3000_w8jwkczz",
    "_TZ3000_famkxci2",
    "_TZ3000_w3c7ouru",
    "_TZ3000_yw5tvzsk",
    "_TZ3000_pkeqinnt"
  ],
  "modelid": [
    "TS0043",
    "TS0043",
    "TS0043",
    "TS0043",
    "TS0043",
    "TS0043",
    "TS0043"
  ],
  "vendor": "Tuya",
  "product": "3-gang remote (TS0043)",
  "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:attr",
            "ep": 1,
            "cl": "0x0000",
            "at": "0x0001",
            "script": "tuya_swversion.js"
          },
          "read": {
            "fn": "zcl:attr",
            "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:attr"
          },
          "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"
        },
        {
          "name": "config/tuya_unlock"
        }
      ]
    }
  ],
  "bindings": [
    {
      "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"
    }
  ]
}

Have added the tuya unlock sequence and removed the bind/report.
Or better edit the devices\tuya_TZ3000_TS0043_3gang_remote.json file.

Hi @Smanar

Thank a lot. i will try it.

to make sure i´m doing it right:

i can not edit it in deconz because i get a “failed to write…” message after editing the DDF inside deconz.

So i did it via the terminal using “sudo nano”.

What do i have todo after editing the file? If i try to open the new file in the deconz DDF editor it also says “Failed to open…”:

so i just restarted deconz.

do i have to delete and add the device to “apply” the changes?

What is your OS ? Real OS or docker ?
Have tried the DDF on external website, it’s fine for me, sudo nano need to work.

Don’t use the editor, too much issues, only use it to check, never to save/edit.

Just edit the file and restart deconz, deconz load DDF only at start, and it need to pick the modified one.