Package Details: homeassistant-supervised 3.0.0-1

Git Clone URL: https://aur.archlinux.org/homeassistant-supervised.git (read-only, click to copy)
Package Base: homeassistant-supervised
Description: Home Assistant Supervised
Upstream URL: https://www.home-assistant.io/
Keywords: haos hass homeassistant supervised
Licenses: Apache
Conflicts: docker-desktop
Submitter: rokam
Maintainer: rokam (frostwork)
Last Packager: rokam
Votes: 4
Popularity: 0.000000
First Submitted: 2022-08-05 22:00 (UTC)
Last Updated: 2025-03-06 12:22 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

rokam commented on 2022-09-26 13:56 (UTC) (edited on 2022-09-26 14:04 (UTC) by rokam)

@adrian.chmiel fixed the systemd-journal-gatewayd.socket, it was my mistake to create hassio-journal-gatewayd.socket. Now the script edits the systemd-journal-gatewayd.socket to add the listenstream file used by docker. There was no need to install a package because systemd-journal-gatewayd is part of systemd.

About the machine, in your case you need to set the MACHINE env var before installing.

eg.:

$ export MACHINE=raspberrypi3-64

I moved the check arch and machine to pre_install step. (The original deb installer does it in the post_install fase)

Adrian.Chmiel commented on 2022-09-26 12:24 (UTC) (edited on 2022-09-26 12:58 (UTC) by Adrian.Chmiel)

@rokam, if I'm not mistake, this version requires worked systemd-journal-remote (probably for remore control).
hassio-journal-gatewayd.socket requires systemd-journal-gatewayd which one require and libmicrohttpd package(it is not included now in the installation reuire list)
But we cannot start hassio-journal-gatewayd.socket bcause:
hassio-journal-gatewayd.socket: Socket service hassio-journal-gatewayd.service not loaded, refusing.

Moreover, if I have different machine that on the list, files is copped but the installation procedure stopped, even though RP3 is listed.

In my opinion, if they shoundn't install the package on a platform other than one on the list, it should check it first and return the error of platform not supported and stop the procedure.
Now they copies the files and leaves them unconfigured.

In line 140 should be "*)"?

Regarding MACHINE, if we have RP3, they "uname -m" return aarm64, then the script will not put information about MACHINE and check_machine() function will done with "exit 1".
Currently in my opinion the install script only supports x86 architecture, any other ends with "exit 1".

rokam commented on 2022-09-24 14:45 (UTC) (edited on 2022-09-24 14:45 (UTC) by rokam)

@adrian.chmiel, thanks for the suggestions. The first one will be fixed, although both will work the same way. The second is incorect. MACHINE should be one of the following:

  • generic-x86-64
  • odroid-c2
  • odroid-n2
  • odroid-xu
  • qemuarm
  • qemuarm-64
  • qemux86
  • qemux86-64
  • raspberrypi
  • raspberrypi2
  • raspberrypi3
  • raspberrypi4
  • raspberrypi3-64
  • raspberrypi4-64
  • tinker
  • khadas-vim3

That's why we have a check_machine function in the install script.

Adrian.Chmiel commented on 2022-09-23 21:12 (UTC) (edited on 2022-09-23 21:48 (UTC) by Adrian.Chmiel)

@rokam, there is a bug in .INSTALL: (line 47)
sed -i "s,%%HASSIO_CONFIG%%,${CONFIG},g" "${PREFIX}"/bin/hassio-supervisor

Should be:
sed -i "s,%%HASSIO_CONFIG%%,${CONFIG},g" "${PREFIX}/bin/hassio-supervisor"

"is in the wrong place
This is the reason why Martynvandijke60 had problems

Supervisor cannot download docker package, when MACHINE is not specified: (from line 119)
"arm" |"armv6l")
MACHINE=${MACHINE:=armhf}
HASSIO_DOCKER="${DOCKER_REPO}/armhf-hassio-supervisor"
;;
"armv7l")
MACHINE=${MACHINE:=armv7}
HASSIO_DOCKER="${DOCKER_REPO}/armv7-hassio-supervisor"
;;
"aarch64")
MACHINE=${MACHINE:=aarch64}
HASSIO_DOCKER="${DOCKER_REPO}/aarch64-hassio-supervisor"
;;
*)

Next thing, in my opinion is better to check
systemd.unified_cgroup_hierarchy=false
in /proc/cmdline, rarely on ARM platforms there is something in /boot

simona commented on 2022-09-23 21:11 (UTC)

What problem is if I update ha e supervisor but not package homeassistant-supervised?

rokam commented on 2022-09-23 19:45 (UTC)

@simona, you can create a full backup and then restore it after package installation. The "migration" process will need a lot of tweeks.

simona commented on 2022-09-23 19:18 (UTC)

I apologize in advance for the question. should it be inappropriate, please ignore it. but if i internally update home assistant already installed, don't i have to update this package every time?

rokam commented on 2022-09-10 09:01 (UTC)

@simona, that's not related to the package.

simona commented on 2022-09-09 17:51 (UTC)

i have installed with "curl -sL "https://raw.githubusercontent.com/krdesigns-com/supervised-installer/master/installer.sh" | bash -s" what I must fix? it seem start ok.

rokam commented on 2022-08-29 14:56 (UTC) (edited on 2022-08-29 15:14 (UTC) by rokam)

@thepasto, I don't own a rpi4 to be able to support it. Those commands came from debconf as the original installer is for debian only.

Those command exists to identify the machine_type. And the result for you should be something like raspberrypi4-64.

Replace inside the .INSTALL file the lines 88-92:

                db_input critical ha/machine-type || true
                db_go || true
                db_get ha/machine-type || true
                MACHINE="${RET}"
                db_stop

to:

                MACHINE="raspberrypi4-64"

Also, can you please provide the output of the command: $ uname -i

We need one of the supported machine_type:

  • generic-x86-64
  • odroid-c2
  • odroid-n2
  • odroid-xu
  • qemuarm
  • qemuarm-64
  • qemux86
  • qemux86-64
  • raspberrypi
  • raspberrypi2
  • raspberrypi3
  • raspberrypi4
  • raspberrypi3-64
  • raspberrypi4-64
  • tinker
  • khadas-vim3