Fixing KNX Multicast Issues on a Gira Homeserver Debian Build

Fixing KNX Multicast Issues on a Gira Homeserver Debian Build

A common issue when running the Homeserver firmware on a generic Debian system is that KNX multicast communication (224.0.23.12:3671) only starts working after manually restarting the service via:

sudo systemctl restart hs_starter

This happens because hs_admin is launched too early during boot—before the network interface is fully initialized with its IPv4 address and multicast routing. When you restart the service later, the interface is already ready, so multicast works immediately.

Fix – Wait for network before starting

You can fix this permanently by updating the systemd service definition /etc/systemd/system/hs_starter.service so that it explicitly waits for the network to come online and ensures a multicast route exists before the Homeserver starts.

Replace your existing service file with:

sudo tee /etc/systemd/system/hs_starter.service >/dev/null <<'EOF'
[Unit]
Description=Homeserver Starter
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
Environment=HS_IF=eth0

# Wait until the interface is UP (max 30s)
ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do ip link show "$HS_IF" | grep -q "state UP" && exit 0; sleep 1; done; echo "WARN: $HS_IF not UP"; exit 0'

# Wait until an IPv4 address is assigned (max 30s)
ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do ip -4 addr show dev "$HS_IF" | grep -q "inet " && exit 0; sleep 1; done; echo "WARN: no IPv4 on $HS_IF"; exit 0'

# Ensure multicast route is available (idempotent)
ExecStartPre=/bin/sh -c 'ip route show 224.0.0.0/4 >/dev/null || ip route add 224.0.0.0/4 dev "$HS_IF"'

# Start the main init script (which launches hs_main and hs_admin)
ExecStart=/etc/init.d/hs_starter
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl restart hs_starter.service

After this change, multicast works immediately after boot, no manual restart required.

Disclaimer

This guide is published for educational and training purposes only.
It is not affiliated with or endorsed by Gira Giersiepen GmbH & Co. KG.
All product names, trademarks, and registered trademarks are property of their respective owners.

The intention of this post is to document a technical experiment on legacy hardware (Dell Optiplex FX160) for learning purposes.
If you plan to run a Gira Homeserver in production, please obtain the official hardware and licenses directly from Gira.

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.