Not sure this will work, but please try. I just donât know, if the variables are âpushed throughâ or if they needed to be set. Just try and report back, please.
Short notes: I moved the tap_action from the template definition to your view, as it is more complicated to work with variables and this is the âbetter wayâ. I shortened the code as well, where possible. And I changed/deleted some variables, they are not needed (at least I think).
If this will not work, we need to adjust your button_card_template.yaml, but I wouldnât advise that. It makes updating and maintenance a nightmare⌠If that would be the case, Iâd advise you wait, thereâs something in the making, that would handle such cases. Or if you donât want to wait, Iâd advise to inherit the definition, like your_room -inherits-> room -inherits-> icon_info_bg.
@tpx01 I tried using your posted settings and editing out the double âwidget_temperatureâ as @manuel_R stated, but Iâm just getting blank info in the card.
Thank you @tben for doing the hard work of designing the themes and overall layout of the button cards. I really love itâexactly what I was looking for a mobile phone theme. I was able to follow your well designed button card templates and create some customized versions like a 5-button media player card! Also, button-card uses less system resources than mini-media-player, so my underpowered, $20 Android phones no longer struggle when rendering the HA dashboard.
Also created an Energy View that shows some statistics, but mainly is an easy way to see what energy is being used in the house and quickly turn them off.
i had to create two button card templates: list_five_items and media_five_buttons. Hopefully it makes sense. I also made another template called media_five_buttons_only that removes the top row that normally shows the icon/picture and info. If you want to learn more of how this works, I would read about CSS grids.
I am trying to create a popup inspired by this design to control light brightness and color.
But I have a problem with text that display brightness which is not refreshed (when used outside of popup it works correctly)
Can someone help me ?
Thank you for sharing! This ticks all the boxes I need. I just got into home assistant and had to port this to the updated version on the github page. I changed my template slightly because when the fan was Off the service buttons still had darker colors, and I think I want them more dimmed in this state.
Dark mode in the picture below. Not sure if I like how it looks with the blue background on row 1, or if blue should be the bg color for the entire card.
Also, big kudos for @tben for doing all the work to get us this far. This style looks amazing and deserves to be the HA default one Hopefully it will be added to HACS soon
This, unfortunately, turns out to be harder than thought⌠As this is theoretically not a theme, nor an integration, it doesnât really fit into the system HACS requires⌠But weâll see what we can come up with.
What happens, if you leave the âwrongâ percentage display for a few seconds? Does it update then, or does it stay with the wrong number âforeverâ?
If the first, Iâd guess the updates of the state arenât handled through to the card. Iâd ty to use triggers_update to specifically mark the light entity, or even better, all.
Please try to leave the popup open for at least a minute. Button-card refreshes automatically every minute, so worst case should be, that after that minute the update is handled.
If the latter is the case, weâd need to investigate further. But my guess is on the handling of updated state attributes inside button-card, as you say without the popup it works. On the other hand it could be browser-mod (or are you using something different for the popup?). Weâll see, please try the above mentioned.