-
Notifications
You must be signed in to change notification settings - Fork 482
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
New device request - TS0601 / TZE200_locansqn #6972
Comments
Hi, can you please add all screenshots ? |
Done |
Great :) |
Can you try this DDF ?
Could get/configure other informations using other dpip but will see furthermore if we could use them in REST-APi TempUnitConvert: 9 (1 celsius, 2 fahrenheit), |
Iam running on HAOS. |
May be you could find some information here : #6666 (comment) |
Do you see something special in log ? |
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. |
I have also bought this device - looks like it is related to see zigpy/zha-device-handlers#1286 and https://smarthomescene.com/reviews/zigbee-temperature-humidity-sensor-with-a-screen-sz-t04-review/ |
adding the manufacturername _TZE200_locansqn to the ddf file /usr/share/deCONZ/devices/tuya/_TZE200_TS0601_humidity_temp.json helped temperature and humidity are now there - EDIT: battery is after some time also showing up.
api/... /sensors now returns: "43": {
"config": {
"battery": 100,
"offset": 0,
"on": true,
"reachable": true
},
"etag": "39c19665be98752cac49f560e695a78f",
"lastannounced": "2023-06-28T19:50:22Z",
"lastseen": "2023-06-28T20:00Z",
"manufacturername": "_TZE200_locansqn",
"modelid": "TS0601",
"name": "Humidity 43",
"state": {
"humidity": 4100,
"lastupdated": "2023-06-28T20:00:30.573"
},
"swversion": "1.0.8",
"type": "ZHAHumidity",
"uniqueid": "a4:c1:38:1c:1a:a7:1f:cf-01-0405"
},
"44": {
"config": {
"battery": 100,
"offset": 0,
"on": true,
"reachable": true
},
"etag": "5bfbc09a5ac91010d4a4b76ee6ab30da",
"lastannounced": "2023-06-28T19:50:22Z",
"lastseen": "2023-06-28T20:00Z",
"manufacturername": "_TZE200_locansqn",
"modelid": "TS0601",
"name": "Temperature 44",
"state": {
"lastupdated": "2023-06-28T20:00:30.445",
"temperature": 2520
},
"swversion": "1.0.8",
"type": "ZHATemperature",
"uniqueid": "a4:c1:38:1c:1a:a7:1f:cf-01-0402"
} |
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. |
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. |
On my side, I've got the same device, but the humidity was reported as 5.5% instead of 55%. So I've modify the json with : {
"name": "state/humidity",
"parse": {"fn": "tuya", "dpid": 2, "eval": "Item.val = 100 * Attr.val;" },
"read": {"fn": "tuya"},
"default": 0
},
Not sure if it's the good way (first time I modify deconz config). |
Where did you get this 5.5% ? Not thru Rest-Api surely ! |
About the TempSensitivity configurable option, do you have a wiki/tuto to edit them manually, since it's not in the API yet ?
I didn't found the option with the VNC Deconz App.
Using GUI and request command from Tuya Cluster or could be added into DDF using attribute config/sensitivity into temperature sensor subdevice. A bit like it as been done for https://github.com/dresden-elektronik/deconz-rest-plugin/blob/0063906e24b99ddb952b9078329423ae868472d5/devices/tuya/ZY-M100_human_breathing_presence.json#L200C20-L200C20 but with dpid 19
Edit :
Somehing like this added before
{
"name": "state/temperature",
```
{
"name": "config/sensitivity",
"description": "Temperature sensitivity in tenths of a degree celsius. Ex 1 means 0.1C",
"range": [1, 500],
"read": {
"fn": "none"
},
"write": {
"dpid": 19,
"dt": "0x2b",
"eval": "Item.val / 10;",
"fn": "tuya"
},
"parse": {
"dpid": 19,
"eval": "Item.val = Attr.val * 10;",
"fn": "tuya"
},
"default": 0
},
```
and same for humidity before
{
"name": "state/humidity",
insert
```
{
"name": "config/sensitivity",
"description": "Humidity sensitivity in %",
"range": [1, 100],
"read": {
"fn": "none"
},
"write": {
"dpid": 20,
"dt": "0x2b",
"eval": "Item.val ;",
"fn": "tuya"
},
"parse": {
"dpid": 20,
"eval": "Item.val = Attr.val;",
"fn": "tuya"
},
"default": 0
},
```
But not sure about the dpid because other project use differents dpip https://github.com/jacekk015/zha_quirks/blob/17033c8de6ef036af6f5b148b046e3f8e4076548/ts0601_temperature.py#L843
|
My current file is : {
"schema": "devcap1.schema.json",
"manufacturername": [
"_TZE200_locansqn",
"_TZE200_lve3dvpy",
"_TZE200_c7emyjom"
],
"modelid": [
"TS0601",
"TS0601",
"TS0601"
],
"vendor": "Tuya",
"product": "Tuya temp and humidity sensor with clock",
"sleeper": true,
"status": "Gold",
"subdevices": [
{
"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"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/battery",
"read": {
"fn": "none"
},
"parse": {
"dpid": 4,
"eval": "Item.val = Attr.val;",
"fn": "tuya"
},
"default": 0
},
{
"name": "config/offset",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/humidity",
"read": {
"fn": "tuya"
},
"parse": {
"dpid": 2,
"eval": "Item.val = 100 * Attr.val;",
"fn": "tuya"
},
"default": 0
},
{
"name": "state/lastupdated"
}
]
},
{
"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"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/battery",
"read": {
"fn": "none"
},
"parse": {
"dpid": 4,
"eval": "Item.val = Attr.val;",
"fn": "tuya"
},
"default": 0
},
{
"name": "config/offset",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/sensitivity",
"description": "Report temperature sensibility (from 1 to 10), in *10 value (6 for 0.6 precision). Default 6",
"range": [1, 10],
"parse": {
"dpid": 19,
"eval": "Item.val = Attr.val;",
"fn": "tuya"
},
"read": {
"fn": "none"
},
"write": {
"dpid": 19,
"eval": "Item.val / 10;",
"fn": "tuya"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/temperature",
"read": {
"fn": "none"
},
"parse": {
"dpid": 1,
"eval": "Item.val = 10 * Attr.val;",
"fn": "tuya"
},
"default": 0
}
]
}
]
} I didn't find a good doc about the read/write config, not sure if I've read it well. To config my sensitivity, I use the API: curl -X GET -H "Content-Type: application/json" "http://127.0.0.1:70/api/<API-KEY>/sensors/" | jq -> search for the ID of your sensor curl -X PUT -H "Content-Type: application/json" "http://127.0.0.1:70/api/<API-KEY>/sensors/<SENSOR-ID>/config" --data '{"sensitivity": 1}' -> confirmation with : curl -X GET -H "Content-Type: application/json" "http://127.0.0.1:70/api/<API-KEY>/sensors/<SENSOR-ID>/" | jq That is the max I can do, I don't know how to get this value spawn on home-assistant (for my case)
@BabaIsYou I divide by /100 on my home-assistant. Deconz was giving me 500 instead of 5000 |
Thank for your replies :-)
|
Hi,
i buy this thermomether on Aliexpress :-)
but deconz is not supported :-(
Screenshot of the Groups cluster
Screenshot of the Scenes cluster
Screenshot of the Tuya specific cluster
Screenshot of the Basic cluster
Screenshot of the Node Info Panel
Screenshot of the OTAU cluster
Screenshot of the Time cluster
The text was updated successfully, but these errors were encountered: