From 24b308e548a8fb0a79e2675ca9665aacb4348696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Marowsky-Br=C3=A9e?= Date: Wed, 27 Jan 2021 11:18:22 +0100 Subject: [PATCH] Add documentation for new input_select functionality (#15568) Accompanies https://github.com/home-assistant/core/pull/42968 --- source/_integrations/input_select.markdown | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/source/_integrations/input_select.markdown b/source/_integrations/input_select.markdown index e360b2ee912..2b4dd5238ec 100644 --- a/source/_integrations/input_select.markdown +++ b/source/_integrations/input_select.markdown @@ -80,10 +80,26 @@ This integration provides three services to modify the state of the `input_selec | ------- | ---- | ----------- | | `select_option` | `option` | This can be used to select a specific option. | `set_options` | `options`
`entity_id(s)` | Set the options for specific `input_select` entities. -| `select_previous` | | Select the previous option. -| `select_next` | | Select the next option. +| `select_first` | | Select the first option. +| `select_last` | | Select the last option. | `reload` | | Reload `input_select` configuration | +#### Service `input_select.select_next` + +Select the next option. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `cycle` | yes | Whether to cycle to the first value after the last. Default: `true` + +#### Service `input_select.select_previous` + +Select the previous option. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `cycle` | yes | Whether to cycle to the last value before the first. Default: `true` + ### Scenes Specifying a target option in a [Scene](/integrations/scene/) is simple: