SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

Unable to login: "template" error

Open rplankenhorn opened this issue 1 year ago • 13 comments

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.

rplankenhorn avatar Jul 01 '24 14:07 rplankenhorn

Same issue here.

psqv avatar Jul 05 '24 08:07 psqv

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

lefixx avatar Jul 18 '24 12:07 lefixx

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

sergioatk avatar Jul 21 '24 01:07 sergioatk

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

Gamlem avatar Jul 28 '24 21:07 Gamlem

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

sergioatk avatar Jul 29 '24 22:07 sergioatk

Haven't time to check this yet.

AlexxIT avatar Jul 30 '24 04:07 AlexxIT

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

Gamlem avatar Aug 04 '24 20:08 Gamlem

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.

MagiLuminis avatar Aug 06 '24 21:08 MagiLuminis

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.

Gamlem avatar Aug 07 '24 15:08 Gamlem

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

lefixx avatar Aug 10 '24 11:08 lefixx

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

AlexxIT avatar Sep 07 '24 11:09 AlexxIT

Just encountered this error on a fresh HA OS install with only HACS. I did receive the error when trying to log in (email/pass) but left the phone field blank. This is where I got the template error.

What finally worked for me was setting the phone prefix to the appropriate region (US +1 for me) and it logged right in. Maybe something with the "auto" portion of that field?

AndrewUHD avatar Sep 25 '24 02:09 AndrewUHD

I always leave the field blank.

AlexxIT avatar Sep 25 '24 12:09 AlexxIT