{"id":15688026,"url":"https://github.com/robmarkcole/hass-kalman-filter","last_synced_at":"2025-05-07T20:10:24.026Z","repository":{"id":55502618,"uuid":"138126066","full_name":"robmarkcole/HASS-kalman-filter","owner":"robmarkcole","description":"Home-Assistant custom integration adding a 1D Kalman filter","archived":false,"fork":false,"pushed_at":"2020-12-26T08:30:19.000Z","size":328,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T15:34:02.122Z","etag":null,"topics":["home-assistant"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robmarkcole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-21T06:01:16.000Z","updated_at":"2025-03-21T04:30:22.000Z","dependencies_parsed_at":"2022-08-15T01:51:01.060Z","dependency_job_id":null,"html_url":"https://github.com/robmarkcole/HASS-kalman-filter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2FHASS-kalman-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2FHASS-kalman-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2FHASS-kalman-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2FHASS-kalman-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robmarkcole","download_url":"https://codeload.github.com/robmarkcole/HASS-kalman-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949279,"owners_count":21830152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["home-assistant"],"created_at":"2024-10-03T17:53:32.532Z","updated_at":"2025-05-07T20:10:24.001Z","avatar_url":"https://github.com/robmarkcole.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HASS-kalman-filter\nHome-Assistant custom component adding a [1D Kalman filter](https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python/blob/master/04-One-Dimensional-Kalman-Filters.ipynb). Some experimentation of the `sensitivity` of the filter may be required.\n\nPlace the `custom_components` folder in your configuration directory (or add its contents to an existing `custom_components` folder).\n\nAdd to your Home-Assistant config:\n\n```yaml\nsensor:\n  - platform: filter\n    name: \"kalman filtered humidity\"\n    entity_id: sensor.simulated_relative_humidity\n    filters:\n      - filter: kalman\n        sensitivity: 0.8\n```\nConfiguration variables:\n- **sensitivity**: (Optional, default 0.8) The sensitivity of the filter, which must be a positive number above 0.\n\n## Simulated sensor\nI am using a simulated sensor to generate the input data:\n```yaml\nsensor:\n  - platform: simulated\n    scan_interval: 1\n    name: 'simulated relative humidity'\n    unit: '%'\n    period: 20\n    amplitude: 0\n    mean: 50\n    spread: 5\n    seed: 999\n```\n\nI display the raw and filtered readings using a graph:\n```yaml\nhistory_graph:\n  humidity:\n    entities:\n      - sensor.simulated_relative_humidity\n      - sensor.kalman_filtered_humidity\n```\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/robmarkcole/HASS-kalman-filter/blob/master/usage.png\" width=\"500\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmarkcole%2Fhass-kalman-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobmarkcole%2Fhass-kalman-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmarkcole%2Fhass-kalman-filter/lists"}