This gist contains instructions to auto-start the QS Mobile application (used for Debain/Jesse on Raspberry Pi).
-
Create a 'qsusb' user:
sudo adduser qsusb -
Copy the QS Mobile application to
/home/qsusb/qsusb -
Ensure all the files belong to the target user:
sudo chown qsusb:qsusb -R /home/qsusb/qsusb/* -
Create the systemd & udev files shown below
-
Finally start the service:
sudo systemctl daemon-reload
sudo systemctl start qsusbFile /etc/systemd/system/qsusb.service:
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=qsusb
ExecStart=/home/qsusb/qsusb/qsusb
Restart=on-failure
[Install]
WantedBy=multi-user.targetFile /etc/udev/rules.d/50-qsusb.rules:
SUBSYSTEMS=="usb", ATTRS{product}=="QwikSwitch*", GROUP="qsusb"