Extend disable Auto Start - HomeKit (#8005)

* Extend disable Auto Start - HomeKit

* Include option with wait_template

* Only use wait_template
This commit is contained in:
cdce8p 2019-01-22 12:16:13 +01:00 committed by Franck Nijhof
parent 8a7789f81f
commit ccf49c335f

View File

@ -227,6 +227,35 @@ automation:
```
{% endraw %}
In some cases it might be desirable to check that all entities are available before starting `HomeKit`. This can be accomplished by adding and additional `binary_sensor` as follows:
{% raw %}
```yaml
# Example checking specific entities to be available before start
homekit:
auto_start: False
automation:
- alias: 'Start HomeKit'
trigger:
- platform: homeassistant
event: start
action:
- wait_template: >-
{% if not states.light.kitchen_lights %}
false
{% elif not states.sensor.outside_temperature %}
false
# Repeat for every entity
{% else %}
true
{% endif %}
timeout: 00:15 # Waits 15 minutes
continue_on_timeout: false
- service: homekit.start
```
{% endraw %}
## {% linkable_title Configure Filter %}
By default, no entity will be excluded. To limit which entities are being exposed to `HomeKit`, you can use the `filter` parameter. Keep in mind only [supported components](#supported-components) can be added.