Skip to content

Commit 587bc9c

Browse files
bachyaballoob
authored andcommitted
Adds documentation for latest RainMachine PR (home-assistant#5322)
* Adds documentation for latest RainMachine PR * Update version * Update version
1 parent a699b1e commit 587bc9c

File tree

4 files changed

+115
-5
lines changed

4 files changed

+115
-5
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: page
3+
title: "RainMachine Binary Sensor"
4+
description: "Instructions on how to use RainMachine binary sensors with Home Assistant."
5+
date: 2018-05-06 21:26
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: rainmachine.png
11+
ha_category: Binary Sensor
12+
ha_iot_class: "Cloud Polling"
13+
ha_release: 0.71
14+
---
15+
16+
The `rainmachine` binary sensor platform allows you to view crucial sensor data
17+
within a [RainMachine smart Wi-Fi sprinkler controller](http://www.rainmachine.com/).
18+
19+
<p class='note'>
20+
You must have the [RainMachine component](https://www.home-assistant.io/components/rainmachine/)
21+
configured to use this platform. After configuring that component, binary
22+
sensors automatically appear.
23+
</p>

source/_components/rainmachine.markdown

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ rainmachine:
2727
password: YOUR_PASSWORD
2828
```
2929
30-
To configure switch-related functionality, add configuration options beneath
31-
a `switches` key within the `rainmachine` sections of `configuration.yaml`
32-
as below:
30+
To configure additional functionality, add configuration options beneath
31+
a `binary_sensor`, `sensor`, and/or `switches` key within the `rainmachine`
32+
sections of `configuration.yaml` as below:
3333

3434
```yaml
3535
rainmachine:
3636
ip_address: 192.168.1.100
3737
password: YOUR_PASSWORD
38+
binary_sensors:
39+
# binary sensor configuration options...
40+
sensors:
41+
# sensor configuration options...
3842
switches:
3943
# switch configuration options...
4044
```
@@ -58,6 +62,26 @@ ssl:
5862
required: false
5963
type: boolean
6064
default: true
65+
binary_sensors:
66+
description: binary sensor-related configuration options
67+
required: false
68+
type: map
69+
keys:
70+
monitored_conditions:
71+
description: the conditions to create sensors from
72+
required: false
73+
type: list
74+
default: all (`extra_water_on_hot_days`, `freeze`, `freeze_protection`, `hourly`, `month`, `raindelay`, `rainsensor`, `weekday`)
75+
sensors:
76+
description: sensor-related configuration options
77+
required: false
78+
type: map
79+
keys:
80+
monitored_conditions:
81+
description: the conditions to create sensors from
82+
required: false
83+
type: list
84+
default: all (`freeze_protect_temp`)
6185
switches:
6286
description: switch-related configuration options
6387
required: false
@@ -69,3 +93,43 @@ switches:
6993
type: int
7094
default: 600
7195
{% endconfiguration %}
96+
97+
## {% linkable_title Services %}
98+
99+
### {% linkable_title `rainmachine.start_program` %}
100+
101+
Start a RainMachine program.
102+
103+
| Service Data Attribute | Optional | Description |
104+
|---------------------------|----------|----------------------|
105+
| `program_id` | no | The program to start |
106+
107+
### {% linkable_title `rainmachine.start_zone` %}
108+
109+
Start a RainMachine zone for a set number of seconds.
110+
111+
| Service Data Attribute | Optional | Description |
112+
|---------------------------|----------|------------------------------------------------------|
113+
| `zone_id` | no | The zone to start |
114+
| `zone_run_time` | yes | The number of seconds to run; defaults to 60 seconds |
115+
116+
### {% linkable_title `rainmachine.stop_all` %}
117+
118+
Stop all watering activities.
119+
120+
### {% linkable_title `rainmachine.stop_program` %}
121+
122+
Stop a RainMachine program.
123+
124+
| Service Data Attribute | Optional | Description |
125+
|---------------------------|----------|----------------------|
126+
| `program_id` | no | The program to stop |
127+
128+
### {% linkable_title `rainmachine.stop_zone` %}
129+
130+
Stop a RainMachine zone.
131+
132+
| Service Data Attribute | Optional | Description |
133+
|---------------------------|----------|----------------------|
134+
| `zone_id` | no | The zone to stop |
135+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: page
3+
title: "RainMachine Sensor"
4+
description: "Instructions on how to use RainMachine sensors with Home Assistant."
5+
date: 2018-05-06 21:26
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: rainmachine.png
11+
ha_category: Sensor
12+
ha_iot_class: "Cloud Polling"
13+
ha_release: 0.71
14+
---
15+
16+
The `rainmachine` sensor platform allows you to view crucial sensor data within
17+
a [RainMachine smart Wi-Fi sprinkler controller](http://www.rainmachine.com/).
18+
19+
<p class='note'>
20+
You must have the [RainMachine component](https://www.home-assistant.io/components/rainmachine/)
21+
configured to use this platform. After configuring that component, sensors
22+
automatically appear.
23+
</p>

source/_components/switch.rainmachine.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: "RainMachine Switch"
4-
description: "Instructions on how to use RainMachine units with Home Assistant."
4+
description: "Instructions on how to use RainMachine switches with Home Assistant."
55
date: 2017-08-14 13:30
66
sidebar: true
77
comments: false
@@ -18,7 +18,7 @@ within a [RainMachine smart Wi-Fi sprinkler controller](http://www.rainmachine.c
1818

1919
<p class='note'>
2020
You must have the [RainMachine component](https://www.home-assistant.io/components/rainmachine/)
21-
configured to use this switch. After configuring that component, switches will
21+
configured to use this platform. After configuring that component, switches will
2222
automatically appear.
2323
</p>
2424

0 commit comments

Comments
 (0)