📂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 ExecStartcat /etc/systemd/system/lnxlink.service | grep -i ExecStartModules
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.yamlYou 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
- brightnessCustom 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:
mqttconnects directly to the broker,homeassistant_apipublishes and receives MQTT messages through the Home Assistant API, andautotries MQTT first before falling back to the Home Assistant API.MQTT Encryption: To use a secured MQTT broker, you will have to enable the
tlsoption and optionally define thekeyfile,certfile,ca_certsfiles.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_apiorauto, setmqtt.homeassistant.urland provide a long-lived access token withtoken,token_env, ortoken_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