{"id":13585380,"url":"https://github.com/Sanderhuisman/home-assistant-custom-components","last_synced_at":"2025-04-07T09:34:44.124Z","repository":{"id":45502545,"uuid":"166216739","full_name":"Sanderhuisman/home-assistant-custom-components","owner":"Sanderhuisman","description":"🏡 Custom components for Home-Assistant","archived":false,"fork":false,"pushed_at":"2020-09-02T16:37:04.000Z","size":168,"stargazers_count":33,"open_issues_count":8,"forks_count":12,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-02T16:00:07.872Z","etag":null,"topics":["home-assistant","home-assistant-custom","python3"],"latest_commit_sha":null,"homepage":"https://www.home-assistant.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sanderhuisman.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":"2019-01-17T11:45:38.000Z","updated_at":"2024-05-03T09:45:00.000Z","dependencies_parsed_at":"2022-07-15T09:17:02.684Z","dependency_job_id":null,"html_url":"https://github.com/Sanderhuisman/home-assistant-custom-components","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanderhuisman%2Fhome-assistant-custom-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanderhuisman%2Fhome-assistant-custom-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanderhuisman%2Fhome-assistant-custom-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanderhuisman%2Fhome-assistant-custom-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sanderhuisman","download_url":"https://codeload.github.com/Sanderhuisman/home-assistant-custom-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223277830,"owners_count":17118651,"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","home-assistant-custom","python3"],"created_at":"2024-08-01T15:04:54.598Z","updated_at":"2024-11-06T03:30:59.760Z","avatar_url":"https://github.com/Sanderhuisman.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Custom components for Home Assistant\n\n[![maintainer](https://img.shields.io/badge/maintainer-Sander%20Huisman%20-blue.svg?style=for-the-badge)](https://github.com/Sanderhuisman)\n\n## About\n\nThis repository contains custom components I developed for my own [Home-Assistant](https://www.home-assistant.io) setup. Feel free to use the components and report bugs if you find them. If you want to contribute, please report a bug or pull request and I will reply as soon as possible. Please star \u0026 watch my project such I can see how many people like my components and for you to stay in the loop as updates come along.\n\n## Components\n\n* [Docker Monitor](#docker_monitor)\n* [Eetlijst sensor](#eetlijst)\n* [Luftdaten](#luftdaten)\n\n### Docker Monitor \u003ca name=\"docker_monitor\"\u003e\u003c/a\u003e\n\nThe Docker monitor allows you to monitor statistics and turn on/off containers. The monitor can connected to a daemon through the url parameter. When home assistant is used within a Docker container, the daemon can be mounted as follows `-v /var/run/docker.sock:/var/run/docker.sock`. The monitor is based on [Glances](https://github.com/nicolargo/glances) and [ha-dockermon](https://github.com/philhawthorne/ha-dockermon) and combines (in my opinion the best of both integrated in HA :)).\n\n**Important note: as the loading path of platforms have been changed in issue [#20807](https://github.com/home-assistant/home-assistant/pull/20807), the current version requires HA versions 0.88 and above. For older versions, use version [0.0.1](https://github.com/Sanderhuisman/home-assistant-custom-components/releases/tag/0.0.1).**\n\n#### Events\n\nThe monitor can listen for events on the Docker event bus and can fire an event on the Home Assistant Bus. The monitor will use the following event:\n\n* `{name}_container_event` with name the same set in the configuration.\n\nThe event will contain the following data:\n\n* `Container`: Container name\n* `Image`: Container image\n* `Status`: Container satus\n* `Id`: Container ID (long)\n\n#### Configuration\n\nTo use the `docker_monitor` in your installation, add the following to your `configuration.yaml` file:\n\n```yaml\n# Example configuration.yaml entry\ndocker_monitor:\n  containers:\n    - homeassistant_homeassistant_1\n    - homeassistant_mariadb_1\n    - homeassistant_mosquitto_1\n  monitored_conditions:\n    - utilization_version\n    - container_status\n    - container_memory_usage\n    - container_memory_percentage_usage\n    - container_cpu_percentage_usage\n```\n\n##### Configuration variables\n\n| Parameter            | Type                     | Description                                                           |\n| -------------------- | ------------------------ | --------------------------------------------------------------------- |\n| name                 | string       (Optional)  | Client name of Docker daemon. Defaults to `Docker`.                   |\n| url                  | string       (Optional)  | Host URL of Docker daemon. Defaults to `unix://var/run/docker.sock`.  |\n| scan_interval        | time_period  (Optional)  | Update interval. Defaults to 10 seconds.                              |\n| events               | boolean      (Optional)  | Listen for events from Docker. Defaults to false.                     |\n| containers           | list         (Optional)  | Array of containers to monitor. Defaults to all containers.           |\n| monitored_conditions | list         (Optional)  | Array of conditions to be monitored. Defaults to all conditions       |\n\n| Condition                         | Description                     | Unit  |\n| --------------------------------- | ------------------------------- | ----- |\n| utilization_version               | Docker version                  | -     |\n| container_status                  | Container status                | -     |\n| container_uptime                  | Container start time            | -     |\n| container_image                   | Container image                 | -     |\n| container_cpu_percentage_usage    | CPU usage                       | %     |\n| container_memory_usage            | Memory usage                    | MB    |\n| container_memory_percentage_usage | Memory usage                    | %     |\n| container_network_speed_up        | Network total speed upstream    | kB/s  |\n| container_network_speed_down      | Network total speed downstream  | kB/s  |\n| container_network_total_up        | Network total upstream          | MB    |\n| container_network_total_down      | Network total downstream        | MB    |\n\n### Eetlijst Sensor \u003ca name=\"eetlijst\"\u003e\u003c/a\u003e\n\nAn Eetlijst sensor to monitor the eat/cook status of your student home.\n\n#### Configuration\n\nTo use `eetlijst` in your installation, add the following to your `configuration.yaml` file:\n\n```yaml\n# Example configuration.yaml entry\nsensor:\n  - platform: eetlijst\n    username: !secret eetlijst_username\n    password: !secret eetlijst_password\n```\n\n##### Configuration variables\n\n| Parameter             | Type                    | Description   |\n| --------------------- | ----------------------- | ------------- |\n| username              | string       (Required) | Username      |\n| password              | string       (Required) | Password      |\n\n### Lufdaten Sensor \u003ca name=\"luftdaten\"\u003e\u003c/a\u003e\n\nA custom Luftdaten sensor to monitor polution of a station.\n\n#### Configuration\n\nTo use `luftdaten_cu` in your installation, add the following to your `configuration.yaml` file:\n\n```yaml\n# Example configuration.yaml entry\nsensor:\n  - platform: luftdaten_cu\n    sensorid: 15307\n    monitored_conditions:\n      - P1\n      - P2\n```\n\n##### Configuration variables\n\n| Parameter             | Type                    | Description                                                     |\n| --------------------- | ----------------------- | --------------------------------------------------------------- |\n| sensorid              | int          (Required) | Sensor id of the lufdaten sensor to be monitored.               |\n| monitored_conditions  | list         (Optional) | Array of conditions to be monitored. Defaults to all conditions |\n\n| Condition                         | Description           | Unit  |\n| --------------------------------- | --------------------- | ----- |\n| temperature                       | Temperature           | °C    |\n| humidity                          | Container status      | %     |\n| pressure                          | Air pressure          | Pa    |\n| P1                                | PM10                  | µg/m3 |\n| P2                                | PM2.5                 | µg/m3 |\n\n## Track Updates\nThis custom component can be tracked with the help of [custom-lovelace](https://github.com/ciotlosm/custom-lovelace) cards with the [custom_updater](https://github.com/custom-cards/tracker-card) card.\n\nIn your configuration.yaml\n\n```yaml\ncustom_updater:\n component_urls:\n   - 'https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/custom_updater.json'\n```\n\n## Credits\n\n* [frenck](https://github.com/frenck/home-assistant-config)\n* [robmarkcole](https://github.com/robmarkcole/Hue-sensors-HASS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSanderhuisman%2Fhome-assistant-custom-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSanderhuisman%2Fhome-assistant-custom-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSanderhuisman%2Fhome-assistant-custom-components/lists"}