dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 497 forks source link

bseed dimmer _TZE200_xxxxxx TS0601 with new DDF now is working #7477

Closed Onshuis closed 8 months ago

Onshuis commented 8 months ago

Is there already an existing issue for this?

Product name

BSEED zigbee dimmer Touch Switch

Manufacturer

_TZE200_3p5ydos3

Model identifier

TS0601

Device type to add

Light

Node info

image

Endpoints and clusters

image

Basic

image

Further relevant clusters

Power Configuration

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

In the screenshots, "dimmer eettafel" is the same device. deconz sees them as power socket. On the switch itself it works, i can dim and brighten the lights. With deconz, only on and off.

Onshuis commented 8 months ago

Ah so no i can dim with phoscon, so im happy, but also with this, what do i do with the DDF file i created? It seems the same as https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6422 So what to do next? I want to close both requests, but i do not know what to do with the created DDF json file?

{ "schema": "devcap1.schema.json", "manufacturername": "_TZE200_3p5ydos3", "modelid": "TS0601", "vendor": "Tuya Genric", "product": "Smart Dimmer Switch 1 gang", "sleeper": false, "status": "Gold", "subdevices": [ { "type": "$TYPE_DIMMABLE_PLUGIN_UNIT", "restapi": "/lights", "uuid": [ "$address.ext", "0x01" ], "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion", "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": "state/alert", "default": "none", "public": false }, { "name": "state/on", "parse": {"fn": "tuya", "dpid": 1, "eval": "Item.val = Attr.val;" }, "write": {"fn": "tuya", "dpid": 1, "dt": "0x10", "eval": "Item.val == 1 ? 1 : 0;"}, "read": {"fn": "tuya"}, "refresh.interval": 300 }, { "name": "state/bri", "parse": {"fn": "tuya", "dpid": 2, "eval": "Item.val = (Attr.val / 1000.0) * 254.0;"}, "write": {"fn": "tuya", "dpid": 2, "dt": "0x2b", "eval": "(Item.val / 254.0) * 1000.0;"}, "read": {"fn": "none"}, "refresh.interval": 84000 }, { "name": "state/reachable" } ] } ] }

Onshuis commented 8 months ago

Ok got it.

Onshuis commented 8 months ago

Ill keep using the DDF in my .local directory, it works fine this way.