GithubHelp home page GithubHelp logo

Authentication rejected about ha-myenergi HOT 4 CLOSED

cjne avatar cjne commented on June 3, 2024
Authentication rejected

from ha-myenergi.

Comments (4)

G6EJD avatar G6EJD commented on June 3, 2024 1

It astounds me that they don’t use some form of logical name instead of a their current addressing scheme, a simple ‘authserver…’ and then change the definition of the logical name as required would make it all so simple and remove to the need to track their changes.

from ha-myenergi.

G6EJD avatar G6EJD commented on June 3, 2024

Its your data not the integration, its almost always a typographical error, try copy and paste the API key to reduce errors.

from ha-myenergi.

glyn12 avatar glyn12 commented on June 3, 2024

I solved it, it wasn't a typo, I was already copying and pasting data.

The problem is in https://github.com/CJNE/pymyenergi/blob/main/pymyenergi/connection.py - or maybe it's actually on MyEnergi's side. It was always trying to authenticate me on the s9 server (which I believe is down to their return from the director). However, whilst the s9 server rejected my credentials, the s18 server accepted them (I guess I've been moved to their "cloud" server, which I understand the s18 is). Making hacky adjustments in connnection.py to force it to use s18 enabled it to work.

Unfortunately, the attempt to move to the next server in connection.py doesn't appear to work, as it's reset each time one tries to authenticate from HA.

from ha-myenergi.

glyn12 avatar glyn12 commented on June 3, 2024

Closing the issue as it's really an underlying myenergi issue / enhancement, although, I believe it will cause an issue for newer myenergi customers who start on the s18 server.

from ha-myenergi.

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.