deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

LoraTap Tuya ZigBee 3.0 Wireless 4 Gang Remote Control Switch

Open sinus61 opened this issue 3 years ago • 5 comments

Device

  • Product name: LoraTap Tuya ZigBee 3.0 Wireless 4 Gang Remote Control Switch

  • Manufacturer: _TZ3000_ufhtxr59

  • Model identifier: TS0044

  • Device type :

    • Remote https://www.loratap.com/products/ss6400zb-v2

Screenshots

grafik

Basic

grafik

Power Configuration

grafik

On/Off

grafik

The device is similar to _TZ3000_t8hzpgnd, https://github.com/dresden-elektronik/deconz-rest-plugin/issues/5731 only this has 4 buttons.

So I've added _TZ3000_ufhtxr59 to the button_maps.json and made a DDF:

{ "schema": "devcap1.schema.json", "manufacturername": "_TZ3000_ufhtxr59", "modelid": "TS0044", "product": "TS0044", "sleeper": false, "status": "Gold", "path": "/devices/_TZ3000_ufhtxr59_4gang_bat_switch.json", "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" }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "config/battery", "awake": true, "refresh.interval": 4000, "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" }, { "bind": "unicast", "src.ep": 4, "dst.ep": 1, "cl": "0x0006" } ] }

But only the battary event is working, not the button events. And there are 4 lights created.

sinus61 avatar Jun 30 '22 08:06 sinus61

So I've added _TZ3000_ufhtxr59 to the button_maps.json

It's the one in the "devices" folder ?

And there are 4 lights created.

I think it s the issue. If the DDF core is not fast enought, the legacy code create those light entry that can make problem with the state/butonevent. It's random, if you try to re-include it you can be more lucky. To check if its that, it's visible on deconz log with "info" and "info_l2" when you press the button. If you see nothing, problem with the light entry, if you see error about button or table it's a good new.

Smanar avatar Jun 30 '22 14:06 Smanar

So I've added _TZ3000_ufhtxr59 to the button_maps.json

It's the one in the "devices" folder ?

Yes, in /usr/share/deCONZ/devices/

And I've placed the DDF in /home/<DECONZUSER>/.local/share/dresden-elektronik/deCONZ/devices

sinus61 avatar Jun 30 '22 15:06 sinus61

So I m almost sure it s the problem with the legacy code too fast. And If I m right It's no more possible to delete only a "device part" in the API.

Smanar avatar Jun 30 '22 15:06 Smanar

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[bot] avatar Jul 22 '22 02:07 github-actions[bot]

For information on the next deconz version, this issue will be probably solved https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6196

Smanar avatar Jul 22 '22 15:07 Smanar

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[bot] avatar Aug 14 '22 02:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 21 '22 02:08 github-actions[bot]