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 #
Master-IP-Adresse angepasst
port: 502
timeout: 5
delay: 2sensors:
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
- name: “SAX Solarleistung”
Maybe somebody had the same issue and already a solution.
THX Peter