-
-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Is your feature request related to a problem? Please describe.
I'm currently visualizing and analyzing the daily irrigation logic in Home Assistant using the Smart Irrigation integration. I'm trying to understand and verify how much precipitation was factored into the calculation on a given day. However, the precipitation value is not exposed as an attribute of the sensor.smart_irrigation_ entity. This makes it impossible to reference the precipitation value used internally during the ET/drainage/bucket computation — either for display in dashboards or to verify/debug calculations later.
Describe the solution you'd like
Please add precipitation (or rain) as an attribute to the Smart Irrigation sensor, just like et_value, bucket, drainage, etc. This would allow users to inspect and log the exact precipitation amount Smart Irrigation used during its last calculation cycle.
Example (in extra_state_attributes(self)):
"rain": self._rain,
Describe alternatives you've considered
I tried reconstructing the value manually using the OpenWeatherMap forecast/history or logs, but that leads to inaccuracies due to the dynamic hourly data and its limited availability.
Logging the debug output every night and manually parsing it works, but it's not ideal for visualization or long-term insights.
Using an additional precipitation sensor separately (e.g., from OWM History) shows actual rainfall but not necessarily what Smart Irrigation used internally at the calculation time.
Additional context
I'm building a dashboard showing daily ET₀, drainage, irrigation, and precipitation as recorded by Smart Irrigation, using statistics sensors. Precipitation is a critical part of the water balance model. Having it exposed would make Smart Irrigation more transparent, debuggable, and easier to validate over time.
Screenshot of current attributes (note: precipitation is missing):
