From 296fa2f3918fb4549af17ddd24dc9f0939a0ead3 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Wed, 19 Jan 2022 11:58:48 -0700 Subject: [PATCH] Add RainMachine docs for `restrict_watering` and `unrestrict_watering` services (#21222) * Add RainMachine docs for `restrict_watering` and `unrestrict_watering` services * Add comment about max pause time * Add missing services --- source/_integrations/rainmachine.markdown | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/source/_integrations/rainmachine.markdown b/source/_integrations/rainmachine.markdown index 305e053963e..c9092cdc6f5 100644 --- a/source/_integrations/rainmachine.markdown +++ b/source/_integrations/rainmachine.markdown @@ -39,8 +39,10 @@ Services accept either device IDs or entity IDs, depending on the nature of the - Services that require a device ID as a target: - `rainmachine.pause_watering` - `rainmachine.push_weather_data` + - `rainmachine.restrict_watering` - `rainmachine.stop_all` - `rainmachine.unpause_watering` + - `rainmachine.unrestrict_watering` - 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) - `rainmachine.start_program` - `rainmachine.start_zone` @@ -49,7 +51,7 @@ Services accept either device IDs or entity IDs, depending on the nature of the ### `rainmachine.pause_watering` -Pause all watering activities for a number of seconds. +Pause all watering activities for a number of seconds. After the pause is complete, the previous watering activities will resume. Note that controllers can only be paused for a maximum of 12 hours. | Service Data Attribute | Optional | Description | | ---------------------- | -------- | ------------------------------ | @@ -81,6 +83,14 @@ See details of RainMachine API here: | `pressure` | no | Barametric Pressure (kPa) | | `dewpoint` | no | Dew Point (°C) | +### `rainmachine.restrict_watering` + +Restrict any and all watering activities from staring for a time period. + +| Service Data Attribute | Optional | Description | +| ---------------------- | -------- | ------------------------------ | +| `duration` | no | The time period to restrict (e.g., "01:00:00") | + ### `rainmachine.start_program` Start a RainnMachine program. @@ -107,7 +117,11 @@ Stop a RainMachine zone. ### `rainmachine.unpause_watering` -Unpause all watering activities. +Unpause all paused watering activities. + +### `rainmachine.unrestrict_watering` + +Remove all watering restrictions enforced by `rainmachine.restrict_watering`. ## Switch