DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
304 stars 54 forks source link

Sensor entities always display last_changed despite the state option. #71

Closed mmonkey closed 4 years ago

mmonkey commented 4 years ago

Any time the entity is a sensor, last_change always displays.

- type: 'custom:homekit-card'
  enableColumns: true
  rows:
    - row: 1
      columns:
        - column: 1
          tileOnRow: 2
          entities:
            - title: Entertainment
              entities:
                - entity: sensor.sound_bar_sound
                  icon: mdi:volume-mute
                  offIcon: mdi:volume-low
                  state: false
                  offStates:
                    - "unmuted"
                  tap_action:
                    action: toggle
                    entity: switch.sound_bar_sound
DBuit commented 4 years ago

Hi you can now use the state for sensors