{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18501","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18501/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18501/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18501/events","html_url":"https://github.com/home-assistant/home-assistant/pull/18501","id":381417054,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMzk0NjQw","number":18501,"title":"Act as a toggle with same payload","user":{"login":"MattyBoy4444","id":362606,"node_id":"MDQ6VXNlcjM2MjYwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/362606?v=4","gravatar_id":"","url":"https://api.github.com/users/MattyBoy4444","html_url":"https://github.com/MattyBoy4444","followers_url":"https://api.github.com/users/MattyBoy4444/followers","following_url":"https://api.github.com/users/MattyBoy4444/following{/other_user}","gists_url":"https://api.github.com/users/MattyBoy4444/gists{/gist_id}","starred_url":"https://api.github.com/users/MattyBoy4444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattyBoy4444/subscriptions","organizations_url":"https://api.github.com/users/MattyBoy4444/orgs","repos_url":"https://api.github.com/users/MattyBoy4444/repos","events_url":"https://api.github.com/users/MattyBoy4444/events{/privacy}","received_events_url":"https://api.github.com/users/MattyBoy4444/received_events","type":"User","site_admin":false},"labels":[{"id":527909495,"node_id":"MDU6TGFiZWw1Mjc5MDk0OTU=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/cla-needed","name":"cla-needed","color":"ffff00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-16T02:11:35Z","updated_at":"2018-11-16T02:11:36Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/18501","html_url":"https://github.com/home-assistant/home-assistant/pull/18501","diff_url":"https://github.com/home-assistant/home-assistant/pull/18501.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/18501.patch"},"body":"## Description:\r\nIf payload_on and payload_off are the same value, then it will act as a toggle.  This comes in handy when using a remote control/fob.  Otherwise, it doesn't change functionality.\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#<home-assistant.io PR number goes here>\r\n\r\n## Example entry for `configuration.yaml` (if applicable):\r\n```yaml\r\nbinary_sensor:\r\n  -platform: mqtt\r\n  state_topic: [topic]\r\n  name: [name]\r\n  payload_on: [value]\r\n  payload_off: [value same as on]\r\n```\r\n\r\n## Checklist:\r\n  - [x] The code change is tested and works locally.\r\n  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**\r\n  - [x] There is no commented out code in this PR."},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/439257915","html_url":"https://github.com/home-assistant/home-assistant/pull/18501#issuecomment-439257915","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18501","id":439257915,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTI1NzkxNQ==","user":{"login":"homeassistant","id":23041403,"node_id":"MDQ6VXNlcjIzMDQxNDAz","avatar_url":"https://avatars3.githubusercontent.com/u/23041403?v=4","gravatar_id":"","url":"https://api.github.com/users/homeassistant","html_url":"https://github.com/homeassistant","followers_url":"https://api.github.com/users/homeassistant/followers","following_url":"https://api.github.com/users/homeassistant/following{/other_user}","gists_url":"https://api.github.com/users/homeassistant/gists{/gist_id}","starred_url":"https://api.github.com/users/homeassistant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homeassistant/subscriptions","organizations_url":"https://api.github.com/users/homeassistant/orgs","repos_url":"https://api.github.com/users/homeassistant/repos","events_url":"https://api.github.com/users/homeassistant/events{/privacy}","received_events_url":"https://api.github.com/users/homeassistant/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T02:11:36Z","updated_at":"2018-11-16T02:11:36Z","author_association":"NONE","body":"Hi @MattyBoy4444, \n\nIt seems you haven't yet signed a CLA. Please do so [here](https://home-assistant.io/developers/cla_sign_start/?pr=home-assistant&#x2F;home-assistant#18501).\n\nOnce you do that we will be able to review and accept this pull request.\n\nThanks!\n"}}
{"actor":{"display_login":"homeassistant"}}