Lovelace displaying very old Views and Views from other Dashboards

I’ve been having this issue for as long as I’ve used HA. I have two Dashboards that I use: one on a PC, where I do most/all of my UI configuration, and another on an iPhone. The Views on each are similar; my PC Dashboard has a lot more Views, and I’ve tweaked some of the Views for the iPhone so that they look better. The problem I’m having is sometimes HA will display Views that aren’t even part of either Dashboard any longer… various iterations of test Views I created while trying to figure out what works. Other times, the Dashboard for one device will show a View from the other device; for example, my Lights View from my iPhone will show up in my PC Dashboard.

Several weeks ago, I went through all of the Views and made sure they all have unique URLS… so I’m using “/Lights” for my PC Dashboard and “/Lights_iPhone” for my iPhone, for example. I thought that would fix it, but the issue remains. And it definitely doesn’t explain why I have old, no-longer-existing Views show up in either Dashboard randomly. It’s not a cache issue; I clear the cache and the problem persists. Usually the only way to fix it is to Edit DashboardsManage Dashboards–>switch to another Dashboard–>…and then the problem goes away, if just for a while.

This is a mild annoyance right now, but it’ll be a real problem if it keeps occurring when I start adding screens and more Dashboards.

Any ideas on how to fix this?

image

Do you refresh your dashboards after changing them elsewhere? If not, the browser might hold cached versions…

Yes - I clear my cache in between changes.

This morning I saw a view that I tested out and replaced a few weeks ago.

I just reread this and realized you are not talking about the cache. Sorry, I had read and replied on my mobile while walking out the door.

I checked the Lovelace docs and there is a statement, " When you make changes to ui-lovelace.yaml, you don’t have to restart Home Assistant or refresh the page. Just hit the refresh button in the menu at the top of the UI."

However, I don’t see a refresh button anywhere on the UI. I see your screen shot, but mine has neither a refresh option nor the microphone icon. What am I missing?

Lovelace

Ah, I get it because I’m using pure YAML.
Not sure how it works in GUI mode. It should be automatic, I guess…

I think I found what HA is doing… although I don’t know how to fix it.

The “old dashboards and views” I’m seeing are in the standard Lovelace dashboard, “Overview.” That dashboard sometimes shows up instead of what I’ve set as the default for whatever device I’m using. That happens in spite of:

Lovelace

I have default dashboards set on every device, but this standard Lovelace dashboard appears in their place sometimes. I’m not sure what to do about that.