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

Feature request: specify HomeKit port #200

Closed tchan09 closed 12 months ago

tchan09 commented 12 months ago

Could we have an option to specify the port for HomeKit connect to? I believe right now it defaults to a random port on start.

For example, port 41155 is chosen at random below:

[8/23/2023, 10:04:37 PM] denon-avr EFBD is running on port 41155.
[8/23/2023, 10:04:37 PM] Please add [denon-avr EFBD] manually in Home app. Setup Code: 421-31-355

Thanks!

grzegorz914 commented 12 months ago

Port is automatically assigned from Homebridge, you can only set range port for all plugins in HB settings. Right now HB doesn’t allow to set manually port for every plugin, only for child bridge can be manually changed. For more info please refer to HB Wiki.

tchan09 commented 11 months ago

Thanks for the pointer, I was able to figure it out.

For future readers, the syntax is:

{
    "bridge": { },
    "ports": {
        "start": 12345,
        "end": 12345
    }
}