dresden-elektronik / deconz-rest-plugin

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

tuya zignee smoke detector TS0601 (_TZE200_rccxox8p) #7600

Closed alinelena closed 6 months ago

alinelena commented 7 months ago

Is there already an existing issue for this?

Product name

Smart Zigbnee Photoelectric smoke detector zigbee-smoke-lh

Manufacturer

_TZE200_rccxox8p

Model identifier

TS0601

Device type to add

Sensor

Node info

no idea

Endpoints and clusters

no idea

Basic

image

Further relevant clusters

Power Configuration

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

alinelena commented 7 months ago

using this ddf which is practically the one from this issue https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6236

the device gets recognized in phoscon and I can add it in home assistant image

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZE200_rccxox8p",
  "modelid": "TS0601",
  "vendor": "Tuya",
  "product": "Smoke sensor",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_FIRE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0xEF00"
      ],
      "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",
          "parse": {"fn": "tuya", "dpid": 14, "eval": "if (Attr.val == 0) { Item.val = 0 } else if (Attr.val == 1) { Item.val = 50 } else { Item.val = 100 }" },
          "read": {"fn": "none"}
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/tampered",
          "parse": {"fn": "tuya", "dpid": 4, "eval": "Item.val = (Attr.val != 0);" },
          "read": {"fn": "none"}
        },
        {
          "name": "state/fire",
          "parse": {"fn": "tuya", "dpid": 1, "eval": "Item.val = (Attr.val == 0);" },
          "read": {"fn": "tuya"}
        },
        {
          "name": "state/test",
          "parse": {"fn": "tuya", "dpid": 8, "eval": "Item.val = Attr.val;" },
          "read": {"fn": "tuya"}
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ]
}
alinelena commented 7 months ago

in preview the loaded ddf looks like

image

github-actions[bot] commented 6 months ago

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] commented 6 months ago

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.