Is there a way to selectively display or not display the secondary info?
I have this as an example:
If my device tracker is away I want it to display the zone I’m in. If I’m home I don’t want it to display anything at all since my zone would report home and so would the the state of the device tracker so the info would be redundant.
here is the template I tried but if I’m home the secondary info shows the word “null” instead of being blank:
I realize that if I switch to the “person” component that use case resolves itself because the state of the person.xxx will show the state as the zone but there may be other uses for something like this so I figured I’d throw out the question while I have it in my mind.
That could work as long as the template doesn’t complain about the lack of a valid entry under the “if” section. I’ve never tried that before so I don’t know what the result of that would be.
and you need to remove the quotation marks in the “else” portion around the {{ … }}.
Is there any way for this card to not remove the toggle? I’m using it on a remote entity, and it seems to be removing the ability to toggle. Any ideas?
Sorry,
When using this card, it seems to remove the toggle from a remote entity in an Entities card. Below is the config I’m using and the result. Is there any way to keep the toggle (like the “Bedroom” remote) while also having the secondary info row?
Nope, that didn’t seem to work for me either. I did some digging, and it looks like card-tools (which this card uses) is missing the “remote” domain when creating the entity row. I submitted an issue for it, so hopefully that will resolve it eventually.
I am relativley new to Home Assistant, and i have followed the installation steps exactly as per https://github.com/custom-cards/secondaryinfo-entity-row but i get the feeling based on my previous experiences with custom components that there is information and steps missing in order to get this working.
I am unable to get this working and i keep getting an error:
“Custom element doesn’t exist: secondaryinfo-entity-row.”
If theres someone here who has this working, are you able to please post the complete full instructions. I have not previously installed the “Card Tools” prerequisite (even though i followed these instructions) and i am going to assume this is where the missing steps are?
Is it possible to display 2 entities like this:
secondary_info: ‘[[ if(switch.master_room == on, “Daily:” sensor.master_room_lights_daily switch.masterroom, sensor.master_room_lights_daily) ]]’
So when the master room lights are on, display the sensor master room ALONG with the on or off switch status which will be ON. and if the master room lights are off, just display the single entity sensor
In case you haven’t figured it out yet, or if someone is reading this after searching for the same thing, here is an example of using multiple secondary_info fields in one entity:
As you can see here, the yaml is typed as a single entry. However, we are displaying it as two separate secondary_info fields by separating them with <br>, which is the html tag for a line break.