Only show sensors that have attributes present

I’ve got a sensor (cover.somfyshutter) that when it triggers additional attributes displays.
when no trigger occurs, it doesn’t show these attributes

some attributes are:

  • last trigger: with a date
  • last command: that can be up or down.

How can I only display the sensors what displays these attributes in a lovelace card?
and preferably with the last fired date and command included.


I’ve looked at conditional card but that doesn’t support attributes as far I can see.