mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Fixing the numeric state examples (#7853)
There's a bunch of copy/paste numeric state conditions that have quotes around them, when they shouldn't
This commit is contained in:
parent
48286ea1a1
commit
d703e355c9
@ -25,7 +25,7 @@ condition:
|
|||||||
state: 'home'
|
state: 'home'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: 'sensor.temperature'
|
entity_id: 'sensor.temperature'
|
||||||
below: '20'
|
below: 20
|
||||||
```
|
```
|
||||||
|
|
||||||
If you do not want to combine AND and OR conditions, you can also just list them sequentially, by default all conditions have to be true.
|
If you do not want to combine AND and OR conditions, you can also just list them sequentially, by default all conditions have to be true.
|
||||||
@ -38,7 +38,7 @@ condition:
|
|||||||
state: 'home'
|
state: 'home'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: 'sensor.temperature'
|
entity_id: 'sensor.temperature'
|
||||||
below: '20'
|
below: 20
|
||||||
```
|
```
|
||||||
|
|
||||||
Currently you need to format your conditions like this to be able to edit them using the [automations editor](/docs/automation/editor/).
|
Currently you need to format your conditions like this to be able to edit them using the [automations editor](/docs/automation/editor/).
|
||||||
@ -56,7 +56,7 @@ condition:
|
|||||||
state: 'home'
|
state: 'home'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: 'sensor.temperature'
|
entity_id: 'sensor.temperature'
|
||||||
below: '20'
|
below: 20
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title MIXED AND and OR conditions %}
|
### {% linkable_title MIXED AND and OR conditions %}
|
||||||
@ -78,7 +78,7 @@ condition:
|
|||||||
state: 'rain'
|
state: 'rain'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: 'sensor.temperature'
|
entity_id: 'sensor.temperature'
|
||||||
below: '20'
|
below: 20
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title Numeric state condition %}
|
### {% linkable_title Numeric state condition %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user