User defined settings for the modules that support them
SystemD
Not all services on a machine are needed to be controlled or monitored through a switch, so they need to be configured manually by adding this on your config.yaml file:
If no configuration is provided, then all the available docker containers will be exposed. This can be configured to only show the ones in the included list or ignore the ones in the exclude list:
settings:
docker:
include:
- esphome
exclude: []
GPIO
This is only supported by Raspberry Pi and needs to be configured manually on your config.yaml file:
settings:
gpio:
inputs:
- name: Front Door
pin: 13
device_class: door
outputs:
- name: Siren
pin: 25
icon: mdi:bullhorn
IR Remote
This is only supported by Raspberry Pi and needs to be configured manually on your config.yaml file:
This is used to run remote commands to your Home Assistant instance using keyboard shortcuts. Pynput is used for the keys syntax and the monitoring of presses.
settings:
hotkeys:
- key: <ctrl>+<alt>+s
type: state # Shows a notification using zenity with the state of the entity
entity_id: light.myroom
- key: <ctrl>+<alt>+a
type: action # Perform an action on Home Assistant
service: light.toggle
entity_id: light.myroom
- key: <ctrl>+<alt>+z
type: conversation # Sends a predefined text to Home Assistant and displays a notification with the result
text: What is the water heater temperature?
- key: <ctrl>+<alt>+x # Same as conversation, but a zenity popup with an entry is displayd for the user to write
type: popup
- key: <ctrl>+<alt>+q # Creates a sensor on home assistant, without any further configuration
Bash
Using this option you can create sensors, binary_sensors, buttons or switches that run custom commands. These options are optional: unit, entity_category, update_interval.
The bash module can run any command on a remote computer which makes it dangerous, but also very helpful to create sensors without creating modules on LNXlink.
You will need to create a new sensor on your Home Assistant configuration file like so:
Then you must create an automation to run on an interval to get the result of a command:
alias: Get files count
mode: single
trigger:
- platform: time_pattern
seconds: "40"
action:
- service: mqtt.publish
data:
topic: lnxlink/desktop-linux/commands/bash/bash_command/test_ls
payload: ls ~/Downloads | wc -l
Disk usage
By default this module finds all connected drives and exposes them to Home assistant, but this can be changed by setting them manually on settings with the include_disks option: