homebridge-script2 icon indicating copy to clipboard operation
homebridge-script2 copied to clipboard

Off and On Scripts not running

Open jkerr1416 opened this issue 4 years ago • 1 comments

For some reason the off and on scripts aren't running through homebridge for me. The state script returns a value to the homebridge ui, but neither of the two other scripts appear to run. Any clue what could be causing this? I've directly called them with the locations listed from command line and they work, so I'm at a loss.

"accessories": [ { "accessory": "Script2", "name": "Jack Light Switch", "on": "/home/homebridge/On.sh", "off": "/home/homebridge/Off.sh", "state": "/home/homebridge/State.sh", "on_value": "True" } ],

jkerr1416 avatar Aug 01 '21 21:08 jkerr1416

This is likely a permissions issue. Try switching in to your Homebridge user (su homebridge from root) and see what happens when you execute the same command

jasonlboggs avatar Oct 05 '21 12:10 jasonlboggs