How to automate VentilationSpeed AWAY, LOW, MEDIUM, HIGH of the ComfoAirQ?

Hi there,

I have a ComfoAirQ 350 via ComfoConnect Lan C in the network and was able to integrate it successfully with Michael Arnaut’s great add-on (thank you for this great work!):
Link to Git

The ventilation system can be perfectly controlled manually, everything is as it should be.

When automating, however, it gets complicated, I just can’t find an entity where I can simply switch between the fan speeds.
What I have found are only a few entities that do something similar, but somehow very confusing.

While looking through Michael’s script, I found under: “/homeassistant/custom_components/comfoconnect/fan.py” a place that shows exactly what I’m looking for but can’t find in any Entities:

FAN_SPEED_MAPPING = {
    0: VentilationSpeed.AWAY,
    1: VentilationSpeed.LOW,
    2: VentilationSpeed.MEDIUM,
    3: VentilationSpeed.HIGH,
}
Device: "ComfoAirQ"
Action: "Change ConfoAirQ Modus in the first Option"
Does: nothing

Device: "ComfoAirQ"
Action "ComfoAirQ toggle" 

Does: toggle between OFF and LOW

Device: "ComfoAirQ"
Action "Change ComfoAirQ Modus in the last Option"

Does: Switch to “MANUAL”

Device: "ComfoAirQ"
Action "Change ComfoAirQ Modus to the next Option"

Does: jump to MEDIUM and after this toggle between MANUAL and AUTO back and forth

Device: "ComfoAirQ"
Action "ComfoAirQ toggle" 

Does: toggle between OFF and LOW

Device: "ComfoAirQ"
Action "Change ComfoAirQ Modus in the last Option"

Does: Switch to “MANUAL”

Device: "ComfoAirQ"
Action "Change ComfoAirQ Modus to the next Option"

Does: jump to MEDIUM and after this toggle between MANUAL and AUTO back and forth

Do any of you have automations for switching the ventilation system to the respective OFF, LOW, MEDIUM, HIGH mode according to certain criteria and can give me the right food for thought here?

Thank you in advance.

You need to use the fan.set_percentage action.

0 is away, 33 is low, 66 is medium and 100 is high.

Many, many thanks to you!!!
This works.
:star_struck: