Configuring Qubino Flush Dimmer 0-10V as a ventilation control

I have installed succesfully Qubino Flush Dimmer 0-10V ZMNHVD1 to my Home Assistant (HA is a fresh install from this week). It shows up as three different thing:
light.qubino_zmnhvdx_flush_dimmer_010v_level_6_0 -> this controls brightness from 0-254
light.qubino_zmnhvdx_flush_dimmer_010v_step_size_6_6
switch.qubino_zmnhvdx_flush_dimmer_010v_switch_6_0

My ventilation fan can be controlled with voltages:
fan speed 4 = 5V = brightness 127 , level 5 = 6V brightness 153, level 6 = 7V = brightness 178, level 7 = 8V = brightness 203 and the maximum level 8 = 9.5V = brightness 250
At the moment HA shows the slider and I cannot control it exactly.

Is it possible to create a kind of selector where I can choose level from 4 to 8 and it will set dimmer to that level?

I tried the following in my configuration.yaml, but it didn’t work (I left out levels 5-7 to make it shorter):

input_select:
qubino:
name: Ventilation
options:
- 4
- 8
initial: 4

automation:

  • alias: Ventilation - 4
    hide_entity: True
    trigger:
    platform: state
    entity_id: input_select.qubino
    state: ’4’
    action:
    service: light.turn_on
    entity_id: light.qubino_zmnhvdx_flush_dimmer_010v_level_6_0
    data:
    brightness: 103

  • alias: Ventilation - 8
    hide_entity: True
    trigger:
    platform: state
    entity_id: input_select.qubino
    state: ’8’
    action:
    service: light.turn_on
    entity_id: light.qubino_zmnhvdx_flush_dimmer_010v_level_6_0
    data:
    brightness: 250

I’m really thankful if somebody can help me. I’m kind of out of ideas after trying different things for two days…

Edit: I figured out that the automation part works after I deleted hide_entity: True. Then I could trigger those automations separately. The connection between input_select and automation doesn’t work. Any suggestions?

Solution:
input_slider:
hvac_level:
name: HVAC level
initial: 4
min: 4
max: 8
step: 1

automation:
  - alias: Ventilation - 4
    trigger:
      platform: state
      entity_id: input_slider.hvac_level
      to: ’4.0’
    action:
      service: light.turn_on
      entity_id: light.qubino_zmnhvdx_flush_dimmer_010v_level_6_0
      data:
        brightness: 127
1 Like