ModBus and Schneider Smart UPS

Hi,
I have a Schneider UPS which i’d like get into HA .

In the documentation they state following :

image
image
image

so i have a register at address 143 with bit pointer U6 meaning Unsigned, 6 binary point location and the register is 2 bytes so 0000000000000000 in binary format and for example the register returns 0011110000110010 Bin but only the 0011110000 is the number hence that is in Decimal 240V as it should, my problem is how do i specify this in Home Assistant ?

I have following so far :

 -  name: ups
    retry_on_empty: true
    retries: 10
    type: tcp
    host: 10.10.0.34
    port: 502
    sensors:
    - name: "UPS Voltage"
      data_type: uint
      address: 143

/donnib

You have to permut ‘octet’ ABCD to CDAB.

Have a look here: