Open amnesia106 opened 2 months ago
It seem it's just a classic device that don't need the tuya cluster, but need the tuya unlock sequence Can try rhis DDF
{
"schema": "devcap1.schema.json",
"manufacturername": "_TZ3000_zl1kmjqx",
"modelid": "TY0201",
"vendor": "Tuya",
"product": "Temperature and humidity locked sensor",
"sleeper": true,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_TEMPERATURE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0402"
],
"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:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl:attr", "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:attr"
}
},
{
"name": "config/offset"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/tuya_unlock"
},
{
"name": "state/lastupdated"
},
{
"name": "state/temperature",
"awake": true
}
]
},
{
"type": "$TYPE_HUMIDITY_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0405"
],
"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:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl:attr", "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:attr"
}
},
{
"name": "config/offset"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/humidity",
"awake": true
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 3600,
"max": 84600,
"change": "0x00000002"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0402",
"report": [
{
"at": "0x0000",
"dt": "0x29",
"min": 60,
"max": 300,
"change": "0x00000064"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0405",
"report": [
{
"at": "0x0000",
"dt": "0x21",
"min": 60,
"max": 300,
"change": "0x00000064"
}
]
}
]
}
How can i change that?
Depend of OS, what is your ? You just need to create a text file called whatyouwant.json in a "devices" folder with this contain. But the "devices" folder location depend of OS.
It seem it's just a classic device that don't need the tuya cluster, but need the tuya unlock sequence Can try rhis DDF
{ "schema": "devcap1.schema.json", "manufacturername": "_TZ3000_zl1kmjqx", "modelid": "TY0201", "vendor": "Tuya", "product": "Temperature and humidity locked sensor", "sleeper": true, "status": "Gold", "subdevices": [ { "type": "$TYPE_TEMPERATURE_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0x0402" ], "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:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"}, "read": {"fn": "zcl:attr", "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:attr" } }, { "name": "config/offset" }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "config/tuya_unlock" }, { "name": "state/lastupdated" }, { "name": "state/temperature", "awake": true } ] }, { "type": "$TYPE_HUMIDITY_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0x0405" ], "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:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"}, "read": {"fn": "zcl:attr", "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:attr" } }, { "name": "config/offset" }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "state/humidity", "awake": true }, { "name": "state/lastupdated" } ] } ], "bindings": [ { "bind": "unicast", "src.ep": 1, "cl": "0x0001", "report": [ { "at": "0x0021", "dt": "0x20", "min": 3600, "max": 84600, "change": "0x00000002" } ] }, { "bind": "unicast", "src.ep": 1, "cl": "0x0402", "report": [ { "at": "0x0000", "dt": "0x29", "min": 60, "max": 300, "change": "0x00000064" } ] }, { "bind": "unicast", "src.ep": 1, "cl": "0x0405", "report": [ { "at": "0x0000", "dt": "0x21", "min": 60, "max": 300, "change": "0x00000064" } ] } ] }
This DDF Works - Thanks !
Please keep it open. So we can get it in the code base :)
It's the first DDF for locked multi sensor, so better to create a new DDF Do you want to make it yourself or want I make it ?
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.
@amnesia106 ?
Do you want to make it yourself or want I make it ?
Were do i put the textfile?
Depend of OS. On classic OS
All DDF provided directly with deCONZ typically reside in /usr/share/deCONZ/devices/
on a Linux system and are loaded first. However, files residing in the home directory of the user running deCONZ (e.g. /home/<DECONZUSER>/.local/share/dresden-elektronik/deCONZ/devices
) will override the pre-packaged files to allow users to amend and keep their own files if desired.
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.
Is there already an existing issue for this?
Product name
_TZ3000_zl1kmjqx
Manufacturer
_TZ3000_zl1kmjqx
Model identifier
TY0201
Device type to add
Sensor
Node info
Endpoints and clusters
Basic
Further relevant clusters
Power Configuration
On/Off
Level Control
Color Control
Thermostat
Simple Metering
Electrical Measurement
Any other cluster of relevance/interest