mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
Merge pull request #7166 from home-assistant/armills-patch-1
Remove incorrect truth table
This commit is contained in:
commit
b8c09ccd34
@ -139,23 +139,6 @@ condition:
|
|||||||
before: sunrise
|
before: sunrise
|
||||||
```
|
```
|
||||||
|
|
||||||
Here is a truth table to clarify the parameters with and without offset:
|
|
||||||
|
|
||||||
| command | night | at sunrise | daytime | at sunset |
|
|
||||||
| ---------------------------------- | ------------ |:-----------:| ------- |:----------:|
|
|
||||||
| `after: sunset` | True | ⇒ | False | ⇒ |
|
|
||||||
| + `after_offset: "01:00:00"` | True | ⇒ | False | **+1h** |
|
|
||||||
| + `after_offset: "-01:00:00"` | True | ⇒ | False | **-1h** |
|
|
||||||
| `before: sunset` | False | ⇒ | True | ⇒ |
|
|
||||||
| + `before_offset: "01:00:00"` | False | ⇒ | True | **+1h** |
|
|
||||||
| + `before_offset: "-01:00:00"` | False | ⇒ | True | **-1h** |
|
|
||||||
| `after: sunrise` | False | ⇒ | True | ⇒ |
|
|
||||||
| + `after_offset: "01:00:00"` | False | **+1h** | True | ⇒ |
|
|
||||||
| + `after_offset: "-01:00:00"` | False | **-1h** | True | ⇒ |
|
|
||||||
| `before: sunrise` | True | ⇒ | False | ⇒ |
|
|
||||||
| + `before_offset: "01:00:00"` | True | **+1h** | False | ⇒ |
|
|
||||||
| + `before_offset: "-01:00:00"` | True | **-1h** | False | ⇒ |
|
|
||||||
|
|
||||||
### {% linkable_title Template condition %}
|
### {% linkable_title Template condition %}
|
||||||
|
|
||||||
The template condition will test if the [given template][template] renders a value equal to true. This is achieved by having the template result in a true boolean expression or by having the template render 'true'.
|
The template condition will test if the [given template][template] renders a value equal to true. This is achieved by having the template result in a true boolean expression or by having the template render 'true'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user