Support multiple classes in selector

When making a blueprint, sometimes I wish I could set multiple device_class for the same selector. For example, an emergency alarm can be trigger by doors, windows, garage_door and motion classes.

I’m surprised this feature request doesn’t have more votes. Creating a blueprint that takes an input that accepts any kind of contact sensor (door, window etc) seems like a very generic use case.

I’d expect this to work (but it doesn’t):

      selector:
        entity:
          domain: binary_sensor
          device_class: 
            - door
            - window

There is a PR open for this: Add filter options to entity and device selectors by piitaya · Pull Request #87536 · home-assistant/core · GitHub

1 Like