From eb05f30ea55d607e744a055b14bd198e9cd9395b Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sat, 5 Sep 2020 14:44:29 +0200 Subject: [PATCH] Automation to update the input select widget (#14213) Co-authored-by: Franck Nijhof Co-authored-by: Franck Nijhof --- source/_integrations/vallox.markdown | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/_integrations/vallox.markdown b/source/_integrations/vallox.markdown index d67e96d2273..d4a29225159 100644 --- a/source/_integrations/vallox.markdown +++ b/source/_integrations/vallox.markdown @@ -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`