Update scripts-conditions.markdown (#500)
This commit is contained in:
parent
01057245ce
commit
7f6c668b4b
1 changed files with 20 additions and 0 deletions
|
@ -144,3 +144,23 @@ condition: zone
|
||||||
entity_id: device_tracker.paulus
|
entity_id: device_tracker.paulus
|
||||||
zone: zone.home
|
zone: zone.home
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### {% linkable_title Examples %}
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sun.sun
|
||||||
|
value_template: '{{ state.attributes.elevation }}'
|
||||||
|
below: 1
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.living_room
|
||||||
|
state: 'off'
|
||||||
|
- condition: time
|
||||||
|
before: '23:00:00'
|
||||||
|
after: '14:00:00'
|
||||||
|
- condition: state
|
||||||
|
entity_id: script.light_turned_off_5min
|
||||||
|
state: 'off'
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue