{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/1526","repository_url":"https://api.github.com/repos/balloob/home-assistant","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/1526/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/1526/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/1526/events","html_url":"https://github.com/balloob/home-assistant/pull/1526","id":140370900,"number":1526,"title":"Arduino switch: add support for default stat and negate port function…","user":{"login":"tilutza","id":5718468,"avatar_url":"https://avatars.githubusercontent.com/u/5718468?v=3","gravatar_id":"","url":"https://api.github.com/users/tilutza","html_url":"https://github.com/tilutza","followers_url":"https://api.github.com/users/tilutza/followers","following_url":"https://api.github.com/users/tilutza/following{/other_user}","gists_url":"https://api.github.com/users/tilutza/gists{/gist_id}","starred_url":"https://api.github.com/users/tilutza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilutza/subscriptions","organizations_url":"https://api.github.com/users/tilutza/orgs","repos_url":"https://api.github.com/users/tilutza/repos","events_url":"https://api.github.com/users/tilutza/events{/privacy}","received_events_url":"https://api.github.com/users/tilutza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-12T10:27:11Z","updated_at":"2016-03-22T15:40:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/balloob/home-assistant/pulls/1526","html_url":"https://github.com/balloob/home-assistant/pull/1526","diff_url":"https://github.com/balloob/home-assistant/pull/1526.diff","patch_url":"https://github.com/balloob/home-assistant/pull/1526.patch"},"body":"**Description:**\r\n- Now with an arduino switch you may have a on state when the application starts:\r\n    default: 'on'\r\n-Negate functionality: an off state may refer to a HIGH state pin on arduino\r\n    negate: 'yes' \r\n\r\nboth 'yes' and 'true' values are allowed for specify a positive state\r\n\r\n**Related issue (if applicable):** #\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\n switch:\r\n  platform: arduino\r\n  pins:\r\n    3:\r\n      name: Speakers\r\n      type: digital\r\n      default: 'off'\r\n      negate: yes\r\n\r\n\r\n```\r\n\r\n**Checklist:**\r\n\r\n- [ ] Local tests with `tox` run successfully.\r\n- [ ] TravisCI does not fail. **Your PR cannot be merged unless CI is green!**\r\n- [ ] [Fork is up to date][fork] and was rebased on the `dev` branch before creating the PR.\r\n- [ ] Commits have been [squashed][squash].\r\n- If code communicates with devices:\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- If the code does not interact with devices:\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/balloob/home-assistant/blob/dev/homeassistant/components/keyboard.py#L16\r\n[ex-import]: https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51\r\n"},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/199871524","html_url":"https://github.com/balloob/home-assistant/pull/1526#issuecomment-199871524","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/1526","id":199871524,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T15:40:33Z","updated_at":"2016-03-22T15:40:33Z","body":"Looks good :dolphin:"}}