Add speed control to modbus fan entities

Hi, would it be possible to add modbus fan entity speed control? It would be very useful for these entities to be able to select the speed. For example silence mode, low mode, medium mode, maximum mode, boost mode, auto mode…etc… Thanks everyone.

Did you find any workaround?
I’m at the same situation… I tried to create an entity for each of the velocity, but it works really bad…

Hi, I solved it like this:
-1- I created an input number from 1 to 5 (according to the number of speeds)
-2- I created this automation:

alias: Slide fan stanza 1p1
description: ""
  - platform: state
      - input_number.velocita_stanza_1p1
condition: []
  - service: modbus.write_register
      hub: modbus_hub
      address: 34
      unit: 1
        - "{{ states('input_number.velocita_stanza_1p1')|int }}"
mode: queued
max: 10

Fan mode features was added to ModBus integration in December and now into the Release 2024.2 has been added also my PR to use write_registers for fan mode…
So, now I have a modbus climate entity fully working!