Einbindung eines Sungrow SH10RT: SH05,SH06,SH08,SH10

Begonnen von 3gmann, 05 November 2020, 11:22:14

Vorheriges Thema - Nächstes Thema

toron_go

Zitat von: tobmaster1985 am 01 Dezember 2024, 22:31:25"queue too long" deutet darauf hin, dass der Wechselrichter nicht mehr auf die Anfragen antwortet.
Entweder Netzerkkabel kurz aus- und wieder einstecken oder WR neustarten.

Danke dir.

Da hätte ich selbst drauf kommen können, keine PV und Akku leer ... (Wechselrichter aus :-/)

optimizer

Die Sungrow SG-Serie hat anscheinend etwas andere Register.
Mich interessiert vor allem Total_DC_Power, Total_AC_Power und Total_AC_Energy.
Hat jemand zufällig für SG20RT ein Listing?

Gruß
optimizer

ChrisH

Zitat von: ChrisH am 25 November 2024, 13:05:19Laut https://www.facebook.com/share/p/14jNgoxHBt/
sind seit der Firmware Version V112 diese beiden Register anders

13020 und 13021 jetzt 16Bit signed, vorher war das unsigned.

Waere dann diese Aenderung von

attr SH08rt01 obj-i13020-type U16
attr SH08rt01 obj-i13021-type U16


nach
attr SH08rt01 obj-i13020-type S16
attr SH08rt01 obj-i13021-type S16

der richtige Ansatz?  S16 statt U16?
Bei mir ist es aktuell zu dunkel um das experimentell zu pruefen :)

Christian

HEute war mal ansprechendes Wetter und nachdem ich meine DWDSolarVorhersage gefixed habe, sieht wieder alles gut aus!

Christian

stobor

#183
Hallo,

ich nutze einen Sungrow SH10RT Wechselrichter. Bisher kam ich mit meiner Wechselrichter-Konfiguration immer gut klar, um mir die für mich wichtigen Daten über den ModBus-Anschluss direkt am WR (nicht über das WiNet-S-Modul) abzurufen. Ich hatte dafür die Konfiguration genutzt, die hier zu Beginn einmal im Forum gefunden habe:

# Wechselrichter
#
# IP 192.168.179.41 : WINET-S Modul
# IP 192.168.179.40 : Wechselrichter

