Now I want to try with an input value. I’m not sure on how to implement the UI.
Basically I can select between four different values ( 0,1,3,4). They mean 0=Auto, 1=Comf, 3=Econ, 4=Off. Any suggestions?
I’ve had a quick look at the climate.knx. It looks promising but I will have to modify it because the logic is a little bit different and the states are different.
I’ve worked on the input_select for the read automation. But it look that is not reading the correct state.
# Define input_select
input_select:
zone_mode:
name: Zone mode
options:
- "auto"
- "comfort"
- "economy"
- "off"
icon: mdi:target
- alias: Set Zone Mode Selector
trigger:
platform: state
entity_id: sensor.hencozona1_forzamodo_knx
action:
service: input_select.select_option
data_template:
entity_id: input_select.zone_mode
option: >
{% if is_state('sensor.hencozona1_forzamodo_knx', '4') %}
off
{% elif is_state('sensor.hencozona1_forzamodo_knx', '3') %}
economy
{% elif is_state('sensor.hencozona1_forzamodo_knx', 1 ) %}
comfort
{% else %}
auto
{% endif %}