Skip to content

Commit ba4b79c

Browse files
authored
Reorganize RainMachine service docs (home-assistant#19622)
1 parent 8fad90e commit ba4b79c

File tree

1 file changed

+16
-31
lines changed

1 file changed

+16
-31
lines changed

source/_integrations/rainmachine.markdown

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,40 @@ There is currently support for the following device types within Home Assistant:
3232

3333
## Services
3434

35+
Services accept either device IDs or entity IDs, depending on the nature of the service:
36+
37+
* Services that require a device ID as a target:
38+
* `rainmachine.pause_watering`
39+
* `rainmachine.stop_all`
40+
* `rainmachine.unpause_watering`
41+
* Services that require an entity ID as a target (note that the correct entity ID type must be provided, such as a program for a program-related service)
42+
* `rainmachine.disable_program`
43+
* `rainmachine.disable_zone`
44+
* `rainmachine.enable_program`
45+
* `rainmachine.enable_zone`
46+
* `rainmachine.start_program`
47+
* `rainmachine.start_zone`
48+
* `rainmachine.stop_program`
49+
* `rainmachine.stop_zone`
50+
3551
### `rainmachine.disable_program`
3652

3753
Disable a RainMachine program. This will mark the program switch as
3854
`Unavailable` in the UI.
3955

40-
| Service Data Attribute | Optional | Description |
41-
|---------------------------|----------|-------------------------------------------------------------|
42-
| `program_id ` | no | The program to disable |
43-
4456
### `rainmachine.disable_zone`
4557

4658
Disable a RainMachine zone. This will mark the zone switch as
4759
`Unavailable` in the UI.
4860

49-
| Service Data Attribute | Optional | Description |
50-
|---------------------------|----------|-------------------------------------------------------------|
51-
| `zone_id ` | no | The program to disable |
52-
5361
### `rainmachine.enable_program`
5462

5563
Enable a RainMachine program.
5664

57-
| Service Data Attribute | Optional | Description |
58-
|---------------------------|----------|-------------------------------------------------------------|
59-
| `program_id ` | no | The program to enable |
60-
6165
### `rainmachine.enable_zone`
6266

6367
Enable a RainMachine zone.
6468

65-
| Service Data Attribute | Optional | Description |
66-
|---------------------------|----------|-------------------------------------------------------------|
67-
| `zone_id ` | no | The zone to enable |
68-
6969
### `rainmachine.pause_watering`
7070

7171
Pause all watering activities for a number of seconds.
@@ -76,19 +76,12 @@ Pause all watering activities for a number of seconds.
7676

7777
### `rainmachine.start_program`
7878

79-
Start a RainMachine program.
80-
81-
| Service Data Attribute | Optional | Description |
82-
|---------------------------|----------|-------------------------------------------------------------|
83-
| `program_id ` | no | The program to start |
84-
8579
### `rainmachine.start_zone`
8680

8781
Start a RainMachine zone for a set number of seconds.
8882

8983
| Service Data Attribute | Optional | Description |
9084
|---------------------------|----------|-------------------------------------------------------------|
91-
| `zone_id` | no | The zone to start |
9285
| `zone_run_time` | yes | The number of seconds to run; defaults to 60 seconds |
9386

9487
### `rainmachine.stop_all`
@@ -99,18 +92,10 @@ Stop all watering activities.
9992

10093
Stop a RainMachine program.
10194

102-
| Service Data Attribute | Optional | Description |
103-
|---------------------------|----------|-------------------------------------------------------------|
104-
| `program_id ` | no | The program to stop |
105-
10695
### `rainmachine.stop_zone`
10796

10897
Stop a RainMachine zone.
10998

110-
| Service Data Attribute | Optional | Description |
111-
|---------------------------|----------|-------------------------------------------------------------|
112-
| `zone_id ` | no | The zone to stop |
113-
11499
### `rainmachine.unpause_watering`
115100

116101
Unpause all watering activities.

0 commit comments

Comments
 (0)