{"id":13597567,"url":"https://github.com/linuxserver/docker-homeassistant","last_synced_at":"2026-04-24T22:01:33.397Z","repository":{"id":40447749,"uuid":"332458699","full_name":"linuxserver/docker-homeassistant","owner":"linuxserver","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-15T03:55:48.000Z","size":875,"stargazers_count":274,"open_issues_count":1,"forks_count":30,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-04-15T05:22:57.062Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"linuxserver","open_collective":"linuxserver"}},"created_at":"2021-01-24T13:38:04.000Z","updated_at":"2026-04-15T03:40:20.000Z","dependencies_parsed_at":"2023-09-23T18:08:27.758Z","dependency_job_id":"3bbac8ee-ca8a-4240-aaf9-62553e47efbf","html_url":"https://github.com/linuxserver/docker-homeassistant","commit_stats":{"total_commits":440,"total_committers":11,"mean_commits":40.0,"dds":0.1681818181818182,"last_synced_commit":"9b5edd519185fc10d9ae4942a64e399de0ef5987"},"previous_names":[],"tags_count":586,"template":false,"template_full_name":null,"purl":"pkg:github/linuxserver/docker-homeassistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-homeassistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-homeassistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-homeassistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-homeassistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxserver","download_url":"https://codeload.github.com/linuxserver/docker-homeassistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-homeassistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32242315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hacktoberfest"],"created_at":"2024-08-01T17:00:36.271Z","updated_at":"2026-04-24T22:01:33.377Z","avatar_url":"https://github.com/linuxserver.png","language":"Dockerfile","readme":"\u003c!-- DO NOT EDIT THIS FILE MANUALLY --\u003e\n\u003c!-- Please read https://github.com/linuxserver/docker-homeassistant/blob/main/.github/CONTRIBUTING.md --\u003e\n[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)\n\n[![Blog](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=Blog)](https://blog.linuxserver.io \"all the things you can do with our containers including How-To guides, opinions and much more!\")\n[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=Discord\u0026logo=discord)](https://linuxserver.io/discord \"realtime support / chat with the community and the team.\")\n[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026logo=discourse)](https://discourse.linuxserver.io \"post on our community forum.\")\n[![GitHub](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=GitHub\u0026logo=github)](https://github.com/linuxserver \"view the source for all of our repositories.\")\n[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=Supporters\u0026logo=open%20collective)](https://opencollective.com/linuxserver \"please consider helping us by either donating or contributing to our budget\")\n\nThe [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:\n\n* regular and timely application updates\n* easy user mappings (PGID, PUID)\n* custom base image with s6 overlay\n* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth\n* regular security updates\n\nFind us at:\n\n* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!\n* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team.\n* [Discourse](https://discourse.linuxserver.io) - post on our community forum.\n* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.\n* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget\n\n# [linuxserver/homeassistant](https://github.com/linuxserver/docker-homeassistant)\n\n[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Fhomeassistant?color=94398d\u0026label-color=555555\u0026logo-color=ffffff\u0026style=for-the-badge\u0026package-type=docker)](https://scarf.sh)\n[![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-homeassistant.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026logo=github)](https://github.com/linuxserver/docker-homeassistant)\n[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-homeassistant.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026logo=github)](https://github.com/linuxserver/docker-homeassistant/releases)\n[![GitHub Package Repository](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=GitHub%20Package\u0026logo=github)](https://github.com/linuxserver/docker-homeassistant/packages)\n[![GitLab Container Registry](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=GitLab%20Registry\u0026logo=gitlab)](https://gitlab.com/linuxserver.io/docker-homeassistant/container_registry)\n[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=Quay.io)](https://quay.io/repository/linuxserver.io/homeassistant)\n[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/homeassistant.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=pulls\u0026logo=docker)](https://hub.docker.com/r/linuxserver/homeassistant)\n[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/homeassistant.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=stars\u0026logo=docker)](https://hub.docker.com/r/linuxserver/homeassistant)\n[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-homeassistant%2Fjob%2Fmain%2F\u0026logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-homeassistant/job/main/)\n[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=CI\u0026query=CI\u0026url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fhomeassistant%2Flatest%2Fci-status.yml)](https://ci-tests.linuxserver.io/linuxserver/homeassistant/latest/index.html)\n\n[Home Assistant Core](https://www.home-assistant.io/) - Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server\n\n[![homeassistant](https://github.com/home-assistant/home-assistant.io/raw/next/source/images/favicon-192x192-full.png)](https://www.home-assistant.io/)\n\n## Supported Architectures\n\nWe utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).\n\nSimply pulling `lscr.io/linuxserver/homeassistant:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.\n\nThe architectures supported by this image are:\n\n| Architecture | Available | Tag |\n| :----: | :----: | ---- |\n| x86-64 | ✅ | amd64-\\\u003cversion tag\\\u003e |\n| arm64 | ✅ | arm64v8-\\\u003cversion tag\\\u003e |\n\n## Application Setup\n\nThis image is based on Home Assistant Core.\n\nThe Webui can be found at `http://your-ip:8123`. Follow the wizard to set up Home Assistant.\n\n### Host vs. Bridge\n\nHome Assistant can [discover][hb0] and automatically configure\n[zeroconf][hb1]/[mDNS][hb2] and [UPnP][hb3] devices on your network. In\norder for this to work you must create the container with `--net=host`.\n\n[hb0]: https://www.home-assistant.io/integrations/discovery/#mdns-and-upnp\n[hb1]: https://en.wikipedia.org/wiki/Zero-configuration_networking\n[hb2]: https://en.wikipedia.org/wiki/Multicast_DNS\n[hb3]: https://en.wikipedia.org/wiki/Universal_Plug_and_Play\n\n### Accessing Bluetooth Device\n\nIn order to provide HA with access to the host's Bluetooth device, one needs to install BlueZ on the host, add the capabilities `NET_ADMIN` and `NET_RAW` to the container, and map dbus as a volume as shown in the below examples.\n\n#### Docker Cli:\n```bash\n--cap-add=NET_ADMIN --cap-add=NET_RAW -v /run/dbus:/run/dbus:ro\n```\n\n#### Docker Compose:\n```yaml\n    cap_add:\n      - NET_ADMIN\n      - NET_RAW\n    volumes:\n      - /run/dbus:/run/dbus:ro\n```\n\nIf the dbus path on host differs, such as `/var/run/dbus`, then you can map it as `/var/run/dbus:/run/dbus:ro`.\n\n### Using the Ping integration\n\nFor the [Ping][ping0] integration to work, the capability `NET_RAW` must be added to the container. See above for instructions.\n\n[ping0]: https://www.home-assistant.io/integrations/ping\n\n## Usage\n\nTo help you get started creating a container from this image you can either use docker-compose or the docker cli.\n\n\u003e[!NOTE]\n\u003eUnless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.\n\n### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))\n\n```yaml\n---\nservices:\n  homeassistant:\n    image: lscr.io/linuxserver/homeassistant:latest\n    container_name: homeassistant\n    network_mode: host\n    environment:\n      - PUID=1000\n      - PGID=1000\n      - TZ=Etc/UTC\n    volumes:\n      - /path/to/homeassistant/data:/config\n    ports:\n      - 8123:8123 #optional\n    devices:\n      - /path/to/device:/path/to/device #optional\n    restart: unless-stopped\n```\n\n### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))\n\n```bash\ndocker run -d \\\n  --name=homeassistant \\\n  --net=host \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e TZ=Etc/UTC \\\n  -p 8123:8123 `#optional` \\\n  -v /path/to/homeassistant/data:/config \\\n  --device /path/to/device:/path/to/device `#optional` \\\n  --restart unless-stopped \\\n  lscr.io/linuxserver/homeassistant:latest\n```\n\n## Parameters\n\nContainers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `\u003cexternal\u003e:\u003cinternal\u003e` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.\n\n| Parameter | Function |\n| :----: | --- |\n| `--net=host` | Shares host networking with container. Required for some devices to be discovered by Home Assistant. |\n| `-p 8123` | Application WebUI, only use this if you are not using host mode. |\n| `-e PUID=1000` | for UserID - see below for explanation |\n| `-e PGID=1000` | for GroupID - see below for explanation |\n| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |\n| `-v /config` | Home Assistant config storage path. |\n| `--device /path/to/device` | For passing through USB, serial or gpio devices. |\n\n## Environment variables from files (Docker secrets)\n\nYou can set any environment variable from a file by using a special prepend `FILE__`.\n\nAs an example:\n\n```bash\n-e FILE__MYVAR=/run/secrets/mysecretvariable\n```\n\nWill set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.\n\n## Umask for running applications\n\nFor all of our images we provide the ability to override the default umask settings for services started within the containers using the optional `-e UMASK=022` setting.\nKeep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up [here](https://en.wikipedia.org/wiki/Umask) before asking for support.\n\n## User / Group Identifiers\n\nWhen using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.\n\nEnsure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.\n\nIn this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:\n\n```bash\nid your_user\n```\n\nExample output:\n\n```text\nuid=1000(your_user) gid=1000(your_user) groups=1000(your_user)\n```\n\n## Docker Mods\n\n[![Docker Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=homeassistant\u0026query=%24.mods%5B%27homeassistant%27%5D.mod_count\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=homeassistant \"view available mods for this container.\") [![Docker Universal Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=universal\u0026query=%24.mods%5B%27universal%27%5D.mod_count\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=universal \"view available universal mods.\")\n\nWe publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.\n\n## Support Info\n\n* Shell access whilst the container is running:\n\n    ```bash\n    docker exec -it homeassistant /bin/bash\n    ```\n\n* To monitor the logs of the container in realtime:\n\n    ```bash\n    docker logs -f homeassistant\n    ```\n\n* Container version number:\n\n    ```bash\n    docker inspect -f '{{ index .Config.Labels \"build_version\" }}' homeassistant\n    ```\n\n* Image version number:\n\n    ```bash\n    docker inspect -f '{{ index .Config.Labels \"build_version\" }}' lscr.io/linuxserver/homeassistant:latest\n    ```\n\n## Updating Info\n\nMost of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.\n\nBelow are the instructions for updating containers:\n\n### Via Docker Compose\n\n* Update images:\n    * All images:\n\n        ```bash\n        docker-compose pull\n        ```\n\n    * Single image:\n\n        ```bash\n        docker-compose pull homeassistant\n        ```\n\n* Update containers:\n    * All containers:\n\n        ```bash\n        docker-compose up -d\n        ```\n\n    * Single container:\n\n        ```bash\n        docker-compose up -d homeassistant\n        ```\n\n* You can also remove the old dangling images:\n\n    ```bash\n    docker image prune\n    ```\n\n### Via Docker Run\n\n* Update the image:\n\n    ```bash\n    docker pull lscr.io/linuxserver/homeassistant:latest\n    ```\n\n* Stop the running container:\n\n    ```bash\n    docker stop homeassistant\n    ```\n\n* Delete the container:\n\n    ```bash\n    docker rm homeassistant\n    ```\n\n* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)\n* You can also remove the old dangling images:\n\n    ```bash\n    docker image prune\n    ```\n\n### Image Update Notifications - Diun (Docker Image Update Notifier)\n\n\u003e[!TIP]\n\u003eWe recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.\n\n## Building locally\n\nIf you want to make local modifications to these images for development purposes or just to customize the logic:\n\n```bash\ngit clone https://github.com/linuxserver/docker-homeassistant.git\ncd docker-homeassistant\ndocker build \\\n  --no-cache \\\n  --pull \\\n  -t lscr.io/linuxserver/homeassistant:latest .\n```\n\nThe ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`\n\n```bash\ndocker run --rm --privileged lscr.io/linuxserver/qemu-static --reset\n```\n\nOnce registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.\n\n## Versions\n\n* **05.03.26:** - Remove pycups as there are no python 3.14 wheels for it.\n* **02.10.25:** - Rebase to alpine 3.22, rely on baseimage service for usb device permission fixing.\n* **19.09.25:** - Add the necessary capabilities in the container to allow the unprivileged user access to bluetooth stack.\n* **03.01.25:** - Rebase to alpine 3.21.\n* **04.12.24:** - Make setcap target dynamic.\n* **07.11.24:** - Add go2rtc binary.\n* **12.10.24:** - Allow uv to modify system python packages.\n* **07.10.24:** - Switch to `uv` instead of `pip`.\n* **03.07.24:** - Rebase to alpine 3.20.\n* **05.03.24:** - Add mime.types to help with detection of certain media files.\n* **13.02.24:** - Rebase to alpine 3.19, upgrade to python 3.12. Restructure python packages so all packages are internal (no more venv in /config). Use upstream project's wheels. Due to an upstream issue, on first start of the newly updated container, some custom integrations may be disabled in HA due to missing dependencies. A subsequent container restart should fix that and the integrations should be re-enabled.\n* **18.12.23:** - Add Bluetooth instructions to readme.\n* **05.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)\n* **21.06.23:** - Pin pycups version.\n* **14.06.23:** - Create secondary venv in `/config` for pip installs.\n* **07.06.23:** - Rebase to alpine 3.18, switch to cp311 wheels.\n* **03.05.23:** - Deprecate arm32v7. Latest HA version with an arm32v7 build is `2023.4.6`.\n* **16.11.22:** - Fix the dep conflict for google calendar.\n* **23.09.22:** - Migrate to s6v3.\n* **29.07.22:** - Improve usb device permission fix.\n* **07.07.22:** - Rebase to alpine 3.16, switch to cp310 wheels.\n* **07.05.22:** - Build matplotlib with the same Numpy version as HA req.\n* **31.03.22:** - Install pycups.\n* **07.03.22:** - Install PySwitchbot.\n* **02.03.22:** - Update pip and use legacy resolver, clean up temp python files, reduce image size.\n* **04.02.22:** - Always compile grpcio on arm32v7 due to pypi pushing a glibc only wheel.\n* **12.12.21:** - Use the new `build.yaml` to determine HA base version.\n* **25.09.21:** - Use the new lsio homeassistant wheel repo, instead of the HA wheels.\n* **13.09.21:** - Build psycopg locally as the HA provided wheel does not seem to work properly.\n* **13.09.21:** - Fix setcap in service. Build CISO8601 locally as the HA provided wheel does not seem to work properly.\n* **12.09.21:** - Rebase to alpine 3.14. Build on native armhf.\n* **09.08.21:** - Fixed broken build caused by missing dependency.\n* **01.07.21:** - Remove HACS dependencies as it caused a crash in Home-assistant.\n* **25.02.21:** - Add python dependencies from homeassistant base image.\n* **07.02.21:** - Fix building from the wrong requirement file. Add ssh client \u0026 external DB libs.\n* **06.02.21:** - Add iputils so ping works as non root user.\n* **30.01.21:** - Initial Release.\n","funding_links":["https://github.com/sponsors/linuxserver","https://opencollective.com/linuxserver"],"categories":["Dockerfile","hacktoberfest"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxserver%2Fdocker-homeassistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxserver%2Fdocker-homeassistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxserver%2Fdocker-homeassistant/lists"}