Is it possible that i am so stupid, or is there something wrong with the Shell-Switch Plugin.
Here´s my problem. I am going to make a general switch for any av devices, such as av-receiver dreamboxen,.etc
This config does not work,
"devices": [
{
"id": "dreambox",
"name": "Dreambox",
"class": "ShellSwitch",
"onCommand": "curl --silent http://dm7020/web/powerstate=4",
"offCommand": "curl --silent http://dm720/web/powerstate=5",
"getStateCommand": "if [[ $(curl -s http://dm7020/web/powerstate? |grep '<e2instandby>' | cut -f2 -d '>'| cut -f1 -d '<') = 'false' ]]; then echo on; else echo off; fi",
"interval": 1000
}
by manually running in the bash console it will work
where´s the problem