Sax Battery Usage of Register 40112

I’m looking to read the Register 40112 (Solar Production) via Modbus of my Sax Battery.
I need this, as my inverter is old and the scrape integration doesn’t work anymore.

Here is my code (in configuration.yaml) - but it failed:
modbus:

  • name: “sax_battery_master”
    type: tcp
    host: 192.168.178.102 # :white_check_mark: Master-IP-Adresse angepasst
    port: 502
    timeout: 5
    delay: 2

    sensors:

    Solarleistung (Register 40112)

    • name: “SAX Solarleistung”
      unique_id: “sax_solar_power_live”
      unit_of_measurement: W
      state_class: measurement
      device_class: power
      address: 112 # Register 40112 (als 0-basierter Offset: 40112 - 40000)
      input_type: holding # Liest Input Registers (FC04), was für Sensorwerte üblich ist
      data_type: uint16
      scale: 1
      offset: -16384 # Wichtiger Offset zur Umwandlung des uint16-Werts in einen signed-Integer (für positive/negative Leistung)
      precision: 0
      scan_interval: 5

Maybe somebody had the same issue and already a solution.

THX Peter

Hello Oberonix2000,
Welcome to the Home Assistant Forum.

Thanks for coming here and asking a question.

Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. Editing your original is the preferred way. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix formatting from the site FAQ Page.
How to help us help you - or How to ask a good question.

modbus:
  - name: "sax_battery_master"
    type: tcp
    host: 192.168.178.102 # ✅ Master-IP-Adresse angepasst
    port: 502
    timeout: 5
    delay: 2
    
    sensors:
      # Solarleistung (Register 40112)
      - name: "SAX Solarleistung"
        unique_id: "sax_solar_power_live"
        unit_of_measurement: W
        state_class: measurement
        device_class: power
        address: 112 # Register 40112 (als 0-basierter Offset: 40112 - 40000)
        input_type: holding # Liest Input Registers (FC04), was für Sensorwerte üblich ist
        data_type: uint16
        scale: 1
        offset: -16384 # Wichtiger Offset zur Umwandlung des uint16-Werts in einen signed-Integer (für positive/negative Leistung)
        precision: 0
        scan_interval: 5

Thanks for the pointer. My bad, I totally missed that.