Git Product home page Git Product logo

homeassistant-lima's Introduction

Home Assistant Lima Setup

This repository can be used to setup Home Assistant Supervised with Lima VMs on MacOS. The Home Assistant Supervisor allows to use Home Assistant Add-ons and some other features, see docs. With this you can do extensive testing of Home Assistant without needing additional hardware.

Getting started

This was tested successfully on a MacBook M1.

Install Lima

brew install lima

Create Debian VM

The lima_homeassistant.yaml Lima template reflects the requirements specified in the Home Assistant Supervised requirements but still contains lots of default values. You can use it as it or adjust it to your specific needs.

limactl create --name homeassistant https://raw.githubusercontent.com/maxarndt/homeassistant-lima/main/lima_homeassistant.yaml
# OR ALTERNATIVELY after cloning this repository locally
limactl create --name homeassistant lima_homeassistant.yaml

Start the VM

limactl start homeassistant

Install Home Assistant Supervised

limactl shell homeassistant
sudo su -

Follow Step 1, Step 3 and Step 4 of the Home Assistant supervised-installer guide. You can skip Step 2 because Docker is already included in your Lima VM.

Help for `Step 3`: At the time of writing these docs the latest version was `1.6.0`:
cd /tmp
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
dpkg -i os-agent_1.6.0_linux_aarch64.deb
Help for `Step 4`: Select `qemuarm-64` if the configuration UI appears in your terminal.

Open Home Assistant UI in your browser

Open http://localhost:8123 in your browser. It may take some time until all Home Assistant containers are up and running.

Troubleshoot

journalctl -f

Execute this inside your Lima VM to watch the logs of your Home Assistant setup.

Known issues

  1. WARNING (MainThread) [supervisor.jobs] 'BackupManager.do_restore_partial' blocked from execution, system is not healthy - privileged -> Solved by restarting the VM with limactl stop homeassistant followed by limactl start homeassistant on the host machine.
  2. WARNING (MainThread) [supervisor.jobs] 'BackupManager.do_restore_partial' blocked from execution, no host internet connection -> Solved by executing ha network reload inside the VM.

homeassistant-lima's People

Contributors

maxarndt avatar

Watchers

 avatar

homeassistant-lima's Issues

Network Manager & Bluetooth Dongle

Using an M2Pro Mac Mini with your script and got it up and running on no time, but having some small errors

Receiving an unconfined network manager error and it's unable to find any of my USB dongles for Zigbee and Bluetooth previously being used on my pi. Any suggestions for a fix?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.