Getting Started¶
This guide will help you install and configure System Link for your system.
Installation¶
The installation script will:
- Download the latest System Link binary
- Install it to
~/.local/share/system-link/
Configuration Location: It will expect the config to be located at ~/.local/share/system-link/config.yaml.
Docker¶
For Docker deployments, pull the official image:
Run the container:
docker run -d \
--name system-link \
-v /path/to/config.yaml:/config/config.yaml \
-v /path/to/logs:/logs \
--restart unless-stopped \
ghcr.io/jcwillox/system-link:python3-alpine
Configuration Mounts:
/config/config.yaml- Mount yourconfig.yamlfile here/logs- Directory for System Link logs (optional)
Basic Configuration¶
Create a config.yaml file in the System Link directory with the following:
# device_name: "My PC"
# host_id: 5dc39758-0393-41ba-b019-f10172f5d373
mqtt:
host: 127.0.0.1
port: 1883
# tls: true
username: your_username
password: your_password
# log_level: debug
# log_level_mqtt: debug
# log_timing: true
binary_sensors:
- status: {}
buttons:
- exit: {}
- force_shutdown: {}
- lock: {}
- reload: {}
- reset_topics: {}
- shutdown: {}
- sleep: {}
sensors:
- cpu: {}
- memory: {}
- memory_used: {}
- memory_free: {}
- swap: {}
- swap_used: {}
- swap_free: {}
- disk: {}
- disk_used: {}
- disk_free: {}
- uptime: {}
- battery: {}
- battery_state: {}
switches:
- startup: {}
updaters:
- update: {}
MQTT Configuration¶
System Link requires an MQTT broker to communicate. You have two options:
Option 1: Use Home Assistant's MQTT Addon¶
If you're using Home Assistant, the easiest way is to install the MQTT broker addon:
- Open Home Assistant
- Navigate to Settings → Add-ons → Add-on Store
- Search for and install Mosquitto Broker
- The addon provides MQTT credentials in its configuration
- Add these credentials to your System Link
config.yaml:
mqtt:
host: 192.168.1.100 # Your Home Assistant IP
port: 1883
username: mqtt_user
password: mqtt_password
Option 2: Use External MQTT Broker¶
If using an external MQTT broker (e.g., mosquitto):
mqtt:
host: mqtt.example.com
port: 1883 # or 8883 for TLS
tls: false # Set to true if using TLS
username: system-link
password: your_secure_password
Home Assistant Integration¶
Once configured, System Link will automatically appear in Home Assistant via MQTT Discovery:
- Open Home Assistant
- Go to Settings → Devices & Services → MQTT
- You should see your System Link device listed
- All configured components (sensors, buttons, switches) will be automatically available
Next Steps¶
- Check the Security section to understand System Link's security features
- Explore Components to see all available monitoring and control options
- Learn about Advanced Features like templating and scheduled tasks
- Configure custom Buttons and Switches for your specific needs