-
Notifications
You must be signed in to change notification settings - Fork 46
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 srain_piezo of WS90 and GW2000 on 3.1.5 wrongly transmitted #1102
Comments
Please provide verbose-level logs—it is hard to understand what the intended outcome or fix is from the info provided. |
Sure, following the verbose output:
I hope, this is the output you need. |
I forgot to link some further information: |
some people are reporting that it can also output a that does not make sense as it should be 0 or 1. |
🤔 Thank you for that info. |
there were a series of PRs submitted to HA Core for this new sensor. Please see this for reference: home-assistant/core#127004 |
Hi @Anto79-ops In the customized server post string, the observation will show as srain_piezo
So no clue where the "2" should be coming from. See here: |
Thanks :) 😀 You want to make a PR for this integration and help out Bachya :) |
I would absolutely appreciate the help; 100% of my coding is going to my day job these days. 🙏🏻 |
Sorry guys, I would love to help you, but I have 2 jobs myself and am currently renovating my house. I only created the PRs to make my wife happy by making the rain sensor work faster when the freshly washed laundry is hanging outside and it starts to rain :) But from what I have seen in the log, the output is interpreted as a float and not an integer. So the quickest approach would be to convert the output to int first and then srain=0 -> dry, srain>0 -> wet. Or just leave it float - should produce the same... |
hey there! thanks for implementing the new sensor. I wanted to mention something about the sensor, when I use MQTT explorer, i clearly see the state as being "Dry" but, in HA the sensor shows up as "Unknown". My MQTT broker is HA (via the addon). Will this update on the first rain, maybe? |
I would expect that (the topic won't have info until that first event occurs). |
sounds great! Probably HA doing some aggressive mqtt caching. cheers all |
Thanks for the heads up, @Anto79-ops. To confirm, you don't see any errors in |
thanks, confirmed nothing in core logs and I checked the output from cheers |
I have the same problem, it's raining, but binary_sensor.gw2000_srain_piezo in Home Assistant is shown as unknown sensor. |
Created a binary sensor in MQTT
Works. |
Getting the same issue, I think with a binary sensor the value should be true or false
|
There hasn't been any activity on this issue recently, so it has been marked as stale. |
Hi. No stale please. |
It still doesn't work in Home Assistant, but it displays normally in MQTT-Explorer. |
Describe the bug
New srain_piezo of WS90 and GW2000 on 3.1.5 is wrongly transmitted. Instead of 0 or 1 it is 0.0 or 25.4.
To Reproduce
Expected behavior
srain_piezo is transmitted as 0 or 1.
The text was updated successfully, but these errors were encountered: