thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.26k stars 115 forks source link

Feature Request: hide toggle switches for automations #360

Open markjsmith opened 1 year ago

markjsmith commented 1 year ago

I want to show in the list when an automation was last triggered, which is easy enough, but it shows the automation switch and I was wondering if there was a way to hide this? I use the card to create a single list of alerts and want to show when motion was last detected outside (recent spate of break-ins locally) in the list.

ildar170975 commented 1 year ago

When using a conventional Entities card with conventional rows, a row for the automation domain will be always shown with a toggle. If you do not need to show a toggle, your possible options are:

  1. Hide a toggle by card-mod (goto Community card-mod thread for details).
  2. Use a custom template-entity-row for an automation's row (goto template-entity-row github repo for examples).
markjsmith commented 1 year ago

Thanks for your help! I also thought about creating a sensor from the automation last triggered attribute as this would give the same result. If I can’t sort out the card-mod, I’ll try that. Thanks again!