How to reauthenticate after token expiry¶
Problem: Home Assistant shows a warning banner "Re-authentication required" for the
Felicity Energy integration, or all Felicity sensors are unavailable and the log contains
ConfigEntryAuthFailed.
When does this happen?¶
Felicity Cloud tokens expire after approximately 30 days. When the token expires, the integration triggers a reauth flow automatically — it never falls back to Demo mode or fabricates stale values.
Steps¶
- Open Settings → Devices & Services.
- Find the Felicity Energy integration card that shows the warning.
- Click Reconfigure (or follow the banner link "Re-authentication required").
- The reauth dialog shows a single field: Felicity Cloud access token.
- Obtain a fresh token from the Felicity web app:
- Open
https://shine.felicitysolar.comand log in. - Open the browser developer tools → Network tab.
- Trigger any page load (e.g. refresh the dashboard).
- Find any API request to
shine-api.felicitysolar.com(e.g.get_energy_flow2). - Copy the full value of the
Authorizationrequest header. It starts withBearer_(underscore, not space). - Paste the new token into the reauth dialog and confirm.
Home Assistant validates the token with a live API call before saving. If the token is invalid, the dialog stays open with an error message.
After reauth¶
All sensors resume normal operation within the next polling interval (default 60 s). The integration does not reload its config entry when only the token is updated, so entity state history is preserved.
Preventing frequent reauthentication¶
Felicity tokens are session tokens from the web app. They expire when:
- The token reaches its ~30-day lifetime.
- You log out of
shine.felicitysolar.comin the same browser session. - Felicity rotates or revokes the token server-side.
There is currently no way to obtain a longer-lived token through the public API. The OAuth2 + PKCE auth mode is designed for integrations that have their own token provider with refresh support; Felicity does not publish such an endpoint publicly.