{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/3","id":206468091,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NDY4MDkx","html_url":"https://github.com/mattiash/castv2-device-monitor/pull/3","diff_url":"https://github.com/mattiash/castv2-device-monitor/pull/3.diff","patch_url":"https://github.com/mattiash/castv2-device-monitor/pull/3.patch","issue_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues/3","number":3,"state":"open","locked":false,"title":"Update internal status when Stopped","user":{"login":"nickcmaynard","id":1984684,"node_id":"MDQ6VXNlcjE5ODQ2ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1984684?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcmaynard","html_url":"https://github.com/nickcmaynard","followers_url":"https://api.github.com/users/nickcmaynard/followers","following_url":"https://api.github.com/users/nickcmaynard/following{/other_user}","gists_url":"https://api.github.com/users/nickcmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcmaynard/subscriptions","organizations_url":"https://api.github.com/users/nickcmaynard/orgs","repos_url":"https://api.github.com/users/nickcmaynard/repos","events_url":"https://api.github.com/users/nickcmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/nickcmaynard/received_events","type":"User","site_admin":false},"body":"Sony Chromecast speakers, when \"powered off\" when casting, only manifest this to castv2-device-monitor by closing the media connection.\r\n\r\nThis causes the internal state of castv2-device-monitor to be out of sync with reality.\r\n\r\nThis patch sets `playerState: 'IDLE'` and `media: {}` when this happens.  \r\n\r\nI'd set `power: 'off'` as well, but that seems overly brutal, and hardware-specific.","created_at":"2018-08-06T17:36:23Z","updated_at":"2018-08-06T17:36:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/3/commits","review_comments_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/3/comments","review_comment_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues/3/comments","statuses_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/statuses/213dc0675f428cf072e4cd07a627cb4ab95f9875","head":{"label":"nickcmaynard:fix-power-off-status","ref":"fix-power-off-status","sha":"213dc0675f428cf072e4cd07a627cb4ab95f9875","user":{"login":"nickcmaynard","id":1984684,"node_id":"MDQ6VXNlcjE5ODQ2ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1984684?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcmaynard","html_url":"https://github.com/nickcmaynard","followers_url":"https://api.github.com/users/nickcmaynard/followers","following_url":"https://api.github.com/users/nickcmaynard/following{/other_user}","gists_url":"https://api.github.com/users/nickcmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcmaynard/subscriptions","organizations_url":"https://api.github.com/users/nickcmaynard/orgs","repos_url":"https://api.github.com/users/nickcmaynard/repos","events_url":"https://api.github.com/users/nickcmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/nickcmaynard/received_events","type":"User","site_admin":false},"repo":{"id":143759752,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3NTk3NTI=","name":"castv2-device-monitor","full_name":"nickcmaynard/castv2-device-monitor","owner":{"login":"nickcmaynard","id":1984684,"node_id":"MDQ6VXNlcjE5ODQ2ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1984684?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcmaynard","html_url":"https://github.com/nickcmaynard","followers_url":"https://api.github.com/users/nickcmaynard/followers","following_url":"https://api.github.com/users/nickcmaynard/following{/other_user}","gists_url":"https://api.github.com/users/nickcmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcmaynard/subscriptions","organizations_url":"https://api.github.com/users/nickcmaynard/orgs","repos_url":"https://api.github.com/users/nickcmaynard/repos","events_url":"https://api.github.com/users/nickcmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/nickcmaynard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickcmaynard/castv2-device-monitor","description":"Monitor a castv2 (a.k.a Chromecast) device","fork":true,"url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor","forks_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/forks","keys_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/teams","hooks_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/hooks","issue_events_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/events","assignees_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/tags","blobs_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/languages","stargazers_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/stargazers","contributors_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/contributors","subscribers_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/subscribers","subscription_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/subscription","commits_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/merges","archive_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/downloads","issues_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/labels{/name}","releases_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/releases{/id}","deployments_url":"https://api.github.com/repos/nickcmaynard/castv2-device-monitor/deployments","created_at":"2018-08-06T17:16:08Z","updated_at":"2018-08-06T17:16:10Z","pushed_at":"2018-08-06T17:26:17Z","git_url":"git://github.com/nickcmaynard/castv2-device-monitor.git","ssh_url":"git@github.com:nickcmaynard/castv2-device-monitor.git","clone_url":"https://github.com/nickcmaynard/castv2-device-monitor.git","svn_url":"https://github.com/nickcmaynard/castv2-device-monitor","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattiash:master","ref":"master","sha":"b29dce56e22fec3438236c58ba8f9211ba90723b","user":{"login":"mattiash","id":588898,"node_id":"MDQ6VXNlcjU4ODg5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/588898?v=4","gravatar_id":"","url":"https://api.github.com/users/mattiash","html_url":"https://github.com/mattiash","followers_url":"https://api.github.com/users/mattiash/followers","following_url":"https://api.github.com/users/mattiash/following{/other_user}","gists_url":"https://api.github.com/users/mattiash/gists{/gist_id}","starred_url":"https://api.github.com/users/mattiash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattiash/subscriptions","organizations_url":"https://api.github.com/users/mattiash/orgs","repos_url":"https://api.github.com/users/mattiash/repos","events_url":"https://api.github.com/users/mattiash/events{/privacy}","received_events_url":"https://api.github.com/users/mattiash/received_events","type":"User","site_admin":false},"repo":{"id":98466635,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQ2NjYzNQ==","name":"castv2-device-monitor","full_name":"mattiash/castv2-device-monitor","owner":{"login":"mattiash","id":588898,"node_id":"MDQ6VXNlcjU4ODg5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/588898?v=4","gravatar_id":"","url":"https://api.github.com/users/mattiash","html_url":"https://github.com/mattiash","followers_url":"https://api.github.com/users/mattiash/followers","following_url":"https://api.github.com/users/mattiash/following{/other_user}","gists_url":"https://api.github.com/users/mattiash/gists{/gist_id}","starred_url":"https://api.github.com/users/mattiash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattiash/subscriptions","organizations_url":"https://api.github.com/users/mattiash/orgs","repos_url":"https://api.github.com/users/mattiash/repos","events_url":"https://api.github.com/users/mattiash/events{/privacy}","received_events_url":"https://api.github.com/users/mattiash/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattiash/castv2-device-monitor","description":"Monitor a castv2 (a.k.a Chromecast) device","fork":false,"url":"https://api.github.com/repos/mattiash/castv2-device-monitor","forks_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/forks","keys_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/teams","hooks_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/hooks","issue_events_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/events","assignees_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/tags","blobs_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/languages","stargazers_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/stargazers","contributors_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/contributors","subscribers_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/subscribers","subscription_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/subscription","commits_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/merges","archive_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/downloads","issues_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/labels{/name}","releases_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/releases{/id}","deployments_url":"https://api.github.com/repos/mattiash/castv2-device-monitor/deployments","created_at":"2017-07-26T21:18:05Z","updated_at":"2018-05-13T15:24:14Z","pushed_at":"2018-05-13T15:29:55Z","git_url":"git://github.com/mattiash/castv2-device-monitor.git","ssh_url":"git@github.com:mattiash/castv2-device-monitor.git","clone_url":"https://github.com/mattiash/castv2-device-monitor.git","svn_url":"https://github.com/mattiash/castv2-device-monitor","homepage":null,"size":34,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/3"},"html":{"href":"https://github.com/mattiash/castv2-device-monitor/pull/3"},"issue":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues/3"},"comments":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/mattiash/castv2-device-monitor/statuses/213dc0675f428cf072e4cd07a627cb4ab95f9875"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":7,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"nickcmaynard"}}