A better architecture that nobody has to look at.
Good structure is the reason the experience can stay simple. This page is for the person who sets Artu up. Everyone else can stop reading here, guilt-free.
- Arch
- armhf (32-bit Pi)
- Program
- 1.0 MB, one file
- Package
- 400 KB .deb
- Config
- /etc/artu/artu.toml
- Runs as
- systemd unit, own user
- Needs
- no cloud, no account
- Shows in
- Apple Home ยท Matter later
The rules Artu is built on
Devices are described by what they do
A receiver is power, volume, mute and input. A purifier is fan speed, air quality and filter life. Automations and apps only ever see these, never a brand's own format.
Why: Swap your receiver for another brand and not one automation needs to change.
The home app is only a window
Apple Home today, and Matter apps later, show the same devices. No app owns a device or shapes how it works.
Why: Adding a new app never means rewriting how a device works.
It never goes out of sync
Artu shows a value only after the device has reported it, and counts a command as done only when the device confirms it.
Why: The Home app never says a light is on when it is off.
One slow device never slows the house
Artu starts without waiting for any device. A speaker that stops answering affects that speaker and nothing else.
Why: The rest of the house keeps working while one device is unplugged or asleep.
Drivers in any language
Built-in drivers are written in Rust. Others run as separate programs and talk to Artu over a small, documented protocol.
Why: A crash in one driver cannot take the house down, and adding a device does not mean learning Rust.
Every key stays with its own device
A device that needs a password or pairing key keeps it in its own driver. The main program holds none.
Why: A problem in one driver can never expose the keys of every device in the house.
One package, two services
What gets installed
- The
artuprogram in/usr/bin, and the sidecars that drive non-Rust devices. - Two systemd units,
artu.serviceandartu-media-adapter.service, and anartusystem user. - Nothing under
/etc. Each unit stays skipped until its configuration exists.
How it updates
- Every change is built for armv7, packaged as a .deb and published to a Debian package feed.
- The version includes the build number, so every build sorts after the one before it.
artu --checkvalidates a configuration without starting anything and exits with code 78 if it is not valid.
A short terminal session
Raspberry Pi OS or Debian trixie on armhf. The few-clicks installer is on the roadmap. Until then, enjoy the nostalgia.
sudo curl -fsSLo /etc/apt/keyrings/artu.asc https://<gitea>/api/packages/<owner>/debian/repository.key
printf '%s\n' 'Types: deb' 'URIs: https://<gitea>/api/packages/<owner>/debian' 'Suites: trixie' \
'Components: main' 'Architectures: armhf' 'Signed-By: /etc/apt/keyrings/artu.asc' |
sudo tee /etc/apt/sources.list.d/artu.sources
sudo apt update && sudo apt install artu
sudo install -d -m 0750 -g artu /etc/artu
sudo install -m 0640 -g artu /usr/share/doc/artu/examples/artu.toml.example /etc/artu/artu.toml # then edit
sudo install -m 0640 -g artu /usr/share/doc/artu/examples/media-adapter.env.example /etc/artu/media-adapter.env
artu --check --config /etc/artu/artu.toml
sudo systemctl start artu-media-adapter artu