custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.93k stars 233 forks source link

Use `show_last_changed` only when state is `on` #661

Open Danit2 opened 1 year ago

Danit2 commented 1 year ago

Is it possible to use the show_last_changed option only to show when the state is on?

I have try it like this:

state:
  - value: 'on'
    show_last_changed: true

But it is not working.

Thanks for your help.