ESPHome causes IP bans

I’ve been running into an issue where ESPHome keeps getting banned, but since I’m exposed externally, it’s causing it to ban my router’s IP address, which is the address through which all my clients connect, so it effectively locks me out until I remove the ban and reboot home assistant.

Any hints as to what’s happening here, and how I can fix it?

1 Like

Need more info That is ment by banned. How is it connected? Are you connecting the device directly to the public internet?

My IP address gets banned by Home Assistant when using the ESPHome add-on from within HassIO. Connection to the internet is done through the Duck DNS add-on with encryption (https).

Looks like it’s triggered when I try to view the stream from an ESP32-cam module. Odd

Im having the exact same issue. Were you able to find a solution or workaround to this?

I’m seeing this same thing. It seems to eventually resolve itself until a restart

I have the same issue. I suspect it has something to do with Chrome and refresh when the camera becomes unavailable. Chrome keeps polling (?) the camera causing what HA thinks is an invalid login.

I have had some success by hiding the card when the camera becomes unavailable. This is done by embedding the picture-entity card inside a conditional card.

type: conditional
conditions:
  - entity: camera.carlos_cam_1
    state_not: unavailable
card:
  camera_view: live
  entity: camera.carlos_cam_1
  show_state: false
  type: picture-entity
  camera_image: camera.carlos_cam_1

So it only shows the card when the camera is available. I occasionally get an invalid login but that seems to happen if I am changing the programming of the camera and have the camera view open in another tab.

1 Like

I get this issue too, so have taken your advice and added the camera card to a conditional card, so far so good, thanks

1 Like