From cd553dc537d05f43717c6e3c09bc84131d381616 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 4 Oct 2016 10:49:40 +0200 Subject: [PATCH] Fix indent --- .../media_player.russound_rnet.markdown | 44 +++++++-------- .../media_player.universal.markdown | 56 +++++++++---------- 2 files changed, 48 insertions(+), 52 deletions(-) diff --git a/source/_components/media_player.russound_rnet.markdown b/source/_components/media_player.russound_rnet.markdown index 127a30266a4..b64060b33f9 100644 --- a/source/_components/media_player.russound_rnet.markdown +++ b/source/_components/media_player.russound_rnet.markdown @@ -23,30 +23,26 @@ To add a device to your installation, add the following to your `configuration.y ```yaml # Example configuration.yaml entry media_player: - platform: russound_rnet - host: 192.168.1.10 - port: 1337 - name: Russound - zones: - 1: - name: Main Bedroom - 2: - name: Living Room - 3: - name: Kitchen - 4: - name: Bathroom - 5: - name: Dining Room - 6: - name: Guest Bedroom - sources: - - name: Sonos - - name: Sky+ - - name: iPod - - name: Unused 1 - - name: Unused 2 - - name: Kodi + - platform: russound_rnet + host: 192.168.1.10 + port: 1337 + name: Russound + zones: + 1: + name: Main Bedroom + 2: + name: Living Room + 3: + name: Kitchen + 4: + name: Bathroom + 5: + name: Dining Room + 6: + name: Guest Bedroom + sources: + - name: Sonos + - name: Sky+ ``` Configuration variables: diff --git a/source/_components/media_player.universal.markdown b/source/_components/media_player.universal.markdown index 4883d487e2a..115a766206c 100644 --- a/source/_components/media_player.universal.markdown +++ b/source/_components/media_player.universal.markdown @@ -21,38 +21,38 @@ A Universal Media Player is created in `configuration.yaml` as follows. ```yaml # Example configuration.yaml entry media_player: - platform: universal - name: MEDIA_PLAYER_NAME - children: - - media_player.CHILD_1_ID - - media_player.CHILD_2_ID - commands: - turn_on: - service: SERVICE - data: SERVICE_DATA - turn_off: - service: SERVICE - data: SERVICE_DATA - volume_up: - service: SERVICE - data: SERVICE_DATA - volume_down: - service: SERVICE - data: SERVICE_DATA - volume_mute: - service: SERVICE - data: SERVICE_DATA - attributes: - is_volume_muted: ENTITY_ID|ATTRIBUTE - state: ENTITY_ID|ATTRIBUTE + - platform: universal + name: MEDIA_PLAYER_NAME + children: + - media_player.CHILD_1_ID + - media_player.CHILD_2_ID + commands: + turn_on: + service: SERVICE + data: SERVICE_DATA + turn_off: + service: SERVICE + data: SERVICE_DATA + volume_up: + service: SERVICE + data: SERVICE_DATA + volume_down: + service: SERVICE + data: SERVICE_DATA + volume_mute: + service: SERVICE + data: SERVICE_DATA + attributes: + is_volume_muted: ENTITY_ID|ATTRIBUTE + state: ENTITY_ID|ATTRIBUTE ``` Configuration variables: -- **name**: The name to assign the player -- **children**: Ordered list of child media players this entity will control -- **commands** *Optional*: Commands to be overwritten. Possible entries are *turn_on*, *turn_off*, *volume_up*, *volume_down*, and *volume_mute*. -- **attributes** *Optional*: Attributes that can be overwritten. Possible entries are *is_volume_muted* and *state*. The values should be an entity id and state attribute separated by a bar (\|). If the entity id's state should be used, then only the entity id should be provided. +- **name** (*Required*): The name to assign the player +- **children** (*Required*): Ordered list of child media players this entity will control +- **commands** (*Optional*): Commands to be overwritten. Possible entries are *turn_on*, *turn_off*, *volume_up*, *volume_down*, and *volume_mute*. +- **attributes** (*Optional*): Attributes that can be overwritten. Possible entries are *is_volume_muted* and *state*. The values should be an entity id and state attribute separated by a bar (\|). If the entity id's state should be used, then only the entity id should be provided. The universal media player will primarily imitate one of its *children*. The first child in the list that is active (not idle/off) will be controlled the universal media player. The universal media player will also inherit its state from the first active child. Entities in the *children* list must be media players.