ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

Tuya Soil Sensor #123

Closed BEskandari closed 1 year ago

BEskandari commented 1 year ago

Is it possible to support the Tuya Soil Sensor by displaying also the ZHAMoisture ? For the time being I am able to see only the ZHATemperature.

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6731#issuecomment-1489183257

ebaauw commented 1 year ago

Do they indeed report state/moisture in units of 0.01%, as per the Zigbee spec? So values from 0 to 10000 for 0% to 100%.

Could you please list the resources for this device, as reported by the deCONZ REST API? I'm not sure if Homebridge deCONZ issues a warning for unknown ZHAMoisture type, listing the resource, but if it does, please list that warning as well.

BEskandari commented 1 year ago

This is the resources reported by Deconz API: Keep in mind that for the time being the moisture value is not correct. As you mention we might need to multiply the value by 10000. Because as of now the value is displayed without any coefficient, and it correspond to the value of 32% of another moisture sensor.

{ "config": { "battery": 100, "offset": 0, "on": true, "reachable": true }, "etag": "a0b710211ab1ceed84b223a5a77d233c", "lastannounced": null, "lastseen": "2023-03-30T21:05Z", "manufacturername": "_TZE200_myd45weu", "modelid": "TS0601", "name": "Moisture 21", "state": { "lastupdated": "2023-03-30T21:01:21.331", "moisture": 28 }, "type": "ZHAMoisture", "uniqueid": "a4:c1:38:af:22:d1:cc:76-01-0408" }

and last but not least this is the message that i get on Homebridge Deconz

[30/03/2023, 23:53:50] [deCONZ] HB-deCONZ: warning: A4C138AF22D1CC76: /sensors/21: ZHAMoisture: ignoring unknown sensors type [30/03/2023, 23:53:50] [deCONZ] HB-deCONZ: warning: recommended version: deCONZ v2.20.1

ebaauw commented 1 year ago

In v0.1.11. Note that Homebridge deCONZ expects state/moisture to be in units of 0.01% (just like state.humidity).

BEskandari commented 1 year ago

Hi Erik, thanks it is working now with the latest version, I have the moisture in the Eve App.