Custom component - BlueIris

Using the latest version of HACS, Core, HAOS, Blue Iris integration, and the Blue Iris NVR and my logs are full of errors. Cameras seemingly display only when they want to.

Any ideas?

This error originated from a custom integration.

Logger: custom_components.blueiris.camera
Source: custom_components/blueiris/camera.py:154
Integration: Blue Iris NVR (documentation)
First occurred: 09:30:52 (2688 occurrences)
Last logged: 11:21:11

Error getting new camera image from BlueIrisHome Kitchen: Cannot connect to host 10.1.6.165:81 ssl:default [Connect call failed ('10.1.6.165', 81)]
Error getting new camera image from BlueIrisHome Garage Door: Cannot connect to host 10.1.6.165:81 ssl:default [Connect call failed ('10.1.6.165', 81)]
Error getting new camera image from BlueIrisHome Deck: Cannot connect to host 10.1.6.165:81 ssl:default [Connect call failed ('10.1.6.165', 81)]
Error getting new camera image from BlueIrisHome Front Door: Cannot connect to host 10.1.6.165:81 ssl:default [Connect call failed ('10.1.6.165', 81)]
Error getting new camera image from BlueIrisHome Den: Cannot connect to host 10.1.6.165:81 ssl:default [Connect call failed ('10.1.6.165', 81)]

I am also NOT using SSL, and the SSL box is not checked in the integration, so I donā€™t know why it says ssl in the error messagesā€¦ Maybe thatā€™s part of it??

Have you confirmed that IP is accessible from a box other than the BI Server box?

Yes. The cameras work for a few seconds after I reload the component, then stop again. BI and HA are on the same vlan, if that matters. Cameras are also on that vlan.

I think I solved this. The cameras have been stable now for about 24 hours. I had to uncheck the ā€œSupport Stream Componentā€ on the integration and reboot.

I was wrong, apparently. The cameras show up, then disappear, then come back. This happens throughout the day.

Any ideas?

1 Like

Sorry, I canā€™t think of what would cause this. The integration needs some attention but I havenā€™t been able to do so due to other obligations.

In your case the Cannot Connect Error strikes me as something outside the integration but I donā€™t know a good way to troubleshoot it.

This did work at one point - solidly. It would be nice if the HA developers didnā€™t make changes constantly that caused integrations to become broken. It does nothing but create more work for everyone else, not to mention make tons of users unhappy.

I guess Iā€™ll just have to find some other way of getting my cameras into HA for now.

Is there a way to preserve assigned areas and enabled/disabled status for cameras (devices)? Every time the integration is reloaded everything is set back with no areas assigned and all of the devices/entities which were disabled are restored.

I still have the exact same errors showing up constantly that I had before. Unless anyone has any other ideas, Iā€™m about to throw this whole blue iris setup in the trashā€¦ What good are cameras that I canā€™t see???

Iā€™m thinking this might have something to do with it. After a fresh reboot of my BlueIris server, this is part of the output of netstat -an on that box:

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    10.1.6.165:81          10.1.6.2:35386         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35394         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35398         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35428         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35440         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35450         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35460         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35476         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35488         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35496         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35506         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35508         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35512         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35518         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35534         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35548         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35550         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35554         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35564         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35572         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35582         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35584         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35590         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35602         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35618         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35620         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35622         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35626         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35640         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35652         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35654         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35656         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35662         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35664         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35674         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35686         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35694         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35708         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35716         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35724         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35734         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35750         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35756         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35768         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35778         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35788         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35804         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35814         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35824         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35828         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35842         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35858         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35864         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35880         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35886         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35892         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35908         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35910         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35916         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35920         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35928         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35932         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35934         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35946         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35954         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35956         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35964         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35972         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35976         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:35988         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36004         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36006         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36014         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36026         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36030         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36036         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36038         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36050         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36066         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36078         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36084         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36086         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36094         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36096         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36112         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36120         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36130         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36146         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36160         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36174         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36186         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36198         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36214         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36224         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36228         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36230         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36236         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36246         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36254         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36266         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36272         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36274         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36280         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36290         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36296         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36304         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36314         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36320         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36328         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36334         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36340         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36344         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36356         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36362         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36376         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36382         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36386         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36402         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36404         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36418         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36434         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36444         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36452         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36458         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36474         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36476         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36490         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36502         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36512         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36524         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36538         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36550         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36564         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36580         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36584         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36594         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36596         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36604         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36608         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36618         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36628         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36634         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36646         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36648         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36654         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36670         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36682         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36694         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36708         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36718         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36732         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36744         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36750         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36758         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36762         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36768         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36776         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36786         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36794         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36800         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36810         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36822         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36838         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36844         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36858         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36870         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36878         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36890         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36900         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36912         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36918         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36926         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36940         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36952         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36968         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36972         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36988         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:36994         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37000         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37012         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37024         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37036         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37046         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37062         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37068         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37070         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37072         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37084         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37090         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37098         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37104         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37116         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37122         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37138         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37146         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37150         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37158         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37160         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37174         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37190         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:37198         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:38800         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:38806         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47702         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47712         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47728         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47736         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47752         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47758         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47768         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47776         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47792         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47794         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47800         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47808         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47810         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47826         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47830         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47842         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47858         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47874         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47888         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47904         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47910         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47914         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47928         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47936         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47952         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47956         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47958         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47964         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47978         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:47990         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48002         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48012         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48014         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48024         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48026         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48034         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48036         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48042         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48052         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48062         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48072         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48082         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48086         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48088         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48100         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48102         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48116         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48132         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48148         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48154         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48162         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48166         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48168         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48172         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48178         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48184         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48188         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48200         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48216         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48230         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48238         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48246         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48262         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48264         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48270         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48272         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48284         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48288         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48302         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48318         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48326         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48336         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48348         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48356         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48358         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48374         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48384         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48390         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48398         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48414         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48428         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48440         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48444         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48450         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48454         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48468         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48474         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48480         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48488         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48502         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48506         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48518         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48522         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48526         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48532         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48538         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48554         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48564         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48576         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48584         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48600         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48606         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48614         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48618         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48630         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48634         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48636         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48646         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48654         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48670         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48686         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48696         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48704         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48714         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48716         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48720         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48732         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48738         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48744         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48750         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48766         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48770         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48782         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48794         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48796         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48806         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48816         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48820         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48834         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48840         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48844         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48856         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48870         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48882         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48894         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48900         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48904         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48918         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48928         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48932         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48942         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48956         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48974         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48988         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:48990         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:50670         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:50678         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:50690         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:50694         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:50698         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:50704         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56818         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56828         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56844         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56852         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56856         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56872         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56886         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56902         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56914         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56916         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56920         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56924         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56936         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56942         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56954         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56960         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56972         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56978         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56988         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:56998         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57000         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57002         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57010         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57026         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57042         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57048         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57050         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57054         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57058         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57066         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57080         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57082         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57094         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57096         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57100         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57104         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57108         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57120         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57122         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57136         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57148         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57156         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57158         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57164         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57176         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57192         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57204         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57216         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57224         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57238         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57252         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57264         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57276         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57290         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57294         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57310         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57324         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57338         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57348         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57364         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57372         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57384         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57396         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57398         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57414         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57428         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57444         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57448         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57454         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57460         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57474         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57490         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57500         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57508         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57512         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57516         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57520         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57522         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57528         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57534         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57540         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57542         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57556         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57562         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57572         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57584         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57596         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57612         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57628         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57638         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57644         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57658         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57668         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57678         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57682         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57702         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57730         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57740         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57744         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57748         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57752         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57756         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57768         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:57784         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:59288         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:59296         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:60756         TIME_WAIT
  TCP    10.1.6.165:81          10.1.6.2:60764         TIME_WAIT

10.1.6.165 is blueiris, 10.1.6.2 is my HomeAssistant.

Any idea why HA wants SO many connections just to display a handful of cameras?!

Do you have streaming turned on in the component?

I do not. I have also tried both mjpeg and h264, same results for both.

In addition, I have confirmed it is HA and/or the BI integration. If I reconfigure the integration, it breaks the connections to the camera, requiring that I restart HA. While that is happening, the number of open connections drops SIGNIFICANTLY - like, down to a handful. As soon as HA restarts and I click the tab in my dashboard to view the cameras, Iā€™m back to hundreds and hundreds of connections to BI. Eventually, the cameras stop displaying in HA, rendering this useless. The rest of HA appears to continue working without issue.

Also, I loaded the output file into Excel and sorted it. 743 sockets in TIME_WAIT from HA. Surely that cannot be the expected behavior.

These may be related? From my HA logs:

2022-08-25 10:15:34.111 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform blueiris does not generate unique IDs. ID blueiris-binary_sensor-MAIN-BlueIris Alerts is already used by binary_sensor.blueiris_alerts - ignoring binary_sensor.blueiris_alerts
2022-08-25 10:15:34.115 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform blueiris does not generate unique IDs. ID blueiris-binary_sensor-MAIN-BlueIris Alerts is already used by binary_sensor.blueiris_alerts - ignoring binary_sensor.blueiris_alerts
2022-08-25 10:18:40.450 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2022-08-25 10:23:41.099 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

A bit more t-shooting info:

If I do not view any camera tabs, the number of sockets in TIME_WAIT eventually falls to 8. Thatā€™s what I would expect to happen, though Iā€™m not sure why 8? I have 9 cameras. 2 on one dashboard tab, 3 on another, and 4 on another. In any event - if I go to the tab with 2 cameras, and just leave the tab open displaying the two cameras, after 30 seconds (30.02 seconds according to the stopwatch I used) there are 267 sockets in TIME_WAIT on my BI server with connections from HA.

It seems as though HA and/or the BI integration are not properly reusing open sockets, and are instead creating lots and lots of new ones. I canā€™t imagine that is expected behavior?

EDIT: In the roughly 5 minutes it took me to gather that info and compose this message, I left that tab open. There were then 1037 sockets in TIME_WAIT.

I think my replies today have shown the source of the problem. It appears that either HA or the integration are not properly reusing ports. If enough cameras are viewed within the 2MSL, it leads to port exhaustion.

I do not know if this is an issue with the integration, or an issue with my installation. In either case, any assistance you can offer would be greatly appreciated since this is largely unusable as is.

I would be interested to see if anyone else is seeing this same behavior on their systems.