question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FR] Management of more than 1 attribute

See original GitHub issue

Is there a way exclude/include more than 1 attribute ? Like:

  include:
    - domain: binary_sensor
      state: 'on'
      not:
        attributes:
          - device_class: connectivity
          - device_class: plug

If not, can you consider adding it as a feature ?

Thx in advance,

Simone

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
ildar170975commented, Apr 21, 2022

I think that order SHOULD not matter

1reaction
ildar170975commented, Apr 20, 2022

I need also the blue one,

But this is not what was described first: image Initially you asked for a different case, I gave you a code.

OK, here is a code for the new case:

  1. Only ON except connectivity & plug.
  2. Only OFF which are connectivity or plug.
    type: custom:auto-entities
    card:
      type: entities
    filter:
      include:
        - domain: binary_sensor
          state: 'on'
        - domain: binary_sensor
          state: 'off'
          attributes:
            device_class: connectivity
        - domain: binary_sensor
          state: 'off'
          attributes:
            device_class: plug
      exclude:
        - domain: binary_sensor
          state: 'on'
          attributes:
            device_class: connectivity
        - domain: binary_sensor
          state: 'on'
          attributes:
            device_class: plug
Read more comments on GitHub >

github_iconTop Results From Across the Web

Defining management class backup attributes - IBM
This attribute applies whether the data set has been deleted or not. The default is 30. The number of extra versions is the...
Read more >
Making Decisions with Multiple Attributes: A Case in ...
The most basic method for this is to simply estimate and directly enter the numerical weights for each attribute, making sure that the...
Read more >
FIM Reference: Checking / Configuring Attribute Precedence
If My Management Agent 1 is not supposed to be authoritative for the attribute value, then you either need to change the order...
Read more >
Multivalued Attribute - an overview | ScienceDirect Topics
A multivalued attribute of an entity is an attribute that can have more than one value associated with the key of the entity....
Read more >
How to add multiple attributes to a dictionary ent... - ServiceNow
Labels: Incident Management. 0 Helpful ... The first one is actually three separate attributes separated by commas. So to add the fourth:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found