define SH10rt_Fast ModbusAttr 1 30 192.168.179.41:502 TCP
attr SH10rt_Fast userattr obj-i13000-polldelay obj-i5010-polldelay obj-i5011-polldelay obj-i5012-polldelay obj-i5013-polldelay obj-i5018-polldelay obj-i5019-polldelay obj-i5020-polldelay
attr SH10rt_Fast dev-type-S16-unpack s>
attr SH10rt_Fast dev-type-S32-len 2
attr SH10rt_Fast dev-type-S32-revRegs 1
attr SH10rt_Fast dev-type-S32-unpack l>
attr SH10rt_Fast dev-type-U32-len 2
attr SH10rt_Fast dev-type-U32-revRegs 1
attr SH10rt_Fast dev-type-U32-unpack N
attr SH10rt_Fast event-on-change-reading .*
attr SH10rt_Fast icon inverter
attr SH10rt_Fast obj-h12999-map 170:Maintenancen, 0:No_Opperation
attr SH10rt_Fast obj-h12999-poll 1
attr SH10rt_Fast obj-h12999-polldelay x240
attr SH10rt_Fast obj-h12999-reading Battery_Maintenance
attr SH10rt_Fast obj-h12999-set 1
attr SH10rt_Fast obj-h13001-map 0:Timing_Mode, 1:On_Off_Mode, 2:Optimized_Mode
attr SH10rt_Fast obj-h13001-poll 1
attr SH10rt_Fast obj-h13001-polldelay x240
attr SH10rt_Fast obj-h13001-reading Load_1_Adjustment_Mode
attr SH10rt_Fast obj-h13001-set 1
attr SH10rt_Fast obj-h13049-map 0:Self-consumption, 1:Forced, 2:External EMS
attr SH10rt_Fast obj-h13049-poll 1
attr SH10rt_Fast obj-h13049-polldelay x240
attr SH10rt_Fast obj-h13049-reading EMS_Mode_Selection
attr SH10rt_Fast obj-h13050-map 170:Charge, 187:Discharge, 204:Stop
attr SH10rt_Fast obj-h13050-poll 1
attr SH10rt_Fast obj-h13050-polldelay x240
attr SH10rt_Fast obj-h13050-reading Battery_Charge_Discharge_Comand
attr SH10rt_Fast obj-h13050-set 1
attr SH10rt_Fast obj-h13051-poll 1
attr SH10rt_Fast obj-h13051-polldelay x3600
attr SH10rt_Fast obj-h13051-reading Battery_Charge_Discharge_Power
attr SH10rt_Fast obj-h13051-set 1
attr SH10rt_Fast obj-h13054-poll 1
attr SH10rt_Fast obj-h13054-polldelay x3600
attr SH10rt_Fast obj-h13054-reading Battery_Type
attr SH10rt_Fast obj-h13057-expr $val / 10
attr SH10rt_Fast obj-h13057-poll 1
attr SH10rt_Fast obj-h13057-polldelay x3600
attr SH10rt_Fast obj-h13057-reading Battery_Max_SOC
attr SH10rt_Fast obj-h13057-set 1
attr SH10rt_Fast obj-h13057-setexpr $val * 10
attr SH10rt_Fast obj-h13058-expr $val / 10
attr SH10rt_Fast obj-h13058-poll 1
attr SH10rt_Fast obj-h13058-polldelay x3600
attr SH10rt_Fast obj-h13058-reading Battery_Min_SOC
attr SH10rt_Fast obj-h13058-set 1
attr SH10rt_Fast obj-h13058-setexpr $val * 10
attr SH10rt_Fast obj-h13073-poll 1
attr SH10rt_Fast obj-h13073-polldelay x3600
attr SH10rt_Fast obj-h13073-reading Export_Power_Limitation
attr SH10rt_Fast obj-h13073-set 1
attr SH10rt_Fast obj-h13074-map 170:Enable, 85:Disable
attr SH10rt_Fast obj-h13074-poll 1
attr SH10rt_Fast obj-h13074-polldelay x3600
attr SH10rt_Fast obj-h13074-reading Off_Grid_Option
attr SH10rt_Fast obj-h13074-set 1
attr SH10rt_Fast obj-h13083-poll 1
attr SH10rt_Fast obj-h13083-polldelay x3600
attr SH10rt_Fast obj-h13083-reading Battery_Start_Charging_Power
attr SH10rt_Fast obj-h13083-set 1
attr SH10rt_Fast obj-h13084-poll 1
attr SH10rt_Fast obj-h13084-polldelay x3600
attr SH10rt_Fast obj-h13084-reading Battery_Start_Discharging_Power
attr SH10rt_Fast obj-h13084-set 1
attr SH10rt_Fast obj-h13099-poll 1
attr SH10rt_Fast obj-h13099-polldelay x3600
attr SH10rt_Fast obj-h13099-reading Battery_Reserved_Backup_SOC
attr SH10rt_Fast obj-h13099-set 1
attr SH10rt_Fast obj-h4999-poll 1
attr SH10rt_Fast obj-h4999-polldelay x3600
attr SH10rt_Fast obj-h4999-reading System_Clock_Vear
attr SH10rt_Fast obj-h4999-set 1
attr SH10rt_Fast obj-h5000-poll 1
attr SH10rt_Fast obj-h5000-polldelay x3600
attr SH10rt_Fast obj-h5000-reading System_Clock_Month
attr SH10rt_Fast obj-h5001-poll 1
attr SH10rt_Fast obj-h5001-polldelay x3600
attr SH10rt_Fast obj-h5001-reading System_Clock_Day
attr SH10rt_Fast obj-h5001-set 1
attr SH10rt_Fast obj-h5002-poll 1
attr SH10rt_Fast obj-h5002-polldelay x720
attr SH10rt_Fast obj-h5002-reading System_Clock_Hour
attr SH10rt_Fast obj-h5002-set 1
attr SH10rt_Fast obj-h5003-poll 1
attr SH10rt_Fast obj-h5003-polldelay x12
attr SH10rt_Fast obj-h5003-reading System_Clock_Minute
attr SH10rt_Fast obj-h5003-set 1
attr SH10rt_Fast obj-i12999-poll 1
attr SH10rt_Fast obj-i12999-polldelay x12
attr SH10rt_Fast obj-i12999-reading System_State
attr SH10rt_Fast obj-i13000-poll 1
attr SH10rt_Fast obj-i13000-reading Running_State
attr SH10rt_Fast obj-i13001-expr $val / 10
attr SH10rt_Fast obj-i13001-poll 1
attr SH10rt_Fast obj-i13001-polldelay x60
attr SH10rt_Fast obj-i13001-reading Daily_PV_Generation
attr SH10rt_Fast obj-i13002-expr $val / 10
attr SH10rt_Fast obj-i13002-poll 1
attr SH10rt_Fast obj-i13002-polldelay x225
attr SH10rt_Fast obj-i13002-reading Total_PV_Generation
attr SH10rt_Fast obj-i13002-type U32
attr SH10rt_Fast obj-i13004-expr $val / 10
attr SH10rt_Fast obj-i13004-poll 1
attr SH10rt_Fast obj-i13004-polldelay x60
attr SH10rt_Fast obj-i13004-reading Daily_Export_Power_PV
attr SH10rt_Fast obj-i13005-expr $val / 10
attr SH10rt_Fast obj-i13005-poll 1
attr SH10rt_Fast obj-i13005-polldelay x240Daily
attr SH10rt_Fast obj-i13005-reading Total_Export_Energy
attr SH10rt_Fast obj-i13005-type U32
attr SH10rt_Fast obj-i13007-poll 1
attr SH10rt_Fast obj-i13007-reading Load_Power
attr SH10rt_Fast obj-i13007-type S32
attr SH10rt_Fast obj-i13009-poll 1
attr SH10rt_Fast obj-i13009-reading Export_Power
attr SH10rt_Fast obj-i13009-type S32
attr SH10rt_Fast obj-i13011-expr $val / 10
attr SH10rt_Fast obj-i13011-poll 1
attr SH10rt_Fast obj-i13011-polldelay x60
attr SH10rt_Fast obj-i13011-reading Daily_Battery_Charge_Energy_PV
attr SH10rt_Fast obj-i13012-expr $val / 10
attr SH10rt_Fast obj-i13012-poll 1
attr SH10rt_Fast obj-i13012-polldelay x240
attr SH10rt_Fast obj-i13012-reading Total_Battery_Charge_Energy_PV
attr SH10rt_Fast obj-i13012-type U32
attr SH10rt_Fast obj-i13014-expr $val / 10
attr SH10rt_Fast obj-i13014-poll 1
attr SH10rt_Fast obj-i13014-polldelay x3600
attr SH10rt_Fast obj-i13014-reading CO2_Reduction
attr SH10rt_Fast obj-i13014-type U32
attr SH10rt_Fast obj-i13016-expr $val / 10
attr SH10rt_Fast obj-i13016-poll 1
attr SH10rt_Fast obj-i13016-polldelay x60
attr SH10rt_Fast obj-i13016-reading Daily_direct_Energy_Consumption
attr SH10rt_Fast obj-i13017-expr $val / 10
attr SH10rt_Fast obj-i13017-poll 1
attr SH10rt_Fast obj-i13017-polldelay x240
attr SH10rt_Fast obj-i13017-reading Total_direct_Energy_Consumption
attr SH10rt_Fast obj-i13017-type U32
attr SH10rt_Fast obj-i13019-expr $val / 10
attr SH10rt_Fast obj-i13019-poll 1
attr SH10rt_Fast obj-i13019-reading Battery_Voltage
attr SH10rt_Fast obj-i13020-expr $val / 10
attr SH10rt_Fast obj-i13020-poll 1
attr SH10rt_Fast obj-i13020-reading Battery_Current
attr SH10rt_Fast obj-i13021-poll 1
attr SH10rt_Fast obj-i13021-reading Battery_Power
attr SH10rt_Fast obj-i13022-expr $val / 10
attr SH10rt_Fast obj-i13022-poll 1
attr SH10rt_Fast obj-i13022-reading Battery_Level
attr SH10rt_Fast obj-i13023-expr $val / 10
attr SH10rt_Fast obj-i13023-poll 1
attr SH10rt_Fast obj-i13023-polldelay x240
attr SH10rt_Fast obj-i13023-reading Battery_State_Of_Healthy
attr SH10rt_Fast obj-i13024-expr $val / 10
attr SH10rt_Fast obj-i13024-poll 1
attr SH10rt_Fast obj-i13024-polldelay x12
attr SH10rt_Fast obj-i13024-reading Battery_Temperature
attr SH10rt_Fast obj-i13024-type S16
attr SH10rt_Fast obj-i13025-expr $val / 10
attr SH10rt_Fast obj-i13025-poll 1
attr SH10rt_Fast obj-i13025-polldelay x60
attr SH10rt_Fast obj-i13025-reading Daily_Battery_Discharge_Energy
attr SH10rt_Fast obj-i13026-expr $val / 10
attr SH10rt_Fast obj-i13026-poll 1
attr SH10rt_Fast obj-i13026-polldelay x480
attr SH10rt_Fast obj-i13026-reading Total_Battery_Discharge_Energy
attr SH10rt_Fast obj-i13026-type U32
attr SH10rt_Fast obj-i13028-expr $val / 10
attr SH10rt_Fast obj-i13028-poll 1
attr SH10rt_Fast obj-i13028-polldelay x60
attr SH10rt_Fast obj-i13028-reading Self_Consumtion_of_Today
attr SH10rt_Fast obj-i13029-poll 1
attr SH10rt_Fast obj-i13029-polldelay x12
attr SH10rt_Fast obj-i13029-reading Grid_State
attr SH10rt_Fast obj-i13030-expr $val / 10
attr SH10rt_Fast obj-i13030-poll 1
attr SH10rt_Fast obj-i13030-reading L1_Current
attr SH10rt_Fast obj-i13030-type S16
attr SH10rt_Fast obj-i13031-expr $val / 10
attr SH10rt_Fast obj-i13031-poll 1
attr SH10rt_Fast obj-i13031-reading L2_Current
attr SH10rt_Fast obj-i13031-type S16
attr SH10rt_Fast obj-i13032-expr $val / 10
attr SH10rt_Fast obj-i13032-poll 1
attr SH10rt_Fast obj-i13032-reading L3_Current
attr SH10rt_Fast obj-i13032-type S16
attr SH10rt_Fast obj-i13033-poll 1
attr SH10rt_Fast obj-i13033-reading Total_Active_Power
attr SH10rt_Fast obj-i13033-type S32
attr SH10rt_Fast obj-i13035-expr $val / 10
attr SH10rt_Fast obj-i13035-poll 1
attr SH10rt_Fast obj-i13035-polldelay x60
attr SH10rt_Fast obj-i13035-reading Daily_Import_Energy
attr SH10rt_Fast obj-i13036-expr $val / 10
attr SH10rt_Fast obj-i13036-poll 1
attr SH10rt_Fast obj-i13036-polldelay x480
attr SH10rt_Fast obj-i13036-reading Total_Import_Energy
attr SH10rt_Fast obj-i13036-type U32
attr SH10rt_Fast obj-i13038-expr $val / 10
attr SH10rt_Fast obj-i13038-poll 1
attr SH10rt_Fast obj-i13038-polldelay x3600
attr SH10rt_Fast obj-i13038-reading Battery_Capacity
attr SH10rt_Fast obj-i13039-expr $val / 10
attr SH10rt_Fast obj-i13039-poll 1
attr SH10rt_Fast obj-i13039-polldelay x60
attr SH10rt_Fast obj-i13039-reading Daily_Battery_Charge_Energie
attr SH10rt_Fast obj-i13040-expr $val / 10
attr SH10rt_Fast obj-i13040-poll 1
attr SH10rt_Fast obj-i13040-polldelay x480
attr SH10rt_Fast obj-i13040-reading Total_Battery_Charge_Energie
attr SH10rt_Fast obj-i13040-type U32
attr SH10rt_Fast obj-i13044-expr $val / 10
attr SH10rt_Fast obj-i13044-poll 1
attr SH10rt_Fast obj-i13044-polldelay x12
attr SH10rt_Fast obj-i13044-reading Daily_Export_Energy
attr SH10rt_Fast obj-i13045-expr $val / 10
attr SH10rt_Fast obj-i13045-poll 1
attr SH10rt_Fast obj-i13045-polldelay x12
attr SH10rt_Fast obj-i13045-reading Total_Export_Energy
attr SH10rt_Fast obj-i13045-type U32
attr SH10rt_Fast obj-i13049-poll 1
attr SH10rt_Fast obj-i13049-polldelay x12
attr SH10rt_Fast obj-i13049-reading Inverter_Alarm
attr SH10rt_Fast obj-i13049-type U32
attr SH10rt_Fast obj-i13051-poll 1
attr SH10rt_Fast obj-i13051-polldelay x12
attr SH10rt_Fast obj-i13051-reading Grid_Side_Fault
attr SH10rt_Fast obj-i13051-type U32
attr SH10rt_Fast obj-i13053-poll 1
attr SH10rt_Fast obj-i13053-polldelay x12
attr SH10rt_Fast obj-i13053-reading System_Fault_1
attr SH10rt_Fast obj-i13053-type U32
attr SH10rt_Fast obj-i13055-poll 1
attr SH10rt_Fast obj-i13055-polldelay x12
attr SH10rt_Fast obj-i13055-reading System_Fault_2
attr SH10rt_Fast obj-i13055-type U32
attr SH10rt_Fast obj-i13057-poll 1
attr SH10rt_Fast obj-i13057-polldelay x12
attr SH10rt_Fast obj-i13057-reading DC_Side_Fault
attr SH10rt_Fast obj-i13057-type U32
attr SH10rt_Fast obj-i13059-poll 1
attr SH10rt_Fast obj-i13059-polldelay x12
attr SH10rt_Fast obj-i13059-reading Permanent_Fault
attr SH10rt_Fast obj-i13059-type U32
attr SH10rt_Fast obj-i13065-poll 1
attr SH10rt_Fast obj-i13065-polldelay x12
attr SH10rt_Fast obj-i13065-reading Battery_Fault
attr SH10rt_Fast obj-i13065-type U32
attr SH10rt_Fast obj-i13067-poll 1
attr SH10rt_Fast obj-i13067-polldelay x12
attr SH10rt_Fast obj-i13067-reading Battery_Alarm
attr SH10rt_Fast obj-i13067-type U32
attr SH10rt_Fast obj-i13069-poll 1
attr SH10rt_Fast obj-i13069-polldelay x12
attr SH10rt_Fast obj-i13069-reading BMS_Alarm
attr SH10rt_Fast obj-i13069-type U32
attr SH10rt_Fast obj-i13071-poll 1
attr SH10rt_Fast obj-i13071-polldelay x12
attr SH10rt_Fast obj-i13071-reading BMS_Protection
attr SH10rt_Fast obj-i13071-type U32
attr SH10rt_Fast obj-i13073-poll 1
attr SH10rt_Fast obj-i13073-polldelay x12
attr SH10rt_Fast obj-i13073-reading BMS_Fault_1
attr SH10rt_Fast obj-i13073-type U32
attr SH10rt_Fast obj-i13075-poll 1
attr SH10rt_Fast obj-i13075-polldelay x12
attr SH10rt_Fast obj-i13075-reading BMS_Fault_2
attr SH10rt_Fast obj-i13075-type U32
attr SH10rt_Fast obj-i13077-poll 1
attr SH10rt_Fast obj-i13077-polldelay x12
attr SH10rt_Fast obj-i13077-reading BMS_Alarm_2
attr SH10rt_Fast obj-i13077-type U32
attr SH10rt_Fast obj-i13099-poll 1
attr SH10rt_Fast obj-i13099-polldelay x12
attr SH10rt_Fast obj-i13099-reading BMS_Status
attr SH10rt_Fast obj-i13106-poll 1
attr SH10rt_Fast obj-i13106-polldelay x12
attr SH10rt_Fast obj-i13106-reading Bat_SOC
attr SH10rt_Fast obj-i13107-poll 1
attr SH10rt_Fast obj-i13107-polldelay x12
attr SH10rt_Fast obj-i13107-reading Bat_SOH
attr SH10rt_Fast obj-i4949-poll 1
attr SH10rt_Fast obj-i4949-polldelay x3600
attr SH10rt_Fast obj-i4949-reading Protocol_Nummer
attr SH10rt_Fast obj-i4949-type U32
attr SH10rt_Fast obj-i4951-poll 1
attr SH10rt_Fast obj-i4951-polldelay x3600
attr SH10rt_Fast obj-i4951-reading Protocol_Version
attr SH10rt_Fast obj-i4951-type U32
attr SH10rt_Fast obj-i4999-poll 1
attr SH10rt_Fast obj-i4999-polldelay x3600
attr SH10rt_Fast obj-i4999-reading Device_Type
attr SH10rt_Fast obj-i5000-poll 1
attr SH10rt_Fast obj-i5000-polldelay x3600
attr SH10rt_Fast obj-i5000-reading Nominal_Output_Power
attr SH10rt_Fast obj-i5001-poll 1
attr SH10rt_Fast obj-i5001-polldelay x3600
attr SH10rt_Fast obj-i5001-reading Output_Type
attr SH10rt_Fast obj-i5002-expr $val / 10000
attr SH10rt_Fast obj-i5002-poll 1
attr SH10rt_Fast obj-i5002-polldelay x240
attr SH10rt_Fast obj-i5002-reading Daily_Output_Energy
attr SH10rt_Fast obj-i5003-poll 1
attr SH10rt_Fast obj-i5003-polldelay x240
attr SH10rt_Fast obj-i5003-reading Total_Output_Energy
attr SH10rt_Fast obj-i5003-type U32
attr SH10rt_Fast obj-i5007-expr $val / 10
attr SH10rt_Fast obj-i5007-poll 1
attr SH10rt_Fast obj-i5007-polldelay x240
attr SH10rt_Fast obj-i5007-reading Inside_Temperature
attr SH10rt_Fast obj-i5007-type S16
attr SH10rt_Fast obj-i5010-expr $val / 10
attr SH10rt_Fast obj-i5010-poll 1
attr SH10rt_Fast obj-i5010-reading MPPT_1_Voltage
attr SH10rt_Fast obj-i5011-expr $val / 10
attr SH10rt_Fast obj-i5011-poll 1
attr SH10rt_Fast obj-i5011-reading MPPT_1_Current
attr SH10rt_Fast obj-i5012-expr $val / 10
attr SH10rt_Fast obj-i5012-poll 1
attr SH10rt_Fast obj-i5012-reading MPPT_2_Voltage
attr SH10rt_Fast obj-i5013-expr $val / 10
attr SH10rt_Fast obj-i5013-poll 1
attr SH10rt_Fast obj-i5013-reading MPPT_2_Current
attr SH10rt_Fast obj-i5016-poll 1
attr SH10rt_Fast obj-i5016-reading Total_DC_Power
attr SH10rt_Fast obj-i5016-type U32
attr SH10rt_Fast obj-i5018-expr $val / 10
attr SH10rt_Fast obj-i5018-poll 1
attr SH10rt_Fast obj-i5018-reading L1_Voltage
attr SH10rt_Fast obj-i5019-expr $val / 10
attr SH10rt_Fast obj-i5019-poll 1
attr SH10rt_Fast obj-i5019-reading L2_Voltage
attr SH10rt_Fast obj-i5020-expr $val / 10
attr SH10rt_Fast obj-i5020-poll 1
attr SH10rt_Fast obj-i5020-reading L3_Voltage
attr SH10rt_Fast obj-i5032-poll 1
attr SH10rt_Fast obj-i5032-polldelay x12
attr SH10rt_Fast obj-i5032-reading Reactive_Power
attr SH10rt_Fast obj-i5032-type S32
attr SH10rt_Fast obj-i5034-expr $val / 1000
attr SH10rt_Fast obj-i5034-poll 1
attr SH10rt_Fast obj-i5034-polldelay x240
attr SH10rt_Fast obj-i5034-reading Power_Factor
attr SH10rt_Fast obj-i5034-type S16
attr SH10rt_Fast obj-i5035-expr $val / 10
attr SH10rt_Fast obj-i5035-poll 1
attr SH10rt_Fast obj-i5035-polldelay x12
attr SH10rt_Fast obj-i5035-reading Grid_Frequency
attr SH10rt_Fast obj-i5621-expr $val * 10
attr SH10rt_Fast obj-i5621-poll 1
attr SH10rt_Fast obj-i5621-polldelay x3600
attr SH10rt_Fast obj-i5621-reading Export_Limit_Min
attr SH10rt_Fast obj-i5622-expr $val * 10
attr SH10rt_Fast obj-i5622-poll 1
attr SH10rt_Fast obj-i5622-polldelay x3600
attr SH10rt_Fast obj-i5622-reading Export_Limit_Max
attr SH10rt_Fast obj-i5634-poll 1
attr SH10rt_Fast obj-i5634-polldelay x3600
attr SH10rt_Fast obj-i5634-reading Max_Charging_Current
attr SH10rt_Fast obj-i5635-poll 1
attr SH10rt_Fast obj-i5635-polldelay x3600
attr SH10rt_Fast obj-i5635-reading Max_Discharging_Current
attr SH10rt_Fast obj-i6226-expr $val / 10
attr SH10rt_Fast obj-i6226-poll 1
attr SH10rt_Fast obj-i6226-polldelay x3600
attr SH10rt_Fast obj-i6226-reading JAN_PV_Energy_Yield
attr SH10rt_Fast obj-i6227-expr $val / 10
attr SH10rt_Fast obj-i6227-poll 1
attr SH10rt_Fast obj-i6227-polldelay x3600
attr SH10rt_Fast obj-i6227-reading FEB_PV_Energy_Yield
attr SH10rt_Fast obj-i6228-expr $val / 10
attr SH10rt_Fast obj-i6228-poll 1
attr SH10rt_Fast obj-i6228-polldelay x3600
attr SH10rt_Fast obj-i6228-reading MRZ_PV_Energy_Yield
attr SH10rt_Fast obj-i6229-expr $val / 10
attr SH10rt_Fast obj-i6229-poll 1
attr SH10rt_Fast obj-i6229-polldelay x3600
attr SH10rt_Fast obj-i6229-reading APR_PV_Energy_Yield
attr SH10rt_Fast obj-i6230-expr $val / 10
attr SH10rt_Fast obj-i6230-poll 1
attr SH10rt_Fast obj-i6230-polldelay x3600
attr SH10rt_Fast obj-i6230-reading MAI_PV_Energy_Yield
attr SH10rt_Fast obj-i6231-expr $val / 10
attr SH10rt_Fast obj-i6231-poll 1
attr SH10rt_Fast obj-i6231-polldelay x3600
attr SH10rt_Fast obj-i6231-reading JUN_PV_Energy_Yield
attr SH10rt_Fast obj-i6232-expr $val / 10
attr SH10rt_Fast obj-i6232-poll 1Daily
attr SH10rt_Fast obj-i6232-polldelay x3600
attr SH10rt_Fast obj-i6232-reading JUL_PV_Energy_Yield
attr SH10rt_Fast obj-i6233-expr $val / 10
attr SH10rt_Fast obj-i6233-poll 1
attr SH10rt_Fast obj-i6233-polldelay x3600
attr SH10rt_Fast obj-i6233-reading AUG_PV_Energy_Yield
attr SH10rt_Fast obj-i6234-expr $val / 10
attr SH10rt_Fast obj-i6234-poll 1
attr SH10rt_Fast obj-i6234-polldelay x3600
attr SH10rt_Fast obj-i6234-reading SEP_PV_Energy_Yield
attr SH10rt_Fast obj-i6235-expr $val / 10
attr SH10rt_Fast obj-i6235-poll 1
attr SH10rt_Fast obj-i6235-polldelay x3600
attr SH10rt_Fast obj-i6235-reading OKT_PV_Energy_Yield
attr SH10rt_Fast obj-i6236-expr $val / 10
attr SH10rt_Fast obj-i6236-poll 1
attr SH10rt_Fast obj-i6236-polldelay x3600
attr SH10rt_Fast obj-i6236-reading NOV_PV_Energy_Yield
attr SH10rt_Fast obj-i6237-expr $val / 10
attr SH10rt_Fast obj-i6237-poll 1
attr SH10rt_Fast obj-i6237-polldelay x3600
attr SH10rt_Fast obj-i6237-reading DEZ_PV_Energy_Yield
attr SH10rt_Fast room Aussen,ModBus,PV-Anlage
attr SH10rt_Fast userReadings Running_State_Bit_0 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 1));;},\
Running_State_Bit_1 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 2));;},\
Running_State_Bit_2 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 4));;},\
Running_State_Bit_3 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 8));;},\
Running_State_Bit_4 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 16));;},\
Running_State_Bit_5 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 32));;},\
Running_State_Bit_6 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 64));;},\
Running_State_Bit_7 {sprintf("%.0f", (ReadingsNum ("SH10rt_Fast","Running_State", 0) & 128));;},\
Power_MPPT_1 {sprintf("%.1f", (ReadingsNum ("SH10rt_Fast","MPPT_1_Voltage", 0) * ReadingsNum ("SH10rt_Fast","MPPT_1_Current", 0)));;},\
Power_MPPT_2 {sprintf("%.1f", (ReadingsNum ("SH10rt_Fast","MPPT_2_Voltage", 0) * ReadingsNum ("SH10rt_Fast","MPPT_2_Current", 0)));;},\
BatterieLadeEntladeLeistung {sprintf("%s%.0f", (ReadingsNum("SH10rt_Fast","Running_State_Bit_2",0,1) != 0) ? (ReadingsNum("SH10rt_Fast","Running_State_Bit_2",0) == 4) ? "-" : "" :"",ReadingsNum("SH10rt_Fast","Battery_Power",0,0))},\
Data4FileLog {"Total_DC_Power: ". ReadingsNum("SH10rt_Fast","Total_DC_Power", 0,0) ."  Load_Power: ". ReadingsNum("SH10rt_Fast","Load_Power", 0,0) ."  Export_Power: ". ReadingsNum("SH10rt_Fast","Export_Power", 0,0) ."  Battery_Power: ". ReadingsNum("SH10rt_Fast","BatterieLadeEntladeLeistung", 0,0) ."  Battery_Level: ". ReadingsNum("SH10rt_Fast","Battery_Level", 0,0)},\
Produktion_AktuellerMonat { ReadingsNum("SH10rt_Fast",uc(strftime("%b",localtime))."_PV_Energy_Yield",0);; },\
ProduktionVorherigerMonat { ReadingsNum("SH10rt_Fast",uc(sVormonatMMM)."_PV_Energy_Yield",0);; },\
Leistung_Stromnetz_Mittelwert { sprintf("%.1f", movingAverageT("SH10rt_Fast", "Export_Power", 180));;},\
BatterieLadeEntladeLeistung_Mittelwert { sprintf("%.0f", movingAverageT("SH10rt_Fast", "BatterieLadeEntladeLeistung", 180));;}

