Package Details: hacompanion 1.0.7-5

Git Clone URL: https://aur.archlinux.org/hacompanion.git (read-only, click to copy)
Package Base: hacompanion
Description: Daemon that sends local hardware information to Home Assistant
Upstream URL: https://github.com/tobias-kuendig/hacompanion
Keywords: assistant home home-assistant homeassistant
Licenses: MIT
Conflicts: hacompanion-git
Submitter: zhimsel
Maintainer: zhimsel
Last Packager: zhimsel
Votes: 1
Popularity: 0.000121
First Submitted: 2023-01-31 16:30 (UTC)
Last Updated: 2023-05-13 14:01 (UTC)

Latest Comments

zhimsel commented on 2023-05-13 13:51 (UTC)

@tikilou: sorry about that! The systemd units were requiring the environment files to be present, which aren't installed by the package (since they aren't required, and cannot be created for the user unit, anyway).

I modified the unit files to optionally source the environment files: https://aur.archlinux.org/cgit/aur.git/commit/?h=hacompanion&id=a88d6c69c72fc1593086a763f133d79af62493f9

That should solve your issue.

tikilou commented on 2023-05-12 08:34 (UTC)

[code]sudo systemctl status hacompanion × hacompanion.service - Home Assistant Desktop Companion Loaded: loaded (/usr/lib/systemd/system/hacompanion.service; enabled; preset: disabled) Active: failed (Result: resources) since Fri 2023-05-12 10:31:41 CEST; 1min 26s ago Docs: https://github.com/tobias-kuendig/hacompanion CPU: 0

mai 12 10:31:41 xps13-9360 systemd[1]: hacompanion.service: Scheduled restart job, restart counter is at 5. mai 12 10:31:41 xps13-9360 systemd[1]: Stopped Home Assistant Desktop Companion. mai 12 10:31:41 xps13-9360 systemd[1]: hacompanion.service: Start request repeated too quickly. mai 12 10:31:41 xps13-9360 systemd[1]: hacompanion.service: Failed with result 'resources'. mai 12 10:31:41 xps13-9360 systemd[1]: Failed to start Home Assistant Desktop Companion.[/code]

But its working with "sudo hacompanion -config=/etc/hacompanion/config.toml"

zhimsel commented on 2023-02-24 14:43 (UTC)

@hobbypunk great idea, thanks! Just pushed up the change. However, I made the user-level unit get its config from the user's home, not /etc.

hobbypunk commented on 2023-02-20 08:53 (UTC) (edited on 2023-02-20 08:54 (UTC) by hobbypunk)

Heyho,

i added a user service file:

[Unit]
Description=Daemon that sends local hardware information to Home Assistant
After=network.target

[Service]
ExecStart=/usr/bin/hacompanion -config /etc/hacompanion/config.toml
Restart=on-failure

[Install]
WantedBy=graphical-session.target

i think it is a good idea to have the option to run the companion app after login as the given user :)