AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.66k stars 414 forks source link

Unable to login: "template" error #1440

Open rplankenhorn opened 2 months ago

rplankenhorn commented 2 months ago

I am unable to login with my eWeLink cloud credentials and I keep getting this error:

Screenshot 2024-07-01 at 10 21 35 AM

I am able to successfully add the integration if I only specify my email but it doesn't detect any of my Sonoff switches and there doesn't seem to be a way to enter the password after the fact.

psqv commented 2 months ago

Same issue here.

lefixx commented 2 months ago

Sonoff devices stopped working, trying to reset by loggin out. have same problem

sergioatk commented 1 month ago

Hi, I'm facing the same exact issue... any updates?

image
Gamlem commented 1 month ago

I had the same issue, i have shared home from my father's account and i notice all devices out of my lan are unavailable and when try to add the two account with user and pass has the template issue, i only control my lan devices with DIY. Any update? I tested all available version in hacs and same issue

sergioatk commented 1 month ago

No news, tried to reinstall the sonoff lan integration, but the same error happens when login. @AlexxIT, any clues?

AlexxIT commented 1 month ago

Haven't time to check this yet.

Gamlem commented 1 month ago

I try to search the error in logs but this not log nothing even if I enable debugging in the integration. Any updates?

MagiLuminis commented 1 month ago

Don't know if @AlexxIT has done anything but the problem seems to be fixed as today I have loaded my Home Assistant to see all my devices from Sonoff appeared properly.

Note: I had setup my configuration.yaml to include the username and password for the Sonoff login. if you haven't you might need to do it manually through the Home Assistant Sonoff Setup.

Gamlem commented 1 month ago

Today I tried again but the error still appears if you try to log in to the cloud. I discovered this, if you press send again 2 more times without changing anything, the third time you try it the integration with the cloud is configured correctly. Verified with several different accounts. On some occasions testing this, I have had to restart home assistant to discover the devices.

lefixx commented 1 month ago

Installed from HACS, was able to add the acount, seems to work now

AlexxIT commented 1 week ago

I don't know how to reproduce this problem. If someone has it - you need to look at the browser requests. Something like http://192.168.1.123:8123/api/config/config_entries/flow/01J765603Q0514KWYVGET43TKX