Dear all,
My first post, please be gentle I am a happy user of home assistant 2024.10 which does a lot that I like. Including modifiable icons, icon containers and such, which result in a touchscreen usable interface that I like.
I like this a lot, these are simple on/off buttons that I hacked together using node-red to work with my existing hardware. When you use this with a hue lamp you have different actions like controlling the lamp when you press the icon and just turning it on or off, when hitting the button.
I modded this with card-mod which worked great. The code I used to get this look is fairly simple
- type: tile
entity: switch.nodered_r1_output_2
vertical: true
name: Processing
icon: mdi:music
show_entity_picture: false
tap_action:
action: toggle
card_mod:
style:
ha-tile-icon$: |
.shape {
background: rgba(0,0,0,1); !important;
border-radius: 20% !important;
height: 40px !important;
width: 40px !important;
margin-top: 0px !important;
margin-bottom: -5px !important;
# margin-left: -5px;
# margin-right: -5px;
--mdc-icon-size: 40px;
}
But off-course neither of this is working anymore in 2025 onwards. I downloaded and updated card-mode and HA, but I simply can not find a way to get this working again. I created another rPi with home assistant on it so I can do some testing without killing my current setup, but I can not get how to fix this. I asked Copilot and it only came with 2022 solutions (duh, those ARE working), but apparantly it also found somewhere that the new tilecards in 2025 have fixed icon-containers that are not editable anymore.
So what would be the solution, I have some issues reading the codes that I find in this forum so a simple solution would be much appreciated.
Thanks!
Twan