kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
120 stars 10 forks source link

Set individual camera ports. #69

Closed ghostlygeeper closed 1 year ago

ghostlygeeper commented 1 year ago

Is your feature request related to a problem? Please describe:

I keep running into an issue where the individual ports keep changing for the cameras, which is disconnecting them and I am unable to view them in homekit. The child bridge is running correctly, and the port does not change it is just the cameras that change ports. **Describe the solution you'd like:** I would like to be able to define the port(s) to one I specify in the config so that it will not change, which will keep the cameras from disconnecting. **Describe alternatives you've considered:**

Additional context:

Logs:

[1/14/2023, 4:16:05 PM] Publishing external accessory (name: Garage, publishInfo: {
  username: '00:00:00:00:00:00',
  pincode: '***-**-***',
  category: 17,
  port: undefined,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'bonjour-hap'
}).

Plugin Config:

    {
        "cameras": [
            {
                "name": "Garage",
                "ipAddress": "123.456.7.890",
                "password": "Password",
                "streamUser": "Username",
                "streamPassword": "Password",
                "debug": true
            }
        ],
        "_bridge": {
            "username": "00:00:00:00:00:00",
            "port": 12345
        },
        "platform": "tapo-camera"

Environment:

ghostlygeeper commented 1 year ago

I was able to add this set of lines to the config and that fixed my issue.

},
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"ports": {
    "start": 52110,
    "end": 52150,
    "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
},