kazcangi / homebridge-pioneer-avr

Pioneer AVR TV plugin for Homebridge
MIT License
9 stars 14 forks source link

volume status check causes homebridge to restart with vsx-1130 #23

Open brawas77 opened 3 years ago

brawas77 commented 3 years ago

actually happens with "Homebridge Pioneer Sc Lx88" which was forked off this one. I have the same issue with this one where it hangs on discovering inputs which is why I use "Homebridge Pioneer Sc Lx88". Couldn't find a way to report issues there so reported here. My receiver is a Pioneer VSX-1130 and that plugin is the only one that worked until I noticed this volume issue. Please excuse my lingo, I'm not a coder, please fix either input discovery on this plugin and/or volume status check or add config to disable volume status check. Thank You

log:

[26/01/2021, 10:46:04] TypeError: this.volumeStatus is not a function at pioneerAvrAccessory.getVolume (/usr/local/lib/node_modules/homebridge-pioneer-sc-lx88/index.js:254:10) at Volume.emit (events.js:315:20) at Volume.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22) at Volume.Characteristic._this.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:489:12) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1217:22 at Array.forEach () at Bridge.Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1145:10) at HAPServer.emit (events.js:315:20) at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22) at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12) at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:62:3) at Function.module.exports.loopWhile (/usr/local/lib/node_modules/homebridge-pioneer-sc-lx88/node_modules/deasync/index.js:70:11) at Function.sleep (/usr/local/lib/node_modules/homebridge-pioneer-sc-lx88/node_modules/deasync/index.js:41:18) at PioneerAvr.powerStatus (/usr/local/lib/node_modules/homebridge-pioneer-sc-lx88/pioneer-avr.js:88:24) at pioneerAvrAccessory.getPowerOn (/usr/local/lib/node_modules/homebridge-pioneer-sc-lx88/index.js:188:14) at Active.emit (events.js:315:20) at Active.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22) at Active.Characteristic._this.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:489:12) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1217:22 at Array.forEach () at Bridge.Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1145:10) at HAPServer.emit (events.js:315:20) at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22) at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12) at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)