Expand entity-filter options#3692
Merged
Merged
Conversation
Closes #3543 Adds the following to `state_filter`: - `operator` option. Specify operator to use in comparison. - `value` option. Specify value to compare against. - `attribute` option. Specify attribute to use instead of state in comparison. e.g. ```yaml type: entity-filter state_filter: - "on" - operator: ">" value: 90 entities: - sensor.water_leak - sensor.outside_temp - entity: sensor.humidity_and_temp state_filter: operator: ">" value: 50 attribute: humidity ```
2 tasks
Member
Author
|
|
bramkragten
reviewed
Sep 20, 2019
bramkragten
reviewed
Sep 20, 2019
bramkragten
reviewed
Sep 20, 2019
Member
|
I think your example is wrong, the |
bramkragten
reviewed
Sep 20, 2019
bramkragten
reviewed
Sep 21, 2019
bramkragten
approved these changes
Sep 23, 2019
Merged
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3543
Adds the following to
state_filter:operatoroption. Specify operator to use in comparison. Options are==, >, >=, <, <=, !=, regexvalueoption. Specify value to compare against.attributeoption. Specify attribute to use instead of state in comparison.Adds
state_filteras an option to entities as welle.g.