Is there anyway to create a multi state control?
I have a number of settings on my MHRV unit that have multiple states and I would like to be able to set these via an NA dashboard.
sensor:
- platform: template
sensors:
unit_of_measurement: "State"
value_template: >-
{% set mapper = {
'0' : 'StayAtHome',
'1' : 'WorkingWeek',
'2' : 'Office',
'3' : 'Custom'} %}
{% set state = states('sensor.komfovent_scheduler_num') %}
{{ mapper[state] if state in mapper else 'Unknown' }}
I could do it with a slider on the number sensor, or 4 buttons one for each ‘state’, but some options have 6 modes so a lot of buttons, so being able to select the actual state would be much nicer.