From b14c1195e6d9b686d3c768dad43f6c842b95a724 Mon Sep 17 00:00:00 2001 From: Christian Wissel Date: Sun, 13 Oct 2024 10:31:20 +0200 Subject: [PATCH] Use register 5242 for high precision grid frequency (#372) * Use register 5242 for high precision grid frequency Sensor was already set to precision 2 even though scale was 0.1. This way, the actual grid frequency fluctuation is visible. * Move sensor position to new position (ascending reg values) --------- Co-authored-by: mkaiser <29856783+mkaiser@users.noreply.github.com> --- modbus_sungrow.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/modbus_sungrow.yaml b/modbus_sungrow.yaml index a89ffa7..b24bf13 100644 --- a/modbus_sungrow.yaml +++ b/modbus_sungrow.yaml @@ -1,7 +1,7 @@ # Home Assistant Sungrow inverter integration # https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant # by Martin Kaiser -# last update: 2024-10-13 +# last update: 2024-10-13 (2) # # Note: This YAML file will only work with Home Assistant >= 2023.10 @@ -185,20 +185,7 @@ modbus: state_class: measurement scale: 0.1 scan_interval: 10 - - - name: Grid frequency - unique_id: sg_grid_frequency - device_address: !secret sungrow_modbus_slave - address: 5035 # reg 5036 - input_type: input - data_type: uint16 - precision: 2 - unit_of_measurement: "Hz" - device_class: frequency - state_class: measurement - scale: 0.1 - scan_interval: 10 - + - name: Reactive power unique_id: sg_reactive_power device_address: !secret sungrow_modbus_slave @@ -226,6 +213,19 @@ modbus: scale: 0.001 scan_interval: 10 + - name: Grid frequency + unique_id: sg_grid_frequency + device_address: !secret sungrow_modbus_slave + address: 5241 # reg 5242 + input_type: input + data_type: uint16 + precision: 2 + unit_of_measurement: "Hz" + device_class: frequency + state_class: measurement + scale: 0.01 + scan_interval: 10 + #https://www.photovoltaikforum.com/thread/166134-daten-lesen-vom-sungrow-wechselrichtern-modbus/?pageNo=13 #Meter Active Power: 5601-5602 S32 W (Energiezähler Wirkleistung) #Meter Phase A Active Power: 5603-5604 S32 W (Stromzähler Phase A Wirkleistung)