Rebuilding the Home Dashboard After an Update Ate It
After an update, the one dashboard we actually used was gone. Nothing of it was recoverable, so we rebuilt a Home screen from live data: weather, safety sensors, cameras, environment and device health, all scripted over Home Assistant's websocket API.

Key Architectural Takeaways
- Check what actually survived before rebuilding; only the built-in Map dashboard remained in storage.
- A dashboard is configuration, and configuration you cannot recreate from a file will eventually be lost.
- The websocket API can create and save dashboards, which makes a rebuild scriptable.
The challenge
After a Home Assistant update, the main dashboard we used every day was gone. Before building anything new we looked at the storage directory directly and confirmed that only the built-in Map dashboard had survived. There was nothing to restore, so the job became a rebuild.
What the new Home screen shows
We built a new sidebar-pinned dashboard with the sections layout:
- Weather at the top, from the free tier of a weather API wired through a normal config flow, defaulting to the home location configured in Home Assistant.
- Security and alarms: the safety sensors, which sync as roughly 150 entities across a base station, a carbon monoxide alarm, three water-leak sensors, three smoke alarms and two temperature and humidity sensors.
- Cameras: every camera feed from the NVR integration.
- Environment and Device health (batteries and Wi-Fi signal strength).
- Fleet notes for the infrastructure the home setup depends on.
Separate views carry a larger camera grid and the safety sensors' details.
How it was built
Dashboards are not files you edit in place, so the work went through Home Assistant's websocket API, the same channel the UI uses. A small stdlib-only websocket client (the environment had no pip or websockets package) created the dashboard and saved its configuration, and entity and area assignments went through the same calls. Anything that is a config entry, entity registry change, dashboard save or service call is scriptable this way.
What it does not have
This is live-only configuration. No infrastructure-as-code role manages the dashboard, the integrations or the entity settings, and we recorded that plainly so nobody assumes a backup exists in git.
Verification
We confirmed the new views load, the camera entities appear, and live sensor values populate each card.
Takeaway
If a dashboard matters to you, it is part of your infrastructure. Export it, keep a copy next to the rest of your configuration, and make rebuilding a scripted job rather than an evening of clicking.