I decided that I wasn’t ok with the Rain Intensity sensor keeping its last non-zero value until either more rain comes or the clock strikes midnight. See the 3rd graph below:
And here’s what the new behavior looks like when I artifically made it rain by tipping the bucket a bunch of times manually:
Essentially, when the rain stops, the Rain Intensity sensor holds its value for 10 minutes and then drops to zero. I might set the “10 minute” value to something lower eventually, but for now, it seemed like a reasonable starting point.
Looks really nice and many thanks for sharing your code. Unfortunately I don’t really get how to add this. I’ve added both code snippets to the appropriate yaml files, but can’t seem to figure out where to hook up the rain flips sensor.
The rainfall debug sensor is available in HA, but since I have nowhere a match with my rain flips sensor, it stays 0.
hello,
nice project and thanx to all crazy guys here with all this crazy ideas and solutions!
as a hassio fool, it was really hard, but i was happy to get this project run
i tried @erikg s solution, to reset the Rain Intensitiy after 10min, when no rain falls, but i cant get it working.
with Template Editor i always getting “5”, doesnt matter if i use < or > in the if statement? sensor.regensensor_flips_zero_resets shows me “0” in the DevTools States
even when i change state with SetState to other values, i never get another result than 5?? why?
i had tried |int() as well?
herer is the part from the TemplateEditor…
{% if states('sensor.regensensor_flips_zero_reset')|float(0) > 0.000 %}
{{ max(rain_hour, 0) }}
{% else %}
5 #5 just for testing, should be 0
{% endif %}
both binary_sensor.rainfall_trend gradient and sensor.regensensor_flips_zero_reset are 0 at this moment (as Development/States show me)
TemplateEditor shows me the correct result = 0 for the following expression…
it stays always at 0
when i set it manually, it changes back to 0 after a couple of seconds, what might be correct, when no rain had fallen in the last 10 minutes and binary_sensor.regensensor_contact_invert hadn´t changed yet…
but when i manually set binary_sensor.regensensor_contact_invert to “off”, “on”, “off” to simulate some flips, the sensor.regensensor_flips_zero_reset never reacts? it stays always at “0”??
So pleased I have this all working , many thanks to parrel for sharing this and helping me when I got stuck.
I am using the Apexcharts card to show the daily rainfall for a month and I wonder if any kind person could show me how to modify it to show weekly rainfall over a yearly period? It is probably not possible but it would be really great if it could be made to be a “rolling” chart where the oldest week data gets removed as the new week data arrives so that the chart is always showing the last 52 weeks.
Thank you to anyone who can help.
I am a beginner in home assistant and want to build this rain gauge, but how do I get the, I presume, YAML code into Home assistant and how do I get it to work?
Can someone make a print screen where I have to put in de the YAML or jinja code? I have done 3 hours of useless tutorials now and I still dont know where to start. I do not now If I have to use the File editor or developers tool?
Please a little bread crum in the right direction would help
Hi @parrel Thanks for a great tutorial;) I have just built the rain gauge ( but I did use the insert adapter here - Rain Gauge (Aqara door sensor support) Pluviomètre Aqara by waazdakka - Thingiverse ) it makes the whole project pretty clean. Anyways - I have set up the gauge using your yaml. I did have some issues - when I pour 10 ml. of water down the funnel I get 4 tips on my gauge (I may be measuring the 10 ml. wrong, but I think it should be right). I can see you are going with 6 tips for 10 ml. of water, by taking the tutorial from the reviewer from amazon. The value that are going in the yaml code. 0.30303 - something - where does this value come from? the calculation pulses / mm = 5.5 / (10/6) = 3.3 I understand (where I in my case should replace 6 with 4 instead. But how is the value calculated, that goes into the code - I don’t get it
Oke so I copy the codes somewhere in the configuration.yaml ? I did this and nothing is happening. (I am smart enough to change the sensor id’s)
I can someone make a screenshot so I get the whole picture and not a part of the picture, please
@Shellfishgene, @doubleUS would you mind sharing some photos of your setup? I am sorry, but I am having a hard time visualizing it and since I do not have soldering equipment, I would be inclined to try out your way of setting this up.