luisiam / homebridge-cmdswitch2

CMD Plugin for HomeBridge (API 2.0): https://github.com/nfarina/homebridge
Apache License 2.0
176 stars 29 forks source link

TypeError: Cannot read property 'toUpperCase' of undefined #38

Open tonysprenk opened 6 years ago

tonysprenk commented 6 years ago

Hi,

I'm very new to this.

I've installed Homebridge and CMDswitch2. everything seems to be running ok but when I use the Hesperus app to create a new switch I type in the command I'd like to be run (osascript users/myusername/applescript.scpt) I hit save and Homebridge quits en I get the following error:

TypeError: Cannot read property 'toUpperCase' of undefined at cmdSwitchPlatform.configurationRequestHandler (/usr/local/lib/node_modules/homebridge-cmdswitch2/index.js:439:32) at BridgeSetupSession.handleWriteRequest (/usr/local/lib/node_modules/homebridge/lib/bridgeSetupSession.js:82:36) at BridgeSetupManager.handleWriteRequest (/usr/local/lib/node_modules/homebridge/lib/bridgeSetupManager.js:95:16) at BridgeSetupManager.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/bridgeSetupManager.js:43:10) at Characteristic.emit (events.js:180:13) at Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:319:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:867:22) at Array.forEach (<anonymous>:null:null) at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:807:8) at HAPServer.emit (events.js:180:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:972:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:180:13) at endReadableNT (_stream_readable.js:1106:12) at process._tickCallback (internal/process/next_tick.js:178:19)

Any have any idea how I can solve this?

Again I'm very new to this so any help would be greatly appreciated.

Thanks, Tony