Daemon allowing to control OS features through D-Bus
Go to file
dependabot[bot] f1c60e58f3
Bump actions/checkout from 4.1.4 to 4.1.6 (#198)
2024-05-17 09:29:37 +02:00
.devcontainer Modernize go dev environment (#162) 2023-09-04 22:13:10 +02:00
.github Bump actions/checkout from 4.1.4 to 4.1.6 (#198) 2024-05-17 09:29:37 +02:00
apparmor Modernize go dev environment (#162) 2023-09-04 22:13:10 +02:00
boards Implement LED control for Home Assistant Green (#164) 2023-09-05 11:59:35 +02:00
cgroup Modernize go dev environment (#162) 2023-09-04 22:13:10 +02:00
contrib Migrate GitHub build action to use GoReleaser (#27) 2021-07-15 11:11:21 +02:00
datadisk Add API to trigger data disk move only (#129) 2023-03-15 14:13:12 +01:00
system Modernize go dev environment (#162) 2023-09-04 22:13:10 +02:00
udisks2 Generate udisks2 client D-Bus API only (#70) 2022-02-18 16:24:11 +01:00
utils Implement LED control for Home Assistant Green (#164) 2023-09-05 11:59:35 +02:00
.gitignore Migrate GitHub build action to use GoReleaser (#27) 2021-07-15 11:11:21 +02:00
.golangci.yaml Modernize go dev environment (#162) 2023-09-04 22:13:10 +02:00
.goreleaser.yml Fix dot in Arm binary builds (#137) 2023-03-17 09:53:23 +01:00
LICENSE inital commit 2021-03-05 15:00:00 +00:00
README.md Fix code after some testings (#100) 2022-09-22 09:31:17 -04:00
go.mod Bump github.com/cyphar/filepath-securejoin from 0.2.4 to 0.2.5 (#192) 2024-05-06 11:31:57 +02:00
go.sum Bump github.com/cyphar/filepath-securejoin from 0.2.4 to 0.2.5 (#192) 2024-05-06 11:31:57 +02:00
main.go Implement LED control for Home Assistant Green (#164) 2023-09-05 11:59:35 +02:00
sentry.go Enable sentry reporting on Panic (#18) 2021-04-08 19:56:04 +02:00

README.md

Agent for Home Assistant OS

This is the OS Agent for Home Assistant. It is used for Home Assistant OS and Home Assistant Supervised installation types and it allows the Home Assistant Supervisor to communicate with the host operating system.

Installation & Update

Using the Home Assistant Operating System

The OS Agent is pre-installed with the Home Assistant Operating System.

Updates are part of the Home Assistant Operating System updates, which the Home Assistant UI will offer to upgrade to when there is a new version available.

Using Home Assistant Supervised on Debian

Download the latest Debian package from OS Agent GitHub release page at:

https://github.com/home-assistant/os-agent/releases/latest

Next, install (or update) the downloaded Debian package using:

sudo dpkg -i os-agent_1.0.0_linux_x86_64.deb

Note: Replace the deb file in the above example with the file you have downloaded from the releases page.

You can test if the installation was successful by running:

gdbus introspect --system --dest io.hass.os --object-path /io/hass/os

This should not return an error. If you get an object introspection with interface etc. OS Agent is working as expected.

You might need to install libglib2.0-bin to get the gdbus command.

Uninstall

To remove OS Agent from your system use the Debian packaging system:

sudo dpkg -r os-agent

Development

Compile

go build -ldflags "-X main.version="

Tests

gdbus introspect --system --dest io.hass.os --object-path /io/hass/os
gdbus call --system --dest io.hass.os --object-path /io/hass/os/Boards/Yellow --method org.freedesktop.DBus.Properties.Set io.hass.os.Boards.Yellow PowerLED "<false>"