Change text of "title" in header of entities card when toggled?

I am using an entities card with the following:

- type: entities
    title: Show Details
    show_header_toggle: true

Is there a simple way to change the title to “Hide Details” when the toggle widget is clicked???

Thanks for any help in advance.

The state of the header toggle is not accessible. It just toggles the state of all items in the card.

You could write a template that monitors the state of all the entities in the card and change the title using this:

1 Like

I will check it out @tom_l .
Thank you