SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

Issue when logging in - "template"

Open thorbergurharaldsson opened this issue 9 months ago • 6 comments

When I try to log in I get an error message that just says "template"

I've tried different accounts and always the same error.

Image

There are no errors anywhere in logs

2025-03-04 14:58:15 [D] SysInfo: {'installation_type': 'Home Assistant Container', 'version': '2025.2.5', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.13.1', 'docker': True, 'arch': 'x86_64', 'timezone': 'Atlantic/Reykjavik', 'os_name': 'Linux', 'os_version': '6.1.49-Unraid', 'user': 'root', 'sonoff_version': '3.8.2 (c4b6fda)'} 2025-03-04 14:58:15 [D] AUTO mode start

thorbergurharaldsson avatar Mar 05 '25 08:03 thorbergurharaldsson

@AlexxIT please let me know if there is anything I can do to help you troubleshoot this issue.

thorbergurharaldsson avatar Mar 07 '25 11:03 thorbergurharaldsson

It should show error message, but can't. Maybe message contains some bad symbols, I don't know. You can check network tab in the browser dev tools. You will see new line with response just after click to submit button.

AlexxIT avatar Mar 07 '25 11:03 AlexxIT

Image

thorbergurharaldsson avatar Mar 07 '25 11:03 thorbergurharaldsson

Try to change this line https://github.com/AlexxIT/SonoffLAN/blob/194c20765440c601b21696955c5d3c88427f836f/custom_components/sonoff/config_flow.py#L73

from str(e) to repr(e)

AlexxIT avatar Mar 07 '25 12:03 AlexxIT

Once I updated that line I get "TimeoutError()"

Image

Image

thorbergurharaldsson avatar Mar 11 '25 06:03 thorbergurharaldsson

Maybe some network error with connection to cloud servers. You may have Internet blocking rules set up.

AlexxIT avatar Mar 11 '25 11:03 AlexxIT

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.9.0

AlexxIT avatar Aug 14 '25 15:08 AlexxIT

Please reopen the issue if there are still any problems

AlexxIT avatar Aug 14 '25 15:08 AlexxIT