Closed spattinson closed 5 years ago
Well that must be a bug in home assistant then. Esphome only delivers the JPG stream - anything that has to do with the HA frontend definitely is a bug in HA then.
Also note ESPHome does not support the HA "stream" feature - that might be what you're seeing here.
Please open an issue in https://github.com/home-assistant/home-assistant
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Home assistant (0.93.1) on Hassbian without docker. Exposed to the internet with a letsencrypt cert using my own domain name
ESP (ESP32/ESP8266, Board/Sonoff):
ESP32 AIthinker Affected component:
esp32cam
Description of problem: Esp32cam invalid login attempt Including esp32cam in lovelace frontend causes
Login attempt failed: login attempt or request with invalid authentication from
Browser is Chrome on Android How to reproduce: Open Frontend, switch to another app or leave phone to go to sleep for a while leaving home assistant idle in background. After some time open home assistant again on phone. Immediately the above error is triggered. This causes ip_ban to be triggered.Problem-relevant YAML-configuration entries: Sections from configuration.yaml:
esphome yaml:
Traceback (if applicable):
I connected to my Chrome instance using a desktop debugging session to see the error from the browser perspective:
Additional information and things you've tried: I made tried turning off "data saver" in Chrome it made no difference I set logger to debug level for http auth auth_providers it yeilded no further information other than the original error. Removed the esp32cam component from my frontend and the errors stopped happening. The error occurrs whether you are on the local network or remove (wifi vs 4g)
My esp32cam was last flashed on May 3. I am concerned that my IP will get banned so have set my login retries to 50. It would be preferable from a security perspective to set that lower and not see and read the persistant notifications in the frontend unless there is an actual unauthorised person trying to break in. I am away until Mon 27 May, I can do further testing