Code Monkey home page Code Monkey logo

Comments (10)

DarwinsBuddy avatar DarwinsBuddy commented on May 26, 2024 2

maybe the API changed. I'll have a look this weekend.

from wienernetzesmartmeter.

DarwinsBuddy avatar DarwinsBuddy commented on May 26, 2024 1

I guess so.
When you add the integration for every Zaehlpunkt in your account a sensor will be created. each of those sensors will be initialized, hence the call to Zaehlpunkt which fail and thus you cannot add the integration.

fixing the API call's expected response will fix it.

I hope I'll find time tomorrow to have a look

from wienernetzesmartmeter.

DarwinsBuddy avatar DarwinsBuddy commented on May 26, 2024 1

Found the issue.
b2capiKey changed to b2cApiKey
improved robustness of the regex looking for it

from wienernetzesmartmeter.

cleversmart avatar cleversmart commented on May 26, 2024

same issue here

from wienernetzesmartmeter.

reox avatar reox commented on May 26, 2024

Yep, they did something...
I get this error message:

{'Exception': 'PROD API Gateway encountered an error. 
Error Message:  Native service provider error.
 Reason : com.wm.app.b2b.server.ServiceException: java.net.SocketException: Connection reset. 
Request Details: Service - WN_SMART_METER_PORTAL_API_B2C, Operation - /zaehlpunkte, Invocation Time:4:45:58 PM, Date:Jan 13, 2023,  Client IP - 1.2.3.4, User - Default and Application:WN_SMART_METER_PORTAL_API_B2C'}

I got this before rarely, but it fixed itself after a while. But this time it seems to be persistent.
Maybe they blocked all access that is not via their smartmeter portal, because on that page the requests to /zaehlpunkte are working :(

edit: I also see those in the log:

'Exception': 'PROD API Gateway encountered an error. Error Message: Unauthorized application request. Request Details: Service - WN_SMART_METER_PORTAL_API_B2C, Operation - /zaehlpunkte, Invocation Time:11:30:56 PM, Date:Jan 18, 2023, Client IP - 1.2.3.4, User - Default and Application:sys:defaultApplication'}

This really sounds like they blocked access :/

from wienernetzesmartmeter.

ltaferner avatar ltaferner commented on May 26, 2024

so maybe it's the reason why I'm not able to add the integration, because of "Username/password invalid"
tried so many things like volkszähler - not able to decrypt this data :(
hope, that @DarwinsBuddy finds a solution ;)

Another question is: i've got two Zählpunkte - is the choice in HACS AFTER the login?

from wienernetzesmartmeter.

cleversmart avatar cleversmart commented on May 26, 2024

Hi, if you fix the problem, maybe please add a function to retrieve historical data. In my case I miss few days and I‘m not able to add the missing data with the correct date to the recorder.

from wienernetzesmartmeter.

DarwinsBuddy avatar DarwinsBuddy commented on May 26, 2024

this is a home assistant feature afaik.

iirc you have to go to

Settings -> Devices/Integrations -> Entities

and at the respective sensor.you click on the most right icon to add data

Right now this may not work, as the sensor has to be up-to-date.

from wienernetzesmartmeter.

DarwinsBuddy avatar DarwinsBuddy commented on May 26, 2024

released fix in 1.0.1

from wienernetzesmartmeter.

reox avatar reox commented on May 26, 2024

Nice! I thought already they had blocked the access :D

from wienernetzesmartmeter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.