Hey. I want to send the following command line sh /home/pi/Haustür/haustür.sh ht on with homebridge. But every time i turn the button on in Homekit homebridge crashes. Normally it works in the terminal.
child_process.js:383
throw new TypeError('"file" argument must be a non-empty string');
^
TypeError: "file" argument must be a non-empty string
at normalizeSpawnArguments (child_process.js:383:11)
at exports.spawn (child_process.js:496:38)
at Object.exports.execFile (child_process.js:212:15)
at exports.exec (child_process.js:142:18)
at cmdSwitchPlatform.setPowerState (/usr/lib/node_modules/homebridge-cmdswitch2/index.js:222:3)
at emitMany (events.js:147:13)
at Characteristic.On.emit (events.js:224:7)
at Characteristic.On.Characteristic.setValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Service.Switch.Service.setCharacteristic (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Service.js:183:32)
at Timeout._onTimeout (/usr/lib/node_modules/homebridge-cmdswitch2/index.js:237:12)
Hey. I want to send the following command line
sh /home/pi/Haustür/haustür.sh ht on
with homebridge. But every time i turn the button on in Homekit homebridge crashes. Normally it works in the terminal.This is my config.json:
And thats the error message:
So what did I wrong?