MOD bus Holding Register

Hello I am trying get a Pump working via Modbus.
The problem is the pump has 3 states:
0 = on
1= off
2 = time schedule
What i managed to get working was using the Fan entitie: code looks like that:
I was able to sitch on and Off.

fans:
    - name: Ospa_Filterpumpe_EIN_AUS
      address: 1
      write_type: holding
      command_on: 0
      command_off: 1
      verify:
        input_type: holding
        state_on: 0
        state_off: 1

Is it possible in HA to write a user Command: command_time: 2 ??
I tried also covers, switches, but always the same problem.