Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions source/_components/rainbird.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,27 @@ scan_interval:
required: false
type: integer
{% endconfiguration %}

## Services

The Rain Bird switch platform exposes a service to start the irrigation for a given duration.

| Service | Description |
| ------- | ----------- |
| rainbird.start_irrigation | Set a duration state attribute for a switch and turn the irrigation on.|

The service can be used as part of an automation script. For example:

```yaml
# Example configuration.yaml automation entry
automation:
- alias: Turn irrigation on
trigger:
platform: time
at: '5:30:00'
action:
service: rainbird.start_irrigation
entity_id: switch.sprinkler_1
data:
duration: 5
```