MODBUS TCP convert number to state

Continuing the discussion from Modbus Sensor TCP for Komfovent:

I’m trying to do it for the Komfovent but it is probably a general MODBUS TCP issue.

How do I neatly convert the number returned to a state. I know the doc says char but it does return a number :slight_smile:

image

Can I do it as part of the modbus sensors definition or do I need to create a separate template sensor?

sensors:
    - name: "Komfovent Power"
      address: 4
      input_type: holding
      data_type: uint16

create a separate template sensor

1 Like