How can I display the entity values as an icon, the values on as icon mdi:door-open in green and the values off in red and icon mdi:door-closed this is the code. What do I have to change in the code
Have a small problem with the card, displaying data from a solar production sensor providing high accuracy data with 4 fractional digits precision.
I want to limit to 1 digit, but the precision formatting seems not to work for the entities, while it works well for secondary info:
Hello everyone.
First time poster, long time reader.
I have a template sensor, that changes icon on state from climate entity.
this is working fine.
I’m trying to get that icon to be displayed in a multiple entity row.
This is where it gets tricky, I can’t figure out how to retrieve the data from the sensor. Well, I can get the data, but instead of displaying the actual icon, it displays : “mdi:fire”
Any help appreciated
Thanks !
I’m just trying to get the Icon to be displayed, and not the the string.
Getting string on Thermopompe
Getting nothing from Salon, i just copied the template hoping it would work
Exactly.
If hvac_mode of my heathing device is set to “heat”
then I want an icon (mdi:fire) to be shown on the line, before the temperature.
this will let me know that the said device is working.
Can someone help me style the header lines? I want them a little bigger. I’m unable to target them with CSS and haven’t seen any examples here or in the card mod thread for multiple entity row.
Yeah I’ve been through every example there but haven’t found a single one that touches this particular element.
This was incorrect, there are indeed samples there of styling this text, they just don’t work for me, don’t understand why. I use card_mod heavily, but when it comes to this card it’s like I’m just unable to target things at all.
Here’s something I copied from the card_mod thread, it does nothing on my end…
- type: custom:multiple-entity-row
entity: fan.salon
name: Mode
show_state: false
secondary_info:
attribute: preset_mode
entities:
- entity: fan.salon
name: Mode Auto
icon: mdi:fan-auto
tap_action:
action: call_service
service: fan.set_preset_mode
service_data: # <-- Doit être aligné avec 'service'
preset_mode: Auto # <-- Doit être aligné avec 'service'
entity_id: fan.salon # <-- Doit être aligné avec 'service'
Version 4.7.0 just shipped - a ton of fixes an updates
Breaking changes
Minimum Home Assistant version is now 2024.4 (enforced via hacs.json). The row now always delegates state/attribute display to HA’s own formatters (hass.formatEntityState / formatEntityAttributeValue), so values match HA’s UI formatting exactly. If you’re on an older HA, stay on 4.6.1.
Sub-entity taps no longer also fire the main row’s action. If you relied on that double-firing, configure the desired action explicitly per entity.
A long-press without a hold_action now acts as a plain tap (matching HA’s native rows; previously opened more-info).
What’s new
Visual editor — edit the row through the entities card’s UI editor: tabbed Main/1/2/3 entity editing with add/reorder/copy/paste/delete, secondary info, state-based icons, per-entity custom CSS, and tap/hold/double-tap selectors.
Per-entity hold_action and double_tap_action — every action resolves against the entity actually tapped, including tap_action.entity more-info overrides.
Combinable formats — comma-separated numeric pipelines, with a Custom… entry in the editor:
show_state_first — render the main state before the additional entities.
New formats: percent (value × 100 → 25 %), and upper / lower / capitalize / title text transforms.
--multiple-entity-row-header-color theme variable for entity header color.
Top-level hide_if / hide_unavailable now work on the main state value (previously silently ignored).
Internal
Actions dispatch through HA core (hass-action event) — native confirmation dialogs and lock/cover security restrictions now apply; the unmaintained custom-card-helpers dependency is gone.