Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Problem #289

Open
opb1978 opened this issue Dec 9, 2024 · 31 comments
Open

Login Problem #289

opb1978 opened this issue Dec 9, 2024 · 31 comments

Comments

@opb1978
Copy link

opb1978 commented Dec 9, 2024

I have done some debugging and also verified userid/pw for log.wien and this all works. I also disabled the Passkey stored in my log.wien account, so it only proposes password but still having the same issue:

Running Version 1.7.0 (but also tried with older versions)

I also tried configuring via configuration.yaml and this also did not help :-(

Logs from the Plugin

Logger: custom_components.wnsm.config_flow
Source: custom_components/wnsm/config_flow.py:50
integration: WienerNetzeSmartmeter (documentation, issues)
First occurred: 18:19:17 (1 occurrences)
Last logged: 18:19:17

Login failed. Check username/password.
Traceback (most recent call last):
File "/config/custom_components/wnsm/config_flow.py", line 50, in async_step_user
zps = await self.validate_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
user_input[CONF_USERNAME], user_input[CONF_PASSWORD]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/wnsm/config_flow.py", line 34, in validate_auth
await self.hass.async_add_executor_job(smartmeter.login)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wnsm/api/client.py", line 157, in login
code = self.credentials_login(url)
File "/config/custom_components/wnsm/api/client.py", line 104, in credentials_login
raise SmartmeterLoginError("Login failed. Check username/password.")
custom_components.wnsm.api.errors.SmartmeterLoginError: Login failed. Check username/password.

@webwude
Copy link

webwude commented Dec 9, 2024

How many Zählpunkte do you have? The more the worst.

I would recommend to reset everything and start from scratch.

@reox
Copy link
Collaborator

reox commented Dec 10, 2024

You are probably hit by a captcha. You can try with this script: #283 (comment) and check the resulting HTML page.

@opb1978
Copy link
Author

opb1978 commented Dec 10, 2024

How many Zählpunkte do you have? The more the worst.

I would recommend to reset everything and start from scratch.

only 1 :-)

@opb1978
Copy link
Author

opb1978 commented Dec 10, 2024

You are probably hit by a captcha. You can try with this script: #283 (comment) and check the resulting HTML page.

yes it seams to be the captcha problem. Not sure how to use this script...

@DarwinsBuddy
Copy link
Owner

A lot is broken currently on their side.
It's not just the login as it seems.

I try to get some information from my contacts, but can't promise anything right now.

In the meantime, we might have to wait for them to fix it, and check regularly https://smartmeter-web.wienernetze.at/verbrauchsdaten/grafische-darstellung

@W-M-B
Copy link

W-M-B commented Dec 13, 2024

I am lucky still have daily updates..

grafik

@l3rdy
Copy link

l3rdy commented Dec 22, 2024

Everything works for me Perfectly again after the Maintenance they had on the 18th till 18:00

@sfbuch
Copy link

sfbuch commented Dec 28, 2024

do you know, is there a similar solution for netze nö?

@DarwinsBuddy
Copy link
Owner

I just realized that they changed their T&Cs so you might just need to log in once manually and accept the changed terms. After that the integration might be good to re-login again :)

@DarwinsBuddy
Copy link
Owner

Re-opening this.
It seems that the capture is an additional blocker that appears out of nowhere every now and then.
Not even with a manual login it can be circumvented.
I'm reaching out to Wiener Stadtwerke for a potential talk about a collaboration.

@DarwinsBuddy DarwinsBuddy reopened this Jan 4, 2025
@Favorita1100
Copy link

My solution: log in via browser once and accept the new agbs then credentials/ login works.

@W-M-B
Copy link

W-M-B commented Jan 5, 2025

My solution: log in via browser once and accept the new agbs then credentials/ login works.

This worked for me as well. Maybe this is an additional topic that can be solved by accepting the new T&C

@reox
Copy link
Collaborator

reox commented Jan 5, 2025

I think the AGB are not causing that. It worked for me without being logged in and accepting them...
I think that maybe IP gray/blacklisting may play a role.

@Moach2000
Copy link