Bisher hat es immer gut funktioniert, um mir die für mich relevanten Informationen zu liefern:
  • Aktuelle PV-Produktion (Total_DC_Power
  • Ladestand des Akkus (Battery_Level)
  • Lade-/Enladeleistung des Akkus (Battery_Power)
  • Netzbezug/Einspeisung (Export_Power)
  • Energie-Konsum des Haushaltes (Load_Power)
  • Produktion im aktuellen Monat
  • Produktion im Vormonat
  • Produktion pro Strang (MPPT1/2) (MPPT_..._Voltage x MPPT_..._Current)
  • Gesamtertrag am aktuellen Tag (Daily_PV_Generation)
  • Gesamtproduktion (Total_PV_Generation)

Ich habe nun vor ein paar Tagen die Firmware des SH10RT und des WiNet-S-Kommunikationsmoduls aktualisiert (SAPPHIRE-H_01011.95.03 bzw. WINET-SV200.001.00.P030).
Seitdem scheinen einige Werte immer mal zu spinnen:
Die Batterie-Lade/Entladeleistung zeigt manchmal Werte jenseits der 60000 an - komischerweise aber nicht immer. Andere Werte zeigen 65535 (wie Bat_SOC, BAT_SOH, BMS_StatusGrid_State, ...).

Es scheint, als ob sich einge Formate geändert haben, ober meine kopierte Konfiguration nicht ganz so robust ist.

Hat vielleicht jemand eine Definition für den SH10RT, die auch mit der aktuellen Firmware verlässlich funktioniert?

Vielen lieben Dank.
Intel NUC (Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-113-generic x86_64))  mit CUL V3.2 (FW 1.57 CUL868) für FS20 und CCU3 für HM(IP) + Arduino Mega (Firmata) - FHEM Revision: 29534 - FS20, HM(IP), MQTT, Philips HUE, ModBus

