Hmmm sorry, my bad, I’ve made a wrong assumption here. You won’t need card-mod for what you’re trying to achieve, but the extra-styles property of button-card. See here. Works a charm like this for me. An example for a scrolling marquee in my button-card:
extra_styles: |
.marquee {
animation: marquee 20s linear infinite;
}
@keyframes marquee {
from {
transform: translateX(0%);
}
to {
transform: translateX(-50%);
}
}
This is my implementation so far! I went to great lengths to find light fixture 3D models, so I just couldn’t cover them up with buttons. Instead I made smaller indicator buttons for individual lights and added lines to connect them with objects. This also helps keeping things separated around my desk area, while buttons are still large enough on my tablet. Also tweaked the room buttons and added a toggle for my PC.
Still would want to tweak the lighting visuals and UI functionality (just using the standard more-info view for now) but this’ll have to do for now
I’m using a Galaxy Tab A8 (via Fully Kiosk Browser) to display my new floorplan dashboard using this forum as reference. The floorplan uses picture-elements as the main card, with multiple custom:config-template-card elements.
Everything works perfectly on iPhone and desktop browsers — light states and overlays update smoothly. But on the Tab A8, do not refresh unless the entire page is reloaded. This leads to stale visual states (e.g., lights appearing off when they’re on).
What I’ve tried:
Initially had config-template-card as the main card (this did refresh, but caused a full redraw with a flash effect)
Switched to picture-elements as the base, using config-template-card only for the overlays (to avoid flashing) — but now the overlays don’t refresh at all
Hi everyone! Sorry I have been really MIA. I bought a new house and have been stuck in 2 years of renovation. When I’m done with all the install and Reno, I will make a new version of this dashboard. With all the updates maybe I can even make it easier etc. Will keep you all posted. Thanks for all of the love across the internet! Awesome to see you all having fun with this