config example update (#5179)

The configuration didn't work as listed. Required addition of platform and switches lines, along with indent fixes.
This commit is contained in:
ionred 2018-04-15 06:17:29 -05:00 committed by Fabian Affolter
parent 17285ba293
commit fdef560c1a

View File

@ -19,16 +19,18 @@ Once you have enabled the [Rain Bird component](/components/rainbird), add the f
```yaml ```yaml
switch: switch:
sprinkler_1: - platform: rainbird
zone: 1 switches:
friendly_name: "Front sprinklers" sprinkler_1:
trigger_time: 20 zone: 1
scan_interval: 10 friendly_name: "Front sprinklers"
sprinkler_2: trigger_time: 10
friendly_name: "Back sprinklers" scan_interval: 10
zone: 2 sprinkler_2:
trigger_time: 20 friendly_name: "Back sprinklers"
scan_interval: 10 zone: 2
trigger_time: 20
scan_interval: 10
``` ```
Configuration variables: Configuration variables: