Events
Main page: Usage
Previous: Services
Next: Automations
After installation, the following event is available:
| Event | Description |
|---|---|
smart_irrigation_start_irrigation_all_zones |
Fired when an irrigation start trigger is reached. Listen to it to start your irrigation. See automations for examples. |
When does it fire?
The event fires when a configured start trigger is reached (a solar event — sunrise, sunset or solar azimuth — optionally shifted by an offset). If you configure no triggers, the legacy default applies: it fires early enough before sunrise that watering finishes at sunrise (sunrise - sum(duration of all enabled zones)).
Each enabled trigger fires independently. The precipitation-skip and "days between irrigation" settings still apply: on a skip day no event is fired.
Event data
The event carries the identity of the trigger that fired, so a single automation can react differently per trigger:
| field | meaning |
|---|---|
trigger_name |
the name you gave the trigger |
trigger_type |
sunrise, sunset or solar_azimuth |
offset_minutes |
the configured offset, in minutes |
account_for_duration |
whether timing is shifted so watering finishes at the target moment |
Example: filter on trigger_name to react to a specific trigger.
trigger:
- platform: event
event_type: smart_irrigation_start_irrigation_all_zones
event_data:
trigger_name: "Morning"
Main page: Usage
Previous: Services
Next: Automations