I am struggling with below device set up to check if my bluetooth stream is running or not,
Command works fine in bash but not in Pimatic
Is there anything wrong with its formatting?
id : bluepi
name : Bluetooth Stream
class : ShellPresenceSensor
autoReset : false
interval : 10000
command : pactl list sources short | grep -q RUNNING>/dev/null && echo 1 || echo 0