The original indoor device can show rainfall data: 1hour, 24hour, week, month. Is there any component which would be good to show these data and reset periodically?
Two more question, I don’t know if it would be even possible:
1, rain rate. In Rflink component (https://www.home-assistant.io/components/sensor.rflink/) is a rain rate sensor. What type of device are these? It is not possible to calculate rain rate from total rain? Since we can measure rain quantity for the last hour, we can get rain rate?
2, rain sensor: create a binary_sensor or just send a message when it’s start raining. Something like: if [total_rain] has changed and it’s showing growing tendency (20.3mm, 21.6mm…) and vica versa we can assume that it is raining.
I’ve just received the same device, facing the same questions.
I think the simplest solution is to create 4 input.floats: rain_last_month, rain_last_week, rain_last_day, rain_last_hour, and update those from timed scripts every month/week/day/hour to the current value of the rain_total sensor. Then it is easy to create 4 template sensors also (triggered by the change of rain_total) by simply subtracting these from the value of rain_total.
If you opt to use retained MQTT messages to store values, bear in mind that only one message can be retained in every topic! So it wont work to store hourly, daily, weekly and monthly cumulative values in the same topic, you have to use different topics for these 4 “variables”.