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

Third Reality 3RDS17BZ Door/Window Contact #7756

Closed Heiko1977 closed 3 months ago

Heiko1977 commented 4 months ago

Is there already an existing issue for this?

Product name

Third Reality, Inc

Manufacturer

Third Reality, Inc

Model identifier

3RDS17BZ

Device type to add

Sensor

Node info

NodeInfo

Endpoints and clusters

ClusterInfo Screenshot 2024-05-10 103150 Screenshot 2024-05-10 103126

Basic

Attributes

Further relevant clusters

Power Configuration

Screenshot 2024-05-10 103753

On/Off

Screenshot 2024-05-10 103845 Screenshot 2024-05-10 103854

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

Smanar commented 4 months ago

Hello, can try this DDF ?

{
  "schema": "devcap1.schema.json",
  "manufacturername": "Third Reality, Inc",
  "modelid": "3RDS17BZ",
  "product": "Door sensor",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_OPEN_CLOSE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0500"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0402",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001",
          "0x0500"
        ]
      },
      "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": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2"
          },
          "default": 0
        },
        {
          "name": "config/enrolled",
          "public": false
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/lowbattery"
        },
        {
          "name": "state/tampered"
        },
        {
          "name": "state/open"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 7200,
          "max": 14400,
          "change":"0x00000002"
        }
      ]
    }
  ]
}
Heiko1977 commented 4 months ago

Perfect, works fine.

Thank you very much !!!

Smanar commented 4 months ago

No issue ? Do you want to make the PR to submit the device or want I make it ?

Heiko1977 commented 4 months ago

I’ve added 4 of them into deconz. Phoscon added them without a problem. States are fine.

if you like, you can submit it.

Thanks for your work.

Smanar commented 4 months ago

if you like, you can submit it.

I prefer, to have it under you name, I can explain how to do it if needed ...

Heiko1977 commented 4 months ago

if you like, you can submit it.

I prefer, to have it under you name, I can explain how to do it if needed ...

That would be very nice. I’ve never done it before.

Smanar commented 4 months ago

Easy:

You PR will appear here https://github.com/dresden-elektronik/deconz-rest-plugin/issues

After that all change you will make on your fork, will be synchronised on this page, so if there is problem, no need to restart all.

Edit: Have just see this page https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/How-to-create-a-pull-request-to-submit-a-new-Device-Description-File

github-actions[bot] commented 3 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 3 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.