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

TypeError: Cannot read properties of undefined (reading 'zoneGroupShortName')

Open jsiegenthaler opened this issue 7 months ago • 5 comments

Issue

TypeError: Cannot read properties of undefined (reading 'zoneGroupShortName')

Error was thrown when the Sonos device was turned off at the mains and thus unreachable

Log Messages

[26/11/2023, 18:58:03] [Sonos] Office Sonos: Active: set to 0
[26/11/2023, 18:58:03] [Sonos] Office Sonos: Status Fault: set to 1
[26/11/2023, 18:58:03] [Sonos] Input 1: Configured Name: set to "n/a" (from "Input 1")
[26/11/2023, 18:58:03] [Sonos] n/a: Name: set to "n/a" (from "Input 1")
[26/11/2023, 18:58:03] [Sonos] error: RINCON_5CAAFDCF9FB401400: [192.168.0.162]: TypeError: Cannot read properties of undefined (reading 'zoneGroupShortName')
    at Tv.updateGroupInputSource (/var/lib/homebridge/node_modules/homebridge-zp/lib/ZpService.js:1199:43)
    at Tv.favouritesUpdated (/var/lib/homebridge/node_modules/homebridge-zp/lib/ZpService.js:1136:10)
    at new Tv (/var/lib/homebridge/node_modules/homebridge-zp/lib/ZpService.js:1097:10)
    at new Tv (/var/lib/homebridge/node_modules/homebridge-zp/lib/ZpAccessory.js:343:22)
    at ZpPlatform.logTopology (/var/lib/homebridge/node_modules/homebridge-zp/lib/ZpPlatform.js:473:41)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[26/11/2023, 18:58:03] [Sonos] Office Sonos: Status Fault: set to 0 (from 1)

Debug Files

jsiegenthaler avatar Nov 27 '23 05:11 jsiegenthaler