i would like to run this script via dummy switch:
Code: Select all
#!/bin/bash
/usr/local/bin/miio protocol call ID set_arming '["on"]' > /dev/null 2>&1 &
exit 0
I try:
1. chmod +x
2. script://start_alarm.sh
3. script:///home/user/domoticz/scripts/start_alarm.sh
4. login to root and run the scipt via terminal (working well)
5. login to my user and run script via terminal (working well)
The domoticz installed via installer script (Ubuntu) i think (??) it run with root priv.
Not other idea, why not run in domoticz and why run with normal terminal...