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

Start error: Cannot read properties of undefined (reading 'updateCharacteristic').. #297

Open keefar opened 3 hours ago

keefar commented 3 hours ago

The plugin throws this error message

Device: 192.168.1.45 Denon AVR X3700H, did finish launching error: Error: Start error: Check state error: Cannot read properties of undefined (reading 'updateCharacteristic')..

when starting. The receiver has power and is connected via LAN.

Sometimes the plugin doesn't read the receiver's properties, I don't know whether this is related.

grzegorz914 commented 3 hours ago

Can you post the debug?

keefar commented 3 hours ago

Sure :)

[24.10.2024, 18:13:57] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, Found:  inputs.
[24.10.2024, 18:13:57] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, Connect Success.
[24.10.2024, 18:13:57] [homebridge-denon-tv] -------- Denon AVR X3700H --------
[24.10.2024, 18:13:57] [homebridge-denon-tv] Manufacturer: Denon
[24.10.2024, 18:13:57] [homebridge-denon-tv] Model: AVC-X3700H
[24.10.2024, 18:13:57] [homebridge-denon-tv] Control: Sound Modes
[24.10.2024, 18:13:57] [homebridge-denon-tv] ----------------------------------
[24.10.2024, 18:13:57] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, did finish launching error: Error: Start error: Check state error: Cannot read properties of undefined (reading 'updateCharacteristic')..
[24.10.2024, 18:13:57] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, published as external accessory.
[24.10.2024, 18:13:57] Publishing external accessory (name: Denon AVR X3700H, publishInfo: {
  username: 'FD:E7:9C:0D:95:FA',
  pincode: '***-**-***',
  category: 34,
  port: undefined,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'avahi'
}).
[24.10.2024, 18:13:57] Denon AVR X3700H EA74 is running on port 32847.
[24.10.2024, 18:13:57] Please add [Denon AVR X3700H EA74] manually in Home app. Setup Code: 135-42-144
grzegorz914 commented 2 hours ago

Go to plugin settings Advanced Settings>>System>>Debug enable it and get the log.

grzegorz914 commented 2 hours ago

Try 5.1.23-beta.0 and let me know

keefar commented 1 hour ago

Unfortunately it's still the same with 5.1.23.

Here is the log. Let me know if you also would like to see the JSON Data before that, it's bigger than my log buffer however.

[24.10.2024, 19:56:39] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, All Inputs: [] [24.10.2024, 19:56:39] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, Connect Success. [24.10.2024, 19:56:39] [homebridge-denon-tv] -------- Denon AVR X3700H -------- [24.10.2024, 19:56:39] [homebridge-denon-tv] Manufacturer: Denon [24.10.2024, 19:56:39] [homebridge-denon-tv] Model: AVC-X3700H [24.10.2024, 19:56:39] [homebridge-denon-tv] Control: Sound Modes [24.10.2024, 19:56:39] [homebridge-denon-tv] ---------------------------------- [24.10.2024, 19:56:39] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, Found: inputs. [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: State: { "Power": { "value": "ON" }, "InputFuncSelect": { "value": "TV" }, "VolumeDisplay": { "value": "Relative" }, "MasterVolume": { "value": -33.5 }, "Mute": { "value": "off" } } [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Read saved Surrounds Names: {} [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Sound mode: { "rx": { "cmd": { "surround": "Stereo" } } } [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, did finish launching error: Error: Start error: Check state error: Cannot read properties of undefined (reading 'updateCharacteristic').. [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Read saved Surrounds Target Visibility: {} [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Prepare accessory [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Prepare information service [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Prepare television service [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Prepare speaker service [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Prepare surrounds services [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Prepare inputs sensors services [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, published as external accessory. [24.10.2024, 19:56:40] [homebridge-denon-tv] Device: 192.168.1.45 Denon AVR X3700H, debug: Surrounds display order: [] [24.10.2024, 19:56:40] Publishing external accessory (name: Denon AVR X3700H, publishInfo: { username: 'FD:E7:9C:0D:95:FA', pincode: '***-**-***', category: 34, port: undefined, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: 'avahi' }). [24.10.2024, 19:56:40] Denon AVR X3700H EA74 is running on port 33665.

grzegorz914 commented 1 hour ago

You can download log file and post, i need the whole data.

keefar commented 55 minutes ago

homebridge-denon-tv.log.txt

Here goes :)

grzegorz914 commented 26 minutes ago

You don’t configured any surround in config.