Hi everyone! I’m looking for some advice on automating my smart irrigation system for my garden. I have a drip system that waters my hedge, and it works perfectly when I manually turn it on. However, I want to set it up to run automatically without needing to be there every time. I came across this integration called HASmartIrrigation, which seems promising, but I need some help refining it.
Currently, my automation turns the water on every day at 5 AM, but I want to modify it to run only twice a week. Additionally, I don’t want it to activate if it rained the day before. I also have a water bucket sensor that tells me how long the hedge needs water each day.
Here’s what my current automation looks like:
yaml
- id: turn_water_for_hedge_on_morning
alias: turn_water_for_hedge_on_morning
trigger:- platform: time
at: ‘05:00:00’
condition:
condition: and
conditions:- condition: state
entity_id: device_tracker.waterhose
state: ‘home’ - entity_id: sensor.smart_irrigation_daily_adjusted_run_time
condition: numeric_state
above: ‘0’ - condition: not
conditions:- condition: state
entity_id: weather.home
state:- rainy
action:
- rainy
- condition: state
- condition: state
- service: script.waterhose_run_10minute_schedule
- platform: time
I’m wondering if there’s a way to schedule this to run only twice a week, say on Monday and Friday, while still accounting for rain. Any suggestions or tips would be greatly appreciated! Let me know if you’ve tackled something similar or if there’s a better approach. Thanks in advance!