{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12650","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12650/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12650/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12650/events","html_url":"https://github.com/home-assistant/home-assistant/pull/12650","id":299988255,"number":12650,"title":"Filter Sensor","user":{"login":"dgomes","id":137684,"avatar_url":"https://avatars2.githubusercontent.com/u/137684?v=4","gravatar_id":"","url":"https://api.github.com/users/dgomes","html_url":"https://github.com/dgomes","followers_url":"https://api.github.com/users/dgomes/followers","following_url":"https://api.github.com/users/dgomes/following{/other_user}","gists_url":"https://api.github.com/users/dgomes/gists{/gist_id}","starred_url":"https://api.github.com/users/dgomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgomes/subscriptions","organizations_url":"https://api.github.com/users/dgomes/orgs","repos_url":"https://api.github.com/users/dgomes/repos","events_url":"https://api.github.com/users/dgomes/events{/privacy}","received_events_url":"https://api.github.com/users/dgomes/received_events","type":"User","site_admin":false},"labels":[{"id":527871105,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/cla-signed","name":"cla-signed","color":"008000","default":false},{"id":526146744,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/new-platform","name":"new-platform","color":"ededed","default":false},{"id":840963745,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20sensor.filter","name":"platform: sensor.filter","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-25T01:24:49Z","updated_at":"2018-02-27T22:42:09Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12650","html_url":"https://github.com/home-assistant/home-assistant/pull/12650","diff_url":"https://github.com/home-assistant/home-assistant/pull/12650.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/12650.patch"},"body":"## Description:\r\n\r\nIntroduces the Filter Sensor platform (This PR comes in the aftermath of #12506)\r\n\r\nThis is a full rewrite using the **Template Sensor** pattern, and the configuration suggestion of @OttoWinter (thus supporting chaining).\r\n\r\n**Related issue (if applicable):** fixes #12506 \r\n\r\n**Pull request in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) with documentation (if applicable):** home-assistant/home-assistant.github.io#4725\r\n\r\n## Example entry for `configuration.yaml` (if applicable):\r\n```yaml\r\n  - platform: filter\r\n    name: \"filtered realistic humidity\"\r\n    entity_id: sensor.realistic_humidity\r\n    filters:\r\n      - filter: outlier\r\n        window_size: 4\r\n        radius: 4.0\r\n      - filter: lowpass\r\n        time_constant: 10\r\n        precision: 2\r\n```\r\n\r\n## Checklist:\r\n  - [x] The code change is tested and works locally.\r\n\r\nIf user exposed functionality or configuration variables are added/changed:\r\n  - [x] Documentation added/updated in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io)\r\n\r\nIf the code does not interact with devices:\r\n  - [x] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [x] Tests have been added to verify that the new code works.\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/369053363","html_url":"https://github.com/home-assistant/home-assistant/pull/12650#issuecomment-369053363","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12650","id":369053363,"user":{"login":"dgomes","id":137684,"avatar_url":"https://avatars2.githubusercontent.com/u/137684?v=4","gravatar_id":"","url":"https://api.github.com/users/dgomes","html_url":"https://github.com/dgomes","followers_url":"https://api.github.com/users/dgomes/followers","following_url":"https://api.github.com/users/dgomes/following{/other_user}","gists_url":"https://api.github.com/users/dgomes/gists{/gist_id}","starred_url":"https://api.github.com/users/dgomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgomes/subscriptions","organizations_url":"https://api.github.com/users/dgomes/orgs","repos_url":"https://api.github.com/users/dgomes/repos","events_url":"https://api.github.com/users/dgomes/events{/privacy}","received_events_url":"https://api.github.com/users/dgomes/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T22:42:09Z","updated_at":"2018-02-27T22:42:09Z","author_association":"CONTRIBUTOR","body":"I reverted... I just want the basic filter code through :)"}}
{"actor":{"display_login":"dgomes"}}