Home Assistant on macOS Ventura with M1
We have some solar panels that I would like to query using Home Assistant Core. Below describes how I got Home Assistant Core running on a MacBook Air M1 2020 with macOS Ventura (13.1). These instructions were partly inspired by these from siytek.com which did not quite work on my MacBook for whatever reason.
Get brew
First, open a Terminal window, and install brew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Brew is the missing package management tool for macOS which enables you to install very useful Linux-based tools, for instance wget.
brew install wget
Miniconda3
Get miniconda3. This will enable you to control a specific version of Python, necessary packages and create virtual environments. In other words, you will get the ability to compartmentalise certain softwares such that it will not affect other software installed on your system.
In your Terminal window type:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
Cleanup conda.
conda update -n base conda
And remove the miniconda3 download.
rm -v ~/Downloads/Miniconda3-latest-MacOSX-arm64.sh
Virtual environment
Create a virtual environment to install Home Assistant Core into.
conda create --name hass
Necessary packages
Install some necessary packages into your virtual environment.
conda install -c conda-forge lru-dict pycountry
Install Home Assistant
conda install -c conda-forge homeassistant
Now you are ready to run Home Assistant, type:
hass
If you want to use it as a system service, run in the back, and always opened when you (re)start your Mac, type this:
hass --script macos install
Starting Home Assistant
Now that Home Assistant is running, you can browse to http://127.0.0.1:8123 (or http://localhost:8123 when you made it a system service). You will first be taken through the Onboarding process. Just follow the steps, and you’re good to go.
That’s it. That’s the short and sweet instruction to get Home Assistant Core.