Last active
December 8, 2023 19:06
-
-
Save fredowsley/50cdadfb7297626383dcdfcbcb308c60 to your computer and use it in GitHub Desktop.
HomeAssistant on RaspbianOS 12 Bookworm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
sudo reboot | |
sudo apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff6 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev libopenblas-dev npm snapd | |
sudo useradd -rm homeassistant -G dialout,gpio,i2c | |
sudo mkdir /srv/homeassistant | |
sudo chown homeassistant:homeassistant /srv/homeassistant | |
cd /home/homeassistant | |
echo "PATH=/home/homeassistant/.local/bin:$PATH" >> .bashrc | |
sudo -u homeassistant -H -s | |
cd /srv/homeassistant | |
python3 -m venv . | |
source bin/activate | |
cd ~ | |
mkdir .config/pip | |
cd .config/pip | |
echo "[global]" > pip.conf | |
echo "break-system-packages = true" >> pip.conf | |
cd ~ | |
pip3 install wheel | |
pip3 install homeassistant | |
pip3 install aiohttp_cors | |
pip3 install numpy | |
pip3 install brother | |
.local/bin/hass | |
( Follow https://community.home-assistant.io/t/install-and-setup-zwave-js-ui-with-snap-on-a-raspberry-pi/486484 ) | |
sudo visudo | |
Find out this secure_path line, add :/snap/bin to the end of the path but before ". See below as an example: | |
Defaults secure_path="/usr/local/bin:/usr/bin:/bin:/snap/bin" | |
sudo snap install --channel=stable core | |
sudo snap set system experimental.hotplug=true | |
sudo systemctl restart snapd | |
sudo snap install --channel=stable zwave-js-ui | |
sudo snap connect zwave-js-ui:raw-usb | |
sudo snap connect zwave-js-ui:hardware-observe | |
sudo snap set zwave-js-ui server.host=0.0.0.0 | |
sudo zwave-js-ui.enable | |
Open browser to https://<ip>:8091 | |
Access Settings > Home Asssistant | |
Enable WS Server | |
Click Save | |
Return to http://<ip>:8123 | |
Add Zwave in Settings > Integrations | |
ws://localhost:3000 | |
Make Home Assistant Always Startup | |
https://community.home-assistant.io/t/autostart-using-systemd/199497 | |
If you get an upgrade warning for your ZWave stick: | |
https://aeotec.freshdesk.com/support/solutions/articles/6000263744-update-z-stick-7-with-z-wavejs-ui | |
Add a Device: | |
https://aeotec.freshdesk.com/support/solutions/articles/6000246295-setup-home-assistant-with-z-stick-7-and-z-wavejs-ui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment