-
Notifications
You must be signed in to change notification settings - Fork 421
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
Sonoff TH10 with sensor MS01 soil moisture sensor humidity value not populating to HA 2021.9.7 #603
Comments
I'm also playing around with a TH10 and the new MS01 soil moisture sensor (having hoped it would maybe use the existing humidity sensor), but can't seem to get it to work. Will it need a new development for extending the available sensors to include moisture? Thank you! |
I have been playing around with the MS01 as well but I can’t pull any reading to HA. It would be very nice if this could be added. Would save the world probably quite some water 😁 This my debug log. I can’t find any differences between various set-ups. Sensor MS01:
Sensor AM2301:
Sensor DS18B20:
It seems that in case of MS01 the attributes are not added. I have explored sensor.py but I haven’t found the clue. When using the MS01 the attributes temperature and humidity are not available. But when the AM2301 is connected it comes back after restart. Tested this twice. Swapping one the AM2301 to MS01 and back make the attributes and values to disappear and appear again. Why is that? I need a few clues or pointers where to look to resolve this.. Alexxit? I have resolved it. Works for me now. I have sent the info to Alex. Actually I think it’s/was a bug |
Tried to get soil humidity data but without any success too (TH16+MS01). |
me 2, why MS01+TH16 dont work? :( |
share your solution my friend :) |
In the following function in cloud.py there is a mistake. Replace the existing 'def fix_attrs(deviceid: str, state: dict)' by this one and let me know if it worked for you:
""
|
Thanks a lot - yes, this part helps! |
Great to hear ! |
Also worked for me thank you very much :-) |
Hi, i changed my code for,
add: configuration.yaml
validate config, reboot and not working :( |
You just did a copy-paste? And not working means the sensor doesn´t appear? or the sensor appears but doesnt give values? |
the sensor doesn´t appear, i just copy-paste |
Só there could a number of issues now. If all are yes set debug to true in your config and find the entity in the initiation of the debug list first. |
Work great, Thank you ! |
Fixed in latest master-version. Will be in next release. |
I'm having some issues with getting all values from MS01 on THR316 in InfluxDB. While ewelink app csv export shows all values each hour, I have only a few values imported in influxdb (like one every couple hours). CSV exports included for both ewelink, influx. Also diagnostics config_entry-sonoff-ee84b0b81fea4318e6fa8864da266746.json.txt thanks |
Am having some troubles integrating the Sonoff MS01 soil moisture sensor using a TH10
Sonoff LAN v2.4.6
Works fine with AM2301 temp / humidity sensor
Hass State attributes with AM2301
manufacturer: SONOFF
model: TH10
sw_version: PSA-BHA-GL v3.5.0
cloud: online
rssi: -41
local: online
humidity: 29
temperature: 33.5
friendly_name: irr-balcony-soil
MS01 with TH10 will not pull in humidity sensor data to Haasio, however in Sonoff debug i see a value for currentHumidity although currentTemperature is listed as unavailable
Hass State attributes with MS01
manufacturer: SONOFF
model: TH10
sw_version: PSA-BHA-GL v3.5.0
cloud: online
rssi: -36
local: online
friendly_name: irr-balcony-soil
The text was updated successfully, but these errors were encountered: