πConfiguration
Config file location
Your config file is located at the directory you were when you first run LNXlink. This can be anything you write like of the config.yaml that I suggested. You can find where it is from the systemd service:
cat ~/.config/systemd/user/lnxlink.service | grep -i ExecStartcat /etc/systemd/lnxlink.service | grep -i ExecStartModules
By default all modules are automatically loaded. This happens when the modules section is empty like this:
modules:You should select the ones you want to load. 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 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.
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