Inside an entities card I use several fold-entitiy-row cards each containing one custom:auto-entities card. At the end I want to visualize all open devices, sorted by doors, windows, garage doors etc.
As you can see when there are no devices open, the fold-entity-row section takes a lot of space.
How to hide a fold-entity-row, if thereĀ“s currently no entity (delivered by custom:auto-entities) inside it to show?
Of course I could just nest all the custom:auto-entities cards inside one entities card and simply use the title option. BUT the title takes just too much space, while text size of the fold-entity-row header ist just perfect. And I try to avoid using card-mod/mod-card to hack title size. Any other idea or recommendation?
Update: I implemented my own idea () and replaced fold-entity-row by auto-entities, and modded auto-entities cards title with card-mod. So still 2 great @thomasloven frontend tools in use, I only lost the original fold feature of fold-entity-row of course - as I donĀ“t need that here itĀ“s okay. Final result and pretty happy with that:
As you can see i have a general switch light.hue_haus which turns on all the entities listed below.
Is there any way to rename the switch in the header? it shows as āhue_hausā and Iād like to show it as āHausbeleuchtungā like in the title.
Unfortunately I cant rename the entity due to my naming scheme.
any help would be appreciated. keep up the good work.
Hi Thomas, this card is great! Thanks!
I was wondering if there is a way to āoverrideā the tap_action? I am trying to acomplish a foldable menu. If i click on the header line (e.g. Ground Floor) it should navigate to view 1, but if I click on the expand button, it should unfold and show me the rooms in it which I can then also navigate to e.g. ā1#kitchenā
The second part works, what I am not able to do, is trigger navigation by clicking on the label.
Any help would be much appreciated.
Cheers
Iām not certain if this is even possible. I tried multiple configs and variations of the ā- type: customā per the Misc tricks Github link, but I think what Iām going for might be beyond the scope of what using ācustomā will process.
What Iād like to do is insert a few Conditional Cards within fold-entity-row(s) (essentially, replacing the list of āentities:ā). The bottom section of the attached screenshot contains controllers for automatic door answering for deliveries. I donāt have the system on all the time but I do utilize the top sectionās controllers regularly. In the interest of both aesthetics and preventing an accidental trigger, Iād like to hide these settings as the default.
The reasoning for Conditional Cards is:
Received should only display when Scheduled is not off,
both Scheduled and Received should be hidden if Auto-Buzz is turned off.
Scheduled alternates between an input-select and an input-number because I have settings for āUnlimitedā, āAuto-Welcomeā and off ā¦ it flips to the numeric instance when I select āCustomā from the dropdown (which makes for a cleaner interface that doesnāt have a hard limit on the schedule and allows for more reliable incrementing/decrementing).
Am I wishing for the impossible or might there be a way to achieve this with fold-entity-rows?
Thanks for any guidance you may be able to offer.
Great capability. Thank you. The same thing happened to me as with ādressoir_allā image. The examples provided show this structure, so itās easy to see how someone could think that the first line is required. After futzing around, I noticed this post.
Would someone please at least tell me if it is indeed possible or not to do what Iām asking so that I may figure out an alternative plan? My heart is really set on what I described but if itās not possible for folding entities to contain conditional cards, Iāll move on. Thank you.
sure, a fold can contain anything you can regularly show on a row, what that you tried didnāt work?
the options are endless. you could even template the whole card config, or use state-switch, or, as a last resort (more bare bones than the other options), the core conditional card
Because styles should not be used by ājust copy-pasteā method.
Always use Code Inspector and see if the style is applied or not.
In your particular case - use !important.
group.sensor_power_entities
is holding a series of sensors with the current power.
I also created a sensor to calculate the total power consumed by all these entities together.
sensor:
- platform: template
sensors:
power_getotaliseerd:
friendly_name: Power Plugs en Modules Total
unit_of_measurement: W
device_class: power
icon_template: mdi:plus-box-outline
value_template: >
{{expand('group.sensor_power_entities')|map(attribute='state')|map('float')|sum|round(0)}}
Now, instead of āonbekendā I would like to display the value of sensor.power_getotaliseerd
This makes sense, before unfolding I already see the total power.
But I canāt find a way how to show this because head is being used to populate the entities list after unfolding in this case, and not to define what to show on this particular line.
Iām also wondering about using templating within this card. Iām trying to make a fold-entity-row thatās only open if an entity is āonā ā is that possible? So far itās not giving me errors, but itās also opening the row regardless of the entityās state:
When the chevron is not hidden it can be used to fold/unfold items:
When the chevron is hidden it cannot be used:
But there is a problem: if the items are unfolded and the chevron is hidden - then the items continue to be unfolded (which is wrong):
Ideally when setting the ālocking conditionā to āonā we should unfold the items too. But I do not know any method to achieve this.
Surely we may use a config-template-card to set an āopenā option dependingly on the same condition as described above. But then we have to list all entities in the āentitiesā option of the config-template-card (which may be cumbersome).
Here is an example: