mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
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:
parent
40ff378f70
commit
eb05f30ea5
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user