Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZigBee water leakage sensor #6522

Closed
Chris-126 opened this issue Nov 10, 2022 · 8 comments · Fixed by #6244
Closed

ZigBee water leakage sensor #6522

Chris-126 opened this issue Nov 10, 2022 · 8 comments · Fixed by #6244

Comments

@Chris-126
Copy link

Device

  • Product name: ZigBee water leakage sensor
  • Manufacturer: _TZ3000_qhozxs2b
  • Model identifier: TS0207
  • Device type :
    • Sensor

Screenshots

Basic

image

Identify

image

Power Configuration

image

IAS Zone

image
image

@Smanar
Copy link
Collaborator

Smanar commented Nov 10, 2022

Hello can you try this DDF

{
  "schema": "devcap1.schema.json",
  "manufacturername": ["_TZ3000_d16y6col", "_TZ3000_ww9i3e0y", "_TZ3000_qhozxs2b"],
  "modelid": ["TS0207", "TS0207", "TS0207"],
  "vendor": "Tuya",
  "product": "Tuya water sensor",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "ZHAWater",
      "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",
          "awake": true,
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2"
          }
        },
        {
          "name": "config/enrolled"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/lowbattery",
          "awake": true
        },
        {
          "name": "state/tampered",
          "awake": true
        },
        {
          "name": "state/water",
          "awake": true
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 60,
          "max": 3600,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0500"
    }
  ]
}

@Chris-126
Copy link
Author

@Smanar actually, I stumbled upon this DDF option ... wasn't aware of it until this day.
This works like a charm!! Thank you very much!!!!!!!

@Chris-126
Copy link
Author

Actually, one issue. The battery shows 0%.

@Smanar
Copy link
Collaborator

Smanar commented Nov 10, 2022

Lol, I think I have issue on battery on my 4 / 5 last DDF ^^

Pls wait some hours, then if the value is still 0, read the attribute 0x0021 in the cluster 0x0001 with the GUI, it need to force an update, if yes bind issue, else DDF issue or the device don't support it (value are 0 too on your capture)

@Chris-126
Copy link
Author

Hmm, for whatever reason the battery is now showing correct without any change? Great! Thanks alot!

Now let's see how long the sensors battery is doing in the fridge ;) We had some issues with water there... kids being careless etc. and we didn't notice the amount of water behind the drawers. Sometime I have funny ideas :P

@Smanar Smanar linked a pull request Nov 10, 2022 that will close this issue
@Smanar
Copy link
Collaborator

Smanar commented Nov 10, 2022

Lol, but I am not optimistic for battery life ^^

Ps:
Have added your device here #6244

@github-actions
Copy link

github-actions bot commented Dec 2, 2022

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 github-actions bot added the stale label Dec 2, 2022
@github-actions
Copy link

github-actions bot commented Dec 9, 2022

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 github-actions bot closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants