
# install
$ sudo apt install mosquitto mosquitto-clients
# server
$ mosquitto -c mosquitto.conf
# subscribe
$ mosquitto_sub -v -h 127.0.0.1 -u username -P password -t +/tasmota_XXXXXX/+
# publish (toggle led power)
$ mosquitto_pub -h 127.0.0.1 -u username -P password -t cmnd/tasmota_XXXXXX/LedPower -m 2

$ sudo bluetoothctl
>>> scan on
>>> trust XX:XX:XX:XX:XX:XX
>>> connect XX:XX:XX:XX:XX:XX
$ ls /dev/input/
$ evsieve --input /dev/input/event2 --print
$ evsieve --input /dev/input/event2 --hook key:enter exec-shell='mosquitto_pub -h 127.0.0.1 -u username -P password -t cmnd/tasmota_XXXXXX/LedPower -m 2'