jeroenterheerdt / HAsmartirrigation

Smart Irrigation custom component for Home Assistant
https://jeroenterheerdt.github.io/HAsmartirrigation/
MIT License
361 stars 49 forks source link

Sprinkler Tracking #458

Open cappa88 opened 2 months ago

cappa88 commented 2 months ago

I would like to propose an idea.

Would it be possible to include the entity of the respective sprinklers for each zone? This way, the integration could track the seconds each zone is irrigated and update the bucket accordingly. This could avoid the need to reset the bucket and also account for any manual activations of individual zones.

jeroenterheerdt commented 2 months ago

that's a great idea! Very interesting, let me see if I understand what you mean: 1) add optional entity for each zone 2) if entity is provided, automatically update bucket to reflect changes based on throughput * activation duration. this will cover then for automatic irrigation as part of the normal behavior as well as manual activations of the entity.

did I get that right?

cappa88 commented 2 months ago

Yes, that's exactly what I mean! By adding an optional entity for each zone and updating the bucket based on throughput and activation duration, the integration would become more accurate and efficient. The bucket would be adjusted according to the calculation of millimeters of water replenished by the irrigation. This would account for both automatic and manual irrigation, making the system more reliable.Thank you for considering this idea. As I'm not familiar with the development of integrations, I wasn't sure if this was feasible