Since upgrading to HA 2021.9, I am no longer able to access the settings page for energy. I can still see the energy dashboard and it appears to be working correctly, however I am unable to edit or make changes to the energy configuration.
When I click on Configuration —> Energy, I get a page that says “Unknown error, Go Back”.
Is there a way to delete the configuration and start fresh?
System Health
version: core-2021.9.3
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.6
os_name: Linux
os_version: 5.4.0-81-generic
arch: x86_64
timezone: America/Toronto
GitHub API: ok
Github API Calls Remaining: 5000
Installed Version: 1.15.2
Stage: running
Available Repositories: 880
Installed Repositories: 13
logged_in: true
subscription_expiration: September 16, 2021, 8:00 PM
relayer_connected: true
remote_enabled: true
remote_connected: true
alexa_enabled: false
google_enabled: true
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok
dashboards: 4
resources: 7
error: /config/ui-lovelace.yaml not found
views: 17
mode: yaml
api_endpoint_reachable: ok
See if you have .storage/energy in your config directory and try renaming it to energy.old.
I’d stop Home Assistant before removing or editing this file.
The file .storage/energy should only contain configuration for the Energy component. Sensor state history and configuration of the individual sensors should not be affected. You can open the file in a text editor to see what configuration you’ll loose by removing/renaming it.
Make a backup of your config directory and the database (home-assistant_v2.db), just in case.
I’d also shut down Home Assistant before removing the file.
I have the same issue. I changed the costs (and somehow entered a comma instead of a point decimal); now I also get the error. Dashbpard works (with 0 for costs). But when I enter the configuration via Lovelace UI I get the error described above.
However, I do not have a ./storage/energy in my config directory (or I am too stupid to see it).
You should be able to manually edit the json file in .storage/energy. Don’t forget to stop Home Assistant first and make a backup of the file.
Or just delete it as I have described in my previous posts. You shouldn’t lose any actual data, only configuration of the energy dashboard. You can then set it up from scratch.