Getting Started
Getting Started
From a blank Debian machine to a running KaZa server in about ten minutes.
1. Install
echo "deb https://repo.kazoe.org/kaza stable main" | sudo tee /etc/apt/sources.list.d/kaza.list sudo apt update sudo apt install kaza-server-bin sudo apt install kaza-mqtt # plugins as needed, see Integrations
Supported: Debian 11+, Ubuntu 22.04+, Raspberry Pi OS 64-bit (x86_64, armhf, arm64).
2. Configure /etc/kazad.conf
[ssl] port=1754 hostname="home.example.com" # must match what clients use to connect keypassword="change-me" [control] port=43500 password="change-me" enable=true [qml] server=/etc/kazad/main.qml client=/var/lib/kazad/app.rcc
A [database] section (PostgreSQL) is optional. See Configuration and Security.
3. Write a first main.qml
import QtQml 2.0 import org.kazoe.kaza 1.0 import org.kazoe.mqtt 1.0 KaZaElement { MqttClient { id: broker; hostname: "localhost"; clientId: "kaza" } MqttTopic { server: broker; topic: "home/outdoor/temperature" name: "sensor.outdoor.temperature"; unit: "°C" } }
3b. Open the firewall
sudo ufw allow KaZa # opens 1754 and 43500; the package ships the profile
4. Start
sudo systemctl enable --now kazad sudo journalctl -u kazad -f
On first start kazad generates the CA and server certificate in /var/lib/kazad/.
5. Check objects
kls # lists the objects known to the server
6. Connect a client
- Copy
ca.cert.pemto the device (or fetch it via the control port). - Generate a client certificate for the user (control port or
make_certificate.sh). - Enter host
home.example.comand port1754in the KaZa client. - The client downloads your UI (
app.rcc) and shows live values.
Next steps
- Integrator Guide: server and client QML in depth
- Integrations: one page per plugin
- Server services: safe historical queries for clients
- Configuration and Security