No State Available When Switching to Lovelace

if you have discovery on and you aren’t changing the entity_id’s, the system could change the entity_id’s on you which would result in a red box. You should probably name your entities properly or avoid discovery. Personally, I avoid discovery. It’s nice but it can cause problems like this.

I just quote myself from different topic, maybe it will help someone

None of the platforms mentioned in this thread have that field, so this isn’t relevant to the topic at hand. That field is only in the plex media player, not all other media_players. People in this thread will not be able to follow that advice.