grzegorz914 / homebridge-denon-tv

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

Previous or first input shown when input reference is „AirPlay“ #159

Closed gee-az closed 1 year ago

gee-az commented 1 year ago

My receiver Marantz NR1506 has „AirPlay“ as input reference for AirPlay and I have it configured that way in the config.

But when the input state is gathered the log says the input reference is either the input the plugin knew before or the first one in the list (TV) so the input is never shown as AirPlay in HomeKit.

The Spotify reference for this receiver is also different („Spotify“) but the plugin displays that one correctly.

Do I have an error in my config?

Input config

"name": "AirPlay",
                            "reference": "AirPlay",
                            "mode": "SI"

Debug log, input was AirPlay the entire time

[11/9/2022, 10:57:41 PM] [DenonTv] Device: 192.168.1.233 Marantz, debug: State: {
  "Power": [
    {
      "value": [
        "ON"
      ]
    }
  ],
  "InputFuncSelect": [
    {
      "value": [
        "AirPlay"
      ]
    }
  ],
  "VolumeDisplay": [
    {
      "value": [
        "Absolute"
      ]
    }
  ],
  "MasterVolume": [
    {
      "value": [
        "-68.5"
      ]
    }
  ],
  "Mute": [
    {
      "value": [
        "off"
      ]
    }
  ]
}
[11/9/2022, 10:57:41 PM] [DenonTv] Device: 192.168.1.233 Marantz, get Power state successful: ON
[11/9/2022, 10:57:41 PM] [DenonTv] Device: 192.168.1.233 Marantz, get Input successful, name: TV, reference: TV
[11/9/2022, 10:57:42 PM] [DenonTv] Device: 192.168.1.233 Marantz, get Power state successful: ON
[11/9/2022, 10:57:42 PM] [DenonTv] Device: 192.168.1.233 Marantz, get Input successful, name: TV, reference: TV
[11/9/2022, 10:57:44 PM] [DenonTv] Device: 192.168.1.233 Marantz, debug: State: {
  "Power": [
    {
      "value": [
        "ON"
      ]
    }
  ],
  "InputFuncSelect": [
    {
      "value": [
        "AirPlay"
      ]
    }
  ],
  "VolumeDisplay": [
    {
      "value": [
        "Absolute"
      ]
    }
  ],
  "MasterVolume": [
    {
      "value": [
        "-68.5"
      ]
    }
  ],
  "Mute": [
    {
      "value": [
        "off"
      ]
    }
  ]
grzegorz914 commented 1 year ago

Always use Config UI X to configure plugin, correct reference is „NET”

gee-az commented 1 year ago

Thank you! Works now.