{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/75960034","id":75960034,"diff_hunk":"@@ -0,0 +1,15 @@\n+\"\"\"","path":"homeassistant/components/binary_sensor/sleepiq.py","position":1,"original_position":1,"commit_id":"19a1cece37d5b444d6d92672d62c7d6410f59b68","original_commit_id":"19a1cece37d5b444d6d92672d62c7d6410f59b68","user":{"login":"Teagan42","id":2989925,"avatar_url":"https://avatars.githubusercontent.com/u/2989925?v=3","gravatar_id":"","url":"https://api.github.com/users/Teagan42","html_url":"https://github.com/Teagan42","followers_url":"https://api.github.com/users/Teagan42/followers","following_url":"https://api.github.com/users/Teagan42/following{/other_user}","gists_url":"https://api.github.com/users/Teagan42/gists{/gist_id}","starred_url":"https://api.github.com/users/Teagan42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teagan42/subscriptions","organizations_url":"https://api.github.com/users/Teagan42/orgs","repos_url":"https://api.github.com/users/Teagan42/repos","events_url":"https://api.github.com/users/Teagan42/events{/privacy}","received_events_url":"https://api.github.com/users/Teagan42/received_events","type":"User","site_admin":false},"body":"Not sure the point of this file - know it's WIP but need more info to even understand","created_at":"2016-08-23T22:02:19Z","updated_at":"2016-08-23T22:02:19Z","html_url":"https://github.com/home-assistant/home-assistant/pull/2949#discussion_r75960034","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/75960034"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/2949#discussion_r75960034"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949","id":82448522,"html_url":"https://github.com/home-assistant/home-assistant/pull/2949","diff_url":"https://github.com/home-assistant/home-assistant/pull/2949.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/2949.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2949","number":2949,"state":"open","locked":false,"title":"[WIP] SleepIQ component with sensor and binary sensor platforms","user":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"body":"**Description:**\r\n\r\nMy bed has an API, so obviously I want to integrate it into homeassistant :D SleepNumber beds have an addon called [SleepIQ](http://www.sleepnumber.com/sn/en/sleepiq-sleep-tracker). It tracks sleep over time, and in particular, it does know if you are in bed or not, and it knows your 'SleepNumber' (firmness of the mattress). There are controls for changing the incline of the frame, and firmness, but it requires using bluetooth near the bed, and doesn't seem to be exposed by the API (I wrote the library sleepyq for interacting it, and made some notes: https://github.com/technicalpickles/sleepyq).\r\n\r\nThis is my first component, and my first real python, so definitely looking for feedback both in terms of style & implementation details. I started discussion about this over in https://community.home-assistant.io/t/feedback-on-component-for-sleepiq-beds/3132\r\n\r\n\r\n**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** TODO\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\nsleepiq:\r\n   login: !secret sleepiq_login\r\n  password: !secret sleepiq_password\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, web services, or a:\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`.\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\r\n","created_at":"2016-08-23T21:56:21Z","updated_at":"2016-08-23T22:02:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7433de9c21d6cef3cdd437b84a1ca817ebcec390","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949/comments","review_comment_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2949/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/19a1cece37d5b444d6d92672d62c7d6410f59b68","head":{"label":"technicalpickles:sleepiq","ref":"sleepiq","sha":"19a1cece37d5b444d6d92672d62c7d6410f59b68","user":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"repo":{"id":66112555,"name":"home-assistant","full_name":"technicalpickles/home-assistant","owner":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/technicalpickles/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/technicalpickles/home-assistant","forks_url":"https://api.github.com/repos/technicalpickles/home-assistant/forks","keys_url":"https://api.github.com/repos/technicalpickles/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/technicalpickles/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/technicalpickles/home-assistant/teams","hooks_url":"https://api.github.com/repos/technicalpickles/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/technicalpickles/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/technicalpickles/home-assistant/events","assignees_url":"https://api.github.com/repos/technicalpickles/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/technicalpickles/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/technicalpickles/home-assistant/tags","blobs_url":"https://api.github.com/repos/technicalpickles/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/technicalpickles/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/technicalpickles/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/technicalpickles/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/technicalpickles/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/technicalpickles/home-assistant/languages","stargazers_url":"https://api.github.com/repos/technicalpickles/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/technicalpickles/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/technicalpickles/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/technicalpickles/home-assistant/subscription","commits_url":"https://api.github.com/repos/technicalpickles/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/technicalpickles/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/technicalpickles/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/technicalpickles/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/technicalpickles/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/technicalpickles/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/technicalpickles/home-assistant/merges","archive_url":"https://api.github.com/repos/technicalpickles/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/technicalpickles/home-assistant/downloads","issues_url":"https://api.github.com/repos/technicalpickles/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/technicalpickles/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/technicalpickles/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/technicalpickles/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/technicalpickles/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/technicalpickles/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/technicalpickles/home-assistant/deployments","created_at":"2016-08-19T21:10:17Z","updated_at":"2016-08-19T21:10:20Z","pushed_at":"2016-08-23T20:56:06Z","git_url":"git://github.com/technicalpickles/home-assistant.git","ssh_url":"git@github.com:technicalpickles/home-assistant.git","clone_url":"https://github.com/technicalpickles/home-assistant.git","svn_url":"https://github.com/technicalpickles/home-assistant","homepage":"https://home-assistant.io","size":97586,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"2b4f0cb5a163c419755e14647e3dd61132984033","user":{"login":"home-assistant","id":13844975,"avatar_url":"https://avatars.githubusercontent.com/u/13844975?v=3","gravatar_id":"","url":"https://api.github.com/users/home-assistant","html_url":"https://github.com/home-assistant","followers_url":"https://api.github.com/users/home-assistant/followers","following_url":"https://api.github.com/users/home-assistant/following{/other_user}","gists_url":"https://api.github.com/users/home-assistant/gists{/gist_id}","starred_url":"https://api.github.com/users/home-assistant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/home-assistant/subscriptions","organizations_url":"https://api.github.com/users/home-assistant/orgs","repos_url":"https://api.github.com/users/home-assistant/repos","events_url":"https://api.github.com/users/home-assistant/events{/privacy}","received_events_url":"https://api.github.com/users/home-assistant/received_events","type":"Organization","site_admin":false},"repo":{"id":12888993,"name":"home-assistant","full_name":"home-assistant/home-assistant","owner":{"login":"home-assistant","id":13844975,"avatar_url":"https://avatars.githubusercontent.com/u/13844975?v=3","gravatar_id":"","url":"https://api.github.com/users/home-assistant","html_url":"https://github.com/home-assistant","followers_url":"https://api.github.com/users/home-assistant/followers","following_url":"https://api.github.com/users/home-assistant/following{/other_user}","gists_url":"https://api.github.com/users/home-assistant/gists{/gist_id}","starred_url":"https://api.github.com/users/home-assistant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/home-assistant/subscriptions","organizations_url":"https://api.github.com/users/home-assistant/orgs","repos_url":"https://api.github.com/users/home-assistant/repos","events_url":"https://api.github.com/users/home-assistant/events{/privacy}","received_events_url":"https://api.github.com/users/home-assistant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/home-assistant/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":false,"url":"https://api.github.com/repos/home-assistant/home-assistant","forks_url":"https://api.github.com/repos/home-assistant/home-assistant/forks","keys_url":"https://api.github.com/repos/home-assistant/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/home-assistant/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/home-assistant/home-assistant/teams","hooks_url":"https://api.github.com/repos/home-assistant/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/home-assistant/home-assistant/events","assignees_url":"https://api.github.com/repos/home-assistant/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/home-assistant/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/home-assistant/home-assistant/tags","blobs_url":"https://api.github.com/repos/home-assistant/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/home-assistant/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/home-assistant/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/home-assistant/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/home-assistant/home-assistant/languages","stargazers_url":"https://api.github.com/repos/home-assistant/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/home-assistant/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/home-assistant/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/home-assistant/home-assistant/subscription","commits_url":"https://api.github.com/repos/home-assistant/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/home-assistant/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/home-assistant/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/home-assistant/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/home-assistant/home-assistant/merges","archive_url":"https://api.github.com/repos/home-assistant/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/home-assistant/home-assistant/downloads","issues_url":"https://api.github.com/repos/home-assistant/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/home-assistant/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/home-assistant/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/home-assistant/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/home-assistant/home-assistant/deployments","created_at":"2013-09-17T07:29:48Z","updated_at":"2016-08-23T21:07:19Z","pushed_at":"2016-08-23T21:56:21Z","git_url":"git://github.com/home-assistant/home-assistant.git","ssh_url":"git@github.com:home-assistant/home-assistant.git","clone_url":"https://github.com/home-assistant/home-assistant.git","svn_url":"https://github.com/home-assistant/home-assistant","homepage":"https://home-assistant.io","size":75407,"stargazers_count":3905,"watchers_count":3905,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":925,"mirror_url":null,"open_issues_count":188,"forks":925,"open_issues":188,"watchers":3905,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/2949"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/2949"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/2949/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949/comments"},"review_comment":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2949/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/19a1cece37d5b444d6d92672d62c7d6410f59b68"}}}}
{"actor":{"display_login":"Teagan42"}}