a yes, thanks.
trying to find where the secondary_info options are configured (would love to have the extra possibility for last-triggered…) but it isn’t in this source I am afraid
or would that be set in a helper card of sorts?
no, I dont think so.
I’m looking for the place/file/source where the secondary_info is configured.
Just so I could see if my FR to add last-triggered would be feasible.
Please @iantrich could you point me to the source for that? (sorry for the tag, wouldn’t know how else to ask you tbh…)
Yeah… that’s not where last_triggered is located. Also, it’s not on all state objects, only automations. That PR probably won’t make it.
EDIT: Just to clarify, last_triggered is inside attributes. Some major changes would be required to display attributes in the secondary info location. It’s not a bad idea, but it should be implemented to accept any generic attribute. Not just a hardcoded single attribute. Even then, with the generic attribute a new field would probably be needed to identify the type of attribute so that the UI formats it properly. Your best option is to make a sensor template with the device_class: timestamp. Then use a custom card to display that attribute as a secondary-info.
and, just so you feel the need a bit more, I use this attribute last_triggered on for scripts also, triggering automations
trigger:
platform: state
entity_id: script.triggering_script
having an entities card with these scripts, showing their last_triggered attribute would be an anticipated addition to the dashboard.
So, automations and scripts are a maybe small, but important reason enough to validate the addition to the secondary-info line. I hope…
yes, thanks, useful suggestion, and I use several of these kinds. My hope though is to ‘improve’ native Ha cards in such a way, we dont need template sensors for everything out of the ordinary.
My point is that it won’t make it because it’s not generic. If you put a light entity in that field with last-triggered, it will error because the attribute doesn’t exist. I understand you want this, but you gotta make it work for ALL entities.