Merge pull request #7166 from home-assistant/armills-patch-1

Remove incorrect truth table
This commit is contained in:
DubhAd 2018-10-28 08:55:50 +00:00 committed by GitHub
commit b8c09ccd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,23 +139,6 @@ condition:
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 %}
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'.