Skip to content

Add support for multiple accounts in Eversource #203

Closed

Description

@blitz79

Hi, Currently the eversource code only supports account[0] (hardcoded [0])
In my case, the account[0] is dormant gas account and return null instead a jwt token.
account[1] and account[2] are active electric accounts and can return data when i clone this repo, compile and modify that line.

I do see some sort of support for multiple accounts in some utilities (when i search 'multiple accounts' on github search)
So, I am hoping this can be added?

Or may be a way to provide the account number we care about directly in the UI onboard itself

Thank you.

Activity

  1. ds-haos-hacs58 commented on Jul 19, 2026

    @ds-haos-hacs58

    I have the exact same problem as OP

    account[0] - closed electrical account
    account[1] - active gas account
    account[2] - active electrical account

  2. tronikos commented on Oct 3, 2026

    @tronikos
    Owner

    Fixed in 0.22.2 (#222). Login no longer uses only accounts[0]. It tries each account in order and uses the first one that issues an Opower token, so a closed or dormant first account no longer breaks login.

    The token should cover all accounts on the login, because the accounts are then listed through the Opower API. However, this was only tested live with a single account. @blitz79 and @ds-haos-hacs58, your setups are exactly the case this is for. Could you try 0.22.2 and confirm that all your active accounts show up? If any are missing, please reopen.

    Closing for now.

  3. ds-haos-hacs58 commented on Oct 4, 2026

    @ds-haos-hacs58

    I tried adding the Opower integration, but I get the following error message when I enter the credentials:

    "Unknown error occurred"

    I am able to log into my Eversource account using the same credentials...

    Image
  4. tronikos commented on Oct 4, 2026

    @tronikos
    Owner

    Fix will be in Home Assistant 2026.10.0 that will be released in 3 days.

  5. ds-haos-hacs58 commented on Oct 8, 2026

    @ds-haos-hacs58

    After the HA update, it is working correctly - I am able to log in via HA and I see the electric and gas accounts. Thank you very much!

  6. ds-haos-hacs58 commented on Oct 12, 2026

    @ds-haos-hacs58

    Hi,

    I have an issue with the Gas section. The Opower integration is able to see both the Electric and the Gas accounts, only the Electric returns any Consumption or Cost data.

    Not sure if this is an issue with Eversource or with the integration, but I wanted to give you my results.

    Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions