DBuit / Homekit-panel-card

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

Device class being ignored? #148

Open haseat opened 1 year ago

haseat commented 1 year ago

I have noticed lately that the device classes for showing the status are being ignored, e.g. for my window sensors:

config.yaml:

      all_window_sensors:
        friendly_name: "All Window Sensors"
        device_class: window
        value_template: >-
          {% if states('group.all_window_sensors') == 'on' %}
            on
          {% elif states('group.all_window_sensors') == 'off' %}
            off
          {% else %}
            n/a
          {% endif %} 
        icon_template: >
          {% if states('group.all_window_sensors') == 'on' %}
            mdi:window-open
          {% elif states('group.all_window_sensors') == 'off' %}
            mdi:window-closed
          {% else %}
            mdi:help
          {% endif %} 

card configuration:

  - title: Windows
    entities:
      - entity: binary_sensor.all_window_sensors
        name: All Windows

status 'off' in homekit panel card: image

status 'closed' in entities card: image

The same is happening for persons, before a person used to be home/away, now i see home/not_home.