Moach2000 commented Jan 6, 2025

Hi!
I also have some issues for weeks.
But to be sure - login is usually an email address. Correct?
BR

Update: Yes - email + pw (but I tried it several times within one hour to get access)

@fifistargate
Copy link

Same Problem, and yes username and password is correct:

wnsm: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 737, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
await self.async_update()
File "/config/custom_components/wnsm/wnsm_sensor.py", line 88, in async_update
await async_smartmeter.login()
File "/config/custom_components/wnsm/AsyncSmartmeter.py", line 24, in login
return await self.hass.async_add_executor_job(self.smartmeter.login)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wnsm/api/client.py", line 157, in login
code = self.credentials_login(url)
File "/config/custom_components/wnsm/api/client.py", line 104, in credentials_login
raise SmartmeterLoginError("Login failed. Check username/password.")
custom_components.wnsm.api.errors.SmartmeterLoginError: Login failed. Check username/password.

@Moach2000
Copy link

Moach2000 commented Jan 7, 2025

In a nutshell what I did:
Login on the website with my login credentials. Accepted the new terms and conditions (or sth. similar). Did some clicks on the website to check out the changes (my last login was one year ago).
After that I deleted the integration in Hassio und tried to add it from scratch again (with success).

Update: No multifactor auth. or something activated.

@fifistargate
Copy link

Still the same problem, even after accepting AGBs

@reox
Copy link
Collaborator

reox commented Jan 15, 2025

lol:

es gab Anmeldeversuche auf Ihrem logwien-Konto, die uns ungewöhnlich vorkommen.
Waren Sie das? Wenn nicht, empfehlen wir Ihnen, das Passwort zu ändern. Sicher
ist sicher!

@reox
Copy link
Collaborator

reox commented Jan 15, 2025

uhmm... now I got it the second time. I have the feeling they don't like the hourly or more logins :/

and the third time. Basically every hour :D

@schoeberlt
Copy link

Same issue here, login failed in home assistant three times today and received the e-mail three times

@reox
Copy link
Collaborator

reox commented Jan 16, 2025

Interestingly, my login does not fail. I think they are overhauling their login logic and thus sometimes the automatic logins are blocked...

@schoeberlt
Copy link

It‘s really strange, because apparently not all logins fail for me either, because somehow yesterday’s energy data got pulled. So it’s true that some but not all logins fail.

@mochitoju
Copy link

...same here (EMail)
Is it possible to reduce the logins (like two times a day) in config?

@W-M-B
Copy link

W-M-B commented Jan 16, 2025

for me it works for now .., but I do get log.wien emails .. I like the idea @mochitoju about having the options of data collection frequency. if it is possible to choose when/how often data is ingested from Wiener Netze Smartmeter Portal

@reox
Copy link
Collaborator

reox commented Jan 16, 2025

wasn't that already implemented? At least I remember implementing a check that would wait at least 24h before starting over - but that check was after the login, i.e., to get zählpunkte etc...

@W-M-B
Copy link

W-M-B commented Jan 16, 2025

hi, I had a look at log.wien to see if I can change something there.
I discovered a part called devicemanagement, that can be switched on/off.

Image

and possibility to be informed if someone out of Austria logs in:

Image
Anyone has an idea what this will be about, maybe this is related to the email loggins?

@TheRealVira
Copy link
Contributor

Ah so this is where all these „Anmeldeversuch“ E-Mail originated from.

@reox
Copy link
Collaborator

reox commented Jan 24, 2025

But they already stopped - and at the same time the login for HA fails now every time :/

edit: no wait. The login works but there is no data! However, in the smartmeterweb, the data is present. 🤔

@webwude
Copy link

webwude commented Jan 24, 2025

I still get mails. Every two hours at the moment 🙄

@TheRealVira
Copy link
Contributor

@webwude I suggest removing the integration for now to stop E-Mails. At least until we figure out a fix for whatever is causing this. It would be great, if Wiener Netze could give public release news or change logs..

@reox
Copy link
Collaborator

reox commented Jan 24, 2025

I think we need to investigate this issue more closely: #276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests