I have a problem with shell execute. In fact I execute other scripts fine, but this one does not work.
My rule is executing “/usr/local/bin/gsm-dial-alarm”
This script looks like this:
#!/bin/sh /usr/bin/minicom -D /dev/ttyUSB1 -S /home/pi/gsm-dial-alarm </dev/null >/dev/null 2>/dev/null
I am trying to redirect stdin and stdout to dev null. The script runs fine from the command line and produces no output and does not require input.
However in pimatic I get:
20:52:53.688 [pimatic] error: rule gsm-dial-alarm error executing an action: undefined
20:52:53.691 [pimatic] debug: undefined
20:52:53.693 [pimatic] error: Error on evaluation of rule condition of rule gsm-dial-alarm: undefined
20:52:53.695 [pimatic] debug: Error: Command failed: /bin/sh -c /usr/local/bin/gsm-dial-alarm
20:52:53.695 [pimatic] debug:>
Any help is highly appreciated!