{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4242","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4242/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4242/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4242/events","html_url":"https://github.com/home-assistant/home-assistant/pull/4242","id":187560970,"number":4242,"title":"Add Bose Soundtouch component","user":{"login":"CharlesBlonde","id":1319920,"avatar_url":"https://avatars.githubusercontent.com/u/1319920?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesBlonde","html_url":"https://github.com/CharlesBlonde","followers_url":"https://api.github.com/users/CharlesBlonde/followers","following_url":"https://api.github.com/users/CharlesBlonde/following{/other_user}","gists_url":"https://api.github.com/users/CharlesBlonde/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesBlonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesBlonde/subscriptions","organizations_url":"https://api.github.com/users/CharlesBlonde/orgs","repos_url":"https://api.github.com/users/CharlesBlonde/repos","events_url":"https://api.github.com/users/CharlesBlonde/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesBlonde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-06T13:16:38Z","updated_at":"2016-11-06T18:41:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4242","html_url":"https://github.com/home-assistant/home-assistant/pull/4242","diff_url":"https://github.com/home-assistant/home-assistant/pull/4242.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/4242.patch"},"body":"**Description:**\r\n\r\nAdd support to Bose Soundtouch multi-rooms speakers (https://www.bose.com/en_us/products/speakers/wireless_speakers/soundtouch-10-wireless-system.html).\r\n\r\nThis PR add support for the following media supports:\r\n* DLNA\r\n* Radio\r\n* Spotify\r\n\r\nI'm unable to test others (Google Music, Deezer, Apple Music, ...) because I don't have any accounts but I should be able to create trial accounts in order to implement theses providers in the future.\r\n\r\nMulti-room is fully supported.\r\n\r\nI'm not a *native* Python developer and I didn't know all quality software tools used by Home Assistant (Tox, Pylint, ...) so I tried to do my best but any feedback are welcome.\r\nI have errors with Tox but I guess nothing related to this PR.\r\n\r\n**Related issue (if applicable):** No\r\n\r\n**Pull request in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) with documentation (if applicable):**\r\n\r\nI'll start working on the documentation after submitting this PR\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n\r\n## Defined devices\r\n\r\n```yaml\r\nmedia_player:\r\n  - platform: soundtouch\r\n    host: 192.168.1.1\r\n    port: 8090\r\n    name: Soundtouch Living Room\r\n  - platform: soundtouch\r\n    host: 192.168.1.2\r\n    port: 8090\r\n    name: Soundtouch Kitchen\r\n...\r\n```\r\n\r\n## Play media\r\nSoundtouch devices support 6 presets who can be used in order to change the selection\r\n\r\n```yaml\r\n- service: media_player.play_media\r\n  data:\r\n    entity_id: media_player.soundtouch_living_room\r\n    media_content_id: <1-6>\r\n    media_content_type: PLAYLIST\r\n```\r\n\r\n## Multi-room\r\n\r\nIn order to use multi-room ('Zone' in soundtouch vocabulary):\r\n\r\n### Create a zone and play on all other slaves\r\n\r\n```yaml\r\nautomation:\r\n  - alias: Play everywhere\r\n    trigger:\r\n       ...\r\n    action:\r\n      - service: media_player.soundtouch_play_everywhere\r\n        data:\r\n          master: media_player.soundtouch_living_room\r\n```\r\n\r\n### Creating a zone with one master and two slaves\r\n\r\n```yaml\r\n- service: media_player.soundtouch_create_zone\r\n  data:\r\n    master: media_player.soundtouch_living_room\r\n    slaves:\r\n      - media_player.soundtouch_room\r\n      - media_player.soundtouch_kitchen\r\n```\r\n\r\n### Adding a slave to an existing zone\r\n\r\n```yaml\r\n- service: media_player.soundtouch_add_zone_slave\r\n  data:\r\n    master: media_player.soundtouch_living_room\r\n    slaves:\r\n      - media_player.soundtouch_room      \r\n```\r\n\r\n### Removing a slave from a zone (removing all slaves delete the zone)\r\n\r\n```yaml\r\n- service: media_player.soundtouch_remove_zone_slave\r\n  data:\r\n    master: media_player.soundtouch_living_room\r\n    slaves:\r\n      - media_player.soundtouch_room      \r\n```\r\n\r\n**Checklist:**\r\n\r\nIf user exposed functionality or configuration variables are added/changed:\r\n  - [ ] Documentation added/updated in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) => Not yet\r\n\r\nIf the code communicates with devices, web services, or third-party tools:\r\n  - [ ] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [ ] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).\r\n  - [ ] New dependencies are only imported inside functions that use them ([example][ex-import]).\r\n  - [ ] New dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.\r\n  - [ ] New files were added to `.coveragerc`. => Unit tests added so I didn't update this file\r\n\r\nIf the code does not interact with devices:\r\n  - [ ] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [ ] Tests have been added to verify that the new code works.\r\n\r\n[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L16\r\n[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/258700843","html_url":"https://github.com/home-assistant/home-assistant/pull/4242#issuecomment-258700843","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4242","id":258700843,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T18:41:52Z","updated_at":"2016-11-06T18:41:52Z","body":"I've addressed the device sun light trigger flakiness in PR #4247, we should not see it anymore."}}
{"actor":{"display_login":"balloob"}}