dresden-elektronik / deconz-rest-plugin

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

Tuya Combustible Gas sensor #7786

Open cosmo84 opened 1 month ago

cosmo84 commented 1 month ago

Is there already an existing issue for this?

Product name

Tuya Zigbee Smart Home Gas Sensor

Manufacturer

_TZE204_chbyv06x

Model identifier

TS0601

Device type to add

Sensor

Node info

image

Endpoints and clusters

image

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

cosmo84 commented 1 month ago

Any idea how to add this device with a matching DDF? I'm quite confused that it is added as a smart plug even though I used "add sensor" within Phoscon App.

cosmo84 commented 2 weeks ago

I checked some sites trying to start something myself, following e.g. https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-support-Tuya-manufacturer-specific-cluster-%26-How-to-know-which-datapoints-a-Tuya-device-provides%3F

What I can share is the output of the Tuya Degug:

17:52:16:292 Tuya debug 4 : Address 0xA4C13822C670514D Payload 051c0104000101 17:52:16:293 Tuya debug 5 : Status: 5 Transid: 28 Dp: 1025 (0x04,0x01) Fn: 0 Data 1 17:52:16:483 Tuya debug 4 : Address 0xA4C13822C670514D Payload 051d0202000400000000 17:52:16:484 Tuya debug 5 : Status: 5 Transid: 29 Dp: 514 (0x02,0x02) Fn: 0 Data 0 17:52:16:671 Tuya debug 4 : Address 0xA4C13822C670514D Payload 051e0604000100 17:52:16:672 Tuya debug 5 : Status: 5 Transid: 30 Dp: 1030 (0x04,0x06) Fn: 0 Data 0 17:52:16:861 Tuya debug 4 : Address 0xA4C13822C670514D Payload 051f07020004000000b4 17:52:16:862 Tuya debug 5 : Status: 5 Transid: 31 Dp: 519 (0x02,0x07) Fn: 0 Data 180 17:52:17:045 Tuya debug 4 : Address 0xA4C13822C670514D Payload 05200801000100 17:52:17:046 Tuya debug 5 : Status: 5 Transid: 32 Dp: 264 (0x01,0x08) Fn: 0 Data 0 17:52:17:234 Tuya debug 4 : Address 0xA4C13822C670514D Payload 05210904000101 17:52:17:235 Tuya debug 5 : Status: 5 Transid: 33 Dp: 1033 (0x04,0x09) Fn: 0 Data 1 17:52:17:419 Tuya debug 4 : Address 0xA4C13822C670514D Payload 05220a01000100 17:52:17:420 Tuya debug 5 : Status: 5 Transid: 34 Dp: 266 (0x01,0x0A) Fn: 0 Data 0 17:52:17:607 Tuya debug 4 : Address 0xA4C13822C670514D Payload 05230d01000101 17:52:17:608 Tuya debug 5 : Status: 5 Transid: 35 Dp: 269 (0x01,0x0D) Fn: 0 Data 1

I don't understand which datapoint contains which information of the gas sensor, so I'm stuck again. Any help is much appreciated.