Continuing the discussion from Can we use camera image as background for card?:
I think a separate thread for this is easiest, so here goes:
card-mod-view: |
hui-masonry-view {
background: url({{state_attr('camera.weerkaart_nl','entity_picture')}});
}
works when used in a theme. However this makes that happen on all Views applying the masonry (default) view. I’d like to be individual, just like the current background:
option in View offers us now, and obviously tried this, which didnt work
Please have a look with me if and how we can realize this?
btw, as posted in the linked thread, I did manage to do something like:
{% if state_attr('sensor.browsermod_safari','path') == '/ui-overview/weer_klimaat' %}
hui-masonry-view {
background: url({{state_attr('camera.weerkaart_nl','entity_picture')}});
}
{% endif %}
in my custom theme. It actually works, but is not what I am looking for. This makes all masonry view cards have that background, if and when that particular browser is on that view.
What I want is to set the background for that particular view, on any device, and only on that view.