Modbus: Script fault

Hello all, I’m abit new to HA and programming.
Just a have a modbus question: I’m currectly using a DDS519MR connected the below.


It’s working correctly but my HA config is wrong:

image

image

Thanks in advance.

It’s working correctly but my HA config is wrong:

slave: 1
input_type: input

Thanks for the fast replay, I changed it still no luck.
image
image
The funny thing is if I scan it with the modbus tool I get this:
image
image
I must be missing something…

zero is broadcast device address

Thanks nikito7 do you mean the “address” should be 0? because I still don’t get back information.

sensors:

  - name: 2Solarpanels_current_meter

    slave: 1

    address: 0

    scan_interval: 10

    input_type: input

    count: 2

    precision: 1

    data_type: float32

    unit_of_measurement: A

    device_class: current

    state_class: measurement

  - name: 2Solarpanels_voltage_meter

    slave: 1

    address: 4

    scan_interval: 10

    input_type: input

    count: 2

    precision: 1 # decimal after the point

    data_type: float32

    unit_of_measurement: V

    device_class: voltage

    state_class: measurement

Use modbus tool with device 1