From 1b4c2b61ebdb389fda281229038ae94582a0588a Mon Sep 17 00:00:00 2001 From: Scott O'Neil Date: Tue, 26 Jul 2016 18:31:24 -0500 Subject: [PATCH 1/2] Adding sonos timer documentation --- source/_components/media_player.sonos.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/_components/media_player.sonos.markdown b/source/_components/media_player.sonos.markdown index 1eeb796772a..0c70076465a 100644 --- a/source/_components/media_player.sonos.markdown +++ b/source/_components/media_player.sonos.markdown @@ -86,3 +86,12 @@ Remove one or more speakers from a group of speakers. If no `entity_id` is provi | ---------------------- | -------- | ----------- | | `entity_id` | no | String or list of `entity_id`s that will be separated from their coordinator speaker. +### {% linkable_title Service `sonos_set_sleep_timer` %} + +Sets a timer that will turn off a speaker by tapering the volume down to 0 after a certain amount of time. Protip: If you set the sleep_time value to 0, then the speaker will immediately start tapering the volume down. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | no | String or list of `entity_id`s that will have their timers set. Must be a coordinator speaker. +| `sleep_time` | no | Integer number of seconds that the speaker should wait until it starts tapering. Cannot exceed 86399 (one day). + From 3ba8c66224ee45a731823486144cd1767b34ff5b Mon Sep 17 00:00:00 2001 From: Scott O'Neil Date: Wed, 19 Oct 2016 21:34:41 -0500 Subject: [PATCH 2/2] Adding sonos_set_sleep_timer service --- source/_components/media_player.sonos.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_components/media_player.sonos.markdown b/source/_components/media_player.sonos.markdown index 0c70076465a..62319a09947 100644 --- a/source/_components/media_player.sonos.markdown +++ b/source/_components/media_player.sonos.markdown @@ -95,3 +95,11 @@ Sets a timer that will turn off a speaker by tapering the volume down to 0 after | `entity_id` | no | String or list of `entity_id`s that will have their timers set. Must be a coordinator speaker. | `sleep_time` | no | Integer number of seconds that the speaker should wait until it starts tapering. Cannot exceed 86399 (one day). +### {% linkable_title Service `sonos_clear_sleep_timer` %} + +Clear the sleep timer on a speaker, if one is set. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | no | String or list of `entity_id`s that will have their timers cleared. Must be a coordinator speaker. +