PiotrMachowski / Home-Assistant-Lovelace-Local-Conditional-card

This card can show and hide a specific card on current device while not affecting other windows. It does not require any integration to run.
MIT License
61 stars 6 forks source link

Allow "set" service to toggle cards #10

Closed shlomki closed 1 year ago

shlomki commented 2 years ago

Thanks for the great work you've done on this card!

The original implementation only allows the "set" service to specify a boolean value for a card. However, if you have a complicated dashboard where you want to hide all other cards but toggle one card, this is not possible.

I've added a small upgrade to the set service, that now it could accept true, false, or toggle. So now, you could do cool things like this:

tap_action:
  action: call-service
  service: local_conditional_card.set
  service_data:
    ids:
      - windows: false
      - ac: false
      - lights: toggle

This new option would allow for more options when customizing the UI.

PiotrMachowski commented 1 year ago

Thanks for the idea, this feature has been added in v2.0.0