banner-card icon indicating copy to clipboard operation
banner-card copied to clipboard

Device class not honored

Open TheRealLouCipher opened this issue 3 years ago • 2 comments

Using a binary_sensor as entity with device class door show on and off in card instead of open closed.

TheRealLouCipher avatar Apr 05 '21 11:04 TheRealLouCipher

See my sample:

  - entity: binary_sensor.deursensor01
    name: Meterkast
    map_state:
      'on': 'mdi:door-open'
      'off': 'mdi:door-closed'

conradhagemans avatar Apr 12 '21 13:04 conradhagemans

Thank you for sharing the solution to this! I thought I was going crazy. Here's what I did:

map_state:
      'on': Open
      'off': Closed

raptor1jec avatar Sep 11 '21 05:09 raptor1jec