Input Number for Modbus Integration


In some situations it is necessary to keep a slider or generally an “input number” entity synchronized with a Modbus value that has been changed with the Modbus write register service.
This can be done with an automation. Example:

  - platform: state
      - sensor.wp_raumeinfluss
  - service: input_number.set_value
      value: "{{ states.sensor.wp_raumeinfluss.state }}"
      entity_id: input_number.wp_raumeinfluss

It would be easier if we could configure an input number entity directly in the Modbus configuration.

Or have I missed something?

That would be great! I’m looking forward to see this happen.

same here. I would be very interested in that topic.
So many things are integrated via ModBus and switches are very easy to handle. But as soon as a value has to be written, I need currently to define

  • input number
  • automation to update the slider
  • automation to write into the register after changing the slider

Already after a few settings, the count of automations for the modus are higher than for all other functions. :frowning: