Home-Assistant-Lovelace-Local-Conditional-card icon indicating copy to clipboard operation
Home-Assistant-Lovelace-Local-Conditional-card copied to clipboard

multiple cards toggling not working

Open necmes opened this issue 4 years ago • 3 comments

Hello,

First of all thanks for this awesome card!

I create this issue because i'am unable to toggle 2 entities at once.

my card config:

type: vertical-stack
cards:
  - type: 'custom:local-conditional-card'
    id: player1
    default: show
    card:
      entities:
        - media_player.office
      title: Office
      type: entities
  - type: 'custom:local-conditional-card'
    id: player2
    default: hide
    card:
      entities:
        - media_player.kitchen
      title: Kitchen
      type: entities
  - title: Click test
    type: entities
    entities:
      - action_name: Toggle
        name: toggle 1 and 2
        service: local_conditional_card.toggle
        service_data:
          ids:
            - player1
            - player2
        type: call-service

player Kitchen is toggling but not player Office

if i'll swap player1 and 2 like this:

    entities:
      - action_name: Toggle
        name: toggle 1 and 2
        service: local_conditional_card.toggle
        service_data:
          ids:
            - player2
            - player1
        type: call-service

Same behaviour only the second entity is toggling.

if i swap entities on card list:

cards:
  - type: 'custom:local-conditional-card'
    id: player1
    default: show
    card:
      entities:
        - media_player.kitchen
      title: Office
      type: entities
  - type: 'custom:local-conditional-card'
    id: player2
    default: hide
    card:
      entities:
        - media_player.office
      title: Kitchen
      type: entities

The player Office is now toggling but not the player Kitchen

It's like the Toggling function only use the ID of the last defined entity on cards list.

necmes avatar Apr 11 '21 10:04 necmes

Can confirm multiple ids only toggles last id

ManCaveMedia avatar Aug 26 '21 11:08 ManCaveMedia

the solution is?

andiukas avatar Apr 22 '22 10:04 andiukas

Sadly seem over a year and still having the same issue...

TEF2one avatar Aug 06 '22 11:08 TEF2one

@TEF2one you are right, after 2 years of not being updated this card definitely deserves some love. v2.0.0 coming really soon!

PiotrMachowski avatar Aug 07 '22 02:08 PiotrMachowski

Fixed in v2.0.0

PiotrMachowski avatar Aug 08 '22 02:08 PiotrMachowski