seydx / homebridge-bravia-tvos

Homebridge plugin for Sony Bravia Android TVs
MIT License
346 stars 32 forks source link

Commands no longer working #220

Open Fofer opened 6 months ago

Fofer commented 6 months ago

This plugin has been working brilliantly for years but now has stopped responding to the HomeKit commands I created. Here's the error from my log:

[07/03/2024, 00:11:16] [BraviaTVOS] Sony TV: ON
[07/03/2024, 00:11:16] [BraviaTVOS] Sony TV: Send command: Display On (AAAAAQAAAAEAAAA6Aw==)
[07/03/2024, 00:11:17] [Sony TV Display Toggle] Setting switch to false
[07/03/2024, 00:11:18] [BraviaTVOS] Sony TV: An error occured during setting active identifier
[07/03/2024, 00:11:18] [BraviaTVOS] TypeError: Cannot read properties of undefined (reading 'type')
    at Handler.setActiveIdentifier (/usr/local/lib/node_modules/homebridge-bravia-tvos/src/accessories/accessory.handler.js:168:17)
    at ActiveIdentifier.setHandler (/usr/local/lib/node_modules/homebridge-bravia-tvos/src/accessories/television/television.accessory.js:157:38)
    at ActiveIdentifier.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2547:42)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
    at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:165:16)
    at ActiveIdentifier.Characteristic.handleSetRequest (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:871:24)
    at Accessory.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1894:29)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
    at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:165:16)
    at Accessory.handleCharacteristicWrite (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:1550:24)

I'm running Homebridge 1.7.0 and Node.js v20.11.1, on a Raspberry Pi 4b+. Thanks for any information or help if available.