Turtle

#184
Hallo zusammen,

hat es jemand von euch schon geschafft, den SH10RT vernünftig in SolarForecast einzubinden? Mein Hauptproblem ist der Verbrauch – hier wird im unterem Balkendiagramm nichts angezeigt.

SH10RT
defmod SH10RT ModbusAttr 1 30 192.168.178.71:502 TCP
attr SH10RT dev-type-S16-unpack s>
attr SH10RT dev-type-S32-len 2
attr SH10RT dev-type-S32-revRegs 1
attr SH10RT dev-type-S32-unpack l>
attr SH10RT dev-type-U32-len 2
attr SH10RT dev-type-U32-revRegs 1
attr SH10RT dev-type-U32-unpack N
attr SH10RT event-on-change-reading .*
attr SH10RT icon inverter
attr SH10RT obj-i13002-expr $val / 10
attr SH10RT obj-i13002-poll 1
attr SH10RT obj-i13002-polldelay x225
attr SH10RT obj-i13002-reading Total_PV_Generation
attr SH10RT obj-i13002-type U32
attr SH10RT obj-i13009-poll 1
attr SH10RT obj-i13009-reading Export_Power
attr SH10RT obj-i13009-type S32
attr SH10RT obj-i13021-poll 1
attr SH10RT obj-i13021-reading Battery_Power
attr SH10RT obj-i13022-expr $val / 10
attr SH10RT obj-i13022-poll 1
attr SH10RT obj-i13022-reading Battery_Level
attr SH10RT obj-i13026-expr $val / 10
attr SH10RT obj-i13026-poll 1
attr SH10RT obj-i13026-polldelay x480
attr SH10RT obj-i13026-reading Total_Battery_Discharge_Energy
attr SH10RT obj-i13026-type U32
attr SH10RT obj-i13036-expr $val / 10
attr SH10RT obj-i13036-poll 1
attr SH10RT obj-i13036-polldelay x480
attr SH10RT obj-i13036-reading Total_Import_Energy
attr SH10RT obj-i13036-type U32
attr SH10RT obj-i13040-expr $val / 10
attr SH10RT obj-i13040-poll 1
attr SH10RT obj-i13040-polldelay x480
attr SH10RT obj-i13040-reading Total_Battery_Charge_Energie
attr SH10RT obj-i13040-type U32
attr SH10RT obj-i13045-expr $val / 10
attr SH10RT obj-i13045-poll 1
attr SH10RT obj-i13045-polldelay x12
attr SH10RT obj-i13045-reading Total_Export_Energy
attr SH10RT obj-i13045-type U32
attr SH10RT obj-i5003-poll 1
attr SH10RT obj-i5003-polldelay x240
attr SH10RT obj-i5003-reading Total_Output_Energy
attr SH10RT obj-i5003-type U32
attr SH10RT obj-i5016-poll 1
attr SH10RT obj-i5016-reading Total_DC_Power
attr SH10RT obj-i5016-type U32

SolarForecast
setupBatteryDev01 SH10RT pin=Battery_Power:W pout=-pin intotal=Total_Battery_Charge_Energie:kWh outtotal=Total_Battery_Discharge_Energy:kWh charge=Battery_Level cap=10000

setupInverterDev01 SH10RT pv=Total_DC_Power:W etotal=Total_PV_Generation:kWh capacity=15000

setupMeterDev SH10RT gcon=-gfeedin contotal=Total_Import_Energy:kWh gfeedin=Export_Power:W feedtotal=Total_Export_Energy:kWh


Turtle

Ok so funktioniert es

SH10RT
defmod SH10RT ModbusAttr 1 30 192.168.178.71:502 TCP
attr SH10RT dev-type-S16-unpack s>
attr SH10RT dev-type-S32-len 2
attr SH10RT dev-type-S32-revRegs 1
attr SH10RT dev-type-S32-unpack l>
attr SH10RT dev-type-U32-len 2
attr SH10RT dev-type-U32-revRegs 1
attr SH10RT dev-type-U32-unpack N
attr SH10RT icon inverter
attr SH10RT obj-i13002-expr $val / 10
attr SH10RT obj-i13002-poll 1
attr SH10RT obj-i13002-reading Total_PV_Generation
attr SH10RT obj-i13002-type U32
attr SH10RT obj-i13007-poll 1
attr SH10RT obj-i13007-reading Load_Power
attr SH10RT obj-i13007-type S32
attr SH10RT obj-i13009-poll 1
attr SH10RT obj-i13009-reading Export_Power
attr SH10RT obj-i13009-type S32
attr SH10RT obj-i13021-poll 1
attr SH10RT obj-i13021-reading Battery_Power
attr SH10RT obj-i13022-expr $val / 10
attr SH10RT obj-i13022-poll 1
attr SH10RT obj-i13022-reading Battery_Level
attr SH10RT obj-i13023-expr $val / 10
attr SH10RT obj-i13023-poll 1
attr SH10RT obj-i13023-polldelay x240
attr SH10RT obj-i13023-reading Battery_State_Of_Healthy
attr SH10RT obj-i13026-expr $val / 10
attr SH10RT obj-i13026-poll 1
attr SH10RT obj-i13026-reading Total_Battery_Discharge_Energy
attr SH10RT obj-i13026-type U32
attr SH10RT obj-i13033-poll 1
attr SH10RT obj-i13033-reading Total_Active_Power
attr SH10RT obj-i13033-type S32
attr SH10RT obj-i13035-expr $val / 10
attr SH10RT obj-i13035-poll 1
attr SH10RT obj-i13035-reading Daily_Import_Energy
attr SH10RT obj-i13036-expr $val / 10
attr SH10RT obj-i13036-poll 1
attr SH10RT obj-i13036-reading Total_Import_Energy
attr SH10RT obj-i13036-type U32
attr SH10RT obj-i13040-expr $val / 10
attr SH10RT obj-i13040-poll 1
attr SH10RT obj-i13040-reading Total_Battery_Charge_Energie
attr SH10RT obj-i13040-type U32
attr SH10RT obj-i13044-expr $val / 10
attr SH10RT obj-i13044-poll 1
attr SH10RT obj-i13044-reading Daily_Export_Energy
attr SH10RT obj-i13045-expr $val / 10
attr SH10RT obj-i13045-poll 1
attr SH10RT obj-i13045-reading Total_Export_Energy
attr SH10RT obj-i13045-type U32
attr SH10RT obj-i5003-poll 1
attr SH10RT obj-i5003-reading Total_Output_Energy
attr SH10RT obj-i5003-type U32
attr SH10RT obj-i5007-expr $val / 10
attr SH10RT obj-i5007-poll 1
attr SH10RT obj-i5007-polldelay x240
attr SH10RT obj-i5007-reading Inside_Temperature
attr SH10RT obj-i5007-type S16
attr SH10RT obj-i5016-poll 1
attr SH10RT obj-i5016-reading Total_DC_Power
attr SH10RT obj-i5016-type U32
attr SH10RT room Photovoltaik
attr SH10RT stateFormat {sprintf("Status: %s, Temp: %.1f, PV: %.1f W, Bezug/Einspeisung: %.2f W", ReadingsVal($name,"state",0), ReadingsVal($name,"Inside_Temperature",0), ReadingsVal($name,"Total_DC_Power",0), ReadingsVal($name,"Export_Power",0))}
attr SH10RT userReadings Battery_Power_1 {\
  my $dc_power = ReadingsVal("SH10RT","Total_DC_Power",0);;\
  my $active_power = ReadingsVal("SH10RT","Total_Active_Power",0);;\
  my $battery_power = ReadingsVal("SH10RT","Battery_Power",0);;\
\
  if ($dc_power > $active_power) {\
    return abs($battery_power);;  # Positiv für Laden\
  } elsif ($dc_power < $active_power) {\
    return -abs($battery_power);; # Negativ für Entladen\
  } else {\
    return 0;; # Neutral, keine Bewegung\
  }\
}

SolarForecast
setupBatteryDev01 SH10RT pin=Battery_Power_1:W pout=-pin intotal=Total_Battery_Charge_Energie:kWh outtotal=Total_Battery_Discharge_Energy:kWh charge=Battery_Level cap=10000

setupInverterDev01 SH10RT pv=Total_DC_Power:W etotal=Total_PV_Generation:kWh capacity=15000

setupMeterDev SH10RT gcon=-gfeedin contotal=Daily_Import_Energy:kWh gfeedin=Export_Power:W feedtotal=Daily_Export_Energy:kWh

roadghost

Hier für die Community die aktuelle Register-Datei nach dem letzten FW-Update aus Dezember 2024.
NUC/Ubuntu 22.04 m. FHEM, div. Tasmota-Steckdosen, HMCFGUSB-2 für 12x HM-CC-RT-DN + 8x HM-TC-IT-WW
Rademacher DuoFern für 12 Jalousien, JeeLink für LaCrosse Temp.Sensor, WLAN-smart-Plugs, 
NUKI smartlock, 2xIP-CAM, Pylontech Speicher + Sungrow WR, Unifi-AP´s + Controller auf weiterem NUC

sk1


[/quote]
Zitat von: FhemPiUser am 12 September 2022, 19:15:54Meine Config für die beiden Devices ist angehängt, evtl. hilft es anderen auch.

