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

Statistic Entity is missing #292

Open
ZakiZtraki opened this issue Jan 4, 2025 · 6 comments
Open

Statistic Entity is missing #292

ZakiZtraki opened this issue Jan 4, 2025 · 6 comments

Comments

@ZakiZtraki
Copy link

ZakiZtraki commented Jan 4, 2025

After the last update the HA WNSM doesn't have the statistic device/entity. Integration can pull the daily 24h energy consumption state but not the 15min/1hour states logged through out the day at the smart meter side and a reason I can't calculate my variable energy cost. If I need to pull some logs I would appreciate the info about which logs to look for and what am I should be looking for inside this log.

@elmartinoAT
Copy link

Same here, after my smartmeters are probably working now (15min data shown on the smartmeter portal).
In HA only the 24 hour shown, no historical 15min data between them.
There are onyl the 2 entities sensor.at0010000... shown and there are only the 24 hour data saved

@MaxRower
Copy link

MaxRower commented Jan 5, 2025

Same problem here, two locations without any new data since 2025-01-03

@wceleda
Copy link

wceleda commented Jan 7, 2025

Same problem here, two locations without any new data since 2025-01-03

Same here last update is from 2025-01-02!

from the log:

Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:737
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 04:57:47 (3 Vorkommnisse)
Zuletzt protokolliert: 04:57:47

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.

@MaxRower
Copy link

MaxRower commented Jan 7, 2025

Status update: got both locations working again, deleted the entity, and when registering my accounts again, I noticed, it would not accept my credentials. After logging in with the same credentials at https://smartmeter-web.wienernetze.at/ and accepting their policy, I could register again with the wnsn integration. So maybe, you just have to accept their policy at the website, and it will work again.

@wceleda
Copy link

wceleda commented Jan 8, 2025

Status update: got both locations working again, deleted the entity, and when registering my accounts again, I noticed, it would not accept my credentials. After logging in with the same credentials at https://smartmeter-web.wienernetze.at/ and accepting their policy, I could register again with the wnsn integration. So maybe, you just have to accept their policy at the website, and it will work again.

yes, after direct login, accepting their new policies and restarting HA all data is available, txs MacRower for this hint

@derpeterz
Copy link

BRILLIANT! that worked for me too. :-)

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

5 participants