@cbhous @Madcodger
Blockquote
this should be the code with the wh52 integrated based on latest release version.. i dont have one to test plus am not at home but let me know
based on the list of new attributes you posted.. thanks.. weird it reports soil_ec_humid instead of soilmoisture
/**
* Driver: Ecowitt WiFi Gateway
* Author: Simon Burke (Original author Mirco Caramori - github.com/mircolino)
* Repository: https://github.com/sburke781/ecowitt
* Import URL: https://raw.githubusercontent.com/sburke781/ecowitt/main/ecowitt_gateway.groovy
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* Change Log:
*
* 2020.04.24 - Initial implementation
* 2020.04.29 - Added GitHub versioning
* - Added support for more sensors: WH40, WH41, WH43, WS68 and WS80
This file has been truncated. show original
/**
* Driver: Ecowitt RF Sensor
* Author: Simon Burke (Original author Mirco Caramori - github.com/mircolino)
* Repository: https://github.com/sburke781/ecowitt
* Import URL: https://raw.githubusercontent.com/sburke781/ecowitt/main/ecowitt_sensor.groovy
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* Change Log: shared with ecowitt_gateway.groovy
* lgk add srain_piezo and raining = true or false, also capacitorVoltage and firmware versions, stick the raing on the rain device and cap voltate and firmware version on the wind device
* lgk fixed missing break statement when processing srain_piezo and raining attributes
* ikishk and lgk - updated parsing of soil moisture detail to cater for more channels
This file has been truncated. show original
1 Like
cbhous
May 5, 2026, 5:03pm
2113
Thanks for the update. The wh52 soil sensor now shows up and displays all of the attributes. Only a couple of minor things.
The soilHumAD is a percentage. The wn1920 app displays 98% while yours diplays 520.
I had to modify line 763 in the gateway code.
from "WN35": "Leaf Wetness Sensor";]
to "WN35": "Leaf Wetness Sensor",
Thanks again for the quick responce.
2 Likes
see attributes you posted above, soil hum ad is not a percentage it shows 557 or something?
not sure why the ecowitt is showing percentage... it is not, ad is raw voltage just like the other ads.
the soil hum (humidity) should be a percentage.. sounds like a bug in the ecowitt app.
you can turn debugging back on and post again what it is passing for the sensor but based on what you posted above pretty sure the code is correct.
are the new attributes temperature, humidity, and conductivity showing up correctly?
kampto
May 8, 2026, 9:37pm
2115
Anyone having good data from the Ecowitt LSD01 Distance sensors? I know its not part of this driver yet so I monitor from the ecowitt app. I have 2 measuring water tank level at 2 locations. Data is all over the place. Sometimes accurate but most of the time they bounce around by a few feet every couple hours or so. Sometimes they just don't report for hours. Will try a fresh set of batterys and see.