mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add NOT condition helper (#13152)
This commit is contained in:
parent
479c02ea1c
commit
08bac15670
@ -78,6 +78,22 @@ condition:
|
|||||||
below: 20
|
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
|
### 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.
|
This type of condition attempts to parse the state of the specified entity as a number, and triggers if the value matches the thresholds.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user