Add NOT condition helper (#13152)

This commit is contained in:
Franck Nijhof 2020-04-24 18:40:59 +02:00 committed by GitHub
parent 479c02ea1c
commit 08bac15670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,22 @@ condition:
below: 20
```
### NOT condition
Test multiple conditions in one condition statement. Passes if all embedded conditions are **not** valid.
```yaml
condition:
condition: not
conditions:
- condition: state
entity_id: device_tracker.paulus
state: 'home'
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
```
### Numeric state condition
This type of condition attempts to parse the state of the specified entity as a number, and triggers if the value matches the thresholds.