Installed the latest version via HACS and still can’t get it to work.
The custom feature row doesn’t show up on any tile card just the ones that are already provided by the entity itself such as color temperature, brightness, fan speed, temperature etc.
just stumbled on this HACS integration as I just asked for all of this to be built into the tile card! This is awesome.
Im not having much luck at closing the gap between my icon and text. Below is the CSS code I have. how do move the text and the icon closer together so they are both in the middle but separated. Like a Mushroom Chip card
I recommend using the .icon and .label selectors when modifying those elements, and adding a 10px padding to the icon (or at least it’s left). But what you need is to add justify-content: left to the label.
ONe last question, im trying to change the state of my sensor so it uses a more friendly time stamp, but nothing is working?
I have tried
{% set dt = as_datetime(timestamp) %}
{{ dt.strftime('%Y-%m-%d %H:%M:%S') }}
{% set dt = as_datetime(timestamp) %}
{{ dt.strftime('%d %B %Y at %-I:%M %p') | lower }}
{{ as_datetime(states('sensor.sally_home_weather_station_last_lightning_strike')).strftime('%d %B %Y at %-I:%M %p') }}
{{ as_timestamp(states('sensor.sally_home_weather_station_last_lightning_strike')) | timestamp_custom('%d %B %Y at %-I:%M %p') }}
{% set timestamp = states('sensor.sally_home_weather_station_last_lightning_strike') %}
{% if timestamp %}
{{ as_datetime(timestamp).strftime('%d %B %Y at %-I:%M') }}
{% else %}
No data available
{% endif %}
Per the README this card uses an alternate templating system that’s faster and processed entirely in the frontend, but doesn’t support all of the functions and filters that native Home Assistant templates do (like datetimes and timestamps). You can create a feature request to support these in the ha-nunjucks repo, but it’ll be a while before I get around to implementing them.
Thank you so much for this custom feature, I just discovered it today and it looks extremely promising for my lovelace “old” dashboard complete overhaul with tiles.
I was wondering how to make a button “disabled” with CSS (I mean grayed out and not completely hidden like ‘display: none;’). The goal is to replicate the button behavior from the original cover tile open/close feature where for example the up arrow would be shown disabled if the cover is already up.
I have just started using these cards and I am like the ability to hide the custom row using this method but I find that it doesn’t seem to completely disappear and leaves some extra padding.
Is there a way to fix this spacing between manual and vacuum buttons?
A recent change in 2024.8 to how card features was laid out added a gap between features (defined in CSS by --feature-padding). Unfortunately this ends up creating two gaps when a custom feature is hidden. There isn’t a good way to fix it other than grouping all of the custom features on the same row and hiding them selectively there. This example has been updated to do so, but it’s not nearly as convenient.
I just noticed that the “style” options do no work when a card is seen wihtin the “Fully Kiosk Browser” app (it works with chrome on the same device). Note that cardmod styling works though. Any idea what could cause that ? Thanks !
Edit: the same behavior happens with the offical HA app, so I guess that the problem comes from the webview version on my device
Have you tried sideloading a newer version of Android System WebView? I was able to do something similar on Fire Tablets with Amazon System WebView a while ago and it fixed some performance and render issues for me.
Anyone with a quick tip on how to animate feature button icons? I struggle navigating into the shadow root and was not successful using .icon{} with any know commands.