{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/comments/88678507","pull_request_review_id":9246324,"id":88678507,"diff_hunk":"@@ -0,0 +1,78 @@\n+---\n+layout: page\n+title: \"RFXtrx Binary Sensor\"\n+description: \"Instructions how to integrate RFXtrx binary sensors into Home Assistant.\"\n+date: 2016-10-16 23:33\n+sidebar: true\n+comments: false\n+sharing: true\n+footer: true\n+logo: rfxtrx.png\n+ha_category: Binary Sensor\n+---\n+\n+The `rfxtrx` platform support binary sensors that communicate in the frequency range of 433.92 MHz. Many cheap sensors available on the web today are based on a particular RF chip called *PT-2262*. This kind of chip is supported by the rfxtrx platform under the *Lighting4* protocol.\n+The rfxtrx binary sensor component provides support for those sensors.\n+\n+# Setting up your devices\n+Once you have set up your [rfxtrx hub](/components/rfxtrx/), the easiest way to find your binary sensors is to add this to your `configuration.yaml`:\n+\n+```yaml\n+# Example configuration.yaml entry\n+binary_sensor:\n+  platform: rfxtrx\n+  automatic_add: True\n+```\n+\n+Open your local home-assistant web UI and go to the \"states\" page. Then make sure to trigger your sensor. You should see a new entity appear in the *Current entites* list, starting with \"binary_sensor.\" and some hexadecimal digits. Those hexadecimal digits are your device id.\n+\n+For example: \"binary_sensor.0913000022670e013b70\". Here your device id is `0913000022670e013b70`. Then you should update your configuration to:\n+\n+```yaml\n+# Example configuration.yaml entry\n+binary_sensor:\n+  platform: rfxtrx\n+  devices:\n+    0913000022670e013b70:\n+      name: device_name\n+```\n+\n+Do not forget to tweak the configuration variables:\n+\n+- **automatic_add** (*Optional*): To enable the automatic addition of new binary sensors.\n+- **sensor_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.\n+- **off_delay** (*Optional*): For sensors that only sends 'On' state updates, this variable sets a delay after which the sensor state will be updated back to 'Off'.\n+- **data_bits** (*Optional*): For PT-2262 based sensors, defines how many data bits are used by the device in its RF messages.\n+- **command_on** (*Optional*): For PT-2262 based sensors, defines the data bits value that is sent by the device upon an 'On' command.\n+- **command_off** (*Optional*): For PT-2262 based sensors, defines the data bits value that is sent by the device upon an 'Off' command.\n+\n+## Managing single-signal and multiple-signal sensors\n+Some sensors always send the same signal. For example, a motion sensor sends \"motion detected\" signals, but usually does not send any \"no more motion\" signal. It stays \"on\" for a few seconds and goes back to sleep, ready to signal other motion events. Some doorbells may also only send \"on\" signals when the toggle switch is pressed, but no \"off\" signal when the switch is released.\n+\n+For those devices, use the *off_delay* parameter. It defines a delay after which a device will go back to an \"Off\" state. That \"Off\" state will be fired internally by Home Assistant, just as if the device fired it by itself. If a motion sensor can fire signals once every 5 seconds, sets the *off_delay* parameter to *seconds: 5*.\n+\n+Some sensors are able to send different signals for several events: some door sensors can send both","path":"source/_components/binary_sensor.rfxtrx.markdown","position":54,"original_position":54,"commit_id":"6a9e9ef498d1115fd6ce4c904f0a16484ec0f853","original_commit_id":"6a9e9ef498d1115fd6ce4c904f0a16484ec0f853","user":{"login":"Landrash","id":1756938,"avatar_url":"https://avatars.githubusercontent.com/u/1756938?v=3","gravatar_id":"","url":"https://api.github.com/users/Landrash","html_url":"https://github.com/Landrash","followers_url":"https://api.github.com/users/Landrash/followers","following_url":"https://api.github.com/users/Landrash/following{/other_user}","gists_url":"https://api.github.com/users/Landrash/gists{/gist_id}","starred_url":"https://api.github.com/users/Landrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Landrash/subscriptions","organizations_url":"https://api.github.com/users/Landrash/orgs","repos_url":"https://api.github.com/users/Landrash/repos","events_url":"https://api.github.com/users/Landrash/events{/privacy}","received_events_url":"https://api.github.com/users/Landrash/received_events","type":"User","site_admin":false},"body":"Door sensors letting you know that a window is opened? I get the point but it looks a bit funny when reading.","created_at":"2016-11-18T15:34:56Z","updated_at":"2016-11-18T15:36:59Z","html_url":"https://github.com/home-assistant/home-assistant.github.io/pull/1399#discussion_r88678507","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/comments/88678507"},"html":{"href":"https://github.com/home-assistant/home-assistant.github.io/pull/1399#discussion_r88678507"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399","id":92424136,"html_url":"https://github.com/home-assistant/home-assistant.github.io/pull/1399","diff_url":"https://github.com/home-assistant/home-assistant.github.io/pull/1399.diff","patch_url":"https://github.com/home-assistant/home-assistant.github.io/pull/1399.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues/1399","number":1399,"state":"open","locked":false,"title":"Added new platform \"rfxtrx\" for binary_sensor component.","user":{"login":"y-pollart","id":17440330,"avatar_url":"https://avatars.githubusercontent.com/u/17440330?v=3","gravatar_id":"","url":"https://api.github.com/users/y-pollart","html_url":"https://github.com/y-pollart","followers_url":"https://api.github.com/users/y-pollart/followers","following_url":"https://api.github.com/users/y-pollart/following{/other_user}","gists_url":"https://api.github.com/users/y-pollart/gists{/gist_id}","starred_url":"https://api.github.com/users/y-pollart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-pollart/subscriptions","organizations_url":"https://api.github.com/users/y-pollart/orgs","repos_url":"https://api.github.com/users/y-pollart/repos","events_url":"https://api.github.com/users/y-pollart/events{/privacy}","received_events_url":"https://api.github.com/users/y-pollart/received_events","type":"User","site_admin":false},"body":"**Description:**\r\nThis is the documentation for my \"rfxtrx\" binary sensor component. It describes how to configure the new component platform.\r\n\r\n**Pull request in [home-assistant](https://github.com/home-assistant/home-assistant) (if applicable):** https://github.com/home-assistant/home-assistant/pull/4218\r\n\r\n","created_at":"2016-11-04T22:12:43Z","updated_at":"2016-11-18T15:36:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9a6cb0468b22176943c313aa9a54c27a3b01f5f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399/comments","review_comment_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues/1399/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/statuses/6a9e9ef498d1115fd6ce4c904f0a16484ec0f853","head":{"label":"y-pollart:next","ref":"next","sha":"6a9e9ef498d1115fd6ce4c904f0a16484ec0f853","user":{"login":"y-pollart","id":17440330,"avatar_url":"https://avatars.githubusercontent.com/u/17440330?v=3","gravatar_id":"","url":"https://api.github.com/users/y-pollart","html_url":"https://github.com/y-pollart","followers_url":"https://api.github.com/users/y-pollart/followers","following_url":"https://api.github.com/users/y-pollart/following{/other_user}","gists_url":"https://api.github.com/users/y-pollart/gists{/gist_id}","starred_url":"https://api.github.com/users/y-pollart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-pollart/subscriptions","organizations_url":"https://api.github.com/users/y-pollart/orgs","repos_url":"https://api.github.com/users/y-pollart/repos","events_url":"https://api.github.com/users/y-pollart/events{/privacy}","received_events_url":"https://api.github.com/users/y-pollart/received_events","type":"User","site_admin":false},"repo":{"id":71061754,"name":"home-assistant.github.io","full_name":"y-pollart/home-assistant.github.io","owner":{"login":"y-pollart","id":17440330,"avatar_url":"https://avatars.githubusercontent.com/u/17440330?v=3","gravatar_id":"","url":"https://api.github.com/users/y-pollart","html_url":"https://github.com/y-pollart","followers_url":"https://api.github.com/users/y-pollart/followers","following_url":"https://api.github.com/users/y-pollart/following{/other_user}","gists_url":"https://api.github.com/users/y-pollart/gists{/gist_id}","starred_url":"https://api.github.com/users/y-pollart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-pollart/subscriptions","organizations_url":"https://api.github.com/users/y-pollart/orgs","repos_url":"https://api.github.com/users/y-pollart/repos","events_url":"https://api.github.com/users/y-pollart/events{/privacy}","received_events_url":"https://api.github.com/users/y-pollart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/y-pollart/home-assistant.github.io","description":":blue_book: Jekyll project to generate home-assistant.io","fork":true,"url":"https://api.github.com/repos/y-pollart/home-assistant.github.io","forks_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/forks","keys_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/teams","hooks_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/hooks","issue_events_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/events","assignees_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/tags","blobs_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/languages","stargazers_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/stargazers","contributors_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/contributors","subscribers_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/subscribers","subscription_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/subscription","commits_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/merges","archive_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/downloads","issues_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/labels{/name}","releases_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/y-pollart/home-assistant.github.io/deployments","created_at":"2016-10-16T16:12:46Z","updated_at":"2016-10-16T16:12:52Z","pushed_at":"2016-11-05T10:10:49Z","git_url":"git://github.com/y-pollart/home-assistant.github.io.git","ssh_url":"git@github.com:y-pollart/home-assistant.github.io.git","clone_url":"https://github.com/y-pollart/home-assistant.github.io.git","svn_url":"https://github.com/y-pollart/home-assistant.github.io","homepage":"https://home-assistant.io","size":80415,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"next"}},"base":{"label":"home-assistant:next","ref":"next","sha":"2ad0aa0c628dd4ede87d00d6dd5080da00f92e61","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":28312955,"name":"home-assistant.github.io","full_name":"home-assistant/home-assistant.github.io","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.github.io","description":":blue_book: Jekyll project to generate home-assistant.io","fork":false,"url":"https://api.github.com/repos/home-assistant/home-assistant.github.io","forks_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/forks","keys_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/teams","hooks_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/hooks","issue_events_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/events","assignees_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/tags","blobs_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/languages","stargazers_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/stargazers","contributors_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/contributors","subscribers_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/subscribers","subscription_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/subscription","commits_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/merges","archive_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/downloads","issues_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/labels{/name}","releases_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/home-assistant/home-assistant.github.io/deployments","created_at":"2014-12-21T20:59:21Z","updated_at":"2016-11-18T03:01:59Z","pushed_at":"2016-11-18T14:22:35Z","git_url":"git://github.com/home-assistant/home-assistant.github.io.git","ssh_url":"git@github.com:home-assistant/home-assistant.github.io.git","clone_url":"https://github.com/home-assistant/home-assistant.github.io.git","svn_url":"https://github.com/home-assistant/home-assistant.github.io","homepage":"https://home-assistant.io","size":96791,"stargazers_count":109,"watchers_count":109,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":506,"mirror_url":null,"open_issues_count":32,"forks":506,"open_issues":32,"watchers":109,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399"},"html":{"href":"https://github.com/home-assistant/home-assistant.github.io/pull/1399"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues/1399"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/issues/1399/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399/comments"},"review_comment":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/pulls/1399/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant.github.io/statuses/6a9e9ef498d1115fd6ce4c904f0a16484ec0f853"}}}}
{"actor":{"display_login":"Landrash"}}