Compare commits
26 commits
Author | SHA1 | Date | |
---|---|---|---|
53f02b054b | |||
05589ace02 | |||
334571dfda | |||
82112b21af | |||
04b37541f6 | |||
77371e0157 | |||
ebf3df4952 | |||
c3b850ec4a | |||
cc2e332953 | |||
![]() |
4ce4bad3fa | ||
![]() |
c714207423 | ||
![]() |
f52ff8259e | ||
![]() |
1292ab7372 | ||
![]() |
f9375b5593 | ||
![]() |
05592309e6 | ||
![]() |
a140122c6c | ||
![]() |
6669bf6aca | ||
![]() |
c7848eec49 | ||
![]() |
ec41ff48be | ||
![]() |
8b1d7a3656 | ||
![]() |
9afc7a625e | ||
![]() |
f1ee897da5 | ||
![]() |
c787aa7bc0 | ||
![]() |
d531539877 | ||
![]() |
b345d3ee65 | ||
![]() |
c255defe1e |
9 changed files with 138 additions and 16 deletions
5
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
5
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
|
@ -13,7 +13,7 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
label: OS Version
|
label: OS Version
|
||||||
description: Please Insert the output of `lsb_release -d`
|
description: Please Insert the output of `lsb_release -d`
|
||||||
placeholder: Debian GNU/Linux 11 (bullseye)
|
placeholder: Debian GNU/Linux 12 (bookworm)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
|
@ -21,7 +21,7 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
label: System Information
|
label: System Information
|
||||||
description: Please Insert the output of `uname -a`
|
description: Please Insert the output of `uname -a`
|
||||||
placeholder: 'Linux ha-su-deb 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux'
|
placeholder: 'Linux ha 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux'
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
@ -59,6 +59,7 @@ body:
|
||||||
- raspberrypi3-64
|
- raspberrypi3-64
|
||||||
- raspberrypi4
|
- raspberrypi4
|
||||||
- raspberrypi4-64
|
- raspberrypi4-64
|
||||||
|
- raspberrypi5-64
|
||||||
- tinker
|
- tinker
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
4
.github/workflows/build-deb-pr.yml
vendored
4
.github/workflows/build-deb-pr.yml
vendored
|
@ -9,10 +9,10 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Build Debian Package in Docker
|
- name: Build Debian Package in Docker
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
|
docker run --rm -v $(pwd):/tmp debian:bookworm-slim bash -c \
|
||||||
"cd /tmp \
|
"cd /tmp \
|
||||||
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
||||||
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
||||||
|
|
6
.github/workflows/build-deb.yml
vendored
6
.github/workflows/build-deb.yml
vendored
|
@ -11,15 +11,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Build Debian Package in Docker
|
- name: Build Debian Package in Docker
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
|
docker run --rm -v $(pwd):/tmp debian:bookworm-slim bash -c \
|
||||||
"cd /tmp \
|
"cd /tmp \
|
||||||
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
||||||
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: homeassistant-supervised.deb
|
files: homeassistant-supervised.deb
|
62
Hassio installer.txt
Normal file
62
Hassio installer.txt
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
INSTALLAZIONE HOME ASSISTEANT SUPERVISED
|
||||||
|
|
||||||
|
seguire il github https://github.com/home-assistant/supervised-installer
|
||||||
|
andare come utente root
|
||||||
|
su -
|
||||||
|
poi
|
||||||
|
|
||||||
|
apt install \
|
||||||
|
apparmor \
|
||||||
|
bluez \
|
||||||
|
cifs-utils \
|
||||||
|
curl \
|
||||||
|
dbus \
|
||||||
|
jq \
|
||||||
|
libglib2.0-bin \
|
||||||
|
lsb-release \
|
||||||
|
network-manager \
|
||||||
|
nfs-common \
|
||||||
|
systemd-journal-remote \
|
||||||
|
systemd-resolved \
|
||||||
|
udisks2 \
|
||||||
|
wget -y
|
||||||
|
|
||||||
|
e probabilmente vi verrà chiesto di riavviare per far funzionare NetworkManager al posto del normale programma di manager di debian
|
||||||
|
|
||||||
|
controllare che funzioni come scritto in https://wiki.debian.org/NetworkManager
|
||||||
|
|
||||||
|
nel file /etc/NetworkManager/NetworkManager.conf ci dovrà essere
|
||||||
|
|
||||||
|
[ifupdown]
|
||||||
|
managed=false
|
||||||
|
|
||||||
|
altrimenti settare come definito nel sito
|
||||||
|
|
||||||
|
il precedente file di configurazione si trova
|
||||||
|
/etc/network/interfaces
|
||||||
|
|
||||||
|
verificare se Docker-ce è installato con
|
||||||
|
|
||||||
|
docker -v
|
||||||
|
|
||||||
|
altrimenti installarlo con
|
||||||
|
|
||||||
|
curl -fsSL get.docker.com | sh
|
||||||
|
|
||||||
|
installare OS-Agent usando l'ultima versione da https://github.com/home-assistant/os-agent/releases/latest
|
||||||
|
|
||||||
|
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
|
||||||
|
sudo dpkg -i os-agent_1.6.0_linux_aarch64.deb
|
||||||
|
|
||||||
|
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
|
||||||
|
BYPASS_OS_CHECK=true apt install ./homeassistant-supervised.deb
|
||||||
|
|
||||||
|
NOTE
|
||||||
|
verificare i servizi in systemd di Home assistant
|
||||||
|
|
||||||
|
haos-agent.service Home Assistant OS Agent
|
||||||
|
hassio-apparmor.service Hass.io AppArmor
|
||||||
|
hassio-supervisor.service Hass.io supervisor
|
||||||
|
|
||||||
|
es
|
||||||
|
systemctl status hassio-supervisor.service
|
64
README.md
64
README.md
|
@ -1,6 +1,8 @@
|
||||||
# This installation method is for advanced users only
|
# This installation method is for advanced users only
|
||||||
|
|
||||||
## Make sure you understand [the requirements](https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md)
|
### Make sure you understand [the requirements](https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md)
|
||||||
|
|
||||||
|
qui il file semplificato [Hassio installer.txt](Hassio%20installer.txt)
|
||||||
|
|
||||||
# Install Home Assistant Supervised
|
# Install Home Assistant Supervised
|
||||||
|
|
||||||
|
@ -19,6 +21,7 @@ Step 1: Install the following dependencies with this command:
|
||||||
```bash
|
```bash
|
||||||
apt install \
|
apt install \
|
||||||
apparmor \
|
apparmor \
|
||||||
|
bluez \
|
||||||
cifs-utils \
|
cifs-utils \
|
||||||
curl \
|
curl \
|
||||||
dbus \
|
dbus \
|
||||||
|
@ -33,13 +36,44 @@ udisks2 \
|
||||||
wget -y
|
wget -y
|
||||||
```
|
```
|
||||||
|
|
||||||
Step 2: Install Docker-CE with the following command:
|
If you haven't been using NetworkManager before, you might see instructions on how to let NetworkManager manage the current network interface.
|
||||||
|
|
||||||
|
### NetworkManager
|
||||||
|
|
||||||
|
probabilmente vi verrà chiesto di riavviare per far funzionare NetworkManager al posto del normale programma di manager di debian
|
||||||
|
|
||||||
|
controllare che funzioni come scritto in https://wiki.debian.org/NetworkManager
|
||||||
|
|
||||||
|
nel file ```/etc/NetworkManager/NetworkManager.conf``` ci dovrà essere
|
||||||
|
|
||||||
|
```
|
||||||
|
[ifupdown]
|
||||||
|
managed=false
|
||||||
|
```
|
||||||
|
|
||||||
|
altrimenti settare come definito nel sito
|
||||||
|
|
||||||
|
il precedente file di configurazione si trova
|
||||||
|
|
||||||
|
```
|
||||||
|
/etc/network/interfaces
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Step 2: Docker-CE:
|
||||||
|
|
||||||
|
verificare se è installato Docker-CE
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker -v
|
||||||
|
```
|
||||||
|
altrimenti va installato
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL get.docker.com | sh
|
curl -fsSL get.docker.com | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Step 3: Install the OS-Agent:
|
### Step 3: Install the OS-Agent:
|
||||||
|
|
||||||
Instructions for installing the OS-Agent can be found [here](https://github.com/home-assistant/os-agent/tree/main#using-home-assistant-supervised-on-debian)
|
Instructions for installing the OS-Agent can be found [here](https://github.com/home-assistant/os-agent/tree/main#using-home-assistant-supervised-on-debian)
|
||||||
|
|
||||||
|
@ -49,6 +83,12 @@ Step 4: Install the Home Assistant Supervised Debian Package:
|
||||||
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
|
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
|
||||||
apt install ./homeassistant-supervised.deb
|
apt install ./homeassistant-supervised.deb
|
||||||
```
|
```
|
||||||
|
Orange Pi5 Plus is not supported so you must use
|
||||||
|
|
||||||
|
```bash
|
||||||
|
BYPASS_OS_CHECK=true apt install ./homeassistant-supervised.deb
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Supported Machine types
|
## Supported Machine types
|
||||||
|
|
||||||
|
@ -67,6 +107,7 @@ apt install ./homeassistant-supervised.deb
|
||||||
- raspberrypi4
|
- raspberrypi4
|
||||||
- raspberrypi3-64
|
- raspberrypi3-64
|
||||||
- raspberrypi4-64
|
- raspberrypi4-64
|
||||||
|
- raspberrypi5-64
|
||||||
- tinker
|
- tinker
|
||||||
- khadas-vim3
|
- khadas-vim3
|
||||||
|
|
||||||
|
@ -84,3 +125,20 @@ DATA_SHARE=/my/own/homeassistant dpkg --force-confdef --force-confold -i homeass
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
If something's going wrong, use `journalctl -f` to get your system logs. If you are not familiar with Linux and how you can fix issues, we recommend to use our Home Assistant OS.
|
If something's going wrong, use `journalctl -f` to get your system logs. If you are not familiar with Linux and how you can fix issues, we recommend to use our Home Assistant OS.
|
||||||
|
|
||||||
|
[](https://www.openhomefoundation.org/)
|
||||||
|
|
||||||
|
## NOTE
|
||||||
|
|
||||||
|
verificare i servizi in systemd di Home assistant
|
||||||
|
|
||||||
|
```haos-agent.service``` Home Assistant OS Agent
|
||||||
|
|
||||||
|
```hassio-apparmor.service``` Hass.io AppArmor
|
||||||
|
|
||||||
|
```hassio-supervisor.service``` Hass.io supervisor
|
||||||
|
|
||||||
|
es
|
||||||
|
```
|
||||||
|
systemctl status hassio-supervisor.service
|
||||||
|
```
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
Package: homeassistant-supervised
|
Package: homeassistant-supervised
|
||||||
Section: base
|
Section: base
|
||||||
Version: 1.6.0
|
Version: 2.0.0
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote, systemd-resolved | systemd (>=247.3-7+deb11), nfs-common, cifs-utils
|
Pre-Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote, systemd-resolved
|
||||||
|
Depends: bluez, cifs-utils, nfs-common
|
||||||
Maintainer: Matheson Steplock <https://mathesonsteplock.ca/>
|
Maintainer: Matheson Steplock <https://mathesonsteplock.ca/>
|
||||||
Homepage: https://www.home-assistant.io/
|
Homepage: https://www.home-assistant.io/
|
||||||
Description: Home Assistant Supervised
|
Description: Home Assistant Supervised
|
||||||
|
|
|
@ -14,7 +14,7 @@ SERVICE_DOCKER="docker.service"
|
||||||
SERVICE_NM="NetworkManager.service"
|
SERVICE_NM="NetworkManager.service"
|
||||||
|
|
||||||
# Read infos from web
|
# Read infos from web
|
||||||
URL_CHECK_ONLINE="checkonline.home-assistant.io"
|
URL_CHECK_ONLINE="https://checkonline.home-assistant.io/online.txt"
|
||||||
URL_VERSION="https://version.home-assistant.io/stable.json"
|
URL_VERSION="https://version.home-assistant.io/stable.json"
|
||||||
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
||||||
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
||||||
|
@ -65,7 +65,7 @@ info "Restarting docker service"
|
||||||
systemctl restart "${SERVICE_DOCKER}"
|
systemctl restart "${SERVICE_DOCKER}"
|
||||||
|
|
||||||
# Check network connection
|
# Check network connection
|
||||||
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
|
while ! curl -q ${URL_CHECK_ONLINE} >/dev/null 2>&1 ; do
|
||||||
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
|
@ -12,7 +12,7 @@ warn ""
|
||||||
|
|
||||||
# Check if we are running on a supported OS
|
# Check if we are running on a supported OS
|
||||||
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
||||||
supported_os=("Debian GNU/Linux 11 (bullseye)" "Debian GNU/Linux 12 (bookworm)")
|
supported_os=("Debian GNU/Linux 12 (bookworm)")
|
||||||
|
|
||||||
CURRENT_OS=$(lsb_release -d | awk -F"\t" '{print $2}')
|
CURRENT_OS=$(lsb_release -d | awk -F"\t" '{print $2}')
|
||||||
os_supported=false
|
os_supported=false
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Template: ha/machine-type
|
Template: ha/machine-type
|
||||||
Type: Select
|
Type: Select
|
||||||
Choices: generic-x86-64, odroid-c2, odroid-c4, odroid-n2, odroid-xu, qemuarm, qemuarm-64, qemux86, qemux86-64, raspberrypi, raspberrypi2, raspberrypi3, raspberrypi4, raspberrypi3-64, raspberrypi4-64, tinker, khadas-vim3
|
Choices: generic-x86-64, odroid-c2, odroid-c4, odroid-n2, odroid-xu, qemuarm, qemuarm-64, qemux86, qemux86-64, raspberrypi, raspberrypi2, raspberrypi3, raspberrypi4, raspberrypi3-64, raspberrypi4-64, raspberrypi5-64, tinker, khadas-vim3
|
||||||
Description: Select machine type
|
Description: Select machine type
|
||||||
|
|
Loading…
Reference in a new issue