The problem is, that the dashboard renders proper style only when I enter it. When the my_sensor entity goes to off and then goes back to on - it is unstyled until I refresh the dashboard.
Is there a way for card-mod to add styles even while the dashboard is displayed, without the need to constantly refresh it?
I am having this exact same issue. I wonder if @thomasloven has ever seen anything similar. I wouldn’t even mind “constantly refreshing” it if there was someway to do it cleanly, but I’d obviously like the styles to just load when the entity changes state.
I think the fix has something to do with the custom:mod-card. I think the docs used to specifically mention entity-filter, now it sort of hints at it with “Most likely your card contains another card”. I’m going to look into examples of custom:mod-card and see if that gets it working.
I tried to rewrite this with the custom:mod-card wrapper around the entity-filter. It seems to behave pretty much as before. The styles load on page load, but not on entity state change I only left one entity in this example, but I have several in reality. If anyone has any thoughts, let me know.
Again - similar questions is better to ask in a dedicated card-mod thread instead of creating 100500 threads about same questions. At least you will get your answers faster.
Thanks, I found some links of your I’m going to put here so I have a chance of finding them again later. I find this forum difficult to use. I think I noticed the card-mod thread but thought it was old 2019, didn’t realize it was still active.