Hey,
as in my last post, I’m trying to integrate my sqeezeboxes into pimatic. Rules for controll are working now, but my shellpresence sensor does not.
I have written a script to return 0 or 1 depending on status and this is working in console:
pi@raspberrypi:~ $ /home/pi/pimatic-app/scripte/squeezebox.sh unten ping
0
But when using it as a shellPresenceSensor it does not:
error [pimatic-shell-execute,ShellPresenceSensor]: Error getting attribute value squeezebox-unten-ping.presence: undefined
error [pimatic-shell-execute]: [ShellPresenceSensor#squeezebox-unten-ping] Error: Command failed: /bin/sh -c "/home/pi/pimatic-app/scripte/squeezebox.sh unten ping"
/bin/sh: 1: /home/pi/pimatic-app/scripte/squeezebox.sh unten ping: not found
{
"command": "\"/home/pi/pimatic-app/scripte/squeezebox.sh unten ping\"",
"interval": 60,
"id": "squeezebox-unten-ping",
"name": "Squeezebox unten",
"class": "ShellPresenceSensor"
}
I also tried without \"
(so no "
in device editor) in the command line, but same effect. Does anyone know where I did something wrong? Thanks in advance.