Skip to content

Commit

Permalink
Added 'availability_template' to all Template Fan platform (home-assi…
Browse files Browse the repository at this point in the history
…stant#10312)

* Added 'availability_template' to all Template Fan platform

* Fixed Syntax and default

* Removed optional parameter from example config

* Apply suggestions from code review

Co-Authored-By: Franck Nijhof <[email protected]>
  • Loading branch information
2 people authored and cgarwood committed Sep 28, 2019
1 parent c752427 commit acb0557
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/_components/fan.template.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ To enable Template Fans in your installation, add the following to your
`configuration.yaml` file:

{% raw %}

```yaml
# Example configuration.yaml entry
fan:
Expand Down Expand Up @@ -49,6 +50,7 @@ fan:
- '2'
- '3'
```
{% endraw %}
{% configuration %}
Expand Down Expand Up @@ -77,6 +79,11 @@ fan:
description: "Defines a template to get the direction of the fan. Valid value: 'forward'/'reverse'"
required: false
type: template
availability_template:
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
required: false
type: template
default: true
turn_on:
description: Defines an action to run when the fan is turned on.
required: true
Expand Down

0 comments on commit acb0557

Please sign in to comment.