{"id":27380227,"url":"https://github.com/maxarndt/homeassistant-lima","last_synced_at":"2025-06-21T17:38:44.584Z","repository":{"id":235882493,"uuid":"790965907","full_name":"maxarndt/homeassistant-lima","owner":"maxarndt","description":"Setup Home Assistant Supervised (with Supervisor) on MacOS with Lima.","archived":false,"fork":false,"pushed_at":"2024-11-12T21:09:57.000Z","size":22,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-12T22:20:37.130Z","etag":null,"topics":["home-assistant","home-automation","iot","lima-vm","macos"],"latest_commit_sha":null,"homepage":"","language":null,"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/maxarndt.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-23T21:08:28.000Z","updated_at":"2024-11-12T21:10:02.000Z","dependencies_parsed_at":"2024-04-24T20:32:02.448Z","dependency_job_id":null,"html_url":"https://github.com/maxarndt/homeassistant-lima","commit_stats":null,"previous_names":["maxarndt/homeassistant-lima"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxarndt%2Fhomeassistant-lima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxarndt%2Fhomeassistant-lima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxarndt%2Fhomeassistant-lima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxarndt%2Fhomeassistant-lima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxarndt","download_url":"https://codeload.github.com/maxarndt/homeassistant-lima/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724918,"owners_count":21151595,"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-automation","iot","lima-vm","macos"],"created_at":"2025-04-13T14:19:47.450Z","updated_at":"2025-04-13T14:19:47.825Z","avatar_url":"https://github.com/maxarndt.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assistant Lima Setup\n\nThis repository can be used to setup [Home Assistant](https://github.com/home-assistant) Supervised with [Lima VMs](https://github.com/lima-vm/lima) on MacOS.\nThe Home Assistant Supervisor allows to use Home Assistant Add-ons and some other features, see [docs](https://www.home-assistant.io/installation/#advanced-installation-methods). With this you can do extensive testing of Home Assistant without needing additional hardware.\n\n## Getting started\n\nThis was tested successfully on a MacBook M1.\n\n### Install Lima\n```sh\nbrew install lima\n```\n\n### Create Debian VM\nThe `lima_homeassistant.yaml` Lima template reflects the requirements specified in the [Home Assistant Supervised requirements](https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md#supported-operating-system-system-dependencies-and-versions) but still contains lots of default values.\nYou can use it as it or adjust it to your specific needs. \n```sh\nlimactl create --name homeassistant https://raw.githubusercontent.com/maxarndt/homeassistant-lima/main/lima_homeassistant.yaml\n# OR ALTERNATIVELY after cloning this repository locally\nlimactl create --name homeassistant lima_homeassistant.yaml\n```\n\n### Start the VM\n```sh\nlimactl start homeassistant\n```\n\n### Install Home Assistant Supervised\n```sh\nlimactl shell homeassistant\nsudo su -\n```\n\nFollow `Step 1`, `Step 3` and `Step 4` of the [Home Assistant supervised-installer guide](https://github.com/home-assistant/supervised-installer?tab=readme-ov-file#installation). You can skip `Step 2` because Docker is already included in your Lima VM.\n\n\n\u003cdetails\u003e\n  \u003csummary\u003eHelp for `Step 3`:\u003c/summary\u003e\n  At the time of writing these docs the latest version was `1.6.0`:\n\n  ```sh\n  cd /tmp\n  wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb\n  dpkg -i os-agent_1.6.0_linux_aarch64.deb\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eHelp for `Step 4`:\u003c/summary\u003e\n  Select `qemuarm-64` if the configuration UI appears in your terminal.\n\u003c/details\u003e\n\n### Make sure to restart your Lima VM\nThis is currently needed to apply [cgroup related changes](https://www.home-assistant.io/more-info/unsupported/cgroup_version) to grub.\n```sh\nsystemctl poweroff\n# wait a second until machine is down and restart via limactl\nlimactl start homeassistant\n```\nOnce your Lima VM is up and running again, you might want to start again a shell session and if needed switch the user.\n```sh\nlimactl shell homeassistant\nsudo su -\n```\n\n### Open Home Assistant UI in your browser\nOpen http://localhost:8123 in your browser.\nIt may take some time until all Home Assistant containers are up and running.\n\n### Troubleshoot\n```sh\njournalctl -f\n```\nExecute this inside your Lima VM to watch the logs of your Home Assistant setup.\n\n#### Known issues\n1. `WARNING (MainThread) [supervisor.jobs] 'BackupManager.do_restore_partial' blocked from execution, system is not healthy - privileged` -\u003e Solved by restarting the VM with `limactl stop homeassistant` followed by `limactl start homeassistant` on the host machine.\n2. `WARNING (MainThread) [supervisor.jobs] 'BackupManager.do_restore_partial' blocked from execution, no host internet connection` -\u003e Solved by executing `ha network reload` inside the VM.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxarndt%2Fhomeassistant-lima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxarndt%2Fhomeassistant-lima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxarndt%2Fhomeassistant-lima/lists"}