core/homeassistant/components/media_player
Dan a099430834 Universal source list (#4086)
* Add source_list to universal media player

* Expanded attirubte and command support for UMP

Added support to the universal media player
for the following:
    Volume Set
    Current Source
    Set Source
    Current Volume

The goal is to facilitate a single-card media player
that includes source selection and setting the volume
of the receiver.

Example setup:
```
media_player:
  - platform: universal
    name: Media Center
    children:
      - media_player.kodi
      - media_player.cast
    commands:
      select_source:
        service: media_player.select_source
        data:
          entity_id: media_player.receiver
      volume_set:
        service: media_player.volume_set
        data:
          entity_id: media_player.receiver
      volume_mute:
        service: media_player.volume_mute
        data:
          entity_id: media_player.receiver
      turn_on:
        service: homeassistant.turn_on
        data:
          entity_id: media_player.receiver
      turn_off:
        service: homeassistant.turn_off
        data:
          entity_id: media_player.receiver
    attributes:
      state: media_player.receiver
      is_volume_muted: media_player.receiver|is_volume_muted
      volume_level: media_player.receiver|volume_level
      source: media_player.receiver|source
      source_list: media_player.receiver|source_list
```

* Remove print statements

* Change service call back to use call_from_config

* Modified service calls to use template data

* linting fixes

* Add tests

* linting fices

* More pylinting
2016-12-03 20:09:28 -08:00
..
__init__.py Close aiohttp responses (#4624) 2016-11-30 13:05:58 -08:00
braviatv.py Update braviarc to 0.3.6 (#4246) 2016-11-06 09:27:55 -08:00
cast.py Try to register a Chromecast anyway, even if it could not be detected by get_chromecasts(), since it might be on a other network. Fixes #4469. (#4470) 2016-11-22 22:16:01 -08:00
cmus.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
demo.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
denon.py Fixes #3511 - handle multiple return values (#4659) 2016-12-01 18:28:52 -08:00
denonavr.py Added denon media player controls via denonavr library (#4580) 2016-11-27 22:13:22 -08:00
directv.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
dunehd.py Style 0.34 (#4689) 2016-12-03 20:46:04 +01:00
emby.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
firetv.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
gpmdp.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
itunes.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
kodi.py Handle live content better in Kodi (#4388) 2016-11-14 20:11:22 -08:00
lg_netcast.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
mpchc.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
mpd.py MPD: Reconnect mpd client afetr OSError (#4651) 2016-12-01 12:28:31 -08:00
onkyo.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
panasonic_viera.py fix panasonic viera doing I/O in event loop (#4341) 2016-11-10 21:17:44 -08:00
pandora.py Prevent Pandora component from crashing or hanging during shutdown. (#4255) 2016-12-01 22:06:23 -08:00
philips_js.py Philips controls (#4441) 2016-11-30 13:07:57 -08:00
pioneer.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
plex.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
roku.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
russound_rnet.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
samsungtv.py Make UI more responsive to power off for Samsung Smart TV (#4438) 2016-11-17 22:00:18 -08:00
services.yaml Add Bose SoundTouch device support - v2 (#4523) 2016-11-22 23:22:52 -08:00
snapcast.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
sonos.py Bugfix sonos hosts (#4698) 2016-12-04 00:31:27 +01:00
soundtouch.py Add Bose SoundTouch device support - v2 (#4523) 2016-11-22 23:22:52 -08:00
squeezebox.py Squeezebox name fix #4019 2016-11-14 21:46:05 +00:00
universal.py Universal source list (#4086) 2016-12-03 20:09:28 -08:00
webostv.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
yamaha.py Upgrade linter (#4461) 2016-11-18 21:47:59 -08:00