Ich habe inzwischen die modbusattr Definition um einige SH10rt Register laut Sungrow modbus Doku erweitert, u.a. um MAX/Min SoC für eine Batterie einzustellen, Global Scan zu initiieren, für die Abfrage des Systemzustands, für die Smart Meter Ablesung und für die tägliche/monatlichen/jährliche Statistiken.

Zur Anbindung von evcc habe ich außerdem noch ein modbus attr relay device, da der WR es nicht mag, wenn fhem und evcc parallel den Winet-S abfragen. evcc fragt dann beim fhem relay an.

defmod SH10rt_1_relay ModbusAttr 11 relay 192.168.x.x:1502 TCP to SH10rt_1_1
Bei mir läuft das so sehr stabil.

Des Weiteren habe ich noch eine prognosebasierte Ladesteuerung für die Batterie über Max_SOC gebaut auf Basis der freien api.forecast.solar, httpmod und doif. Wer Interesse hat kann sich bei mir melden, dann kann ich das teilen.

UPDATE: Habe die prognosebasierte Ladesteuerung im eigenen Thread gepostet unter https://forum.fhem.de/index.php/topic,132145.0.html


Hallo zusammen,
mit dieser Konfiguration habe ich unseren neuen Sungrow SH10RT in Fhem schnell einbinden können...vielen Dank dafür.

