I have been trying to connect PG&E (Pacific Gas & Electric) using the official integration via Opower but have had no luck. When I enter my account credentials, I get the error: “Failed to connect.”
Is there something I need to accomplish on the PG&E side to get the energy data to HA?
Logger: homeassistant.components.opower.config_flow
Source: components/opower/config_flow.py:51
integration: Opower ([documentation](https://www.home-assistant.io/integrations/opower), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+opower%22))
First occurred: 12:08:25 PM (1 occurrence)
Last logged: 12:08:25 PM
Invalid auth when connecting to Pacific Gas and Electric Company (PG&E)
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/opower/config_flow.py", line 51, in _validate_login await api.async_login() File "/usr/local/lib/python3.13/site-packages/opower/opower.py", line 200, in async_login self.access_token = await self.utility.async_login( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ self.session, self.username, self.password, self.optional_mfa_secret ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/opower/utilities/pge.py", line 57, in async_login raise InvalidAuth(result["errorMsg"]) opower.exceptions.InvalidAuth: Please enter a valid Username and/or Password.
I’m also having a problem. It seems PG&E changed their website, and required creating a new User ID and password. The problem is Opower keeps prompting me for the new password, but that won’t work because there’s a new User ID, but I haven’t been able to figure out a way to change the User ID.
Anyone know how to change the User ID? I’m guessing because Opower is now built in to Home Assistant I can’t simply uninstall it and reinstall it (or if I can, someone please tell me how).
To change the Opower login config, use Studio Code Server or likewise to edit /config/.storage/core.config_entries. It’s got a lot of sensitive credentials. Search for “PG&E” and change the username value. You’ll need to do a full restart of Home Assistant after that.