Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device class being ignored? #148

Open
haseat opened this issue Apr 19, 2023 · 0 comments
Open

Device class being ignored? #148

haseat opened this issue Apr 19, 2023 · 0 comments

Comments

@haseat
Copy link

haseat commented Apr 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant