{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2240","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2240/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2240/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2240/events","html_url":"https://github.com/home-assistant/home-assistant/pull/2240","id":158553820,"number":2240,"title":"Added Sonos snapshot feature","user":{"login":"dansullivan86","id":372067,"avatar_url":"https://avatars.githubusercontent.com/u/372067?v=3","gravatar_id":"","url":"https://api.github.com/users/dansullivan86","html_url":"https://github.com/dansullivan86","followers_url":"https://api.github.com/users/dansullivan86/followers","following_url":"https://api.github.com/users/dansullivan86/following{/other_user}","gists_url":"https://api.github.com/users/dansullivan86/gists{/gist_id}","starred_url":"https://api.github.com/users/dansullivan86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansullivan86/subscriptions","organizations_url":"https://api.github.com/users/dansullivan86/orgs","repos_url":"https://api.github.com/users/dansullivan86/repos","events_url":"https://api.github.com/users/dansullivan86/events{/privacy}","received_events_url":"https://api.github.com/users/dansullivan86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-05T13:14:38Z","updated_at":"2016-06-06T18:44:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2240","html_url":"https://github.com/home-assistant/home-assistant/pull/2240","diff_url":"https://github.com/home-assistant/home-assistant/pull/2240.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/2240.patch"},"body":"**Description:**\r\nThis exposes soco snapshot and restore features.\r\nEnabling the ability to have a Sonos player play something then return to its previous state.  My use case is to play a door bell sound effect, but I also envisage it being useful for things like TTS.\r\n\r\n**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** home-assistant/home-assistant.io#\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\nscript:\r\n  doorbell:\r\n    alias: Door Bell Automation\r\n    sequence:\r\n      - alias: Snapshot Sonos\r\n        service: media_player.sonos_snapshot\r\n        data:\r\n          entity_id: media_player.lounge\r\n      - alias: Door Bell Play Sound\r\n        service: media_player.play_media\r\n        data:\r\n          entity_id: media_player.lounge\r\n          media_content_id: http://192.168.1.41:8123/local/doorbell.mp3\r\n          media_content_type: audio/mp3\r\n      - delay:\r\n          seconds: 6    \r\n      - alias: Restore Sonos      \r\n        service: media_player.sonos_restore\r\n        data:\r\n          entity_id: media_player.lounge\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.io](https://github.com/home-assistant/home-assistant.io)\r\n\r\nIf code communicates with devices:\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  - [x] 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`.\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[fork]: http://stackoverflow.com/a/7244456\r\n[squash]: https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit\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\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/224050211","html_url":"https://github.com/home-assistant/home-assistant/pull/2240#issuecomment-224050211","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2240","id":224050211,"user":{"login":"arsaboo","id":18319734,"avatar_url":"https://avatars.githubusercontent.com/u/18319734?v=3","gravatar_id":"","url":"https://api.github.com/users/arsaboo","html_url":"https://github.com/arsaboo","followers_url":"https://api.github.com/users/arsaboo/followers","following_url":"https://api.github.com/users/arsaboo/following{/other_user}","gists_url":"https://api.github.com/users/arsaboo/gists{/gist_id}","starred_url":"https://api.github.com/users/arsaboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arsaboo/subscriptions","organizations_url":"https://api.github.com/users/arsaboo/orgs","repos_url":"https://api.github.com/users/arsaboo/repos","events_url":"https://api.github.com/users/arsaboo/events{/privacy}","received_events_url":"https://api.github.com/users/arsaboo/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T18:44:09Z","updated_at":"2016-06-06T18:44:09Z","body":"Wow....this will be great to announce (aka....notifications) on Sonos!"}}
{"actor":{"display_login":"arsaboo"}}