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,10 +19,12 @@ Once you have enabled the [Rain Bird component](/components/rainbird), add the f
```yaml ```yaml
switch: switch:
- platform: rainbird
switches:
sprinkler_1: sprinkler_1:
zone: 1 zone: 1
friendly_name: "Front sprinklers" friendly_name: "Front sprinklers"
trigger_time: 20 trigger_time: 10
scan_interval: 10 scan_interval: 10
sprinkler_2: sprinkler_2:
friendly_name: "Back sprinklers" friendly_name: "Back sprinklers"