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

Combine two Tuya water leak sensor DDFs #6920

Merged
merged 5 commits into from
May 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
252 changes: 132 additions & 120 deletions devices/tuya/_TZ3000_TS0207_water_leak_sensor.json
Original file line number Diff line number Diff line change
@@ -1,122 +1,134 @@
{
"schema": "devcap1.schema.json",
"manufacturername": ["_TZ3000_kyb656no","_TZ3000_fxvjhdyl","_TZ3000_eit7p838","_TZ3000_t6jriawg","_TZ3000_85czd6fy","_TYZB01_sqmd19i1","_TYZB01_o63ssaah"],
"modelid": ["TS0207","TS0207","TS0207","TS0207","TS0207","TS0207","TS0207"],
"vendor": "TuYa",
"product": "Tuya based Flooding detector",
"sleeper": true,
"status": "Silver",
"subdevices": [
{
"type": "$TYPE_WATER_LEAK_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0500"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0402",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x0003",
"0x0500"
],
"out": [
"0x0019"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid",
"awake": true
},
{
"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": "config/battery",
"awake": true,
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2",
"fn": "zcl"
}
},
{
"name": "config/checkin",
"awake": true
},
{
"name": "config/enrolled",
"public": true
},
{
"name": "config/on"
},
{
"name": "config/pending"
},
{
"name": "config/reachable"
},
{
"name": "state/lastupdated"
},
{
"name": "state/water",
"awake": true
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 3600,
"max": 14400,
"change": "0x00000001"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0500"
}
]
"schema": "devcap1.schema.json",
"manufacturername": ["_TZ3000_d16y6col", "_TZ3000_ww9i3e0y", "_TZ3000_qhozxs2b", "_TZ3000_85czd6fy", "_TZ3000_ocjlo4ea",
"_TZ3000_kyb656no", "_TZ3000_fxvjhdyl", "_TZ3000_eit7p838", "_TZ3000_t6jriawg", "_TZ3000_85czd6fy", "_TYZB01_sqmd19i1",
"_TYZB01_o63ssaah", "_TZ3000_it1hm1cr", "_TZ3000_upgcbody"
],
"modelid": ["TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207", "TS0207",
"TS0207", "TS0207"
],
"vendor": "Tuya",
"product": "Tuya water leak sensor",
"sleeper": true,
"status": "Gold",
"subdevices": [{
"type": "$TYPE_WATER_LEAK_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0500"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0402",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x0003",
"0x0500"
],
"out": [
"0x0019"
]
},
"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": "config/battery",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2"
}
},
{
"name": "config/enrolled"
},
{
"name": "config/checkin"
},
{
"name": "config/on"
},
{
"name": "config/pending"
},
{
"name": "config/reachable"
},
{
"name": "state/lastupdated"
},
{
"name": "state/lowbattery"
},
{
"name": "state/tampered"
},
{
"name": "state/water"
}
]
}],
"bindings": [{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0001",
"report": [{
"at": "0x0021",
"dt": "0x20",
"min": 3600,
"max": 14400,
"change": "0x00000001"
}]
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0500"
}
]
}
123 changes: 0 additions & 123 deletions devices/tuya/_TZ3000_water_sensor.json

This file was deleted.