-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DDF for Tuya Photoelectric smoke detector (#6736)
* Add DDF for Tuya Photoelectric Smoke Detector _TZE200_m9skfctm Create DDF for Tuya Photoelectric Smoke Detector _TZE200_m9skfctm Description is in #6734 * Invert the fire logic For this tuya device 0 means fire
- Loading branch information
Showing
1 changed file
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"schema": "devcap1.schema.json", | ||
"manufacturername": "_TZE200_m9skfctm", | ||
"modelid": "TS0601", | ||
"vendor": "Tuya", | ||
"product": "Photoelectric Smoke sensor", | ||
"sleeper": true, | ||
"status": "Silver", | ||
"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", | ||
"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, | ||
"refresh.interval": 3600, | ||
"read": { | ||
"fn": "none" | ||
}, | ||
"parse": { | ||
"dpid": 15, | ||
"eval": "Item.val = Attr.val;", | ||
"fn": "tuya" | ||
}, | ||
"default": 0 | ||
}, | ||
{ | ||
"name": "config/enrolled", | ||
"public": false | ||
}, | ||
{ | ||
"name": "config/on" | ||
}, | ||
{ | ||
"name": "config/pending" | ||
}, | ||
{ | ||
"name": "config/reachable" | ||
}, | ||
{ | ||
"name": "state/errorcode", | ||
"read": { | ||
"fn": "none" | ||
}, | ||
"parse": { | ||
"dpid": 11, | ||
"eval": "Item.val = String(Attr.val);", | ||
"fn": "tuya" | ||
}, | ||
"default": "0" | ||
}, | ||
{ | ||
"name": "state/fire", | ||
"awake": true, | ||
"read": { | ||
"fn": "none" | ||
}, | ||
"parse": { | ||
"dpid": 1, | ||
"eval": "Item.val = (Attr.val == 0 ? true : false);", | ||
"fn": "tuya" | ||
}, | ||
"default": false | ||
}, | ||
{ | ||
"name": "state/lastupdated" | ||
}, | ||
{ | ||
"name": "state/test", | ||
"read": { | ||
"fn": "none" | ||
}, | ||
"parse": { | ||
"dpid": 101, | ||
"eval": "Item.val = Attr.val;", | ||
"fn": "tuya" | ||
}, | ||
"default": 0 | ||
} | ||
] | ||
} | ||
], | ||
"bindings": [ | ||
{ | ||
"bind": "unicast", | ||
"src.ep": 1, | ||
"cl": "0xEF00" | ||
} | ||
] | ||
} |