Modbus -> sending "1" as 0xFF00 as coil

Hi. I am trying to connect Uponor floor heating controller with hass using modbus. For some configuration actions I need to update a coil in the following day:
to reset special mode = I have to send 0x0000
to set special mode = I have to send 0xFF00

My first idea was just to use native modbus intergration
switches:

  • platform: modbus
    scan_interval: 30
    coils:
    • name: heating_floor_state
      hub: hub2
      slave: 20
      coil: 2

So, switch.heating_floor_state will read and write value according to the native modbus functionality.

But in case of I set (via UI) switch to ON or make it OFF that it will take values ‘on’ or ‘off’.
In modbus functionality hass will write coil due the switch status change, I assume, that it will write ‘1’ or ‘0’ there, right?

Because I need to write ‘0xFF00’ and ‘0x0000’ accordingly is there a way how to do it without extra objects?

Or may be it’s just easy: native hass modbus functionality writes 0xff00 when I make correspodning switch (specified as modbus) to ON?