Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/_docs/scripts/conditions.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down