px size is different on different screen sizes so I want it to be a percentage of the card width.
Iâd like the say Coffee to be 25% of card width and the 4 columns to east be 25% of the rest of the width and entered in each column.
Since the 2nd option is a kind of trick, I would recommend you to use the 1st option - it is more reliable.
Of course, those "::before" & "content" CSS things are supported with many browsers, but you decide yourself which option to choose.
P.S. I really like the "multiple-entity-row" - but it does not show "last-changed" for every item, this is rather important for me.
If you decide to proceed with the 2nd option - consider changing the icon in the sensor itself (Config â icon_template) and then do not use the "config-template-card".
You may even decide to create a new template sensor with values âExcellentâ etc instead of using those "::before" & "content" CSS things. Then the "card-mod" will be used only for colourizing the âExcellentâ etc column.
The simpler - the better, I thinkâŚ
I see⌠Of course, you may create a template sensor which repeats the original one. But may be using the "config-template-card" is better - you decide!
I heard that using custom cards with templating based on JS, Ninjia2 needs more CPU usage, and this may be crucial on slow systems.
This is just an option.
Iâm afraid that using "card-mod" for some particular card one day may stop working - just because an internal structure of the card is changed. So I prefer to choose a âusualâ way of doing something rather than those CSS tricks with "::after", "::before" & "content".
Regarding âCannot read propertyâ.
Do you have the "decluttering-card" & "card-mod" installed?
Also, I see that the template & the card are in one âcode pageâ - are they in one file?
In GUI mode (which is not yaml mode) the template must be before the âdashboardâ section, and the code for a card must be inside some âviewâ section.
Ah that will explain it. I have them exactly as shown and both are installed. So I need to move the template to the top?
I use GUI mode but store and edit the raw file.
So I need to move the template above view:
title: Home
swipe_nav:
wrap: true
animate: swipe # could also use fade or flip
swipe_amount: 15
views:
I have actually a question here⌠Where (or how) did you get that _firmware entity?
Iâve checked my Tasmota Integration and I donât have such entity (not even in the disabled list).
Iâm trying to replicate your same config (the goal was to provide you an even more shorter amount of code), but I am struggling to find that piece (not really important, but now Iâm curious )
I do a status 11 as well because that returns interesting info as well⌠even though the state Iâm getting is the same as one of the ones provided by the integration - but if I use that then when I click on the row I get all the other info as well in the pop up as I showed way up above⌠(Iâm only saying this because itâs not immediately obvious why Iâm doing that so if you suggest a new config just remember my end goal is the information in the pop ups as well as the formatting of the rssi etc)