theend92

Results 4 comments of theend92

Try this: ``` "switches" : [ { "state_cmd" : "sh /home/pi/read.sh", "name" : "Lamp", "on_cmd" : "gpio write 4 1", "off_cmd" : "gpio write 4 0", "pooling": true } ]...

Try this: ``` "state_cmd" : "sh /home/pi/Desktop/alwaysoff.sh", "polling": true, "interval": 1 ``` Create a alwaysoff.sh file on the Desktop and write in it: `exit 1` Then you can press the...

@Kepete Yes, its possible. Can you show me your "on-cmd"? I will help you.

Try this: `"state_cmd": "if pgrep -i 'dim_red'; then exit 0; fi; exit 1"`