Conditional card

I make a conditional card in Raw config editor, but card is not appearing. ( Home Assistant 0.105.5)

      - type: conditional
        conditions:
          - entity: switch.towel_heater
            state: 'on'
          - entity: switch.baderomsvifte
            state_not: 'off'
        card:
          type: entities
          entities:
            - device_tracker.galaxy_s9n
            - switch.towel_heater
type: conditional
conditions:
  - entity: switch.towel_heater
    state: 'on'
  - entity: switch.baderomsvifte
    state_not: 'off'
card:
  type: entities
  entities:
    - device_tracker.galaxy_s9n
    - switch.towel_heater

does work

Hello, I can make conditional card after delete home-assistant_v2.db file which was 2.5 GB, but preview in right side of card is unavailable for conditional card and Entity filter card.

hassio-Conditional-Card-video

I think it’s just empty. The docs say:

Note: Conditions with more than one entity are treated as an ‘and’ condition. This means that for the card to show, all entities must meet the state requirements set.

i.e you’ll see your device_tracker.galaxy_s9n and switch.towel_heater only when switch.towel_heater’s state os on and switch.baderomsvifte’s state if off.
check them out. play with your conditions by changing values of state.

p.s I think it’s not right to put your post in Share your Project category as you don’t share anything… :\ It should be in “Configuration” with “Frontend” subtype.

1 Like