DarwinsBuddy / WienerNetzeSmartmeter

A home-assistant integration supporting WienerNetze Smartmeters as sensors
144 stars 15 forks source link

Connection Error #246

Closed mgmomo closed 3 months ago

mgmomo commented 3 months ago

Hi, since Wednesday, 31.7.2024, there was an API change at WienerNetze. In the "main.xxxxxxxxxx.js" file the API Key after "b2cApiKey" cant't be found anymore.

This error is shown in Homeassistant: "custom_components.wnsm.api.errors.SmartmeterConnectionError: Could not obtain API Key - no match"

reox commented 3 months ago

so either that is an temporary issue and goes away soon or they really changed something :( In that case one would have to check where we get the key from...

reox commented 3 months ago

Okay, maybe they really changed something. It looks like there is now a JSON file that contains the information: https://smartmeter-web.wienernetze.at/assets/app-config.json Can someone verify that? If that is the case, it would be actually much easier to get the keys.

mgmomo commented 3 months ago

above fix #248 is working for me too. great! thx a lot!

cleversmart commented 3 months ago

What is exactly to do to fix this? I have no data since few days…