For the complete documentation index, see llms.txt. This page is also available as Markdown.

📂Configuration

Config file location

Your config file is the file passed to lnxlink -c. The installer creates lnxlink.yaml in the directory where it was run. You can find the active config path from the systemd service:

cat ~/.config/systemd/user/lnxlink.service | grep -i ExecStart
cat /etc/systemd/system/lnxlink.service | grep -i ExecStart

Modules

If both modules and exclude are empty, all modules are automatically loaded:

modules:
exclude:

The default template includes an exclude list for modules that need extra dependencies, permissions, hardware, or user setup. The easiest way to choose modules is the module selector:

lnxlink -m -c lnxlink.yaml

You can also edit the config manually. All supported modules can be found here and the configuration should look like this:

modules:
- notify
- camera_used
- idle
- keep_alive
- shutdown
- brightness

Custom module

You can create custom modules and import them to your configuration with their full path or a URL. Code examples can be found here.

Exclude Modules

In case you have empty modules config which auto loads all the available modules, you can have this option that excludes modules from auto loading:

Extra options

This is the default settings:

  • MQTT Topic: This consists of the prefix and the clientId: /lnxlink/DESKTOP-Linux.

  • MQTT Transport: mqtt connects directly to the broker, homeassistant_api publishes and receives MQTT messages through the Home Assistant API, and auto tries MQTT first before falling back to the Home Assistant API.

  • MQTT Encryption: To use a secured MQTT broker, you will have to enable the tls option and optionally define the keyfile, certfile, ca_certs files.

  • Discovery Enabled: It sends the settings for configuring Home Assistant entities.

  • Clear On Off: Clears mqtt data from broker when stopped.

  • Home Assistant API: When using homeassistant_api or auto, set mqtt.homeassistant.url and provide a long-lived access token with token, token_env, or token_file.

  • Update Interval: Sets the interval in seconds for when the sensors are updated.

  • Update on change: Sends an update to the MQTT broker when a change is detected or every 15 minutes.

Environmental Options

If the following environment variables are defined, they replace the options from the configuration file:

Last updated