Automation to update the input select widget (#14213)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Sebastian Spaeth 2020-09-05 14:44:29 +02:00 committed by GitHub
parent 40ff378f70
commit eb05f30ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,24 @@ automation:
```
{% endraw %}
In order to also update the input select in case some external event changes the Vallox profile (web interface, mechanical switch, reboot, etc...) you can use the following automation:
{% raw %}
```yaml
automation:
- alias: Update Vallox input_select
description: Update input_select when external event changes the profile
trigger:
- entity_id: sensor.vallox_current_profile
platform: state
action:
- data_template:
entity_id: input_select.ventilation_profile
option: "{{ states('sensor.vallox_current_profile') }}"
service: input_select.select_option
```
{% endraw %}
## Fan Services
### Service `vallox.set_profile`