Leider hakt es noch an zwei Stellen:
1. Es funktioniert nur die LAN Anbindung. Eine Kommunikation mit dem Winet-S will nicht zustande kommen. Muss hier noch etwas freigeschaltet werden? Bei der LAN-Konfiguration musste ich nur die IP anpassen und schon wurden die Userreadings erzeugt.

2. Vor der Integration in Fhem habe ich evcc installiert und ein paar mal ohne Probleme unser Auto geladen. Nun nach der Integration funktioniert evcc nicht mehr zuverlässig, da mehrere Anfragen über Modbus kommen. Ich habe dann ebenfalls ein Relay erstellt (aktuell noch auf das LAN Device gemappt). Leider bekommt dann evcc keine Daten mehr...ich muss wohl auch hier noch einen Denkfehler bzw. eine falsche Konfiguration haben.
Hier die Defintion von dem Relay: defmod SH10rt_1_LAN_relay ModbusAttr 11 relay 192.168.178.22:1502 TCP to SH10rt_1_LAN
Bei der IP habe ich die IP von Fhem eingestellt.

Viele Dank schon mal für eure Hilfe

sk1

Hallo,

zu 1. habe ich eine Lösung gefunden: Port freischalten im Winet-S. Dafür muss man sich mit dem Admin Konto anmelden (User "admin", Passwort "pw8888") und dann Unter System > Weiterleitungskonfiguration Tab Modbus auswählen und dort den Schalter für Port 502 aktivieren.

Vllt. hilft jemandem dieser Hinweis.