grzegorz914 / homebridge-denon-tv

Homebridge plugin for Denon/Marantz AV Receivers, publish as independent external platform accessory.
MIT License
75 stars 16 forks source link

set Input error: TypeError: Cannot read properties of undefined (reading 'name') #296

Open mishakim opened 2 hours ago

mishakim commented 2 hours ago

Every time the AVR turns on, I get this error in the logs. Everything seems to be working fine other than the fact that the error is logged.

It's a Marantz NR1510, just one zone, four HDMI inputs

This is all that's in the log: [24/10/2024, 08:20:20] [homebridge-denon-tv] Error: at Accessory.sendCharacteristicWarning (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:2044:14) at Timeout._onTimeout (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1745:14) at listOnTimeout (node:internal/timers:581:17) at processTimers (node:internal/timers:519:7) [24/10/2024, 08:20:25] [homebridge-denon-tv] Device: 10.0.1.109 Home Theater, set Input error: TypeError: Cannot read properties of undefined (reading 'name')

grzegorz914 commented 2 hours ago

Please enable debug in plugin config and get the log.

mishakim commented 2 hours ago

Log attached (didn't realize the system-level logging didn't affect the plugin; I wondered why there wasn't much to the log). I just realized this only happens when the AVR is turned on indirectly, by turning the TV on. The error does not occur if the AVR is turned on directly. homebridge-denon-tv.log.txt

grzegorz914 commented 42 minutes ago

try 5.1.22-beta.0 and let me know

grzegorz914 commented 40 minutes ago

have you some automations running with this device? looks like some automations try to change input after POWER OFF/ON