Daemon allowing to control OS features through D-Bus
Go to file
dependabot[bot] 7b8a003314
Bump goreleaser/goreleaser-action from 6.0.0 to 6.1.0 (#212)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-08 08:33:21 +01:00
.devcontainer Modernize go dev environment (#162) 2023-09-04 22:13:10 +02:00
.github Bump goreleaser/goreleaser-action from 6.0.0 to 6.1.0 (#212) 2024-11-08 08:33:21 +01: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 Declare GoReleaser config version to suppress warning (#204) 2024-06-25 16:23:21 +02: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/getsentry/sentry-go from 0.28.0 to 0.28.1 (#202) 2024-06-13 08:25:47 +02:00
go.sum Bump github.com/getsentry/sentry-go from 0.28.0 to 0.28.1 (#202) 2024-06-13 08:25:47 +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>"