New Python plugin: Domoticz SolarEdge_ModbusTCP

Moderator: leecollings

AddieJanssen
Posts: 50
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

hjzwiers wrote: Sunday 04 October 2026 0:02 And a final version of scanner2.py if you want i can send it

Code: Select all

hjz@debian:/opt/stacks/domoticz/config/plugins$ sudo do
......
Disconnected from server
Here's the decoded version of the output you shared on the 4th:

Code: Select all

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge ]
[md]          [Manufacturer specific value (32 chars)]                  [SE10K-RWB48BFN4]
[opt]         [Manufacturer specific value (16 chars)]                  []
[vr]          [Manufacturer specific value (16 chars)]                  [0004.0025.0013]
[sn]          [Manufacturer specific value (32 chars)]                  [7B0526DA]
[da]          [Modbus device address]                                   [1]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                 [103]
[name]                                               [inverter_three_phase]
[label]                                              [Inverter (Three Phase)]
[description]                                        [Include this model for three phase inverter monitoring]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                     [103]
[l]           [Model length]                         [50]
[a]           [AC Current]                           [2.45] = [245 * (10**-2)] using scale factor [a_sf]
[apha]        [Phase A Current]                      [0.81] = [81 * (10**-2)] using scale factor [a_sf]
[aphb]        [Phase B Current]                      [0.83] = [83 * (10**-2)] using scale factor [a_sf]
[aphc]        [Phase C Current]                      [0.80] = [80 * (10**-2)] using scale factor [a_sf]
[a_sf]        []                                     [-2]
[ppvphab]     [Phase Voltage AB]                     [400.10] = [4001 * (10**-1)] using scale factor [v_sf]
[ppvphbc]     [Phase Voltage BC]                     [401.80] = [4018 * (10**-1)] using scale factor [v_sf]
[ppvphca]     [Phase Voltage CA]                     [401.40] = [4014 * (10**-1)] using scale factor [v_sf]
[phvpha]      [Phase Voltage AN]                     [230.90] = [2309 * (10**-1)] using scale factor [v_sf]
[phvphb]      [Phase Voltage BN]                     [231.60] = [2316 * (10**-1)] using scale factor [v_sf]
[phvphc]      [Phase Voltage CN]                     [232.10] = [2321 * (10**-1)] using scale factor [v_sf]
[v_sf]        []                                     [-1]
[w]           [AC Power]                             [527.70] = [5277 * (10**-1)] using scale factor [w_sf]
[w_sf]        []                                     [-1]
[hz]          [Line Frequency]                       [49.98] = [4998 * (10**-2)] using scale factor [hz_sf]
[hz_sf]       []                                     [-2]
[va]          [AC Apparent Power]                    [569.10] = [5691 * (10**-1)] using scale factor [va_sf]
[va_sf]       []                                     [-1]
[var]         [AC Reactive Power]                    [-212.98] = [-21298 * (10**-2)] using scale factor [var_sf]
[var_sf]      []                                     [-2]
[pf]          [AC Power Factor]                      [-92.72] = [-9272 * (10**-2)] using scale factor [pf_sf]
[pf_sf]       []                                     [-2]
[wh]          [AC Energy]                            [49052080.00] = [49052080 * (10**0)] using scale factor [wh_sf]
[wh_sf]       []                                     [0]
[dca]         [DC Current]                           [0.65] = [6532 * (10**-4)] using scale factor [dca_sf]
[dca_sf]      []                                     [-4]
[dcv]         [DC Voltage]                           [820.00] = [8200 * (10**-1)] using scale factor [dcv_sf]
[dcv_sf]      []                                     [-1]
[dcw]         [DC Power]                             [535.70] = [5357 * (10**-1)] using scale factor [dcw_sf]
[dcw_sf]      []                                     [-1]
[tmpcab]      [Cabinet Temperature]                  [NOT_IMPLEMENTED]
[tmpsnk]      [Heat Sink Temperature]                [43.19] = [4319 * (10**-2)] using scale factor [tmp_sf]
[tmptrns]     [Transformer Temperature]              [NOT_IMPLEMENTED]
[tmpot]       [Other Temperature]                    [NOT_IMPLEMENTED]
[tmp_sf]      []                                     [-2]
[st]          [Enumerated value.  Operating state]   [MPPT]
[stvnd]       [Vendor specific operating state code] [0]
[evt1]        [Bitmask value. Event fields]          [NOT_IMPLEMENTED]
[evt2]        [Reserved for future use]              [NOT_IMPLEMENTED]
[evtvnd1]     [Vendor defined events]                [0]
[evtvnd2]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd3]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd4]     [Vendor defined events]                [0]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge]
[md]          [Manufacturer specific value (32 chars)]                  [MTR-240-3PC1-D-A-MW]
[opt]         [Manufacturer specific value (16 chars)]                  [Export+Import]
[vr]          [Manufacturer specific value (16 chars)]                  [1.0.104]
[sn]          [Manufacturer specific value (32 chars)]                  [6401e4dd]
[da]          [Modbus device address]                                   [NOT_IMPLEMENTED]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                      [203]
[name]                                                                    [ac_meter_abcn]
[label]                                                                   [wye-connect three phase (abcn) meter]
[description]                                                             []
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]              [Model identifier]                                      [203]
[l]               [Model length]                                          [105]
[a]               [Total AC Current]                                      [2.39] = [23909 * (10**-4)] using scale factor [a_sf]
[apha]            [Phase A Current]                                       [0.89] = [8943 * (10**-4)] using scale factor [a_sf]
[aphb]            [Phase B Current]                                       [0.65] = [6496 * (10**-4)] using scale factor [a_sf]
[aphc]            [Phase C Current]                                       [0.85] = [8469 * (10**-4)] using scale factor [a_sf]
[a_sf]            [Current scale factor]                                  [-4]
[phv]             [Line to Neutral AC Voltage (average of active phases)] [230.50] = [2305 * (10**-1)] using scale factor [v_sf]
[phvpha]          [Phase Voltage AN]                                      [230.50] = [2305 * (10**-1)] using scale factor [v_sf]
[phvphb]          [Phase Voltage BN]                                      [230.90] = [2309 * (10**-1)] using scale factor [v_sf]
[phvphc]          [Phase Voltage CN]                                      [231.60] = [2316 * (10**-1)] using scale factor [v_sf]
[ppv]             [Line to Line AC Voltage (average of active phases)]    [0]
[phvphab]         [Phase Voltage AB]                                      [399.20] = [3992 * (10**-1)] using scale factor [v_sf]
[phvphbc]         [Phase Voltage BC]                                      [400.80] = [4008 * (10**-1)] using scale factor [v_sf]
[phvphca]         [Phase Voltage CA]                                      [400.50] = [4005 * (10**-1)] using scale factor [v_sf]
[v_sf]            [Voltage scale factor]                                  [-1]
[hz]              [Frequency]                                             [49.99] = [4999 * (10**-2)] using scale factor [hz_sf]
[hz_sf]           [Frequency scale factor]                                [-2]
[w]               [Total Real Power]                                      [4.42] = [4422 * (10**-3)] using scale factor [w_sf]
[wpha]            []                                                      [13.03] = [13026 * (10**-3)] using scale factor [w_sf]
[wphb]            []                                                      [11.21] = [11206 * (10**-3)] using scale factor [w_sf]
[wphc]            []                                                      [-19.81] = [-19810 * (10**-3)] using scale factor [w_sf]
[w_sf]            [Real Power scale factor]                               [-3]
[va]              [AC Apparent Power]                                     [404.10] = [4041 * (10**-1)] using scale factor [va_sf]
[vapha]           []                                                      [169.40] = [1694 * (10**-1)] using scale factor [va_sf]
[vaphb]           []                                                      [110.90] = [1109 * (10**-1)] using scale factor [va_sf]
[vaphc]           []                                                      [167.00] = [1670 * (10**-1)] using scale factor [va_sf]
[va_sf]           [Apparent Power scale factor]                           [-1]
[var]             [Reactive Power]                                        [-404.10] = [-4041 * (10**-1)] using scale factor [var_sf]
[varpha]          []                                                      [-150.10] = [-1501 * (10**-1)] using scale factor [var_sf]
[varphb]          []                                                      [-110.30] = [-1103 * (10**-1)] using scale factor [var_sf]
[varphc]          []                                                      [-143.60] = [-1436 * (10**-1)] using scale factor [var_sf]
[var_sf]          [Reactive Power scale factor]                           [-1]
[pf]              [Power Factor]                                          [-7.76] = [-776 * (10**-2)] using scale factor [pf_sf]
[pfpha]           []                                                      [-40.90] = [-4090 * (10**-2)] using scale factor [pf_sf]
[pfphb]           []                                                      [-21.79] = [-2179 * (10**-2)] using scale factor [pf_sf]
[pfphc]           []                                                      [39.39] = [3939 * (10**-2)] using scale factor [pf_sf]
[pf_sf]           [Power Factor scale factor]                             [-2]
[totwhexp]        [Total Real Energy Exported]                            [7251292.00] = [725129200 * (10**-2)] using scale factor [totwh_sf]
[totwhexppha]     []                                                      [6378243.00] = [637824300 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphb]     []                                                      [4208419.50] = [420841950 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphc]     []                                                      [2372837.50] = [237283750 * (10**-2)] using scale factor [totwh_sf]
[totwhimp]        [Total Real Energy Imported]                            [18807904.00] = [1880790400 * (10**-2)] using scale factor [totwh_sf]
[totwhimppha]     []                                                      [3814310.25] = [381431025 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphb]     []                                                      [6911307.50] = [691130750 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphc]     []                                                      [13790495.00] = [1379049500 * (10**-2)] using scale factor [totwh_sf]
[totwh_sf]        [Real Energy scale factor]                              [-2]
[totvahexp]       [Total Apparent Energy Exported]                        [0]
[totvahexppha]    []                                                      [0]
[totvahexpphb]    []                                                      [0]
[totvahexpphc]    []                                                      [0]
[totvahimp]       [Total Apparent Energy Imported]                        [0]
[totvahimppha]    []                                                      [0]
[totvahimpphb]    []                                                      [0]
[totvahimpphc]    []                                                      [0]
[totvah_sf]       [Apparent Energy scale factor]                          [NOT_IMPLEMENTED]
[totvarhimpq1]    [Total Reactive Energy Imported Quadrant 1]             [0]
[totvarhimpq1pha] []                                                      [0]
[totvarhimpq1phb] []                                                      [0]
[totvarhimpq1phc] []                                                      [0]
[totvarhimpq2]    [Total Reactive Power Imported Quadrant 2]              [0]
[totvarhimpq2pha] []                                                      [0]
[totvarhimpq2phb] []                                                      [0]
[totvarhimpq2phc] []                                                      [0]
[totvarhexpq3]    [Total Reactive Power Exported Quadrant 3]              [0]
[totvarhexpq3pha] []                                                      [0]
[totvarhexpq3phb] []                                                      [0]
[totvarhexpq3phc] []                                                      [0]
[totvarhexpq4]    [Total Reactive Power Exported Quadrant 4]              [0]
[totvarhexpq4pha] []                                                      [0]
[totvarhexpq4phb] []                                                      [0]
[totvarhexpq4phc] []                                                      [0]
[totvarh_sf]      [Reactive Energy scale factor]                          [NOT_IMPLEMENTED]
[evt]             [Meter Event Flags]                                     [0]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                          [701]
[name]                                                                                                        [DERMeasureAC]
[label]                                                                                                       [DER AC Measurement]
[description]                                                                                                 [DER AC measurement model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]           [DER AC measurement model ID.]                                                                 [701]
[l]            [DER AC measurement model length.]                                                             [153]
[actype]       [AC wiring type.]                                                                              [THREE_PHASE]
[st]           [Operating state of the DER.]                                                                  [ON]
[invst]        [Enumerated value.  Inverter state.]                                                           [NOT_IMPLEMENTED]
[connst]       [Grid connection state of the DER.]                                                            [CONNECTED]
[alrm]         [Active alarms for the DER.]                                                                   [0]
[dermode]      [Current operational characteristics of the DER.]                                              [NOT_IMPLEMENTED]
[w]            [Total active power. Active power is positive for DER generation and negative for absorption.] [510.00] = [51 * (10**1)] using scale factor [w_sf]
[va]           [Total apparent power.]                                                                        [560.00] = [56 * (10**1)] using scale factor [va_sf]
[var]          [Total reactive power.]                                                                        [-210.00] = [-21 * (10**1)] using scale factor [var_sf]
[pf]           [Power factor. The sign of power factor should be the sign of active power.]                   [0.92] = [92 * (10**-2)] using scale factor [pf_sf]
[a]            [Total AC current.]                                                                            [NOT_IMPLEMENTED]
[llv]          [Line to line AC voltage as an average of active phases.]                                      [400.40] = [4004 * (10**-1)] using scale factor [v_sf]
[lnv]          [Line to neutral AC voltage as an average of active phases.]                                   [231.20] = [2312 * (10**-1)] using scale factor [v_sf]
[hz]           [AC frequency.]                                                                                [49.99] = [49986 * (10**-3)] using scale factor [hz_sf]
[totwhinj]     [Total active energy injected (Quadrants 1 & 4).]                                              [NOT_IMPLEMENTED]
[totwhabs]     [Total active energy absorbed (Quadrants 2 & 3).]                                              [NOT_IMPLEMENTED]
[totvarhinj]   [Total reactive energy injected (Quadrants 1 & 2).]                                            [NOT_IMPLEMENTED]
[totvarhabs]   [Total reactive energy absorbed (Quadrants 3 & 4).]                                            [NOT_IMPLEMENTED]
[tmpamb]       [Ambient temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpcab]       [Cabinet temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpsnk]       [Heat sink temperature.]                                                                       [NOT_IMPLEMENTED]
[tmptrns]      [Transformer temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpsw]        [IGBT/MOSFET temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpot]        [Other temperature.]                                                                           [NOT_IMPLEMENTED]
[wl1]          [Active power L1.]                                                                             [NOT_IMPLEMENTED]
[val1]         [Apparent power L1.]                                                                           [NOT_IMPLEMENTED]
[varl1]        [Reactive power L1.]                                                                           [NOT_IMPLEMENTED]
[pfl1]         [Power factor phase L1.]                                                                       [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al1]          [Current phase L1.]                                                                            [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl1l2]        [Phase voltage L1-L2.]                                                                         [NOT_IMPLEMENTED]
[vl1]          [Phase voltage L1-N.]                                                                          [231.20] = [2312 * (10**-1)] using scale factor [v_sf]
[totwhinjl1]   [Total active energy injected L1.]                                                             [NOT_IMPLEMENTED]
[totwhabsl1]   [Total active energy absorbed L1.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl1] [Total reactive energy injected L1.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl1] [Total reactive energy absorbed L1.]                                                           [NOT_IMPLEMENTED]
[wl2]          [Active power L2.]                                                                             [NOT_IMPLEMENTED]
[val2]         [Apparent power L2.]                                                                           [NOT_IMPLEMENTED]
[varl2]        [Reactive power L2.]                                                                           [NOT_IMPLEMENTED]
[pfl2]         [Power factor L2.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al2]          [Current L2.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl2l3]        [Phase voltage L2-L3.]                                                                         [NOT_IMPLEMENTED]
[vl2]          [Phase voltage L2-N.]                                                                          [231.20] = [2312 * (10**-1)] using scale factor [v_sf]
[totwhinjl2]   [Total active energy injected L2.]                                                             [NOT_IMPLEMENTED]
[totwhabsl2]   [Total active energy absorbed L2.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl2] [Total reactive energy injected L2.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl2] [Total reactive energy absorbed L2.]                                                           [NOT_IMPLEMENTED]
[wl3]          [Active power L3.]                                                                             [NOT_IMPLEMENTED]
[val3]         [Apparent power L3.]                                                                           [NOT_IMPLEMENTED]
[varl3]        [Reactive power L3.]                                                                           [NOT_IMPLEMENTED]
[pfl3]         [Power factor L3.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al3]          [Current L3.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl3l1]        [Phase voltage L3-L1.]                                                                         [NOT_IMPLEMENTED]
[vl3]          [Phase voltage L3-N.]                                                                          [232.00] = [2320 * (10**-1)] using scale factor [v_sf]
[totwhinjl3]   [Total active energy injected L3.]                                                             [NOT_IMPLEMENTED]
[totwhabsl3]   [Total active energy absorbed L3.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl3] [Total reactive energy injected L3.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl3] [Total reactive energy absorbed L3.]                                                           [NOT_IMPLEMENTED]
[throtpct]     [Throttling in pct of maximum active power.]                                                   [NOT_IMPLEMENTED]
[throtsrc]     [Active throttling source.]                                                                    [NOT_IMPLEMENTED]
[a_sf]         [Current scale factor.]                                                                        [0]
[v_sf]         [Voltage scale factor.]                                                                        [-1]
[hz_sf]        [Frequency scale factor.]                                                                      [-3]
[w_sf]         [Active power scale factor.]                                                                   [1]
[pf_sf]        [Power factor scale factor.]                                                                   [-2]
[va_sf]        [Apparent power scale factor.]                                                                 [1]
[var_sf]       [Reactive power scale factor.]                                                                 [1]
[totwh_sf]     [Active energy scale factor.]                                                                  [0]
[totvarh_sf]   [Reactive energy scale factor.]                                                                [0]
[tmp_sf]       [Temperature scale factor.]                                                                    [0]
[mnalrminfo]   [Manufacturer alarm information. Valid if MANUFACTURER_ALRM indication is active.]             []

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                                             [702]
[name]                                                                                                                           [DERCapacity]
[label]                                                                                                                          [DER Capacity]
[description]                                                                                                                    [DER capacity model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER capacity model ID.]                                                                                     [702]
[l]                 [DER capacity model length.]                                                                                 [50]
[wmaxrtg]           [Maximum active power rating at unity power factor in watts.]                                                [10600.00] = [10600 * (10**0)] using scale factor [w_sf]
[wovrextrtg]        [Active power rating at specified over-excited power factor in watts.]                                       [8480.00] = [8480 * (10**0)] using scale factor [w_sf]
[wovrextrtgpf]      [Specified over-excited power factor.]                                                                       [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[wundextrtg]        [Active power rating at specified under-excited power factor in watts.]                                      [8480.00] = [8480 * (10**0)] using scale factor [w_sf]
[wundextrtgpf]      [Specified under-excited power factor.]                                                                      [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[vamaxrtg]          [Maximum apparent power rating in voltamperes.]                                                              [10600.00] = [10600 * (10**0)] using scale factor [va_sf]
[varmaxinjrtg]      [Maximum injected reactive power rating in vars.]                                                            [6360.00] = [6360 * (10**0)] using scale factor [var_sf]
[varmaxabsrtg]      [Maximum absorbed reactive power rating in vars.]                                                            [6360.00] = [6360 * (10**0)] using scale factor [var_sf]
[wchartemaxrtg]     [Maximum active power charge rate in watts.]                                                                 [NOT_IMPLEMENTED]
[wdischartemaxrtg]  [Maximum active power discharge rate in watts.]                                                              [NOT_IMPLEMENTED]
[vachartemaxrtg]    [Maximum apparent power charge rate in voltamperes.]                                                         [NOT_IMPLEMENTED]
[vadischartemaxrtg] [Maximum apparent power discharge rate in voltamperes.]                                                      [NOT_IMPLEMENTED]
[vnomrtg]           [AC voltage nominal rating.]                                                                                 [230.00] = [2300 * (10**-1)] using scale factor [v_sf]
[vmaxrtg]           [AC voltage maximum rating.]                                                                                 [253.00] = [2530 * (10**-1)] using scale factor [v_sf]
[vminrtg]           [AC voltage minimum rating.]                                                                                 [202.40] = [2024 * (10**-1)] using scale factor [v_sf]
[amaxrtg]           [AC current maximum rating in amps.]                                                                         [NOT_IMPLEMENTED]
[pfovrextrtg]       [Unused. Please use WOvrExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[pfundextrtg]       [Unused. Please use WUndExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[reactsusceptrtg]   [Reactive susceptance that remains connected to the Area EPS in the cease to energize and trip state.]       [0]
[noropcatrtg]       [Normal operating performance category as specified in IEEE 1547-2018.]                                      [CAT_B]
[abnopcatrtg]       [Abnormal operating performance category as specified in IEEE 1547-2018.]                                    [CAT_3]
[ctrlmodes]         [Supported control mode functions.]                                                                          [4294965247]
[intislandcatrtg]   [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[wmax]              [Maximum active power setting used to adjust maximum active power setting.]                                  [NOT_IMPLEMENTED]
[wmaxovrext]        [Active power setting at specified over-excited power factor in watts.]                                      [NOT_IMPLEMENTED]
[wovrextpf]         [Specified over-excited power factor.]                                                                       [NOT_IMPLEMENTED]
[wmaxundext]        [Active power setting at specified under-excited power factor in watts.]                                     [NOT_IMPLEMENTED]
[wundextpf]         [Specified under-excited power factor.]                                                                      [NOT_IMPLEMENTED]
[vamax]             [Maximum apparent power setting used to adjust maximum apparent power rating.]                               [NOT_IMPLEMENTED]
[varmaxinj]         [Maximum injected reactive power setting used to adjust maximum injected reactive power rating.]             [NOT_IMPLEMENTED]
[varmaxabs]         [Maximum absorbed reactive power setting used to adjust maximum absorbed reactive power rating.]             [NOT_IMPLEMENTED]
[wchartemax]        [Maximum active power charge rate setting used to adjust maximum active power charge rate rating.]           [NOT_IMPLEMENTED]
[wdischartemax]     [Maximum active power discharge rate setting used to adjust maximum active power discharge rate rating.]     [NOT_IMPLEMENTED]
[vachartemax]       [Maximum apparent power charge rate setting used to adjust maximum apparent power charge rate rating.]       [NOT_IMPLEMENTED]
[vadischartemax]    [Maximum apparent power discharge rate setting used to adjust maximum apparent power discharge rate rating.] [NOT_IMPLEMENTED]
[vnom]              [Nominal AC voltage setting.]                                                                                [NOT_IMPLEMENTED]
[vmax]              [AC voltage maximum setting used to adjust AC voltage maximum rating.]                                       [NOT_IMPLEMENTED]
[vmin]              [AC voltage minimum setting used to adjust AC voltage minimum rating.]                                       [NOT_IMPLEMENTED]
[amax]              [Maximum AC current setting used to adjust maximum AC current rating.]                                       [NOT_IMPLEMENTED]
[pfovrext]          [Unused. Please use WOvrExtPF.]                                                                              [NOT_IMPLEMENTED]
[pfundext]          [Unused. Please use WUndExtPF.]                                                                              [NOT_IMPLEMENTED]
[intislandcat]      [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[w_sf]              [Active power scale factor.]                                                                                 [0]
[pf_sf]             [Power factor scale factor.]                                                                                 [-2]
[va_sf]             [Apparent power scale factor.]                                                                               [0]
[var_sf]            [Reactive power scale factor.]                                                                               [0]
[v_sf]              [Voltage scale factor.]                                                                                      [-1]
[a_sf]              [Current scale factor.]                                                                                      [0]
[s_sf]              [Susceptance scale factor.]                                                                                  [0]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                               [703]
[name]                                                                             [DEREnterService]
[label]                                                                            [Enter Service]
[description]                                                                      [Enter service model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Enter service model ID.]                                            [703]
[l]           [Enter service model length.]                                        [17]
[es]          [Permit enter service.]                                              [ENABLED]
[esvhi]       [Enter service voltage high threshold as percent of normal voltage.] [110.00] = [11000 * (10**-2)] using scale factor [v_sf]
[esvlo]       [Enter service voltage low threshold as percent of normal voltage.]  [90.00] = [9000 * (10**-2)] using scale factor [v_sf]
[eshzhi]      [Enter service frequency high threshold.]                            [50.10] = [50100 * (10**-3)] using scale factor [hz_sf]
[eshzlo]      [Enter service frequency low threshold.]                             [49.90] = [49900 * (10**-3)] using scale factor [hz_sf]
[esdlytms]    [Enter service delay time in seconds.]                               [60]
[esrndtms]    [Enter service random delay in seconds.]                             [0]
[esrmptms]    [Enter service ramp time in seconds.]                                [300]
[esdlyremtms] [Enter service delay time remaining in seconds.]                     [NOT_IMPLEMENTED]
[v_sf]        [Voltage percentage scale factor.]                                   [-2]
[hz_sf]       [Frequency scale factor.]                                            [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                              [704]
[name]                                                                                                            [DERCtlAC]
[label]                                                                                                           [DER AC Controls]
[description]                                                                                                     [DER AC controls model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER AC controls model ID.]                                                                   [704]
[l]                 [DER AC controls model length.]                                                               [65]
[pfwinjena]         [Power factor enable when injecting active power.]                                            [DISABLED]
[pfwinjenarvrt]     [Power factor reversion timer when injecting active power enable.]                            [NOT_IMPLEMENTED]
[pfwinjrvrttms]     [Power factor reversion timer when injecting active power.]                                   [NOT_IMPLEMENTED]
[pfwinjrvrtrem]     [Power factor reversion time remaining when injecting active power.]                          [NOT_IMPLEMENTED]
[pfwabsena]         [Power factor enable when absorbing active power.]                                            [NOT_IMPLEMENTED]
[pfwabsenarvrt]     [Power factor reversion timer when absorbing active power enable.]                            [NOT_IMPLEMENTED]
[pfwabsrvrttms]     [Power factor reversion timer when absorbing active power.]                                   [NOT_IMPLEMENTED]
[pfwabsrvrtrem]     [Power factor reversion time remaining when absorbing active power.]                          [NOT_IMPLEMENTED]
[wmaxlimpctena]     [Limit maximum active power percent enable.]                                                  [DISABLED]
[wmaxlimpct]        [Limit maximum active power percent value.]                                                   [NOT_IMPLEMENTED]
[wmaxlimpctrvrt]    [Reversion limit maximum active power percent value.]                                         [NOT_IMPLEMENTED]
[wmaxlimpctenarvrt] [Reversion limit maximum active power percent value enable.]                                  [NOT_IMPLEMENTED]
[wmaxlimpctrvrttms] [Limit maximum active power percent reversion time.]                                          [NOT_IMPLEMENTED]
[wmaxlimpctrvrtrem] [Limit maximum active power percent reversion time remaining.]                                [NOT_IMPLEMENTED]
[wsetena]           [Set active power enable.]                                                                    [DISABLED]
[wsetmod]           [Set active power mode.]                                                                      [W_MAX_PCT]
[wset]              [Active power setting value in watts.]                                                        [-1.00] = [-1 * (10**0)] using scale factor [wset_sf]
[wsetrvrt]          [Reversion active power setting value in watts.]                                              [NOT_IMPLEMENTED]
[wsetpct]           [Active power setting value as percent.]                                                      [-0.01] = [-1 * (10**-2)] using scale factor [wsetpct_sf]
[wsetpctrvrt]       [Reversion active power setting value as percent.]                                            [NOT_IMPLEMENTED]
[wsetenarvrt]       [Reversion active power function enable.]                                                     [NOT_IMPLEMENTED]
[wsetrvrttms]       [Set active power reversion time.]                                                            [NOT_IMPLEMENTED]
[wsetrvrtrem]       [Set active power reversion time remaining.]                                                  [NOT_IMPLEMENTED]
[varsetena]         [Set reactive power enable.]                                                                  [DISABLED]
[varsetmod]         [Set reactive power mode.]                                                                    [W_MAX_PCT]
[varsetpri]         [Reactive power priority.]                                                                    [NOT_IMPLEMENTED]
[varset]            [Reactive power setting value in vars.]                                                       [0]
[varsetrvrt]        [Reversion reactive power setting value in vars.]                                             [NOT_IMPLEMENTED]
[varsetpct]         [Reactive power setting value as percent.]                                                    [0]
[varsetpctrvrt]     [Reversion reactive power setting value as percent.]                                          [NOT_IMPLEMENTED]
[varsetenarvrt]     [Reversion reactive power function enable.]                                                   [NOT_IMPLEMENTED]
[varsetrvrttms]     [Set reactive power reversion time.]                                                          [NOT_IMPLEMENTED]
[varsetrvrtrem]     [Set reactive power reversion time remaining.]                                                [NOT_IMPLEMENTED]
[wrmp]              [Ramp rate for increases in active power during normal generation.]                           [NOT_IMPLEMENTED]
[wrmpref]           [Ramp rate reference unit for increases in active power or current during normal generation.] [NOT_IMPLEMENTED]
[varrmp]            [Ramp rate based on max reactive power per second.]                                           [NOT_IMPLEMENTED]
[antiislena]        [Anti-islanding enable.]                                                                      [NOT_IMPLEMENTED]
[pf_sf]             [Power factor scale factor.]                                                                  [-3]
[wmaxlimpct_sf]     [Limit maximum power scale factor.]                                                           [-2]
[wset_sf]           [Active power scale factor.]                                                                  [0]
[wsetpct_sf]        [Active power pct scale factor.]                                                              [-2]
[varset_sf]         [Reactive power scale factor.]                                                                [0]
[varsetpct_sf]      [Reactive power pct scale factor.]                                                            [-2]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [705]
[name]                                                                  [DERVoltVar]
[label]                                                                 [DER Volt-Var]
[description]                                                           [DER Volt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Var model ID.]                                  [705]
[l]           [DER Volt-Var model length.]                              [57]
[ena]         [Volt-Var control enable.]                                [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve var points.]                      [-2]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [706]
[name]                                                                  [DERVoltWatt]
[label]                                                                 [DER Volt-Watt]
[description]                                                           [DER Volt-Watt model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Watt model ID.]                                 [706]
[l]           [DER Volt-Watt model length.]                             [47]
[ena]         [Volt-Watt control enable.]                               [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve watt points.]                     [0]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [707]
[name]                                                                  [DERTripLV]
[label]                                                                 [DER Trip LV]
[description]                                                           [DER low voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low voltage trip model ID.]                          [707]
[l]           [DER low voltage trip model length.]                      [105]
[ena]         [DER low voltage trip control enable.]                    [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [708]
[name]                                                                  [DERTripHV]
[label]                                                                 [DER Trip HV]
[description]                                                           [DER high voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high voltage trip model ID.]                         [708]
[l]           [DER high voltage trip model length.]                     [105]
[ena]         [DER high voltage trip control enable.]                   [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [709]
[name]                                                                  [DERTripLF]
[label]                                                                 [DER Trip LF]
[description]                                                           [DER low frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low frequency trip model ID.]                        [709]
[l]           [DER low frequency trip model length.]                    [135]
[ena]         [DER low frequency trip control enable.]                  [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [710]
[name]                                                                  [DERTripHF]
[label]                                                                 [DER Trip HF]
[description]                                                           [DER high frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high frequency trip model ID.]                       [710]
[l]           [DER high frequency trip model length.]                   [135]
[ena]         [DER high frequency trip control enable.]                 [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                 [711]
[name]                                                               [DERFreqDroop]
[label]                                                              [DER Frequency Droop]
[description]                                                        [DER Frequency Droop model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Frequency Droop model ID.]                        [711]
[l]           [DER Frequency Droop model length.]                    [32]
[ena]         [DER Frequency-Watt (Frequency-Droop) control enable.] [DISABLED]
[adptctlreq]  [Set active control. 0 = No active control.]           [0]
[adptctlrslt] [Result of last set active control operation.]         [COMPLETED]
[nctl]        [Number of stored controls supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]   [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                 [NOT_IMPLEMENTED]
[rvrtctl]     [Default control after reversion timeout.]             [NOT_IMPLEMENTED]
[db_sf]       [Deadband scale factor.]                               [-3]
[k_sf]        [Frequency change scale factor.]                       [-3]
[rsptms_sf]   [Open loop response time scale factor.]                [-3]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                               [712]
[name]                                                             [DERWattVar]
[label]                                                            [DER Watt-Var]
[description]                                                      [DER Watt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Watt-Var model ID.]                             [712]
[l]           [DER Watt-Var model length.]                         [44]
[ena]         [DER Watt-Var control enable.]                       [DISABLED]
[adptcrvreq]  [Set active curve. 0 = No active curve.]             [0]
[adptcrvrslt] [Result of last set active curve operation.]         [COMPLETED]
[npt]         [Number of curve points supported.]                  [6]
[ncrv]        [Number of stored curves supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.] [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]               [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]             [NOT_IMPLEMENTED]
[w_sf]        [Scale factor for curve active power points.]        [-2]
[deptref_sf]  [Scale factor for curve var points.]                 [-2]

=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                              [713]
[name]                                                                            [DERStorageCapacity]
[label]                                                                           [DER Storage Capacity]
[description]                                                                     [DER storage capacity.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER storage capacity model ID.]                                    [713]
[l]           [DER storage capacity model length.]                                [7]
[whrtg]       [Energy rating of the DER storage.]                                 [NOT_IMPLEMENTED]
[whavail]     [Energy available of the DER storage (WHAvail = WHRtg * SoC * SoH)] [NOT_IMPLEMENTED]
[soc]         [State of charge of the DER storage.]                               [74.44] = [7444 * (10**-2)] using scale factor [pct_sf]
[soh]         [State of health of the DER storage.]                               [NOT_IMPLEMENTED]
[sta]         [Storage status.]                                                   [NOT_IMPLEMENTED]
[wh_sf]       [Scale factor for energy capacity.]                                 [-2]
[pct_sf]      [Scale factor for percentage.]                                      [-2]
I think I have the whole SunSpec stuff covered now.
Next is to make sure that the SolarEdge specifics are added to it.
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

@AddieJanssen: Glad the runs helped, if you need any more, or source codes, please give a shout
AddieJanssen
Posts: 50
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

New version of the scanner available

Post by AddieJanssen »

The scanner has been updated and is now using the code that I am planning to use for the Domoticz plugin.

The new version shows all recognized SunSpec information and it should fix the battery detection (the previous version had a nasty typo and was trying to read way too much info - and failed doing so).

The scanner depends on the models in the sunspec_models folder - these files were generated from the SunSpec models as published by the SunSpec Alliance: https://github.com/sunspec/models/tree/master/json. I have added the most common models. If we miss one, it's a 5 second action to add it. Just let me know.

For now: if you want to run the scanner: download everything from https://github.com/addiejanssen/solaredge-scanner , run the scanner.py and share the results here.
Please do not modify the scanner when you run into an error. Try to find out what is going wrong and share that information so I can fix it.

Enjoy!
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

ok, i forgot to download the sunspec files:

Code: Select all

hjz@debian:/opt/stacks/domoticz/config/plugins$ sudo docker exec -it domoticz python3 /opt/domoticz/userdata/plugins/scanner.py 192.168.2.186 1502
Connecting to server

 Connected to server

  Looking for SunSpec identifier at address [40000 (0x9c40)] for device [1]
  The inverter is providing a SunSpec Map

   Reading Block at address [40002 (0x9c42)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge ]
[md]          [Manufacturer specific value (32 chars)]                  [SE10K-RWB48BFN4]
[opt]         [Manufacturer specific value (16 chars)]                  []
[vr]          [Manufacturer specific value (16 chars)]                  [0004.0025.0013]
[sn]          [Manufacturer specific value (32 chars)]                  [7B0526DA]
[da]          [Modbus device address]                                   [1]


   Reading Block at address [40069 (0x9c85)] for device [1]
    Block id     = [103]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                 [103]
[name]                                               [inverter_three_phase]
[label]                                              [Inverter (Three Phase)]
[description]                                        [Include this model for three phase inverter monitoring]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                     [103]
[l]           [Model length]                         [50]
[a]           [AC Current]                           [2.41] = [241 * (10**-2)] using scale factor [a_sf]
[apha]        [Phase A Current]                      [0.81] = [81 * (10**-2)] using scale factor [a_sf]
[aphb]        [Phase B Current]                      [0.81] = [81 * (10**-2)] using scale factor [a_sf]
[aphc]        [Phase C Current]                      [0.79] = [79 * (10**-2)] using scale factor [a_sf]
[a_sf]        []                                     [-2]
[ppvphab]     [Phase Voltage AB]                     [400.90] = [4009 * (10**-1)] using scale factor [v_sf]
[ppvphbc]     [Phase Voltage BC]                     [403.10] = [4031 * (10**-1)] using scale factor [v_sf]
[ppvphca]     [Phase Voltage CA]                     [403.30] = [4033 * (10**-1)] using scale factor [v_sf]
[phvpha]      [Phase Voltage AN]                     [231.70] = [2317 * (10**-1)] using scale factor [v_sf]
[phvphb]      [Phase Voltage BN]                     [231.90] = [2319 * (10**-1)] using scale factor [v_sf]
[phvphc]      [Phase Voltage CN]                     [233.40] = [2334 * (10**-1)] using scale factor [v_sf]
[v_sf]        []                                     [-1]
[w]           [AC Power]                             [528.70] = [5287 * (10**-1)] using scale factor [w_sf]
[w_sf]        []                                     [-1]
[hz]          [Line Frequency]                       [50.00] = [5000 * (10**-2)] using scale factor [hz_sf]
[hz_sf]       []                                     [-2]
[va]          [AC Apparent Power]                    [562.40] = [5624 * (10**-1)] using scale factor [va_sf]
[va_sf]       []                                     [-1]
[var]         [AC Reactive Power]                    [-191.62] = [-19162 * (10**-2)] using scale factor [var_sf]
[var_sf]      []                                     [-2]
[pf]          [AC Power Factor]                      [-94.01] = [-9401 * (10**-2)] using scale factor [pf_sf]
[pf_sf]       []                                     [-2]
[wh]          [AC Energy]                            [49162168.00] = [49162168 * (10**0)] using scale factor [wh_sf]
[wh_sf]       []                                     [0]
[dca]         [DC Current]                           [0.65] = [6546 * (10**-4)] using scale factor [dca_sf]
[dca_sf]      []                                     [-4]
[dcv]         [DC Voltage]                           [820.00] = [8200 * (10**-1)] using scale factor [dcv_sf]
[dcv_sf]      []                                     [-1]
[dcw]         [DC Power]                             [536.80] = [5368 * (10**-1)] using scale factor [dcw_sf]
[dcw_sf]      []                                     [-1]
[tmpcab]      [Cabinet Temperature]                  [NOT_IMPLEMENTED]
[tmpsnk]      [Heat Sink Temperature]                [43.84] = [4384 * (10**-2)] using scale factor [tmp_sf]
[tmptrns]     [Transformer Temperature]              [NOT_IMPLEMENTED]
[tmpot]       [Other Temperature]                    [NOT_IMPLEMENTED]
[tmp_sf]      []                                     [-2]
[st]          [Enumerated value.  Operating state]   [MPPT]
[stvnd]       [Vendor specific operating state code] [0]
[evt1]        [Bitmask value. Event fields]          [NOT_IMPLEMENTED]
[evt2]        [Reserved for future use]              [NOT_IMPLEMENTED]
[evtvnd1]     [Vendor defined events]                [0]
[evtvnd2]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd3]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd4]     [Vendor defined events]                [0]


   Reading Block at address [40121 (0x9cb9)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge]
[md]          [Manufacturer specific value (32 chars)]                  [MTR-240-3PC1-D-A-MW]
[opt]         [Manufacturer specific value (16 chars)]                  [Export+Import]
[vr]          [Manufacturer specific value (16 chars)]                  [1.0.104]
[sn]          [Manufacturer specific value (32 chars)]                  [6401e4dd]
[da]          [Modbus device address]                                   [NOT_IMPLEMENTED]


   Reading Block at address [40188 (0x9cfc)] for device [1]
    Block id     = [203]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                      [203]
[name]                                                                    [ac_meter_abcn]
[label]                                                                   [wye-connect three phase (abcn) meter]
[description]                                                             []
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]              [Model identifier]                                      [203]
[l]               [Model length]                                          [105]
[a]               [Total AC Current]                                      [2.57] = [25689 * (10**-4)] using scale factor [a_sf]
[apha]            [Phase A Current]                                       [0.87] = [8702 * (10**-4)] using scale factor [a_sf]
[aphb]            [Phase B Current]                                       [0.73] = [7276 * (10**-4)] using scale factor [a_sf]
[aphc]            [Phase C Current]                                       [0.97] = [9710 * (10**-4)] using scale factor [a_sf]
[a_sf]            [Current scale factor]                                  [-4]
[phv]             [Line to Neutral AC Voltage (average of active phases)] [231.00] = [2310 * (10**-1)] using scale factor [v_sf]
[phvpha]          [Phase Voltage AN]                                      [231.00] = [2310 * (10**-1)] using scale factor [v_sf]
[phvphb]          [Phase Voltage BN]                                      [231.20] = [2312 * (10**-1)] using scale factor [v_sf]
[phvphc]          [Phase Voltage CN]                                      [233.10] = [2331 * (10**-1)] using scale factor [v_sf]
[ppv]             [Line to Line AC Voltage (average of active phases)]    [0]
[phvphab]         [Phase Voltage AB]                                      [400.10] = [4001 * (10**-1)] using scale factor [v_sf]
[phvphbc]         [Phase Voltage BC]                                      [401.80] = [4018 * (10**-1)] using scale factor [v_sf]
[phvphca]         [Phase Voltage CA]                                      [402.60] = [4026 * (10**-1)] using scale factor [v_sf]
[v_sf]            [Voltage scale factor]                                  [-1]
[hz]              [Frequency]                                             [50.00] = [5000 * (10**-2)] using scale factor [hz_sf]
[hz_sf]           [Frequency scale factor]                                [-2]
[w]               [Total Real Power]                                      [29.05] = [29052 * (10**-3)] using scale factor [w_sf]
[wpha]            []                                                      [3.23] = [3226 * (10**-3)] using scale factor [w_sf]
[wphb]            []                                                      [-20.87] = [-20872 * (10**-3)] using scale factor [w_sf]
[wphc]            []                                                      [-18.84] = [-18838 * (10**-3)] using scale factor [w_sf]
[w_sf]            [Real Power scale factor]                               [-3]
[va]              [AC Apparent Power]                                     [452.10] = [4521 * (10**-1)] using scale factor [va_sf]
[vapha]           []                                                      [191.30] = [1913 * (10**-1)] using scale factor [va_sf]
[vaphb]           []                                                      [142.30] = [1423 * (10**-1)] using scale factor [va_sf]
[vaphc]           []                                                      [193.40] = [1934 * (10**-1)] using scale factor [va_sf]
[va_sf]           [Apparent Power scale factor]                           [-1]
[var]             [Reactive Power]                                        [-451.20] = [-4512 * (10**-1)] using scale factor [var_sf]
[varpha]          []                                                      [-136.30] = [-1363 * (10**-1)] using scale factor [var_sf]
[varphb]          []                                                      [-140.70] = [-1407 * (10**-1)] using scale factor [var_sf]
[varphc]          []                                                      [-174.10] = [-1741 * (10**-1)] using scale factor [var_sf]
[var_sf]          [Reactive Power scale factor]                           [-1]
[pf]              [Power Factor]                                          [-8.66] = [-866 * (10**-2)] using scale factor [pf_sf]
[pfpha]           []                                                      [-58.20] = [-5820 * (10**-2)] using scale factor [pf_sf]
[pfphb]           []                                                      [-5.49] = [-549 * (10**-2)] using scale factor [pf_sf]
[pfphc]           []                                                      [37.70] = [3770 * (10**-2)] using scale factor [pf_sf]
[pf_sf]           [Power Factor scale factor]                             [-2]
[totwhexp]        [Total Real Energy Exported]                            [7294992.00] = [729499200 * (10**-2)] using scale factor [totwh_sf]
[totwhexppha]     []                                                      [6405301.50] = [640530150 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphb]     []                                                      [4226069.00] = [422606900 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphc]     []                                                      [2389644.75] = [238964475 * (10**-2)] using scale factor [totwh_sf]
[totwhimp]        [Total Real Energy Imported]                            [18811388.00] = [1881138800 * (10**-2)] using scale factor [totwh_sf]
[totwhimppha]     []                                                      [3816638.50] = [381663850 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphb]     []                                                      [6920969.00] = [692096900 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphc]     []                                                      [13799804.00] = [1379980400 * (10**-2)] using scale factor [totwh_sf]
[totwh_sf]        [Real Energy scale factor]                              [-2]
[totvahexp]       [Total Apparent Energy Exported]                        [0]
[totvahexppha]    []                                                      [0]
[totvahexpphb]    []                                                      [0]
[totvahexpphc]    []                                                      [0]
[totvahimp]       [Total Apparent Energy Imported]                        [0]
[totvahimppha]    []                                                      [0]
[totvahimpphb]    []                                                      [0]
[totvahimpphc]    []                                                      [0]
[totvah_sf]       [Apparent Energy scale factor]                          [NOT_IMPLEMENTED]
[totvarhimpq1]    [Total Reactive Energy Imported Quadrant 1]             [0]
[totvarhimpq1pha] []                                                      [0]
[totvarhimpq1phb] []                                                      [0]
[totvarhimpq1phc] []                                                      [0]
[totvarhimpq2]    [Total Reactive Power Imported Quadrant 2]              [0]
[totvarhimpq2pha] []                                                      [0]
[totvarhimpq2phb] []                                                      [0]
[totvarhimpq2phc] []                                                      [0]
[totvarhexpq3]    [Total Reactive Power Exported Quadrant 3]              [0]
[totvarhexpq3pha] []                                                      [0]
[totvarhexpq3phb] []                                                      [0]
[totvarhexpq3phc] []                                                      [0]
[totvarhexpq4]    [Total Reactive Power Exported Quadrant 4]              [0]
[totvarhexpq4pha] []                                                      [0]
[totvarhexpq4phb] []                                                      [0]
[totvarhexpq4phc] []                                                      [0]
[totvarh_sf]      [Reactive Energy scale factor]                          [NOT_IMPLEMENTED]
[evt]             [Meter Event Flags]                                     [0]


   Reading Block at address [40295 (0x9d67)] for device [1]
    Block id     = [701]
    Block length = [153]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                          [701]
[name]                                                                                                        [DERMeasureAC]
[label]                                                                                                       [DER AC Measurement]
[description]                                                                                                 [DER AC measurement model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]           [DER AC measurement model ID.]                                                                 [701]
[l]            [DER AC measurement model length.]                                                             [153]
[actype]       [AC wiring type.]                                                                              [THREE_PHASE]
[st]           [Operating state of the DER.]                                                                  [ON]
[invst]        [Enumerated value.  Inverter state.]                                                           [NOT_IMPLEMENTED]
[connst]       [Grid connection state of the DER.]                                                            [CONNECTED]
[alrm]         [Active alarms for the DER.]                                                                   [0]
[dermode]      [Current operational characteristics of the DER.]                                              [NOT_IMPLEMENTED]
[w]            [Total active power. Active power is positive for DER generation and negative for absorption.] [530.00] = [53 * (10**1)] using scale factor [w_sf]
[va]           [Total apparent power.]                                                                        [560.00] = [56 * (10**1)] using scale factor [va_sf]
[var]          [Total reactive power.]                                                                        [-190.00] = [-19 * (10**1)] using scale factor [var_sf]
[pf]           [Power factor. The sign of power factor should be the sign of active power.]                   [0.93] = [93 * (10**-2)] using scale factor [pf_sf]
[a]            [Total AC current.]                                                                            [NOT_IMPLEMENTED]
[llv]          [Line to line AC voltage as an average of active phases.]                                      [401.30] = [4013 * (10**-1)] using scale factor [v_sf]
[lnv]          [Line to neutral AC voltage as an average of active phases.]                                   [231.70] = [2317 * (10**-1)] using scale factor [v_sf]
[hz]           [AC frequency.]                                                                                [50.01] = [50009 * (10**-3)] using scale factor [hz_sf]
[totwhinj]     [Total active energy injected (Quadrants 1 & 4).]                                              [NOT_IMPLEMENTED]
[totwhabs]     [Total active energy absorbed (Quadrants 2 & 3).]                                              [NOT_IMPLEMENTED]
[totvarhinj]   [Total reactive energy injected (Quadrants 1 & 2).]                                            [NOT_IMPLEMENTED]
[totvarhabs]   [Total reactive energy absorbed (Quadrants 3 & 4).]                                            [NOT_IMPLEMENTED]
[tmpamb]       [Ambient temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpcab]       [Cabinet temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpsnk]       [Heat sink temperature.]                                                                       [NOT_IMPLEMENTED]
[tmptrns]      [Transformer temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpsw]        [IGBT/MOSFET temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpot]        [Other temperature.]                                                                           [NOT_IMPLEMENTED]
[wl1]          [Active power L1.]                                                                             [NOT_IMPLEMENTED]
[val1]         [Apparent power L1.]                                                                           [NOT_IMPLEMENTED]
[varl1]        [Reactive power L1.]                                                                           [NOT_IMPLEMENTED]
[pfl1]         [Power factor phase L1.]                                                                       [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al1]          [Current phase L1.]                                                                            [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl1l2]        [Phase voltage L1-L2.]                                                                         [NOT_IMPLEMENTED]
[vl1]          [Phase voltage L1-N.]                                                                          [231.70] = [2317 * (10**-1)] using scale factor [v_sf]
[totwhinjl1]   [Total active energy injected L1.]                                                             [NOT_IMPLEMENTED]
[totwhabsl1]   [Total active energy absorbed L1.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl1] [Total reactive energy injected L1.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl1] [Total reactive energy absorbed L1.]                                                           [NOT_IMPLEMENTED]
[wl2]          [Active power L2.]                                                                             [NOT_IMPLEMENTED]
[val2]         [Apparent power L2.]                                                                           [NOT_IMPLEMENTED]
[varl2]        [Reactive power L2.]                                                                           [NOT_IMPLEMENTED]
[pfl2]         [Power factor L2.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al2]          [Current L2.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl2l3]        [Phase voltage L2-L3.]                                                                         [NOT_IMPLEMENTED]
[vl2]          [Phase voltage L2-N.]                                                                          [231.80] = [2318 * (10**-1)] using scale factor [v_sf]
[totwhinjl2]   [Total active energy injected L2.]                                                             [NOT_IMPLEMENTED]
[totwhabsl2]   [Total active energy absorbed L2.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl2] [Total reactive energy injected L2.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl2] [Total reactive energy absorbed L2.]                                                           [NOT_IMPLEMENTED]
[wl3]          [Active power L3.]                                                                             [NOT_IMPLEMENTED]
[val3]         [Apparent power L3.]                                                                           [NOT_IMPLEMENTED]
[varl3]        [Reactive power L3.]                                                                           [NOT_IMPLEMENTED]
[pfl3]         [Power factor L3.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al3]          [Current L3.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl3l1]        [Phase voltage L3-L1.]                                                                         [NOT_IMPLEMENTED]
[vl3]          [Phase voltage L3-N.]                                                                          [233.80] = [2338 * (10**-1)] using scale factor [v_sf]
[totwhinjl3]   [Total active energy injected L3.]                                                             [NOT_IMPLEMENTED]
[totwhabsl3]   [Total active energy absorbed L3.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl3] [Total reactive energy injected L3.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl3] [Total reactive energy absorbed L3.]                                                           [NOT_IMPLEMENTED]
[throtpct]     [Throttling in pct of maximum active power.]                                                   [NOT_IMPLEMENTED]
[throtsrc]     [Active throttling source.]                                                                    [NOT_IMPLEMENTED]
[a_sf]         [Current scale factor.]                                                                        [0]
[v_sf]         [Voltage scale factor.]                                                                        [-1]
[hz_sf]        [Frequency scale factor.]                                                                      [-3]
[w_sf]         [Active power scale factor.]                                                                   [1]
[pf_sf]        [Power factor scale factor.]                                                                   [-2]
[va_sf]        [Apparent power scale factor.]                                                                 [1]
[var_sf]       [Reactive power scale factor.]                                                                 [1]
[totwh_sf]     [Active energy scale factor.]                                                                  [0]
[totvarh_sf]   [Reactive energy scale factor.]                                                                [0]
[tmp_sf]       [Temperature scale factor.]                                                                    [0]
[mnalrminfo]   [Manufacturer alarm information. Valid if MANUFACTURER_ALRM indication is active.]             []


   Reading Block at address [40450 (0x9e02)] for device [1]
    Block id     = [702]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                                             [702]
[name]                                                                                                                           [DERCapacity]
[label]                                                                                                                          [DER Capacity]
[description]                                                                                                                    [DER capacity model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER capacity model ID.]                                                                                     [702]
[l]                 [DER capacity model length.]                                                                                 [50]
[wmaxrtg]           [Maximum active power rating at unity power factor in watts.]                                                [10600.00] = [10600 * (10**0)] using scale factor [w_sf]
[wovrextrtg]        [Active power rating at specified over-excited power factor in watts.]                                       [8480.00] = [8480 * (10**0)] using scale factor [w_sf]
[wovrextrtgpf]      [Specified over-excited power factor.]                                                                       [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[wundextrtg]        [Active power rating at specified under-excited power factor in watts.]                                      [8480.00] = [8480 * (10**0)] using scale factor [w_sf]
[wundextrtgpf]      [Specified under-excited power factor.]                                                                      [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[vamaxrtg]          [Maximum apparent power rating in voltamperes.]                                                              [10600.00] = [10600 * (10**0)] using scale factor [va_sf]
[varmaxinjrtg]      [Maximum injected reactive power rating in vars.]                                                            [6360.00] = [6360 * (10**0)] using scale factor [var_sf]
[varmaxabsrtg]      [Maximum absorbed reactive power rating in vars.]                                                            [6360.00] = [6360 * (10**0)] using scale factor [var_sf]
[wchartemaxrtg]     [Maximum active power charge rate in watts.]                                                                 [NOT_IMPLEMENTED]
[wdischartemaxrtg]  [Maximum active power discharge rate in watts.]                                                              [NOT_IMPLEMENTED]
[vachartemaxrtg]    [Maximum apparent power charge rate in voltamperes.]                                                         [NOT_IMPLEMENTED]
[vadischartemaxrtg] [Maximum apparent power discharge rate in voltamperes.]                                                      [NOT_IMPLEMENTED]
[vnomrtg]           [AC voltage nominal rating.]                                                                                 [230.00] = [2300 * (10**-1)] using scale factor [v_sf]
[vmaxrtg]           [AC voltage maximum rating.]                                                                                 [253.00] = [2530 * (10**-1)] using scale factor [v_sf]
[vminrtg]           [AC voltage minimum rating.]                                                                                 [202.40] = [2024 * (10**-1)] using scale factor [v_sf]
[amaxrtg]           [AC current maximum rating in amps.]                                                                         [NOT_IMPLEMENTED]
[pfovrextrtg]       [Unused. Please use WOvrExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[pfundextrtg]       [Unused. Please use WUndExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[reactsusceptrtg]   [Reactive susceptance that remains connected to the Area EPS in the cease to energize and trip state.]       [0]
[noropcatrtg]       [Normal operating performance category as specified in IEEE 1547-2018.]                                      [CAT_B]
[abnopcatrtg]       [Abnormal operating performance category as specified in IEEE 1547-2018.]                                    [CAT_3]
[ctrlmodes]         [Supported control mode functions.]                                                                          [4294965247]
[intislandcatrtg]   [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[wmax]              [Maximum active power setting used to adjust maximum active power setting.]                                  [NOT_IMPLEMENTED]
[wmaxovrext]        [Active power setting at specified over-excited power factor in watts.]                                      [NOT_IMPLEMENTED]
[wovrextpf]         [Specified over-excited power factor.]                                                                       [NOT_IMPLEMENTED]
[wmaxundext]        [Active power setting at specified under-excited power factor in watts.]                                     [NOT_IMPLEMENTED]
[wundextpf]         [Specified under-excited power factor.]                                                                      [NOT_IMPLEMENTED]
[vamax]             [Maximum apparent power setting used to adjust maximum apparent power rating.]                               [NOT_IMPLEMENTED]
[varmaxinj]         [Maximum injected reactive power setting used to adjust maximum injected reactive power rating.]             [NOT_IMPLEMENTED]
[varmaxabs]         [Maximum absorbed reactive power setting used to adjust maximum absorbed reactive power rating.]             [NOT_IMPLEMENTED]
[wchartemax]        [Maximum active power charge rate setting used to adjust maximum active power charge rate rating.]           [NOT_IMPLEMENTED]
[wdischartemax]     [Maximum active power discharge rate setting used to adjust maximum active power discharge rate rating.]     [NOT_IMPLEMENTED]
[vachartemax]       [Maximum apparent power charge rate setting used to adjust maximum apparent power charge rate rating.]       [NOT_IMPLEMENTED]
[vadischartemax]    [Maximum apparent power discharge rate setting used to adjust maximum apparent power discharge rate rating.] [NOT_IMPLEMENTED]
[vnom]              [Nominal AC voltage setting.]                                                                                [NOT_IMPLEMENTED]
[vmax]              [AC voltage maximum setting used to adjust AC voltage maximum rating.]                                       [NOT_IMPLEMENTED]
[vmin]              [AC voltage minimum setting used to adjust AC voltage minimum rating.]                                       [NOT_IMPLEMENTED]
[amax]              [Maximum AC current setting used to adjust maximum AC current rating.]                                       [NOT_IMPLEMENTED]
[pfovrext]          [Unused. Please use WOvrExtPF.]                                                                              [NOT_IMPLEMENTED]
[pfundext]          [Unused. Please use WUndExtPF.]                                                                              [NOT_IMPLEMENTED]
[intislandcat]      [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[w_sf]              [Active power scale factor.]                                                                                 [0]
[pf_sf]             [Power factor scale factor.]                                                                                 [-2]
[va_sf]             [Apparent power scale factor.]                                                                               [0]
[var_sf]            [Reactive power scale factor.]                                                                               [0]
[v_sf]              [Voltage scale factor.]                                                                                      [-1]
[a_sf]              [Current scale factor.]                                                                                      [0]
[s_sf]              [Susceptance scale factor.]                                                                                  [0]


   Reading Block at address [40502 (0x9e36)] for device [1]
    Block id     = [703]
    Block length = [17]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                               [703]
[name]                                                                             [DEREnterService]
[label]                                                                            [Enter Service]
[description]                                                                      [Enter service model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Enter service model ID.]                                            [703]
[l]           [Enter service model length.]                                        [17]
[es]          [Permit enter service.]                                              [ENABLED]
[esvhi]       [Enter service voltage high threshold as percent of normal voltage.] [110.00] = [11000 * (10**-2)] using scale factor [v_sf]
[esvlo]       [Enter service voltage low threshold as percent of normal voltage.]  [90.00] = [9000 * (10**-2)] using scale factor [v_sf]
[eshzhi]      [Enter service frequency high threshold.]                            [50.10] = [50100 * (10**-3)] using scale factor [hz_sf]
[eshzlo]      [Enter service frequency low threshold.]                             [49.90] = [49900 * (10**-3)] using scale factor [hz_sf]
[esdlytms]    [Enter service delay time in seconds.]                               [60]
[esrndtms]    [Enter service random delay in seconds.]                             [0]
[esrmptms]    [Enter service ramp time in seconds.]                                [300]
[esdlyremtms] [Enter service delay time remaining in seconds.]                     [NOT_IMPLEMENTED]
[v_sf]        [Voltage percentage scale factor.]                                   [-2]
[hz_sf]       [Frequency scale factor.]                                            [-3]


   Reading Block at address [40521 (0x9e49)] for device [1]
    Block id     = [704]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                              [704]
[name]                                                                                                            [DERCtlAC]
[label]                                                                                                           [DER AC Controls]
[description]                                                                                                     [DER AC controls model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER AC controls model ID.]                                                                   [704]
[l]                 [DER AC controls model length.]                                                               [65]
[pfwinjena]         [Power factor enable when injecting active power.]                                            [DISABLED]
[pfwinjenarvrt]     [Power factor reversion timer when injecting active power enable.]                            [NOT_IMPLEMENTED]
[pfwinjrvrttms]     [Power factor reversion timer when injecting active power.]                                   [NOT_IMPLEMENTED]
[pfwinjrvrtrem]     [Power factor reversion time remaining when injecting active power.]                          [NOT_IMPLEMENTED]
[pfwabsena]         [Power factor enable when absorbing active power.]                                            [NOT_IMPLEMENTED]
[pfwabsenarvrt]     [Power factor reversion timer when absorbing active power enable.]                            [NOT_IMPLEMENTED]
[pfwabsrvrttms]     [Power factor reversion timer when absorbing active power.]                                   [NOT_IMPLEMENTED]
[pfwabsrvrtrem]     [Power factor reversion time remaining when absorbing active power.]                          [NOT_IMPLEMENTED]
[wmaxlimpctena]     [Limit maximum active power percent enable.]                                                  [DISABLED]
[wmaxlimpct]        [Limit maximum active power percent value.]                                                   [NOT_IMPLEMENTED]
[wmaxlimpctrvrt]    [Reversion limit maximum active power percent value.]                                         [NOT_IMPLEMENTED]
[wmaxlimpctenarvrt] [Reversion limit maximum active power percent value enable.]                                  [NOT_IMPLEMENTED]
[wmaxlimpctrvrttms] [Limit maximum active power percent reversion time.]                                          [NOT_IMPLEMENTED]
[wmaxlimpctrvrtrem] [Limit maximum active power percent reversion time remaining.]                                [NOT_IMPLEMENTED]
[wsetena]           [Set active power enable.]                                                                    [DISABLED]
[wsetmod]           [Set active power mode.]                                                                      [W_MAX_PCT]
[wset]              [Active power setting value in watts.]                                                        [-1.00] = [-1 * (10**0)] using scale factor [wset_sf]
[wsetrvrt]          [Reversion active power setting value in watts.]                                              [NOT_IMPLEMENTED]
[wsetpct]           [Active power setting value as percent.]                                                      [-0.01] = [-1 * (10**-2)] using scale factor [wsetpct_sf]
[wsetpctrvrt]       [Reversion active power setting value as percent.]                                            [NOT_IMPLEMENTED]
[wsetenarvrt]       [Reversion active power function enable.]                                                     [NOT_IMPLEMENTED]
[wsetrvrttms]       [Set active power reversion time.]                                                            [NOT_IMPLEMENTED]
[wsetrvrtrem]       [Set active power reversion time remaining.]                                                  [NOT_IMPLEMENTED]
[varsetena]         [Set reactive power enable.]                                                                  [DISABLED]
[varsetmod]         [Set reactive power mode.]                                                                    [W_MAX_PCT]
[varsetpri]         [Reactive power priority.]                                                                    [NOT_IMPLEMENTED]
[varset]            [Reactive power setting value in vars.]                                                       [0]
[varsetrvrt]        [Reversion reactive power setting value in vars.]                                             [NOT_IMPLEMENTED]
[varsetpct]         [Reactive power setting value as percent.]                                                    [0]
[varsetpctrvrt]     [Reversion reactive power setting value as percent.]                                          [NOT_IMPLEMENTED]
[varsetenarvrt]     [Reversion reactive power function enable.]                                                   [NOT_IMPLEMENTED]
[varsetrvrttms]     [Set reactive power reversion time.]                                                          [NOT_IMPLEMENTED]
[varsetrvrtrem]     [Set reactive power reversion time remaining.]                                                [NOT_IMPLEMENTED]
[wrmp]              [Ramp rate for increases in active power during normal generation.]                           [NOT_IMPLEMENTED]
[wrmpref]           [Ramp rate reference unit for increases in active power or current during normal generation.] [NOT_IMPLEMENTED]
[varrmp]            [Ramp rate based on max reactive power per second.]                                           [NOT_IMPLEMENTED]
[antiislena]        [Anti-islanding enable.]                                                                      [NOT_IMPLEMENTED]
[pf_sf]             [Power factor scale factor.]                                                                  [-3]
[wmaxlimpct_sf]     [Limit maximum power scale factor.]                                                           [-2]
[wset_sf]           [Active power scale factor.]                                                                  [0]
[wsetpct_sf]        [Active power pct scale factor.]                                                              [-2]
[varset_sf]         [Reactive power scale factor.]                                                                [0]
[varsetpct_sf]      [Reactive power pct scale factor.]                                                            [-2]


   Reading Block at address [40588 (0x9e8c)] for device [1]
    Block id     = [705]
    Block length = [57]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [705]
[name]                                                                  [DERVoltVar]
[label]                                                                 [DER Volt-Var]
[description]                                                           [DER Volt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Var model ID.]                                  [705]
[l]           [DER Volt-Var model length.]                              [57]
[ena]         [Volt-Var control enable.]                                [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve var points.]                      [-2]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40647 (0x9ec7)] for device [1]
    Block id     = [706]
    Block length = [47]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [706]
[name]                                                                  [DERVoltWatt]
[label]                                                                 [DER Volt-Watt]
[description]                                                           [DER Volt-Watt model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Watt model ID.]                                 [706]
[l]           [DER Volt-Watt model length.]                             [47]
[ena]         [Volt-Watt control enable.]                               [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve watt points.]                     [0]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40696 (0x9ef8)] for device [1]
    Block id     = [707]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [707]
[name]                                                                  [DERTripLV]
[label]                                                                 [DER Trip LV]
[description]                                                           [DER low voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low voltage trip model ID.]                          [707]
[l]           [DER low voltage trip model length.]                      [105]
[ena]         [DER low voltage trip control enable.]                    [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40803 (0x9f63)] for device [1]
    Block id     = [708]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [708]
[name]                                                                  [DERTripHV]
[label]                                                                 [DER Trip HV]
[description]                                                           [DER high voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high voltage trip model ID.]                         [708]
[l]           [DER high voltage trip model length.]                     [105]
[ena]         [DER high voltage trip control enable.]                   [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40910 (0x9fce)] for device [1]
    Block id     = [709]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [709]
[name]                                                                  [DERTripLF]
[label]                                                                 [DER Trip LF]
[description]                                                           [DER low frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low frequency trip model ID.]                        [709]
[l]           [DER low frequency trip model length.]                    [135]
[ena]         [DER low frequency trip control enable.]                  [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41047 (0xa057)] for device [1]
    Block id     = [710]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [710]
[name]                                                                  [DERTripHF]
[label]                                                                 [DER Trip HF]
[description]                                                           [DER high frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high frequency trip model ID.]                       [710]
[l]           [DER high frequency trip model length.]                   [135]
[ena]         [DER high frequency trip control enable.]                 [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41184 (0xa0e0)] for device [1]
    Block id     = [711]
    Block length = [32]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                 [711]
[name]                                                               [DERFreqDroop]
[label]                                                              [DER Frequency Droop]
[description]                                                        [DER Frequency Droop model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Frequency Droop model ID.]                        [711]
[l]           [DER Frequency Droop model length.]                    [32]
[ena]         [DER Frequency-Watt (Frequency-Droop) control enable.] [DISABLED]
[adptctlreq]  [Set active control. 0 = No active control.]           [0]
[adptctlrslt] [Result of last set active control operation.]         [COMPLETED]
[nctl]        [Number of stored controls supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]   [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                 [NOT_IMPLEMENTED]
[rvrtctl]     [Default control after reversion timeout.]             [NOT_IMPLEMENTED]
[db_sf]       [Deadband scale factor.]                               [-3]
[k_sf]        [Frequency change scale factor.]                       [-3]
[rsptms_sf]   [Open loop response time scale factor.]                [-3]


   Reading Block at address [41218 (0xa102)] for device [1]
    Block id     = [712]
    Block length = [44]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                               [712]
[name]                                                             [DERWattVar]
[label]                                                            [DER Watt-Var]
[description]                                                      [DER Watt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Watt-Var model ID.]                             [712]
[l]           [DER Watt-Var model length.]                         [44]
[ena]         [DER Watt-Var control enable.]                       [DISABLED]
[adptcrvreq]  [Set active curve. 0 = No active curve.]             [0]
[adptcrvrslt] [Result of last set active curve operation.]         [COMPLETED]
[npt]         [Number of curve points supported.]                  [6]
[ncrv]        [Number of stored curves supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.] [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]               [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]             [NOT_IMPLEMENTED]
[w_sf]        [Scale factor for curve active power points.]        [-2]
[deptref_sf]  [Scale factor for curve var points.]                 [-2]


   Reading Block at address [41264 (0xa130)] for device [1]
    Block id     = [713]
    Block length = [7]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                              [713]
[name]                                                                            [DERStorageCapacity]
[label]                                                                           [DER Storage Capacity]
[description]                                                                     [DER storage capacity.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER storage capacity model ID.]                                    [713]
[l]           [DER storage capacity model length.]                                [7]
[whrtg]       [Energy rating of the DER storage.]                                 [NOT_IMPLEMENTED]
[whavail]     [Energy available of the DER storage (WHAvail = WHRtg * SoC * SoH)] [NOT_IMPLEMENTED]
[soc]         [State of charge of the DER storage.]                               [64.44] = [6444 * (10**-2)] using scale factor [pct_sf]
[soh]         [State of health of the DER storage.]                               [NOT_IMPLEMENTED]
[sta]         [Storage status.]                                                   [NOT_IMPLEMENTED]
[wh_sf]       [Scale factor for energy capacity.]                                 [-2]
[pct_sf]      [Scale factor for percentage.]                                      [-2]


   Reading Block at address [41273 (0xa139)] for device [1]
    Block id     = [65535]
    Block length = [0]
    Block type   = [The End of the block list has been reached]

  End of SunSpec MAP

  Looking for Battery at address [57600 (0xe100)] for device [1]

     Manufacturer     [SolarEdge]
     Model            [Home Battery 48V - 5 modules]
     Firmware Version [48V DCDC 3.5.13]
     Device id        [112]
No response received after 3 retries, continue with next request
Received ModbusException(Modbus Error: [Input/Output] No response received after 3 retries, continue with next request) from library
     Registers        [None]

  Looking for Battery at address [57856 (0xe200)] for device [1]
   No battery found at this address

Disconnected from server
Last edited by hjzwiers on Wednesday 07 October 2026 19:24, edited 1 time in total.
AddieJanssen
Posts: 50
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

Still not reading the battery info. That's annoying....
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

Testing with scanner.py had the following result:
SolarEdge scanner detects my battery correctly, but the subsequent battery register dump fails.

Inverter: SE10K-RWB48BFN4, firmware 0004.0025.0013
Battery: SolarEdge Home Battery 48V - 5 modules, firmware 48V DCDC 3.5.13, device ID 112.

The scanner's 66-register read at 57600 succeeds and correctly detects the battery.

The following 154-register read at 57600 fails with No response received after 3 retries.

Direct Modbus tests confirm that 66 registers succeeds, while 80 registers already causes the inverter to stop responding.

Individual reads of the battery identification areas succeed, including 57600, 57616, 57632, 57648 and 57664.

Therefore the battery is accessible; the problem appears to be the size of the contiguous register read in process_battery().

The solution lays in changing process battery
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

I made a fix to the scanner, scanner_fixed.py with an adapted process_battery(), but the output is just too long. Here it is you can run it!

Code: Select all

#!/usr/bin/env python3
"""
Scan SolarEdge inverters for a SunSpec Map and attached batteries.
Then print information about what was (and was not) found.

usage: scanner.py [-h] [--device-id [1-255]] host port

positional arguments:
  host                 modbus TCP address
  port                 modbus TCP port

options:
  -h, --help           show this help message and exit
  --device-id [1-255]  modbus device address (default: 1)
"""

import argparse

from pymodbus import ModbusException
from pymodbus.client import ModbusTcpClient
from pymodbus.pdu import ModbusPDU

import sunspec_models


def modbus_read(client: ModbusTcpClient, device_id: int, address: int, count: int) -> list[int]:
    """Read one or more holding registers from a Modbus server"""
    result: list[int] = []
    start: int = address
    end: int = address + count
    read_now: int

    # read_holding_registers only allows 125 registers in one go
    # we need to loop if we have more to read than that

    while start < end:
        if end - start > 125:
            read_now = 125
        else:
            read_now = end - start

        try:
            if not client.connected:
                print("Reconnecting to server")
                client.connect()

            rr: ModbusPDU = client.read_holding_registers(
                address=start,
                count=read_now,
                device_id=device_id
            )
        except ModbusException as exc:
            print(f"Received ModbusException({exc}) from library")
            return []

        if rr.isError():
            print(f"Received exception from device ({rr})")
            return []

        if len(rr.registers) != read_now:
            print(f"expected [{read_now}] got [{len(rr.registers)}]")

        start += read_now
        result.extend(rr.registers)

    return result


def get_value(
    registers: list[int],
    offset: int,
    count: int,
    data_type: ModbusTcpClient.DATATYPE
) -> int | float | str | list[bool] | list[int] | list[float]:
    """Extract the value from a list of Modbus registers"""
    return ModbusTcpClient.convert_from_registers(
        registers=registers[offset: offset + count],
        data_type=data_type
    )


def sunspec_found(client: ModbusTcpClient, device_id: int, address: int) -> bool:
    """Report if the SunSpec identifier was found at a specific address"""
    print(
        f"  Looking for SunSpec identifier at address "
        f"[{address} ({hex(address)})] for device [{device_id}]"
    )

    registers: list[int] = modbus_read(
        client=client,
        device_id=device_id,
        address=address,
        count=2
    )

    identifier: str = get_value(
        registers=registers,
        offset=0,
        count=2,
        data_type=ModbusTcpClient.DATATYPE.STRING
    )  # type: ignore

    return identifier == "SunS"


def process_sunspec_block(
    client: ModbusTcpClient,
    device_id: int,
    block_address: int
) -> int:
    """
    Read a set of holding registers from a Modbus server.
    Then identify the SunSpec Model found and print the contents of that block.
    """
    print()
    print(
        f"   Reading Block at address "
        f"[{block_address} ({hex(block_address)})] for device [{device_id}]"
    )

    next_address: int = -1
    block_length: int = -1

    registers: list[int] = modbus_read(
        client=client,
        device_id=device_id,
        address=block_address,
        count=2
    )

    if registers:
        next_address = block_address + 2

        block_id: int = get_value(
            registers=registers,
            offset=0,
            count=1,
            data_type=ModbusTcpClient.DATATYPE.UINT16
        )  # type: ignore

        block_length: int = get_value(
            registers=registers,
            offset=1,
            count=1,
            data_type=ModbusTcpClient.DATATYPE.UINT16
        )  # type: ignore

        print(f"    Block id     = [{block_id}]")
        print(f"    Block length = [{block_length}]")

        if block_id == sunspec_models.SunSpecNotImplemented.UINT16:
            print("    Block type   = [The End of the block list has been reached]")
            next_address = -1
        else:
            registers = modbus_read(
                client=client,
                device_id=device_id,
                address=block_address,
                count=block_length + 2
            )

            if registers:
                model = sunspec_models.get_model(registers=registers)

                if model:
                    model.display(registers=registers)  # type: ignore
                else:
                    print(f"    Model not found = {registers}")
            else:
                print("    Registers     = [None]")
    else:
        print("    Registers     = [None]")

    if next_address >= 0 and block_length > 0:
        return next_address + block_length
    else:
        return -1


def process_battery(
    client: ModbusTcpClient,
    device_id: int,
    address: int
) -> None:
    """
    Read and identify a SolarEdge battery.

    SolarEdge inverters may not respond to large Modbus requests.
    The battery register area is therefore read in chunks of 66 registers.
    """

    print(
        f"  Looking for Battery at address "
        f"[{address} ({hex(address)})] for device [{device_id}]"
    )

    # First read: battery identification area.
    # This 66-register request has been verified to work.
    registers: list[int] = modbus_read(
        client=client,
        device_id=device_id,
        address=address,
        count=66
    )

    if not registers:
        print("     Registers        [None]")
        print()
        return

    battery_device_id: int = get_value(
        registers=registers,
        offset=64,
        count=1,
        data_type=ModbusTcpClient.DATATYPE.UINT16
    )  # type: ignore

    if battery_device_id == 255 or registers[0] == 0:
        print("   No battery found at this address")
        print()
        return

    manufacturer: str = get_value(
        registers=registers,
        offset=0,
        count=16,
        data_type=ModbusTcpClient.DATATYPE.STRING
    )  # type: ignore

    model: str = get_value(
        registers=registers,
        offset=16,
        count=16,
        data_type=ModbusTcpClient.DATATYPE.STRING
    )  # type: ignore

    firmware_version: str = get_value(
        registers=registers,
        offset=32,
        count=16,
        data_type=ModbusTcpClient.DATATYPE.STRING
    )  # type: ignore

    print()
    print(f"     Manufacturer     [{manufacturer}]")
    print(f"     Model            [{model}]")
    print(f"     Firmware Version [{firmware_version}]")
    print(f"     Device id        [{battery_device_id}]")

    # The original scanner requested 154 registers in one request.
    # This inverter does not respond to requests that large.
    #
    # Read the same 154-register battery area in chunks that are known
    # to be accepted by this SolarEdge inverter:
    #
    #   57600 + 66  -> OK
    #   57666 + 66  -> OK
    #   57732 + 22  -> OK
    #
    # For a second battery, the same relative addressing is used from
    # its supplied base address.

    total_registers = 154
    chunk_size = 66

    all_registers = registers[:]
    offset = 66

    while offset < total_registers:
        count = min(chunk_size, total_registers - offset)

        chunk = modbus_read(
            client=client,
            device_id=device_id,
            address=address + offset,
            count=count
        )

        if not chunk:
            print(
                f"     Registers        [None - read failed at "
                f"address {address + offset} ({hex(address + offset)})]"
            )
            print()
            return

        all_registers.extend(chunk)
        offset += count

    print(f"     Registers        {all_registers}")
    print()


if __name__ == "__main__":
    argparser = argparse.ArgumentParser()
    argparser.add_argument("host", type=str, help="modbus TCP address")
    argparser.add_argument("port", type=int, help="modbus TCP port")
    argparser.add_argument(
        "--device-id",
        type=int,
        choices=range(1, 256),
        default=1,
        metavar="[1-255]",
        help="modbus device address (default: 1)"
    )

    args: argparse.Namespace = argparser.parse_args()

    client = ModbusTcpClient(host=args.host, port=args.port)

    print("Connecting to server")
    client.connect()

    if client.connected:
        print()
        print(" Connected to server")
        print()

        if sunspec_found(
            client=client,
            device_id=args.device_id,
            address=40000
        ):
            print("  The inverter is providing a SunSpec Map")

            address: int = 40002

            while address > 0 and client.connected:
                address = process_sunspec_block(
                    client=client,
                    device_id=args.device_id,
                    block_address=address
                )

            print()
            print("  End of SunSpec MAP")
        else:
            print("  The inverter is NOT providing a SunSpec Map")

        print()

        process_battery(
            client=client,
            device_id=args.device_id,
            address=57600
        )

        process_battery(
            client=client,
            device_id=args.device_id,
            address=57856
        )

    if client.connected:
        client.close()
        print("Disconnected from server")
    else:
        print("Already disconnected from server")
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

I also made a battery_detector.py

Code: Select all

hjz@debian:/opt/stacks/domoticz/config/plugins$ sudo docker exec -it domoticz python3 /opt/domoticz/userdata/plugins/battery_decoder.py 192.168.2.186 1502
Connecting to SolarEdge inverter
  Host     : 192.168.2.186
  Port     : 1502
  Device ID: 1
Connected.

======================================================================================
BATTERY BLOCK 0xE100 (57600)
======================================================================================
Identification:
  0xE100 (57600)  Manufacturer                     = SolarEdge
  0xE110 (57616)  Model                            = Home Battery 48V - 5 modules
  0xE120 (57632)  Firmware                         = 48V DCDC 3.5.13
  0xE130 (57648)  Serial number                    = 7B0526DA
  0xE140 (57664)  Device ID                        = 112
  0xE141 (57665)  Reserved                         = 0

Battery capabilities:
  0xE142 (57666)  Rated energy                     = 23000.0 Wh
                              raw = [45056, 18099]
  0xE144 (57668)  Max continuous charge power      = 5000.0 W
                              raw = [16384, 17820]
  0xE146 (57670)  Max continuous discharge power   = 5000.0 W
                              raw = [16384, 17820]
  0xE148 (57672)  Max peak charge power            = 5000.0 W
                              raw = [16384, 17820]
  0xE14A (57674)  Max peak discharge power         = 5000.0 W
                              raw = [16384, 17820]

Live battery measurements:
  0xE16C (57708)  Average temperature              = 25.0 °C
                              raw = [0, 16840]
  0xE16E (57710)  Maximum temperature              = 0.0 °C
                              raw = [0, 0]
  0xE170 (57712)  Battery voltage                  = 821.057 V [OUTSIDE EXPECTED 48V BATTERY RANGE]
                              raw = [17326, 17485]
  0xE172 (57714)  Battery current                  = 1.015 A
                              raw = [60789, 16257]
  0xE174 (57716)  Battery power                    = 834.0 W DISCHARGING
                              raw = [32768, 50256]
  0xE176 (57718)  Lifetime discharged energy       = 1404 Wh
                              raw = [1404, 0, 0, 0]
  0xE17A (57722)  Lifetime charged energy          = 83 Wh
                              raw = [83, 0, 0, 0]
  0xE17E (57726)  Maximum energy                   = 23000.0 Wh
                              raw = [45056, 18099]
  0xE180 (57728)  Available energy                 = 22118.4 Wh
                              raw = [52429, 18092]
  0xE182 (57730)  State of health                  = 96.0 %
                              raw = [0, 17088]
  0xE184 (57732)  State of energy / SOC            = 48.889 %
                              raw = [36409, 16963]
  0xE186 (57734)  Battery status                   = 4 (Discharging)
                              raw = [4, 0]
  0xE188 (57736)  Internal status                  = 3 (Charging)
                              raw = [3, 0]

  Live block raw registers (0xE16C-0xE189):
    [0, 16840, 0, 0, 17326, 17485, 60789, 16257, 32768, 50256, 1404, 0, 0, 0, 83, 0, 0, 0, 45056, 18099, 52429, 18092, 0, 17088, 36409, 16963, 4, 0, 3, 0]

  P = V × I check: 821.057 × 1.015 = 833.4 W
  Reported battery power: -834.0 W
  Power consistency: MISMATCH

  0xE18A (57738)  Event log                        = [0, 0, 0, 0, 0, 0, 0, 0]
                              raw = [0, 0, 0, 0, 0, 0, 0, 0]
  0xE192 (57746)  Internal event log               = [0, 0, 0, 0, 0, 0, 0, 0]
                              raw = [0, 0, 0, 0, 0, 0, 0, 0]

  SOC reported by battery block: 48.89%
======================================================================================

======================================================================================
BATTERY 1 MIRROR BLOCK 0xF500 (62720)
======================================================================================
  0xF570 (62832)  Voltage                          = 820.758 V [OUTSIDE EXPECTED 48V RANGE]
                              raw = [12418, 17485]
  0xF572 (62834)  Current                          = 1.016 A
                              raw = [235, 16258]
  0xF574 (62836)  Power                            = 834.0 W DISCHARGING
                              raw = [32768, 50256]
  0xF582 (62850)  SOH                              = 96.0 %
                              raw = [0, 17088]
  0xF584 (62852)  SOC / SOE                        = 48.889 %
                              raw = [36409, 16963]
  0xF586 (62854)  Status                           = 4 (Discharging)
                              raw = [4, 0]

  Mirror live block raw registers: [0, 16840, 0, 0, 12418, 17485, 235, 16258, 32768, 50256, 1404, 0, 0, 0, 83, 0, 0, 0, 45056, 18099, 52429, 18092, 0, 17088, 36409, 16963, 4, 0, 3, 0]
  All mirror live values above come from one Modbus transaction.
======================================================================================

Checking Battery 2...

======================================================================================
BATTERY BLOCK 0xE200 (57856)
======================================================================================
  No battery present at this address (Device ID 255).

Battery decoder completed successfully.
Disconnected.
AddieJanssen
Posts: 50
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

I think you're on the right track, but I also think the size of the read may not be the real issue.
This morning I remembered that we had similar issues with the plugin in the past.
The solution was to increase the timeout of the Modbus client - the inverter needs to read the information from the battery itself, before it can return it. That process just takes too long - resulting in the timeout errors reported in the logs you provided earlier.
I have uploaded a newer version of the scanner that sets the timeout to the same value as the plugin: 15 seconds.
Please give that a go and let's see if that fixes the issue - if not, it's always possible to reduce the size of the blocks it reads.
User avatar
imautohuttraeger
Posts: 400
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by imautohuttraeger »

Here is my result:

Code: Select all


Connecting to server

 Connected to server

  Looking for SunSpec identifier at address [40000 (0x9c40)] for device [1]
  The inverter is providing a SunSpec Map

   Reading Block at address [40002 (0x9c42)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge ]
[md]          [Manufacturer specific value (32 chars)]                  [SE10K-RWB48BFN4]
[opt]         [Manufacturer specific value (16 chars)]                  []
[vr]          [Manufacturer specific value (16 chars)]                  [0004.0025.0011]
[sn]          [Manufacturer specific value (32 chars)]                  [7B0716D7]
[da]          [Modbus device address]                                   [1]


   Reading Block at address [40069 (0x9c85)] for device [1]
    Block id     = [103]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                 [103]
[name]                                               [inverter_three_phase]
[label]                                              [Inverter (Three Phase)]
[description]                                        [Include this model for three phase inverter monitoring]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                     [103]
[l]           [Model length]                         [50]
[a]           [AC Current]                           [1.71] = [171 * (10**-2)] using scale factor [a_sf]
[apha]        [Phase A Current]                      [0.55] = [55 * (10**-2)] using scale factor [a_sf]
[aphb]        [Phase B Current]                      [0.53] = [53 * (10**-2)] using scale factor [a_sf]
[aphc]        [Phase C Current]                      [0.61] = [61 * (10**-2)] using scale factor [a_sf]
[a_sf]        []                                     [-2]
[ppvphab]     [Phase Voltage AB]                     [401.70] = [4017 * (10**-1)] using scale factor [v_sf]
[ppvphbc]     [Phase Voltage BC]                     [399.90] = [3999 * (10**-1)] using scale factor [v_sf]
[ppvphca]     [Phase Voltage CA]                     [398.20] = [3982 * (10**-1)] using scale factor [v_sf]
[phvpha]      [Phase Voltage AN]                     [231.50] = [2315 * (10**-1)] using scale factor [v_sf]
[phvphb]      [Phase Voltage BN]                     [232.50] = [2325 * (10**-1)] using scale factor [v_sf]
[phvphc]      [Phase Voltage CN]                     [228.80] = [2288 * (10**-1)] using scale factor [v_sf]
[v_sf]        []                                     [-1]
[w]           [AC Power]                             [344.90] = [3449 * (10**-1)] using scale factor [w_sf]
[w_sf]        []                                     [-1]
[hz]          [Line Frequency]                       [50.03] = [5003 * (10**-2)] using scale factor [hz_sf]
[hz_sf]       []                                     [-2]
[va]          [AC Apparent Power]                    [396.00] = [3960 * (10**-1)] using scale factor [va_sf]
[va_sf]       []                                     [-1]
[var]         [AC Reactive Power]                    [-194.52] = [-19452 * (10**-2)] using scale factor [var_sf]
[var_sf]      []                                     [-2]
[pf]          [AC Power Factor]                      [-86.96] = [-8696 * (10**-2)] using scale factor [pf_sf]
[pf_sf]       []                                     [-2]
[wh]          [AC Energy]                            [19213592.00] = [19213592 * (10**0)] using scale factor [wh_sf]
[wh_sf]       []                                     [0]
[dca]         [DC Current]                           [0.43] = [4273 * (10**-4)] using scale factor [dca_sf]
[dca_sf]      []                                     [-4]
[dcv]         [DC Voltage]                           [819.50] = [8195 * (10**-1)] using scale factor [dcv_sf]
[dcv_sf]      []                                     [-1]
[dcw]         [DC Power]                             [350.20] = [3502 * (10**-1)] using scale factor [dcw_sf]
[dcw_sf]      []                                     [-1]
[tmpcab]      [Cabinet Temperature]                  [NOT_IMPLEMENTED]
[tmpsnk]      [Heat Sink Temperature]                [41.79] = [4179 * (10**-2)] using scale factor [tmp_sf]
[tmptrns]     [Transformer Temperature]              [NOT_IMPLEMENTED]
[tmpot]       [Other Temperature]                    [NOT_IMPLEMENTED]
[tmp_sf]      []                                     [-2]
[st]          [Enumerated value.  Operating state]   [MPPT]
[stvnd]       [Vendor specific operating state code] [0]
[evt1]        [Bitmask value. Event fields]          [NOT_IMPLEMENTED]
[evt2]        [Reserved for future use]              [NOT_IMPLEMENTED]
[evtvnd1]     [Vendor defined events]                [0]
[evtvnd2]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd3]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd4]     [Vendor defined events]                [0]


   Reading Block at address [40121 (0x9cb9)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge]
[md]          [Manufacturer specific value (32 chars)]                  [MTR-240-3PC1-D-A-MW]
[opt]         [Manufacturer specific value (16 chars)]                  [Export+Import]
[vr]          [Manufacturer specific value (16 chars)]                  [1.0.62]
[sn]          [Manufacturer specific value (32 chars)]                  [632397e0]
[da]          [Modbus device address]                                   [2]


   Reading Block at address [40188 (0x9cfc)] for device [1]
    Block id     = [203]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                      [203]
[name]                                                                    [ac_meter_abcn]
[label]                                                                   [wye-connect three phase (abcn) meter]
[description]                                                             []
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]              [Model identifier]                                      [203]
[l]               [Model length]                                          [105]
[a]               [Total AC Current]                                      [3.06] = [3060 * (10**-3)] using scale factor [a_sf]
[apha]            [Phase A Current]                                       [1.31] = [1308 * (10**-3)] using scale factor [a_sf]
[aphb]            [Phase B Current]                                       [0.92] = [916 * (10**-3)] using scale factor [a_sf]
[aphc]            [Phase C Current]                                       [0.83] = [835 * (10**-3)] using scale factor [a_sf]
[a_sf]            [Current scale factor]                                  [-3]
[phv]             [Line to Neutral AC Voltage (average of active phases)] [230.30] = [2303 * (10**-1)] using scale factor [v_sf]
[phvpha]          [Phase Voltage AN]                                      [230.30] = [2303 * (10**-1)] using scale factor [v_sf]
[phvphb]          [Phase Voltage BN]                                      [230.20] = [2302 * (10**-1)] using scale factor [v_sf]
[phvphc]          [Phase Voltage CN]                                      [230.10] = [2301 * (10**-1)] using scale factor [v_sf]
[ppv]             [Line to Line AC Voltage (average of active phases)]    [0]
[phvphab]         [Phase Voltage AB]                                      [400.10] = [4001 * (10**-1)] using scale factor [v_sf]
[phvphbc]         [Phase Voltage BC]                                      [397.90] = [3979 * (10**-1)] using scale factor [v_sf]
[phvphca]         [Phase Voltage CA]                                      [398.40] = [3984 * (10**-1)] using scale factor [v_sf]
[v_sf]            [Voltage scale factor]                                  [-1]
[hz]              [Frequency]                                             [50.02] = [5002 * (10**-2)] using scale factor [hz_sf]
[hz_sf]           [Frequency scale factor]                                [-2]
[w]               [Total Real Power]                                      [-5.49] = [-5490 * (10**-3)] using scale factor [w_sf]
[wpha]            []                                                      [-15.94] = [-15939 * (10**-3)] using scale factor [w_sf]
[wphb]            []                                                      [-13.46] = [-13458 * (10**-3)] using scale factor [w_sf]
[wphc]            []                                                      [23.91] = [23908 * (10**-3)] using scale factor [w_sf]
[w_sf]            [Real Power scale factor]                               [-3]
[va]              [AC Apparent Power]                                     [551.10] = [5511 * (10**-1)] using scale factor [va_sf]
[vapha]           []                                                      [234.40] = [2344 * (10**-1)] using scale factor [va_sf]
[vaphb]           []                                                      [161.30] = [1613 * (10**-1)] using scale factor [va_sf]
[vaphc]           []                                                      [169.70] = [1697 * (10**-1)] using scale factor [va_sf]
[va_sf]           [Apparent Power scale factor]                           [-1]
[var]             [Reactive Power]                                        [-551.10] = [-5511 * (10**-1)] using scale factor [var_sf]
[varpha]          []                                                      [-233.80] = [-2338 * (10**-1)] using scale factor [var_sf]
[varphb]          []                                                      [-152.70] = [-1527 * (10**-1)] using scale factor [var_sf]
[varphc]          []                                                      [-164.50] = [-1645 * (10**-1)] using scale factor [var_sf]
[var_sf]          [Reactive Power scale factor]                           [-1]
[pf]              [Power Factor]                                          [5.86] = [586 * (10**-2)] using scale factor [pf_sf]
[pfpha]           []                                                      [27.20] = [2720 * (10**-2)] using scale factor [pf_sf]
[pfphb]           []                                                      [-24.60] = [-2460 * (10**-2)] using scale factor [pf_sf]
[pfphc]           []                                                      [15.00] = [1500 * (10**-2)] using scale factor [pf_sf]
[pf_sf]           [Power Factor scale factor]                             [-2]
[totwhexp]        [Total Real Energy Exported]                            [14173320.00] = [1417332000 * (10**-2)] using scale factor [totwh_sf]
[totwhexppha]     []                                                      [6245142.00] = [624514200 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphb]     []                                                      [4685943.00] = [468594300 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphc]     []                                                      [4278531.50] = [427853150 * (10**-2)] using scale factor [totwh_sf]
[totwhimp]        [Total Real Energy Imported]                            [3648438.00] = [364843800 * (10**-2)] using scale factor [totwh_sf]
[totwhimppha]     []                                                      [1276859.50] = [127685950 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphb]     []                                                      [1431790.75] = [143179075 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphc]     []                                                      [1976084.50] = [197608450 * (10**-2)] using scale factor [totwh_sf]
[totwh_sf]        [Real Energy scale factor]                              [-2]
[totvahexp]       [Total Apparent Energy Exported]                        [0]
[totvahexppha]    []                                                      [0]
[totvahexpphb]    []                                                      [0]
[totvahexpphc]    []                                                      [0]
[totvahimp]       [Total Apparent Energy Imported]                        [0]
[totvahimppha]    []                                                      [0]
[totvahimpphb]    []                                                      [0]
[totvahimpphc]    []                                                      [0]
[totvah_sf]       [Apparent Energy scale factor]                          [NOT_IMPLEMENTED]
[totvarhimpq1]    [Total Reactive Energy Imported Quadrant 1]             [0]
[totvarhimpq1pha] []                                                      [0]
[totvarhimpq1phb] []                                                      [0]
[totvarhimpq1phc] []                                                      [0]
[totvarhimpq2]    [Total Reactive Power Imported Quadrant 2]              [0]
[totvarhimpq2pha] []                                                      [0]
[totvarhimpq2phb] []                                                      [0]
[totvarhimpq2phc] []                                                      [0]
[totvarhexpq3]    [Total Reactive Power Exported Quadrant 3]              [0]
[totvarhexpq3pha] []                                                      [0]
[totvarhexpq3phb] []                                                      [0]
[totvarhexpq3phc] []                                                      [0]
[totvarhexpq4]    [Total Reactive Power Exported Quadrant 4]              [0]
[totvarhexpq4pha] []                                                      [0]
[totvarhexpq4phb] []                                                      [0]
[totvarhexpq4phc] []                                                      [0]
[totvarh_sf]      [Reactive Energy scale factor]                          [NOT_IMPLEMENTED]
[evt]             [Meter Event Flags]                                     [0]


   Reading Block at address [40295 (0x9d67)] for device [1]
    Block id     = [701]
    Block length = [153]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                          [701]
[name]                                                                                                        [DERMeasureAC]
[label]                                                                                                       [DER AC Measurement]
[description]                                                                                                 [DER AC measurement model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]           [DER AC measurement model ID.]                                                                 [701]
[l]            [DER AC measurement model length.]                                                             [153]
[actype]       [AC wiring type.]                                                                              [THREE_PHASE]
[st]           [Operating state of the DER.]                                                                  [ON]
[invst]        [Enumerated value.  Inverter state.]                                                           [NOT_IMPLEMENTED]
[connst]       [Grid connection state of the DER.]                                                            [CONNECTED]
[alrm]         [Active alarms for the DER.]                                                                   [0]
[dermode]      [Current operational characteristics of the DER.]                                              [NOT_IMPLEMENTED]
[w]            [Total active power. Active power is positive for DER generation and negative for absorption.] [370.00] = [37 * (10**1)] using scale factor [w_sf]
[va]           [Total apparent power.]                                                                        [420.00] = [42 * (10**1)] using scale factor [va_sf]
[var]          [Total reactive power.]                                                                        [-200.00] = [-20 * (10**1)] using scale factor [var_sf]
[pf]           [Power factor. The sign of power factor should be the sign of active power.]                   [0.86] = [86 * (10**-2)] using scale factor [pf_sf]
[a]            [Total AC current.]                                                                            [NOT_IMPLEMENTED]
[llv]          [Line to line AC voltage as an average of active phases.]                                      [400.50] = [4005 * (10**-1)] using scale factor [v_sf]
[lnv]          [Line to neutral AC voltage as an average of active phases.]                                   [231.30] = [2313 * (10**-1)] using scale factor [v_sf]
[hz]           [AC frequency.]                                                                                [50.04] = [50038 * (10**-3)] using scale factor [hz_sf]
[totwhinj]     [Total active energy injected (Quadrants 1 & 4).]                                              [NOT_IMPLEMENTED]
[totwhabs]     [Total active energy absorbed (Quadrants 2 & 3).]                                              [NOT_IMPLEMENTED]
[totvarhinj]   [Total reactive energy injected (Quadrants 1 & 2).]                                            [NOT_IMPLEMENTED]
[totvarhabs]   [Total reactive energy absorbed (Quadrants 3 & 4).]                                            [NOT_IMPLEMENTED]
[tmpamb]       [Ambient temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpcab]       [Cabinet temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpsnk]       [Heat sink temperature.]                                                                       [NOT_IMPLEMENTED]
[tmptrns]      [Transformer temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpsw]        [IGBT/MOSFET temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpot]        [Other temperature.]                                                                           [NOT_IMPLEMENTED]
[wl1]          [Active power L1.]                                                                             [NOT_IMPLEMENTED]
[val1]         [Apparent power L1.]                                                                           [NOT_IMPLEMENTED]
[varl1]        [Reactive power L1.]                                                                           [NOT_IMPLEMENTED]
[pfl1]         [Power factor phase L1.]                                                                       [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al1]          [Current phase L1.]                                                                            [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl1l2]        [Phase voltage L1-L2.]                                                                         [NOT_IMPLEMENTED]
[vl1]          [Phase voltage L1-N.]                                                                          [231.30] = [2313 * (10**-1)] using scale factor [v_sf]
[totwhinjl1]   [Total active energy injected L1.]                                                             [NOT_IMPLEMENTED]
[totwhabsl1]   [Total active energy absorbed L1.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl1] [Total reactive energy injected L1.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl1] [Total reactive energy absorbed L1.]                                                           [NOT_IMPLEMENTED]
[wl2]          [Active power L2.]                                                                             [NOT_IMPLEMENTED]
[val2]         [Apparent power L2.]                                                                           [NOT_IMPLEMENTED]
[varl2]        [Reactive power L2.]                                                                           [NOT_IMPLEMENTED]
[pfl2]         [Power factor L2.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al2]          [Current L2.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl2l3]        [Phase voltage L2-L3.]                                                                         [NOT_IMPLEMENTED]
[vl2]          [Phase voltage L2-N.]                                                                          [232.70] = [2327 * (10**-1)] using scale factor [v_sf]
[totwhinjl2]   [Total active energy injected L2.]                                                             [NOT_IMPLEMENTED]
[totwhabsl2]   [Total active energy absorbed L2.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl2] [Total reactive energy injected L2.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl2] [Total reactive energy absorbed L2.]                                                           [NOT_IMPLEMENTED]
[wl3]          [Active power L3.]                                                                             [NOT_IMPLEMENTED]
[val3]         [Apparent power L3.]                                                                           [NOT_IMPLEMENTED]
[varl3]        [Reactive power L3.]                                                                           [NOT_IMPLEMENTED]
[pfl3]         [Power factor L3.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al3]          [Current L3.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl3l1]        [Phase voltage L3-L1.]                                                                         [NOT_IMPLEMENTED]
[vl3]          [Phase voltage L3-N.]                                                                          [230.30] = [2303 * (10**-1)] using scale factor [v_sf]
[totwhinjl3]   [Total active energy injected L3.]                                                             [NOT_IMPLEMENTED]
[totwhabsl3]   [Total active energy absorbed L3.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl3] [Total reactive energy injected L3.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl3] [Total reactive energy absorbed L3.]                                                           [NOT_IMPLEMENTED]
[throtpct]     [Throttling in pct of maximum active power.]                                                   [NOT_IMPLEMENTED]
[throtsrc]     [Active throttling source.]                                                                    [NOT_IMPLEMENTED]
[a_sf]         [Current scale factor.]                                                                        [0]
[v_sf]         [Voltage scale factor.]                                                                        [-1]
[hz_sf]        [Frequency scale factor.]                                                                      [-3]
[w_sf]         [Active power scale factor.]                                                                   [1]
[pf_sf]        [Power factor scale factor.]                                                                   [-2]
[va_sf]        [Apparent power scale factor.]                                                                 [1]
[var_sf]       [Reactive power scale factor.]                                                                 [1]
[totwh_sf]     [Active energy scale factor.]                                                                  [0]
[totvarh_sf]   [Reactive energy scale factor.]                                                                [0]
[tmp_sf]       [Temperature scale factor.]                                                                    [0]
[mnalrminfo]   [Manufacturer alarm information. Valid if MANUFACTURER_ALRM indication is active.]             []


   Reading Block at address [40450 (0x9e02)] for device [1]
    Block id     = [702]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                                             [702]
[name]                                                                                                                           [DERCapacity]
[label]                                                                                                                          [DER Capacity]
[description]                                                                                                                    [DER capacity model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER capacity model ID.]                                                                                     [702]
[l]                 [DER capacity model length.]                                                                                 [50]
[wmaxrtg]           [Maximum active power rating at unity power factor in watts.]                                                [10000.00] = [10000 * (10**0)] using scale factor [w_sf]
[wovrextrtg]        [Active power rating at specified over-excited power factor in watts.]                                       [8000.00] = [8000 * (10**0)] using scale factor [w_sf]
[wovrextrtgpf]      [Specified over-excited power factor.]                                                                       [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[wundextrtg]        [Active power rating at specified under-excited power factor in watts.]                                      [8000.00] = [8000 * (10**0)] using scale factor [w_sf]
[wundextrtgpf]      [Specified under-excited power factor.]                                                                      [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[vamaxrtg]          [Maximum apparent power rating in voltamperes.]                                                              [10000.00] = [10000 * (10**0)] using scale factor [va_sf]
[varmaxinjrtg]      [Maximum injected reactive power rating in vars.]                                                            [6000.00] = [6000 * (10**0)] using scale factor [var_sf]
[varmaxabsrtg]      [Maximum absorbed reactive power rating in vars.]                                                            [6000.00] = [6000 * (10**0)] using scale factor [var_sf]
[wchartemaxrtg]     [Maximum active power charge rate in watts.]                                                                 [NOT_IMPLEMENTED]
[wdischartemaxrtg]  [Maximum active power discharge rate in watts.]                                                              [NOT_IMPLEMENTED]
[vachartemaxrtg]    [Maximum apparent power charge rate in voltamperes.]                                                         [NOT_IMPLEMENTED]
[vadischartemaxrtg] [Maximum apparent power discharge rate in voltamperes.]                                                      [NOT_IMPLEMENTED]
[vnomrtg]           [AC voltage nominal rating.]                                                                                 [230.00] = [2300 * (10**-1)] using scale factor [v_sf]
[vmaxrtg]           [AC voltage maximum rating.]                                                                                 [253.00] = [2530 * (10**-1)] using scale factor [v_sf]
[vminrtg]           [AC voltage minimum rating.]                                                                                 [202.40] = [2024 * (10**-1)] using scale factor [v_sf]
[amaxrtg]           [AC current maximum rating in amps.]                                                                         [NOT_IMPLEMENTED]
[pfovrextrtg]       [Unused. Please use WOvrExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[pfundextrtg]       [Unused. Please use WUndExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[reactsusceptrtg]   [Reactive susceptance that remains connected to the Area EPS in the cease to energize and trip state.]       [0]
[noropcatrtg]       [Normal operating performance category as specified in IEEE 1547-2018.]                                      [CAT_B]
[abnopcatrtg]       [Abnormal operating performance category as specified in IEEE 1547-2018.]                                    [CAT_3]
[ctrlmodes]         [Supported control mode functions.]                                                                          [4294965247]
[intislandcatrtg]   [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[wmax]              [Maximum active power setting used to adjust maximum active power setting.]                                  [NOT_IMPLEMENTED]
[wmaxovrext]        [Active power setting at specified over-excited power factor in watts.]                                      [NOT_IMPLEMENTED]
[wovrextpf]         [Specified over-excited power factor.]                                                                       [NOT_IMPLEMENTED]
[wmaxundext]        [Active power setting at specified under-excited power factor in watts.]                                     [NOT_IMPLEMENTED]
[wundextpf]         [Specified under-excited power factor.]                                                                      [NOT_IMPLEMENTED]
[vamax]             [Maximum apparent power setting used to adjust maximum apparent power rating.]                               [NOT_IMPLEMENTED]
[varmaxinj]         [Maximum injected reactive power setting used to adjust maximum injected reactive power rating.]             [NOT_IMPLEMENTED]
[varmaxabs]         [Maximum absorbed reactive power setting used to adjust maximum absorbed reactive power rating.]             [NOT_IMPLEMENTED]
[wchartemax]        [Maximum active power charge rate setting used to adjust maximum active power charge rate rating.]           [NOT_IMPLEMENTED]
[wdischartemax]     [Maximum active power discharge rate setting used to adjust maximum active power discharge rate rating.]     [NOT_IMPLEMENTED]
[vachartemax]       [Maximum apparent power charge rate setting used to adjust maximum apparent power charge rate rating.]       [NOT_IMPLEMENTED]
[vadischartemax]    [Maximum apparent power discharge rate setting used to adjust maximum apparent power discharge rate rating.] [NOT_IMPLEMENTED]
[vnom]              [Nominal AC voltage setting.]                                                                                [NOT_IMPLEMENTED]
[vmax]              [AC voltage maximum setting used to adjust AC voltage maximum rating.]                                       [NOT_IMPLEMENTED]
[vmin]              [AC voltage minimum setting used to adjust AC voltage minimum rating.]                                       [NOT_IMPLEMENTED]
[amax]              [Maximum AC current setting used to adjust maximum AC current rating.]                                       [NOT_IMPLEMENTED]
[pfovrext]          [Unused. Please use WOvrExtPF.]                                                                              [NOT_IMPLEMENTED]
[pfundext]          [Unused. Please use WUndExtPF.]                                                                              [NOT_IMPLEMENTED]
[intislandcat]      [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[w_sf]              [Active power scale factor.]                                                                                 [0]
[pf_sf]             [Power factor scale factor.]                                                                                 [-2]
[va_sf]             [Apparent power scale factor.]                                                                               [0]
[var_sf]            [Reactive power scale factor.]                                                                               [0]
[v_sf]              [Voltage scale factor.]                                                                                      [-1]
[a_sf]              [Current scale factor.]                                                                                      [0]
[s_sf]              [Susceptance scale factor.]                                                                                  [0]


   Reading Block at address [40502 (0x9e36)] for device [1]
    Block id     = [703]
    Block length = [17]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                               [703]
[name]                                                                             [DEREnterService]
[label]                                                                            [Enter Service]
[description]                                                                      [Enter service model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Enter service model ID.]                                            [703]
[l]           [Enter service model length.]                                        [17]
[es]          [Permit enter service.]                                              [ENABLED]
[esvhi]       [Enter service voltage high threshold as percent of normal voltage.] [110.00] = [11000 * (10**-2)] using scale factor [v_sf]
[esvlo]       [Enter service voltage low threshold as percent of normal voltage.]  [85.00] = [8500 * (10**-2)] using scale factor [v_sf]
[eshzhi]      [Enter service frequency high threshold.]                            [50.10] = [50100 * (10**-3)] using scale factor [hz_sf]
[eshzlo]      [Enter service frequency low threshold.]                             [47.50] = [47500 * (10**-3)] using scale factor [hz_sf]
[esdlytms]    [Enter service delay time in seconds.]                               [60]
[esrndtms]    [Enter service random delay in seconds.]                             [0]
[esrmptms]    [Enter service ramp time in seconds.]                                [600]
[esdlyremtms] [Enter service delay time remaining in seconds.]                     [NOT_IMPLEMENTED]
[v_sf]        [Voltage percentage scale factor.]                                   [-2]
[hz_sf]       [Frequency scale factor.]                                            [-3]


   Reading Block at address [40521 (0x9e49)] for device [1]
    Block id     = [704]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                              [704]
[name]                                                                                                            [DERCtlAC]
[label]                                                                                                           [DER AC Controls]
[description]                                                                                                     [DER AC controls model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER AC controls model ID.]                                                                   [704]
[l]                 [DER AC controls model length.]                                                               [65]
[pfwinjena]         [Power factor enable when injecting active power.]                                            [ENABLED]
[pfwinjenarvrt]     [Power factor reversion timer when injecting active power enable.]                            [NOT_IMPLEMENTED]
[pfwinjrvrttms]     [Power factor reversion timer when injecting active power.]                                   [NOT_IMPLEMENTED]
[pfwinjrvrtrem]     [Power factor reversion time remaining when injecting active power.]                          [NOT_IMPLEMENTED]
[pfwabsena]         [Power factor enable when absorbing active power.]                                            [NOT_IMPLEMENTED]
[pfwabsenarvrt]     [Power factor reversion timer when absorbing active power enable.]                            [NOT_IMPLEMENTED]
[pfwabsrvrttms]     [Power factor reversion timer when absorbing active power.]                                   [NOT_IMPLEMENTED]
[pfwabsrvrtrem]     [Power factor reversion time remaining when absorbing active power.]                          [NOT_IMPLEMENTED]
[wmaxlimpctena]     [Limit maximum active power percent enable.]                                                  [DISABLED]
[wmaxlimpct]        [Limit maximum active power percent value.]                                                   [NOT_IMPLEMENTED]
[wmaxlimpctrvrt]    [Reversion limit maximum active power percent value.]                                         [NOT_IMPLEMENTED]
[wmaxlimpctenarvrt] [Reversion limit maximum active power percent value enable.]                                  [NOT_IMPLEMENTED]
[wmaxlimpctrvrttms] [Limit maximum active power percent reversion time.]                                          [NOT_IMPLEMENTED]
[wmaxlimpctrvrtrem] [Limit maximum active power percent reversion time remaining.]                                [NOT_IMPLEMENTED]
[wsetena]           [Set active power enable.]                                                                    [DISABLED]
[wsetmod]           [Set active power mode.]                                                                      [W_MAX_PCT]
[wset]              [Active power setting value in watts.]                                                        [-1.00] = [-1 * (10**0)] using scale factor [wset_sf]
[wsetrvrt]          [Reversion active power setting value in watts.]                                              [NOT_IMPLEMENTED]
[wsetpct]           [Active power setting value as percent.]                                                      [-0.01] = [-1 * (10**-2)] using scale factor [wsetpct_sf]
[wsetpctrvrt]       [Reversion active power setting value as percent.]                                            [NOT_IMPLEMENTED]
[wsetenarvrt]       [Reversion active power function enable.]                                                     [NOT_IMPLEMENTED]
[wsetrvrttms]       [Set active power reversion time.]                                                            [NOT_IMPLEMENTED]
[wsetrvrtrem]       [Set active power reversion time remaining.]                                                  [NOT_IMPLEMENTED]
[varsetena]         [Set reactive power enable.]                                                                  [DISABLED]
[varsetmod]         [Set reactive power mode.]                                                                    [W_MAX_PCT]
[varsetpri]         [Reactive power priority.]                                                                    [NOT_IMPLEMENTED]
[varset]            [Reactive power setting value in vars.]                                                       [0]
[varsetrvrt]        [Reversion reactive power setting value in vars.]                                             [NOT_IMPLEMENTED]
[varsetpct]         [Reactive power setting value as percent.]                                                    [0]
[varsetpctrvrt]     [Reversion reactive power setting value as percent.]                                          [NOT_IMPLEMENTED]
[varsetenarvrt]     [Reversion reactive power function enable.]                                                   [NOT_IMPLEMENTED]
[varsetrvrttms]     [Set reactive power reversion time.]                                                          [NOT_IMPLEMENTED]
[varsetrvrtrem]     [Set reactive power reversion time remaining.]                                                [NOT_IMPLEMENTED]
[wrmp]              [Ramp rate for increases in active power during normal generation.]                           [NOT_IMPLEMENTED]
[wrmpref]           [Ramp rate reference unit for increases in active power or current during normal generation.] [NOT_IMPLEMENTED]
[varrmp]            [Ramp rate based on max reactive power per second.]                                           [NOT_IMPLEMENTED]
[antiislena]        [Anti-islanding enable.]                                                                      [NOT_IMPLEMENTED]
[pf_sf]             [Power factor scale factor.]                                                                  [-3]
[wmaxlimpct_sf]     [Limit maximum power scale factor.]                                                           [-2]
[wset_sf]           [Active power scale factor.]                                                                  [0]
[wsetpct_sf]        [Active power pct scale factor.]                                                              [-2]
[varset_sf]         [Reactive power scale factor.]                                                                [0]
[varsetpct_sf]      [Reactive power pct scale factor.]                                                            [-2]


   Reading Block at address [40588 (0x9e8c)] for device [1]
    Block id     = [705]
    Block length = [57]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [705]
[name]                                                                  [DERVoltVar]
[label]                                                                 [DER Volt-Var]
[description]                                                           [DER Volt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Var model ID.]                                  [705]
[l]           [DER Volt-Var model length.]                              [57]
[ena]         [Volt-Var control enable.]                                [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve var points.]                      [-2]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40647 (0x9ec7)] for device [1]
    Block id     = [706]
    Block length = [47]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [706]
[name]                                                                  [DERVoltWatt]
[label]                                                                 [DER Volt-Watt]
[description]                                                           [DER Volt-Watt model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Watt model ID.]                                 [706]
[l]           [DER Volt-Watt model length.]                             [47]
[ena]         [Volt-Watt control enable.]                               [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve watt points.]                     [0]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40696 (0x9ef8)] for device [1]
    Block id     = [707]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [707]
[name]                                                                  [DERTripLV]
[label]                                                                 [DER Trip LV]
[description]                                                           [DER low voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low voltage trip model ID.]                          [707]
[l]           [DER low voltage trip model length.]                      [105]
[ena]         [DER low voltage trip control enable.]                    [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40803 (0x9f63)] for device [1]
    Block id     = [708]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [708]
[name]                                                                  [DERTripHV]
[label]                                                                 [DER Trip HV]
[description]                                                           [DER high voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high voltage trip model ID.]                         [708]
[l]           [DER high voltage trip model length.]                     [105]
[ena]         [DER high voltage trip control enable.]                   [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40910 (0x9fce)] for device [1]
    Block id     = [709]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [709]
[name]                                                                  [DERTripLF]
[label]                                                                 [DER Trip LF]
[description]                                                           [DER low frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low frequency trip model ID.]                        [709]
[l]           [DER low frequency trip model length.]                    [135]
[ena]         [DER low frequency trip control enable.]                  [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41047 (0xa057)] for device [1]
    Block id     = [710]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [710]
[name]                                                                  [DERTripHF]
[label]                                                                 [DER Trip HF]
[description]                                                           [DER high frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high frequency trip model ID.]                       [710]
[l]           [DER high frequency trip model length.]                   [135]
[ena]         [DER high frequency trip control enable.]                 [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41184 (0xa0e0)] for device [1]
    Block id     = [711]
    Block length = [32]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                 [711]
[name]                                                               [DERFreqDroop]
[label]                                                              [DER Frequency Droop]
[description]                                                        [DER Frequency Droop model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Frequency Droop model ID.]                        [711]
[l]           [DER Frequency Droop model length.]                    [32]
[ena]         [DER Frequency-Watt (Frequency-Droop) control enable.] [DISABLED]
[adptctlreq]  [Set active control. 0 = No active control.]           [0]
[adptctlrslt] [Result of last set active control operation.]         [COMPLETED]
[nctl]        [Number of stored controls supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]   [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                 [NOT_IMPLEMENTED]
[rvrtctl]     [Default control after reversion timeout.]             [NOT_IMPLEMENTED]
[db_sf]       [Deadband scale factor.]                               [-3]
[k_sf]        [Frequency change scale factor.]                       [-3]
[rsptms_sf]   [Open loop response time scale factor.]                [-3]


   Reading Block at address [41218 (0xa102)] for device [1]
    Block id     = [712]
    Block length = [44]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                               [712]
[name]                                                             [DERWattVar]
[label]                                                            [DER Watt-Var]
[description]                                                      [DER Watt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Watt-Var model ID.]                             [712]
[l]           [DER Watt-Var model length.]                         [44]
[ena]         [DER Watt-Var control enable.]                       [DISABLED]
[adptcrvreq]  [Set active curve. 0 = No active curve.]             [0]
[adptcrvrslt] [Result of last set active curve operation.]         [COMPLETED]
[npt]         [Number of curve points supported.]                  [6]
[ncrv]        [Number of stored curves supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.] [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]               [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]             [NOT_IMPLEMENTED]
[w_sf]        [Scale factor for curve active power points.]        [-2]
[deptref_sf]  [Scale factor for curve var points.]                 [-2]


   Reading Block at address [41264 (0xa130)] for device [1]
    Block id     = [713]
    Block length = [7]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                              [713]
[name]                                                                            [DERStorageCapacity]
[label]                                                                           [DER Storage Capacity]
[description]                                                                     [DER storage capacity.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER storage capacity model ID.]                                    [713]
[l]           [DER storage capacity model length.]                                [7]
[whrtg]       [Energy rating of the DER storage.]                                 [NOT_IMPLEMENTED]
[whavail]     [Energy available of the DER storage (WHAvail = WHRtg * SoC * SoH)] [NOT_IMPLEMENTED]
[soc]         [State of charge of the DER storage.]                               [54.26] = [5426 * (10**-2)] using scale factor [pct_sf]
[soh]         [State of health of the DER storage.]                               [NOT_IMPLEMENTED]
[sta]         [Storage status.]                                                   [NOT_IMPLEMENTED]
[wh_sf]       [Scale factor for energy capacity.]                                 [-2]
[pct_sf]      [Scale factor for percentage.]                                      [-2]


   Reading Block at address [41273 (0xa139)] for device [1]
    Block id     = [65535]
    Block length = [0]
    Block type   = [The End of the block list has been reached]

  End of SunSpec MAP

  Looking for Battery at address [57600 (0xe100)] for device [1]

     Manufacturer     [SolarEdge]
     Model            [SolarEdge Home Battery 48V - 3 ]
     Firmware Version [48V DCDC 3.5.13]
     Device id        [112]
No response received after 3 retries, continue with next request
Received ModbusException(Modbus Error: [Input/Output] No response received after 3 retries, continue with next request) from library
     Registers        [None]

  Looking for Battery at address [57856 (0xe200)] for device [1]
   No battery found at this address

Disconnected from server

Last edited by imautohuttraeger on Thursday 08 October 2026 12:06, edited 1 time in total.
Stop, look and listen.
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

Here is the result:

Code: Select all

hjz@debian:/opt/stacks/domoticz/config/plugins$ sudo docker exec -it domoticz python3 /opt/domoticz/userdata/plugins/scanner.py 192.168.2.186 1502
Connecting to server

 Connected to server

  Looking for SunSpec identifier at address [40000 (0x9c40)] for device [1]
  The inverter is providing a SunSpec Map

   Reading Block at address [40002 (0x9c42)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge ]
[md]          [Manufacturer specific value (32 chars)]                  [SE10K-RWB48BFN4]
[opt]         [Manufacturer specific value (16 chars)]                  []
[vr]          [Manufacturer specific value (16 chars)]                  [0004.0025.0013]
[sn]          [Manufacturer specific value (32 chars)]                  [7B0526DA]
[da]          [Modbus device address]                                   [1]


   Reading Block at address [40069 (0x9c85)] for device [1]
    Block id     = [103]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                 [103]
[name]                                               [inverter_three_phase]
[label]                                              [Inverter (Three Phase)]
[description]                                        [Include this model for three phase inverter monitoring]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                     [103]
[l]           [Model length]                         [50]
[a]           [AC Current]                           [8.90] = [890 * (10**-2)] using scale factor [a_sf]
[apha]        [Phase A Current]                      [2.96] = [296 * (10**-2)] using scale factor [a_sf]
[aphb]        [Phase B Current]                      [2.93] = [293 * (10**-2)] using scale factor [a_sf]
[aphc]        [Phase C Current]                      [3.00] = [300 * (10**-2)] using scale factor [a_sf]
[a_sf]        []                                     [-2]
[ppvphab]     [Phase Voltage AB]                     [405.20] = [4052 * (10**-1)] using scale factor [v_sf]
[ppvphbc]     [Phase Voltage BC]                     [408.70] = [4087 * (10**-1)] using scale factor [v_sf]
[ppvphca]     [Phase Voltage CA]                     [408.30] = [4083 * (10**-1)] using scale factor [v_sf]
[phvpha]      [Phase Voltage AN]                     [234.20] = [2342 * (10**-1)] using scale factor [v_sf]
[phvphb]      [Phase Voltage BN]                     [234.60] = [2346 * (10**-1)] using scale factor [v_sf]
[phvphc]      [Phase Voltage CN]                     [236.80] = [2368 * (10**-1)] using scale factor [v_sf]
[v_sf]        []                                     [-1]
[w]           [AC Power]                             [2074.10] = [20741 * (10**-1)] using scale factor [w_sf]
[w_sf]        []                                     [-1]
[hz]          [Line Frequency]                       [49.97] = [4997 * (10**-2)] using scale factor [hz_sf]
[hz_sf]       []                                     [-2]
[va]          [AC Apparent Power]                    [2095.30] = [20953 * (10**-1)] using scale factor [va_sf]
[va_sf]       []                                     [-1]
[var]         [AC Reactive Power]                    [-297.28] = [-29728 * (10**-2)] using scale factor [var_sf]
[var_sf]      []                                     [-2]
[pf]          [AC Power Factor]                      [-98.98] = [-9898 * (10**-2)] using scale factor [pf_sf]
[pf_sf]       []                                     [-2]
[wh]          [AC Energy]                            [49170440.00] = [49170440 * (10**0)] using scale factor [wh_sf]
[wh_sf]       []                                     [0]
[dca]         [DC Current]                           [2.57] = [25679 * (10**-4)] using scale factor [dca_sf]
[dca_sf]      []                                     [-4]
[dcv]         [DC Voltage]                           [820.00] = [8200 * (10**-1)] using scale factor [dcv_sf]
[dcv_sf]      []                                     [-1]
[dcw]         [DC Power]                             [2105.70] = [21057 * (10**-1)] using scale factor [dcw_sf]
[dcw_sf]      []                                     [-1]
[tmpcab]      [Cabinet Temperature]                  [NOT_IMPLEMENTED]
[tmpsnk]      [Heat Sink Temperature]                [43.24] = [4324 * (10**-2)] using scale factor [tmp_sf]
[tmptrns]     [Transformer Temperature]              [NOT_IMPLEMENTED]
[tmpot]       [Other Temperature]                    [NOT_IMPLEMENTED]
[tmp_sf]      []                                     [-2]
[st]          [Enumerated value.  Operating state]   [MPPT]
[stvnd]       [Vendor specific operating state code] [0]
[evt1]        [Bitmask value. Event fields]          [NOT_IMPLEMENTED]
[evt2]        [Reserved for future use]              [NOT_IMPLEMENTED]
[evtvnd1]     [Vendor defined events]                [0]
[evtvnd2]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd3]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd4]     [Vendor defined events]                [0]


   Reading Block at address [40121 (0x9cb9)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge]
[md]          [Manufacturer specific value (32 chars)]                  [MTR-240-3PC1-D-A-MW]
[opt]         [Manufacturer specific value (16 chars)]                  [Export+Import]
[vr]          [Manufacturer specific value (16 chars)]                  [1.0.104]
[sn]          [Manufacturer specific value (32 chars)]                  [6401e4dd]
[da]          [Modbus device address]                                   [NOT_IMPLEMENTED]


   Reading Block at address [40188 (0x9cfc)] for device [1]
    Block id     = [203]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                      [203]
[name]                                                                    [ac_meter_abcn]
[label]                                                                   [wye-connect three phase (abcn) meter]
[description]                                                             []
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]              [Model identifier]                                      [203]
[l]               [Model length]                                          [105]
[a]               [Total AC Current]                                      [9.77] = [9774 * (10**-3)] using scale factor [a_sf]
[apha]            [Phase A Current]                                       [2.75] = [2750 * (10**-3)] using scale factor [a_sf]
[aphb]            [Phase B Current]                                       [4.73] = [4729 * (10**-3)] using scale factor [a_sf]
[aphc]            [Phase C Current]                                       [2.29] = [2294 * (10**-3)] using scale factor [a_sf]
[a_sf]            [Current scale factor]                                  [-3]
[phv]             [Line to Neutral AC Voltage (average of active phases)] [233.50] = [2335 * (10**-1)] using scale factor [v_sf]
[phvpha]          [Phase Voltage AN]                                      [233.50] = [2335 * (10**-1)] using scale factor [v_sf]
[phvphb]          [Phase Voltage BN]                                      [234.00] = [2340 * (10**-1)] using scale factor [v_sf]
[phvphc]          [Phase Voltage CN]                                      [235.80] = [2358 * (10**-1)] using scale factor [v_sf]
[ppv]             [Line to Line AC Voltage (average of active phases)]    [0]
[phvphab]         [Phase Voltage AB]                                      [404.10] = [4041 * (10**-1)] using scale factor [v_sf]
[phvphbc]         [Phase Voltage BC]                                      [407.50] = [4075 * (10**-1)] using scale factor [v_sf]
[phvphca]         [Phase Voltage CA]                                      [406.70] = [4067 * (10**-1)] using scale factor [v_sf]
[v_sf]            [Voltage scale factor]                                  [-1]
[hz]              [Frequency]                                             [49.97] = [4997 * (10**-2)] using scale factor [hz_sf]
[hz_sf]           [Frequency scale factor]                                [-2]
[w]               [Total Real Power]                                      [18.04] = [18042 * (10**-3)] using scale factor [w_sf]
[wpha]            []                                                      [26.72] = [26724 * (10**-3)] using scale factor [w_sf]
[wphb]            []                                                      [19.12] = [19125 * (10**-3)] using scale factor [w_sf]
[wphc]            []                                                      [-27.81] = [-27806 * (10**-3)] using scale factor [w_sf]
[w_sf]            [Real Power scale factor]                               [-3]
[va]              [AC Apparent Power]                                     [461.00] = [4610 * (10**-1)] using scale factor [va_sf]
[vapha]           []                                                      [635.40] = [6354 * (10**-1)] using scale factor [va_sf]
[vaphb]           []                                                      [1101.40] = [11014 * (10**-1)] using scale factor [va_sf]
[vaphc]           []                                                      [530.70] = [5307 * (10**-1)] using scale factor [va_sf]
[va_sf]           [Apparent Power scale factor]                           [-1]
[var]             [Reactive Power]                                        [-460.70] = [-4607 * (10**-1)] using scale factor [var_sf]
[varpha]          []                                                      [-153.80] = [-1538 * (10**-1)] using scale factor [var_sf]
[varphb]          []                                                      [-119.20] = [-1192 * (10**-1)] using scale factor [var_sf]
[varphc]          []                                                      [-187.60] = [-1876 * (10**-1)] using scale factor [var_sf]
[var_sf]          [Reactive Power scale factor]                           [-1]
[pf]              [Power Factor]                                          [-29.36] = [-2936 * (10**-2)] using scale factor [pf_sf]
[pfpha]           []                                                      [-95.70] = [-9570 * (10**-2)] using scale factor [pf_sf]
[pfphb]           []                                                      [99.29] = [9929 * (10**-2)] using scale factor [pf_sf]
[pfphc]           []                                                      [-91.69] = [-9169 * (10**-2)] using scale factor [pf_sf]
[pf_sf]           [Power Factor scale factor]                             [-2]
[totwhexp]        [Total Real Energy Exported]                            [7295073.00] = [729507300 * (10**-2)] using scale factor [totwh_sf]
[totwhexppha]     []                                                      [6406885.00] = [640688500 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphb]     []                                                      [4226598.00] = [422659800 * (10**-2)] using scale factor [totwh_sf]
[totwhexpphc]     []                                                      [2389983.25] = [238998325 * (10**-2)] using scale factor [totwh_sf]
[totwhimp]        [Total Real Energy Imported]                            [18828760.00] = [1882876000 * (10**-2)] using scale factor [totwh_sf]
[totwhimppha]     []                                                      [3822421.50] = [382242150 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphb]     []                                                      [6927713.00] = [692771300 * (10**-2)] using scale factor [totwh_sf]
[totwhimpphc]     []                                                      [13807019.00] = [1380701900 * (10**-2)] using scale factor [totwh_sf]
[totwh_sf]        [Real Energy scale factor]                              [-2]
[totvahexp]       [Total Apparent Energy Exported]                        [0]
[totvahexppha]    []                                                      [0]
[totvahexpphb]    []                                                      [0]
[totvahexpphc]    []                                                      [0]
[totvahimp]       [Total Apparent Energy Imported]                        [0]
[totvahimppha]    []                                                      [0]
[totvahimpphb]    []                                                      [0]
[totvahimpphc]    []                                                      [0]
[totvah_sf]       [Apparent Energy scale factor]                          [NOT_IMPLEMENTED]
[totvarhimpq1]    [Total Reactive Energy Imported Quadrant 1]             [0]
[totvarhimpq1pha] []                                                      [0]
[totvarhimpq1phb] []                                                      [0]
[totvarhimpq1phc] []                                                      [0]
[totvarhimpq2]    [Total Reactive Power Imported Quadrant 2]              [0]
[totvarhimpq2pha] []                                                      [0]
[totvarhimpq2phb] []                                                      [0]
[totvarhimpq2phc] []                                                      [0]
[totvarhexpq3]    [Total Reactive Power Exported Quadrant 3]              [0]
[totvarhexpq3pha] []                                                      [0]
[totvarhexpq3phb] []                                                      [0]
[totvarhexpq3phc] []                                                      [0]
[totvarhexpq4]    [Total Reactive Power Exported Quadrant 4]              [0]
[totvarhexpq4pha] []                                                      [0]
[totvarhexpq4phb] []                                                      [0]
[totvarhexpq4phc] []                                                      [0]
[totvarh_sf]      [Reactive Energy scale factor]                          [NOT_IMPLEMENTED]
[evt]             [Meter Event Flags]                                     [0]


   Reading Block at address [40295 (0x9d67)] for device [1]
    Block id     = [701]
    Block length = [153]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                          [701]
[name]                                                                                                        [DERMeasureAC]
[label]                                                                                                       [DER AC Measurement]
[description]                                                                                                 [DER AC measurement model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]           [DER AC measurement model ID.]                                                                 [701]
[l]            [DER AC measurement model length.]                                                             [153]
[actype]       [AC wiring type.]                                                                              [THREE_PHASE]
[st]           [Operating state of the DER.]                                                                  [ON]
[invst]        [Enumerated value.  Inverter state.]                                                           [NOT_IMPLEMENTED]
[connst]       [Grid connection state of the DER.]                                                            [CONNECTED]
[alrm]         [Active alarms for the DER.]                                                                   [0]
[dermode]      [Current operational characteristics of the DER.]                                              [NOT_IMPLEMENTED]
[w]            [Total active power. Active power is positive for DER generation and negative for absorption.] [2090.00] = [209 * (10**1)] using scale factor [w_sf]
[va]           [Total apparent power.]                                                                        [2110.00] = [211 * (10**1)] using scale factor [va_sf]
[var]          [Total reactive power.]                                                                        [-290.00] = [-29 * (10**1)] using scale factor [var_sf]
[pf]           [Power factor. The sign of power factor should be the sign of active power.]                   [0.99] = [99 * (10**-2)] using scale factor [pf_sf]
[a]            [Total AC current.]                                                                            [NOT_IMPLEMENTED]
[llv]          [Line to line AC voltage as an average of active phases.]                                      [405.90] = [4059 * (10**-1)] using scale factor [v_sf]
[lnv]          [Line to neutral AC voltage as an average of active phases.]                                   [234.40] = [2344 * (10**-1)] using scale factor [v_sf]
[hz]           [AC frequency.]                                                                                [49.98] = [49984 * (10**-3)] using scale factor [hz_sf]
[totwhinj]     [Total active energy injected (Quadrants 1 & 4).]                                              [NOT_IMPLEMENTED]
[totwhabs]     [Total active energy absorbed (Quadrants 2 & 3).]                                              [NOT_IMPLEMENTED]
[totvarhinj]   [Total reactive energy injected (Quadrants 1 & 2).]                                            [NOT_IMPLEMENTED]
[totvarhabs]   [Total reactive energy absorbed (Quadrants 3 & 4).]                                            [NOT_IMPLEMENTED]
[tmpamb]       [Ambient temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpcab]       [Cabinet temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpsnk]       [Heat sink temperature.]                                                                       [NOT_IMPLEMENTED]
[tmptrns]      [Transformer temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpsw]        [IGBT/MOSFET temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpot]        [Other temperature.]                                                                           [NOT_IMPLEMENTED]
[wl1]          [Active power L1.]                                                                             [NOT_IMPLEMENTED]
[val1]         [Apparent power L1.]                                                                           [NOT_IMPLEMENTED]
[varl1]        [Reactive power L1.]                                                                           [NOT_IMPLEMENTED]
[pfl1]         [Power factor phase L1.]                                                                       [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al1]          [Current phase L1.]                                                                            [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl1l2]        [Phase voltage L1-L2.]                                                                         [NOT_IMPLEMENTED]
[vl1]          [Phase voltage L1-N.]                                                                          [234.40] = [2344 * (10**-1)] using scale factor [v_sf]
[totwhinjl1]   [Total active energy injected L1.]                                                             [NOT_IMPLEMENTED]
[totwhabsl1]   [Total active energy absorbed L1.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl1] [Total reactive energy injected L1.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl1] [Total reactive energy absorbed L1.]                                                           [NOT_IMPLEMENTED]
[wl2]          [Active power L2.]                                                                             [NOT_IMPLEMENTED]
[val2]         [Apparent power L2.]                                                                           [NOT_IMPLEMENTED]
[varl2]        [Reactive power L2.]                                                                           [NOT_IMPLEMENTED]
[pfl2]         [Power factor L2.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al2]          [Current L2.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl2l3]        [Phase voltage L2-L3.]                                                                         [NOT_IMPLEMENTED]
[vl2]          [Phase voltage L2-N.]                                                                          [234.90] = [2349 * (10**-1)] using scale factor [v_sf]
[totwhinjl2]   [Total active energy injected L2.]                                                             [NOT_IMPLEMENTED]
[totwhabsl2]   [Total active energy absorbed L2.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl2] [Total reactive energy injected L2.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl2] [Total reactive energy absorbed L2.]                                                           [NOT_IMPLEMENTED]
[wl3]          [Active power L3.]                                                                             [NOT_IMPLEMENTED]
[val3]         [Apparent power L3.]                                                                           [NOT_IMPLEMENTED]
[varl3]        [Reactive power L3.]                                                                           [NOT_IMPLEMENTED]
[pfl3]         [Power factor L3.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al3]          [Current L3.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl3l1]        [Phase voltage L3-L1.]                                                                         [NOT_IMPLEMENTED]
[vl3]          [Phase voltage L3-N.]                                                                          [236.60] = [2366 * (10**-1)] using scale factor [v_sf]
[totwhinjl3]   [Total active energy injected L3.]                                                             [NOT_IMPLEMENTED]
[totwhabsl3]   [Total active energy absorbed L3.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl3] [Total reactive energy injected L3.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl3] [Total reactive energy absorbed L3.]                                                           [NOT_IMPLEMENTED]
[throtpct]     [Throttling in pct of maximum active power.]                                                   [NOT_IMPLEMENTED]
[throtsrc]     [Active throttling source.]                                                                    [NOT_IMPLEMENTED]
[a_sf]         [Current scale factor.]                                                                        [0]
[v_sf]         [Voltage scale factor.]                                                                        [-1]
[hz_sf]        [Frequency scale factor.]                                                                      [-3]
[w_sf]         [Active power scale factor.]                                                                   [1]
[pf_sf]        [Power factor scale factor.]                                                                   [-2]
[va_sf]        [Apparent power scale factor.]                                                                 [1]
[var_sf]       [Reactive power scale factor.]                                                                 [1]
[totwh_sf]     [Active energy scale factor.]                                                                  [0]
[totvarh_sf]   [Reactive energy scale factor.]                                                                [0]
[tmp_sf]       [Temperature scale factor.]                                                                    [0]
[mnalrminfo]   [Manufacturer alarm information. Valid if MANUFACTURER_ALRM indication is active.]             []


   Reading Block at address [40450 (0x9e02)] for device [1]
    Block id     = [702]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                                             [702]
[name]                                                                                                                           [DERCapacity]
[label]                                                                                                                          [DER Capacity]
[description]                                                                                                                    [DER capacity model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER capacity model ID.]                                                                                     [702]
[l]                 [DER capacity model length.]                                                                                 [50]
[wmaxrtg]           [Maximum active power rating at unity power factor in watts.]                                                [10600.00] = [10600 * (10**0)] using scale factor [w_sf]
[wovrextrtg]        [Active power rating at specified over-excited power factor in watts.]                                       [8480.00] = [8480 * (10**0)] using scale factor [w_sf]
[wovrextrtgpf]      [Specified over-excited power factor.]                                                                       [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[wundextrtg]        [Active power rating at specified under-excited power factor in watts.]                                      [8480.00] = [8480 * (10**0)] using scale factor [w_sf]
[wundextrtgpf]      [Specified under-excited power factor.]                                                                      [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[vamaxrtg]          [Maximum apparent power rating in voltamperes.]                                                              [10600.00] = [10600 * (10**0)] using scale factor [va_sf]
[varmaxinjrtg]      [Maximum injected reactive power rating in vars.]                                                            [6360.00] = [6360 * (10**0)] using scale factor [var_sf]
[varmaxabsrtg]      [Maximum absorbed reactive power rating in vars.]                                                            [6360.00] = [6360 * (10**0)] using scale factor [var_sf]
[wchartemaxrtg]     [Maximum active power charge rate in watts.]                                                                 [NOT_IMPLEMENTED]
[wdischartemaxrtg]  [Maximum active power discharge rate in watts.]                                                              [NOT_IMPLEMENTED]
[vachartemaxrtg]    [Maximum apparent power charge rate in voltamperes.]                                                         [NOT_IMPLEMENTED]
[vadischartemaxrtg] [Maximum apparent power discharge rate in voltamperes.]                                                      [NOT_IMPLEMENTED]
[vnomrtg]           [AC voltage nominal rating.]                                                                                 [230.00] = [2300 * (10**-1)] using scale factor [v_sf]
[vmaxrtg]           [AC voltage maximum rating.]                                                                                 [253.00] = [2530 * (10**-1)] using scale factor [v_sf]
[vminrtg]           [AC voltage minimum rating.]                                                                                 [202.40] = [2024 * (10**-1)] using scale factor [v_sf]
[amaxrtg]           [AC current maximum rating in amps.]                                                                         [NOT_IMPLEMENTED]
[pfovrextrtg]       [Unused. Please use WOvrExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[pfundextrtg]       [Unused. Please use WUndExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[reactsusceptrtg]   [Reactive susceptance that remains connected to the Area EPS in the cease to energize and trip state.]       [0]
[noropcatrtg]       [Normal operating performance category as specified in IEEE 1547-2018.]                                      [CAT_B]
[abnopcatrtg]       [Abnormal operating performance category as specified in IEEE 1547-2018.]                                    [CAT_3]
[ctrlmodes]         [Supported control mode functions.]                                                                          [4294965247]
[intislandcatrtg]   [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[wmax]              [Maximum active power setting used to adjust maximum active power setting.]                                  [NOT_IMPLEMENTED]
[wmaxovrext]        [Active power setting at specified over-excited power factor in watts.]                                      [NOT_IMPLEMENTED]
[wovrextpf]         [Specified over-excited power factor.]                                                                       [NOT_IMPLEMENTED]
[wmaxundext]        [Active power setting at specified under-excited power factor in watts.]                                     [NOT_IMPLEMENTED]
[wundextpf]         [Specified under-excited power factor.]                                                                      [NOT_IMPLEMENTED]
[vamax]             [Maximum apparent power setting used to adjust maximum apparent power rating.]                               [NOT_IMPLEMENTED]
[varmaxinj]         [Maximum injected reactive power setting used to adjust maximum injected reactive power rating.]             [NOT_IMPLEMENTED]
[varmaxabs]         [Maximum absorbed reactive power setting used to adjust maximum absorbed reactive power rating.]             [NOT_IMPLEMENTED]
[wchartemax]        [Maximum active power charge rate setting used to adjust maximum active power charge rate rating.]           [NOT_IMPLEMENTED]
[wdischartemax]     [Maximum active power discharge rate setting used to adjust maximum active power discharge rate rating.]     [NOT_IMPLEMENTED]
[vachartemax]       [Maximum apparent power charge rate setting used to adjust maximum apparent power charge rate rating.]       [NOT_IMPLEMENTED]
[vadischartemax]    [Maximum apparent power discharge rate setting used to adjust maximum apparent power discharge rate rating.] [NOT_IMPLEMENTED]
[vnom]              [Nominal AC voltage setting.]                                                                                [NOT_IMPLEMENTED]
[vmax]              [AC voltage maximum setting used to adjust AC voltage maximum rating.]                                       [NOT_IMPLEMENTED]
[vmin]              [AC voltage minimum setting used to adjust AC voltage minimum rating.]                                       [NOT_IMPLEMENTED]
[amax]              [Maximum AC current setting used to adjust maximum AC current rating.]                                       [NOT_IMPLEMENTED]
[pfovrext]          [Unused. Please use WOvrExtPF.]                                                                              [NOT_IMPLEMENTED]
[pfundext]          [Unused. Please use WUndExtPF.]                                                                              [NOT_IMPLEMENTED]
[intislandcat]      [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[w_sf]              [Active power scale factor.]                                                                                 [0]
[pf_sf]             [Power factor scale factor.]                                                                                 [-2]
[va_sf]             [Apparent power scale factor.]                                                                               [0]
[var_sf]            [Reactive power scale factor.]                                                                               [0]
[v_sf]              [Voltage scale factor.]                                                                                      [-1]
[a_sf]              [Current scale factor.]                                                                                      [0]
[s_sf]              [Susceptance scale factor.]                                                                                  [0]


   Reading Block at address [40502 (0x9e36)] for device [1]
    Block id     = [703]
    Block length = [17]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                               [703]
[name]                                                                             [DEREnterService]
[label]                                                                            [Enter Service]
[description]                                                                      [Enter service model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Enter service model ID.]                                            [703]
[l]           [Enter service model length.]                                        [17]
[es]          [Permit enter service.]                                              [ENABLED]
[esvhi]       [Enter service voltage high threshold as percent of normal voltage.] [110.00] = [11000 * (10**-2)] using scale factor [v_sf]
[esvlo]       [Enter service voltage low threshold as percent of normal voltage.]  [90.00] = [9000 * (10**-2)] using scale factor [v_sf]
[eshzhi]      [Enter service frequency high threshold.]                            [50.10] = [50100 * (10**-3)] using scale factor [hz_sf]
[eshzlo]      [Enter service frequency low threshold.]                             [49.90] = [49900 * (10**-3)] using scale factor [hz_sf]
[esdlytms]    [Enter service delay time in seconds.]                               [60]
[esrndtms]    [Enter service random delay in seconds.]                             [0]
[esrmptms]    [Enter service ramp time in seconds.]                                [300]
[esdlyremtms] [Enter service delay time remaining in seconds.]                     [NOT_IMPLEMENTED]
[v_sf]        [Voltage percentage scale factor.]                                   [-2]
[hz_sf]       [Frequency scale factor.]                                            [-3]


   Reading Block at address [40521 (0x9e49)] for device [1]
    Block id     = [704]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                              [704]
[name]                                                                                                            [DERCtlAC]
[label]                                                                                                           [DER AC Controls]
[description]                                                                                                     [DER AC controls model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER AC controls model ID.]                                                                   [704]
[l]                 [DER AC controls model length.]                                                               [65]
[pfwinjena]         [Power factor enable when injecting active power.]                                            [DISABLED]
[pfwinjenarvrt]     [Power factor reversion timer when injecting active power enable.]                            [NOT_IMPLEMENTED]
[pfwinjrvrttms]     [Power factor reversion timer when injecting active power.]                                   [NOT_IMPLEMENTED]
[pfwinjrvrtrem]     [Power factor reversion time remaining when injecting active power.]                          [NOT_IMPLEMENTED]
[pfwabsena]         [Power factor enable when absorbing active power.]                                            [NOT_IMPLEMENTED]
[pfwabsenarvrt]     [Power factor reversion timer when absorbing active power enable.]                            [NOT_IMPLEMENTED]
[pfwabsrvrttms]     [Power factor reversion timer when absorbing active power.]                                   [NOT_IMPLEMENTED]
[pfwabsrvrtrem]     [Power factor reversion time remaining when absorbing active power.]                          [NOT_IMPLEMENTED]
[wmaxlimpctena]     [Limit maximum active power percent enable.]                                                  [DISABLED]
[wmaxlimpct]        [Limit maximum active power percent value.]                                                   [NOT_IMPLEMENTED]
[wmaxlimpctrvrt]    [Reversion limit maximum active power percent value.]                                         [NOT_IMPLEMENTED]
[wmaxlimpctenarvrt] [Reversion limit maximum active power percent value enable.]                                  [NOT_IMPLEMENTED]
[wmaxlimpctrvrttms] [Limit maximum active power percent reversion time.]                                          [NOT_IMPLEMENTED]
[wmaxlimpctrvrtrem] [Limit maximum active power percent reversion time remaining.]                                [NOT_IMPLEMENTED]
[wsetena]           [Set active power enable.]                                                                    [DISABLED]
[wsetmod]           [Set active power mode.]                                                                      [W_MAX_PCT]
[wset]              [Active power setting value in watts.]                                                        [-1.00] = [-1 * (10**0)] using scale factor [wset_sf]
[wsetrvrt]          [Reversion active power setting value in watts.]                                              [NOT_IMPLEMENTED]
[wsetpct]           [Active power setting value as percent.]                                                      [-0.01] = [-1 * (10**-2)] using scale factor [wsetpct_sf]
[wsetpctrvrt]       [Reversion active power setting value as percent.]                                            [NOT_IMPLEMENTED]
[wsetenarvrt]       [Reversion active power function enable.]                                                     [NOT_IMPLEMENTED]
[wsetrvrttms]       [Set active power reversion time.]                                                            [NOT_IMPLEMENTED]
[wsetrvrtrem]       [Set active power reversion time remaining.]                                                  [NOT_IMPLEMENTED]
[varsetena]         [Set reactive power enable.]                                                                  [DISABLED]
[varsetmod]         [Set reactive power mode.]                                                                    [W_MAX_PCT]
[varsetpri]         [Reactive power priority.]                                                                    [NOT_IMPLEMENTED]
[varset]            [Reactive power setting value in vars.]                                                       [0]
[varsetrvrt]        [Reversion reactive power setting value in vars.]                                             [NOT_IMPLEMENTED]
[varsetpct]         [Reactive power setting value as percent.]                                                    [0]
[varsetpctrvrt]     [Reversion reactive power setting value as percent.]                                          [NOT_IMPLEMENTED]
[varsetenarvrt]     [Reversion reactive power function enable.]                                                   [NOT_IMPLEMENTED]
[varsetrvrttms]     [Set reactive power reversion time.]                                                          [NOT_IMPLEMENTED]
[varsetrvrtrem]     [Set reactive power reversion time remaining.]                                                [NOT_IMPLEMENTED]
[wrmp]              [Ramp rate for increases in active power during normal generation.]                           [NOT_IMPLEMENTED]
[wrmpref]           [Ramp rate reference unit for increases in active power or current during normal generation.] [NOT_IMPLEMENTED]
[varrmp]            [Ramp rate based on max reactive power per second.]                                           [NOT_IMPLEMENTED]
[antiislena]        [Anti-islanding enable.]                                                                      [NOT_IMPLEMENTED]
[pf_sf]             [Power factor scale factor.]                                                                  [-3]
[wmaxlimpct_sf]     [Limit maximum power scale factor.]                                                           [-2]
[wset_sf]           [Active power scale factor.]                                                                  [0]
[wsetpct_sf]        [Active power pct scale factor.]                                                              [-2]
[varset_sf]         [Reactive power scale factor.]                                                                [0]
[varsetpct_sf]      [Reactive power pct scale factor.]                                                            [-2]


   Reading Block at address [40588 (0x9e8c)] for device [1]
    Block id     = [705]
    Block length = [57]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [705]
[name]                                                                  [DERVoltVar]
[label]                                                                 [DER Volt-Var]
[description]                                                           [DER Volt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Var model ID.]                                  [705]
[l]           [DER Volt-Var model length.]                              [57]
[ena]         [Volt-Var control enable.]                                [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve var points.]                      [-2]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40647 (0x9ec7)] for device [1]
    Block id     = [706]
    Block length = [47]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [706]
[name]                                                                  [DERVoltWatt]
[label]                                                                 [DER Volt-Watt]
[description]                                                           [DER Volt-Watt model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Watt model ID.]                                 [706]
[l]           [DER Volt-Watt model length.]                             [47]
[ena]         [Volt-Watt control enable.]                               [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve watt points.]                     [0]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40696 (0x9ef8)] for device [1]
    Block id     = [707]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [707]
[name]                                                                  [DERTripLV]
[label]                                                                 [DER Trip LV]
[description]                                                           [DER low voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low voltage trip model ID.]                          [707]
[l]           [DER low voltage trip model length.]                      [105]
[ena]         [DER low voltage trip control enable.]                    [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40803 (0x9f63)] for device [1]
    Block id     = [708]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [708]
[name]                                                                  [DERTripHV]
[label]                                                                 [DER Trip HV]
[description]                                                           [DER high voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high voltage trip model ID.]                         [708]
[l]           [DER high voltage trip model length.]                     [105]
[ena]         [DER high voltage trip control enable.]                   [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40910 (0x9fce)] for device [1]
    Block id     = [709]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [709]
[name]                                                                  [DERTripLF]
[label]                                                                 [DER Trip LF]
[description]                                                           [DER low frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low frequency trip model ID.]                        [709]
[l]           [DER low frequency trip model length.]                    [135]
[ena]         [DER low frequency trip control enable.]                  [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41047 (0xa057)] for device [1]
    Block id     = [710]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [710]
[name]                                                                  [DERTripHF]
[label]                                                                 [DER Trip HF]
[description]                                                           [DER high frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high frequency trip model ID.]                       [710]
[l]           [DER high frequency trip model length.]                   [135]
[ena]         [DER high frequency trip control enable.]                 [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41184 (0xa0e0)] for device [1]
    Block id     = [711]
    Block length = [32]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                 [711]
[name]                                                               [DERFreqDroop]
[label]                                                              [DER Frequency Droop]
[description]                                                        [DER Frequency Droop model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Frequency Droop model ID.]                        [711]
[l]           [DER Frequency Droop model length.]                    [32]
[ena]         [DER Frequency-Watt (Frequency-Droop) control enable.] [DISABLED]
[adptctlreq]  [Set active control. 0 = No active control.]           [0]
[adptctlrslt] [Result of last set active control operation.]         [COMPLETED]
[nctl]        [Number of stored controls supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]   [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                 [NOT_IMPLEMENTED]
[rvrtctl]     [Default control after reversion timeout.]             [NOT_IMPLEMENTED]
[db_sf]       [Deadband scale factor.]                               [-3]
[k_sf]        [Frequency change scale factor.]                       [-3]
[rsptms_sf]   [Open loop response time scale factor.]                [-3]


   Reading Block at address [41218 (0xa102)] for device [1]
    Block id     = [712]
    Block length = [44]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                               [712]
[name]                                                             [DERWattVar]
[label]                                                            [DER Watt-Var]
[description]                                                      [DER Watt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Watt-Var model ID.]                             [712]
[l]           [DER Watt-Var model length.]                         [44]
[ena]         [DER Watt-Var control enable.]                       [DISABLED]
[adptcrvreq]  [Set active curve. 0 = No active curve.]             [0]
[adptcrvrslt] [Result of last set active curve operation.]         [COMPLETED]
[npt]         [Number of curve points supported.]                  [6]
[ncrv]        [Number of stored curves supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.] [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]               [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]             [NOT_IMPLEMENTED]
[w_sf]        [Scale factor for curve active power points.]        [-2]
[deptref_sf]  [Scale factor for curve var points.]                 [-2]


   Reading Block at address [41264 (0xa130)] for device [1]
    Block id     = [713]
    Block length = [7]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                              [713]
[name]                                                                            [DERStorageCapacity]
[label]                                                                           [DER Storage Capacity]
[description]                                                                     [DER storage capacity.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER storage capacity model ID.]                                    [713]
[l]           [DER storage capacity model length.]                                [7]
[whrtg]       [Energy rating of the DER storage.]                                 [NOT_IMPLEMENTED]
[whavail]     [Energy available of the DER storage (WHAvail = WHRtg * SoC * SoH)] [NOT_IMPLEMENTED]
[soc]         [State of charge of the DER storage.]                               [58.89] = [5889 * (10**-2)] using scale factor [pct_sf]
[soh]         [State of health of the DER storage.]                               [NOT_IMPLEMENTED]
[sta]         [Storage status.]                                                   [NOT_IMPLEMENTED]
[wh_sf]       [Scale factor for energy capacity.]                                 [-2]
[pct_sf]      [Scale factor for percentage.]                                      [-2]


   Reading Block at address [41273 (0xa139)] for device [1]
    Block id     = [65535]
    Block length = [0]
    Block type   = [The End of the block list has been reached]

  End of SunSpec MAP

  Looking for Battery at address [57600 (0xe100)] for device [1]

     Manufacturer     [SolarEdge]
     Model            [Home Battery 48V - 5 modules]
     Firmware Version [48V DCDC 3.5.13]
     Device id        [112]
No response received after 3 retries, continue with next request
Received ModbusException(Modbus Error: [Input/Output] No response received after 3 retries, continue with next request) from library
     Registers        [None]

  Looking for Battery at address [57856 (0xe200)] for device [1]
   No battery found at this address

Disconnected from server
AddieJanssen
Posts: 50
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

Are these results from the scanner with the increased timeout?
Please check line 168 of the scanner. It should read:

Code: Select all

line 168: client = ModbusTcpClient(host=args.host, port=args.port, timeout=15)
eddieb
Posts: 430
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by eddieb »

do you need more test results @addie ? (I have a SE3500H)

using this compose.yml thru dockge works independant of any domoticz install

Code: Select all

services:
  python-app:
    image: python:latest
    working_dir: /app
    volumes:
      - .:/app
    # Bash chain: Install packages first, THEN run the script
    command: sh -c "rm -rf solaredge-scanner && git clone
      https://github.com/addiejanssen/solaredge-scanner.git && pip install
      pymodbus==3.15.0 && python solaredge-scanner/scanner.py 192.168.1.239
      1502 >>solaredge-scanner.out"
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / IndeVolt SF3000 / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
AddieJanssen
Posts: 50
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

The more the better.....
So, please share your scan results - it helps to find the little changes that can break things.
hjzwiers
Posts: 326
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

Ive added a smallblocks readout to the battery, the overview is too big to be sent with this messenger, the relevant part:

Code: Select all

  Looking for Battery at address [57600 (0xe100)] for device [1]

     Manufacturer     [SolarEdge]
     Model            [Home Battery 48V - 5 modules]
     Firmware Version [48V DCDC 3.5.13]
     Device id        [112]
     Battery block   EE100 count=66
     Battery block   EE100 OK (66 registers)
     Battery block   EE142 count=66
     Battery block   EE142 OK (66 registers)
     Battery block   EE184 count=22
     Battery block   EE184 OK (22 registers)
     Registers        [21359, 27745, 29253, 25703, 25856, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18543, 28005, 8258, 24948, 29797, 29305, 8244, 14422, 8237, 8245, 8301, 28516, 30060, 25971, 0, 0, 13368, 22048, 17475, 17475, 8243, 11829, 11825, 13056, 0, 0, 0, 0, 0, 0, 0, 0, 14146, 12341, 12854, 17473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 0, 45056, 18099, 16384, 17820, 16384, 17820, 16384, 17820, 16384, 17820, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26215, 16838, 0, 0, 12984, 17485, 39416, 48973, 0, 17445, 8070, 0, 0, 0, 9200, 0, 0, 0, 45056, 18099, 52429, 18092, 0, 17088, 36409, 17003, 3, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

  Looking for Battery at address [57856 (0xe200)] for device [1]
   No battery found at this address

Disconnected from server

Code: Select all

#!/usr/bin/env python3
"""
Addie's SolarEdge scanner:
- keeps her original 15-second timeout and general Modbus chunking
- uses scanner7's direct read_holding_registers method ONLY for the
  proprietary battery blocks
- splits the 154-register battery area into 66 + 66 + 22

usage: scanner8_addie_smallblocks.py host port
"""

import argparse

from pymodbus import ModbusException
from pymodbus.client import ModbusTcpClient
from pymodbus.pdu import ModbusPDU

import sunspec_models


def modbus_read(client: ModbusTcpClient, device_id: int, address: int, count: int) -> list[int]:
    """Addie's original general-purpose reader, including >125 chunking."""
    result: list[int] = []
    start: int = address
    end: int = address + count
    read_now: int

    while start < end:
        if end - start > 125:
            read_now = 125
        else:
            read_now = end - start

        try:
            if not client.connected:
                print("Reconnecting to server")
                client.connect()

            rr: ModbusPDU = client.read_holding_registers(
                address=start, count=read_now, device_id=device_id
            )
        except ModbusException as exc:
            print(f"Received ModbusException({exc}) from library")
            return []

        if rr.isError():
            print(f"Received exception from device ({rr})")
            return []

        if len(rr.registers) != read_now:
            print(f"expected [{read_now}] got [{len(rr.registers)}]")

        start += read_now
        result.extend(rr.registers)

    return result


def battery_direct_read(
    client: ModbusTcpClient, device_id: int, address: int, count: int
) -> list[int]:
    """
    scanner7.py-style direct read.

    Deliberately does NOT use Addie's >125 chunking logic. Battery calls
    here are all <=66 registers.
    """
    try:
        if not client.connected:
            print("Reconnecting to server")
            client.connect()

        rr: ModbusPDU = client.read_holding_registers(
            address=address,
            count=count,
            device_id=device_id,
        )
    except ModbusException as exc:
        print(f"Received ModbusException({exc}) from library")
        return []

    if rr.isError():
        print(f"Received exception from device ({rr})")
        return []

    if len(rr.registers) != count:
        print(f"expected [{count}] got [{len(rr.registers)}]")

    return rr.registers


def get_value(
    registers: list[int], offset: int, count: int,
    data_type: ModbusTcpClient.DATATYPE
) -> int | float | str | list[bool] | list[int] | list[float]:
    return ModbusTcpClient.convert_from_registers(
        registers=registers[offset:offset + count],
        data_type=data_type
    )


def sunspec_found(client: ModbusTcpClient, device_id: int, address: int) -> bool:
    print(
        f"  Looking for SunSpec identifier at address "
        f"[{address} ({hex(address)})] for device [{device_id}]"
    )

    registers = modbus_read(client, device_id, address, 2)
    if not registers:
        return False

    identifier = get_value(
        registers, 0, 2, ModbusTcpClient.DATATYPE.STRING
    )
    return identifier == "SunS"


def process_sunspec_block(
    client: ModbusTcpClient, device_id: int, block_address: int
) -> int:
    print()
    print(
        f"   Reading Block at address "
        f"[{block_address} ({hex(block_address)})] for device [{device_id}]"
    )

    next_address = -1
    block_length = -1

    registers = modbus_read(client, device_id, block_address, 2)

    if registers:
        next_address = block_address + 2

        block_id = get_value(
            registers, 0, 1, ModbusTcpClient.DATATYPE.UINT16
        )
        block_length = get_value(
            registers, 1, 1, ModbusTcpClient.DATATYPE.UINT16
        )

        print(f"    Block id     = [{block_id}]")
        print(f"    Block length = [{block_length}]")

        if block_id == sunspec_models.SunSpecNotImplemented.UINT16:
            print("    Block type   = [The End of the block list has been reached]")
            next_address = -1
        else:
            registers = modbus_read(
                client, device_id, block_address, block_length + 2
            )
            if registers:
                model = sunspec_models.get_model(registers=registers)
                if model:
                    model.display(registers=registers)
                else:
                    print(f"    Model not found = {registers}")
            else:
                print("    Registers     = [None]")
    else:
        print("    Registers     = [None]")

    if next_address >= 0 and block_length > 0:
        return next_address + block_length
    return -1


def process_battery(
    client: ModbusTcpClient, device_id: int, address: int
) -> None:
    print(
        f"  Looking for Battery at address "
        f"[{address} ({hex(address)})] for device [{device_id}]"
    )

    # Identification: known-good 66-register read.
    registers = battery_direct_read(client, device_id, address, 66)

    if not registers:
        print("     Registers     [None]")
        print()
        return

    battery_device_id = get_value(
        registers, 64, 1, ModbusTcpClient.DATATYPE.UINT16
    )

    if battery_device_id == 255 or registers[0] == 0:
        print("   No battery found at this address")
        print()
        return

    manufacturer = get_value(
        registers, 0, 16, ModbusTcpClient.DATATYPE.STRING
    )
    model = get_value(
        registers, 16, 16, ModbusTcpClient.DATATYPE.STRING
    )
    firmware_version = get_value(
        registers, 32, 16, ModbusTcpClient.DATATYPE.STRING
    )

    print()
    print(f"     Manufacturer     [{manufacturer}]")
    print(f"     Model            [{model}]")
    print(f"     Firmware Version [{firmware_version}]")
    print(f"     Device id        [{battery_device_id}]")

    # 154-register proprietary area, split into small direct reads.
    blocks = [
        (address, 66),
        (address + 66, 66),
        (address + 132, 22),
    ]

    all_registers: list[int] = []

    for block_address, block_count in blocks:
        print(
            f"     Battery block   E{block_address:03X} "
            f"count={block_count}"
        )

        block = battery_direct_read(
            client, device_id, block_address, block_count
        )

        if not block:
            print(
                f"     Battery block   E{block_address:03X} FAILED"
            )
            print("     Registers       [None]")
            print()
            return

        print(
            f"     Battery block   E{block_address:03X} "
            f"OK ({len(block)} registers)"
        )
        all_registers.extend(block)

    print(f"     Registers        {all_registers}")
    print()


if __name__ == "__main__":
    argparser = argparse.ArgumentParser()
    argparser.add_argument("host", type=str, help="modbus TCP address")
    argparser.add_argument("port", type=int, help="modbus TCP port")
    argparser.add_argument(
        "--device-id",
        type=int,
        choices=range(1, 256),
        default=1,
        metavar="[1-255]",
        help="modbus device address (default: 1)"
    )

    args = argparser.parse_args()

    # Addie's 15-second timeout retained.
    client = ModbusTcpClient(
        host=args.host, port=args.port, timeout=15
    )

    print("Connecting to server")
    client.connect()

    if client.connected:
        print()
        print(" Connected to server")
        print()

        if sunspec_found(client, args.device_id, 40000):
            print("  The inverter is providing a SunSpec Map")

            address = 40002
            while address > 0 and client.connected:
                address = process_sunspec_block(
                    client, args.device_id, address
                )

            print()
            print("  End of SunSpec MAP")
        else:
            print("  The inverter is NOT providing a SunSpec Map")

        print()

        process_battery(client, args.device_id, 57600)
        process_battery(client, args.device_id, 57856)

    if client.connected:
        client.close()
        print("Disconnected from server")
    else:
        print("Already disconnected from server")
Last edited by hjzwiers on Thursday 08 October 2026 11:38, edited 1 time in total.
eddieb
Posts: 430
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by eddieb »

Code: Select all

Connecting to server

 Connected to server

  Looking for SunSpec identifier at address [40000 (0x9c40)] for device [1]
  The inverter is providing a SunSpec Map

   Reading Block at address [40002 (0x9c42)] for device [1]
    Block id     = [1]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [1]
[name]                                                                  [common]
[label]                                                                 [Common]
[description]                                                           [All SunSpec compliant devices must include this as the first model]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                                        [1]
[l]           [Model length]                                            [65]
[mn]          [Well known value registered with SunSpec for compliance] [SolarEdge ]
[md]          [Manufacturer specific value (32 chars)]                  [SE3500H-RW000BNN4]
[opt]         [Manufacturer specific value (16 chars)]                  []
[vr]          [Manufacturer specific value (16 chars)]                  [0004.0023.0036]
[sn]          [Manufacturer specific value (32 chars)]                  [hidden]
[da]          [Modbus device address]                                   [1]


   Reading Block at address [40069 (0x9c85)] for device [1]
    Block id     = [101]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                 [101]
[name]                                               [inverter_single_phase]
[label]                                              [Inverter (Single Phase)]
[description]                                        [Include this model for single phase inverter monitoring]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Model identifier]                     [101]
[l]           [Model length]                         [50]
[a]           [AC Current]                           [5.35] = [535 * (10**-2)] using scale factor [a_sf]
[apha]        [Phase A Current]                      [5.35] = [535 * (10**-2)] using scale factor [a_sf]
[aphb]        [Phase B Current]                      [NOT_IMPLEMENTED]
[aphc]        [Phase C Current]                      [NOT_IMPLEMENTED]
[a_sf]        []                                     [-2]
[ppvphab]     [Phase Voltage AB]                     [238.40] = [2384 * (10**-1)] using scale factor [v_sf]
[ppvphbc]     [Phase Voltage BC]                     [NOT_IMPLEMENTED]
[ppvphca]     [Phase Voltage CA]                     [NOT_IMPLEMENTED]
[phvpha]      [Phase Voltage AN]                     [238.40] = [2384 * (10**-1)] using scale factor [v_sf]
[phvphb]      [Phase Voltage BN]                     [NOT_IMPLEMENTED]
[phvphc]      [Phase Voltage CN]                     [NOT_IMPLEMENTED]
[v_sf]        []                                     [-1]
[w]           [AC Power]                             [1269.30] = [12693 * (10**-1)] using scale factor [w_sf]
[w_sf]        []                                     [-1]
[hz]          [Line Frequency]                       [50.00] = [49997 * (10**-3)] using scale factor [hz_sf]
[hz_sf]       []                                     [-3]
[va]          [AC Apparent Power]                    [1277.90] = [12779 * (10**-1)] using scale factor [va_sf]
[va_sf]       []                                     [-1]
[var]         [AC Reactive Power]                    [148.45] = [14845 * (10**-2)] using scale factor [var_sf]
[var_sf]      []                                     [-2]
[pf]          [AC Power Factor]                      [99.32] = [9932 * (10**-2)] using scale factor [pf_sf]
[pf_sf]       []                                     [-2]
[wh]          [AC Energy]                            [30242826.00] = [30242826 * (10**0)] using scale factor [wh_sf]
[wh_sf]       []                                     [0]
[dca]         [DC Current]                           [3.48] = [3482 * (10**-3)] using scale factor [dca_sf]
[dca_sf]      []                                     [-3]
[dcv]         [DC Voltage]                           [370.00] = [3700 * (10**-1)] using scale factor [dcv_sf]
[dcv_sf]      []                                     [-1]
[dcw]         [DC Power]                             [1288.60] = [12886 * (10**-1)] using scale factor [dcw_sf]
[dcw_sf]      []                                     [-1]
[tmpcab]      [Cabinet Temperature]                  [NOT_IMPLEMENTED]
[tmpsnk]      [Heat Sink Temperature]                [36.46] = [3646 * (10**-2)] using scale factor [tmp_sf]
[tmptrns]     [Transformer Temperature]              [NOT_IMPLEMENTED]
[tmpot]       [Other Temperature]                    [NOT_IMPLEMENTED]
[tmp_sf]      []                                     [-2]
[st]          [Enumerated value.  Operating state]   [MPPT]
[stvnd]       [Vendor specific operating state code] [0]
[evt1]        [Bitmask value. Event fields]          [NOT_IMPLEMENTED]
[evt2]        [Reserved for future use]              [NOT_IMPLEMENTED]
[evtvnd1]     [Vendor defined events]                [0]
[evtvnd2]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd3]     [Vendor defined events]                [NOT_IMPLEMENTED]
[evtvnd4]     [Vendor defined events]                [0]


   Reading Block at address [40121 (0x9cb9)] for device [1]
    Block id     = [701]
    Block length = [153]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                          [701]
[name]                                                                                                        [DERMeasureAC]
[label]                                                                                                       [DER AC Measurement]
[description]                                                                                                 [DER AC measurement model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]           [DER AC measurement model ID.]                                                                 [701]
[l]            [DER AC measurement model length.]                                                             [153]
[actype]       [AC wiring type.]                                                                              [SINGLE_PHASE]
[st]           [Operating state of the DER.]                                                                  [ON]
[invst]        [Enumerated value.  Inverter state.]                                                           [NOT_IMPLEMENTED]
[connst]       [Grid connection state of the DER.]                                                            [CONNECTED]
[alrm]         [Active alarms for the DER.]                                                                   [0]
[dermode]      [Current operational characteristics of the DER.]                                              [NOT_IMPLEMENTED]
[w]            [Total active power. Active power is positive for DER generation and negative for absorption.] [1270.00] = [127 * (10**1)] using scale factor [w_sf]
[va]           [Total apparent power.]                                                                        [1280.00] = [128 * (10**1)] using scale factor [va_sf]
[var]          [Total reactive power.]                                                                        [150.00] = [15 * (10**1)] using scale factor [var_sf]
[pf]           [Power factor. The sign of power factor should be the sign of active power.]                   [0.99] = [99 * (10**-2)] using scale factor [pf_sf]
[a]            [Total AC current.]                                                                            [NOT_IMPLEMENTED]
[llv]          [Line to line AC voltage as an average of active phases.]                                      [238.40] = [2384 * (10**-1)] using scale factor [v_sf]
[lnv]          [Line to neutral AC voltage as an average of active phases.]                                   [119.20] = [1192 * (10**-1)] using scale factor [v_sf]
[hz]           [AC frequency.]                                                                                [50.00] = [49997 * (10**-3)] using scale factor [hz_sf]
[totwhinj]     [Total active energy injected (Quadrants 1 & 4).]                                              [NOT_IMPLEMENTED]
[totwhabs]     [Total active energy absorbed (Quadrants 2 & 3).]                                              [NOT_IMPLEMENTED]
[totvarhinj]   [Total reactive energy injected (Quadrants 1 & 2).]                                            [NOT_IMPLEMENTED]
[totvarhabs]   [Total reactive energy absorbed (Quadrants 3 & 4).]                                            [NOT_IMPLEMENTED]
[tmpamb]       [Ambient temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpcab]       [Cabinet temperature.]                                                                         [NOT_IMPLEMENTED]
[tmpsnk]       [Heat sink temperature.]                                                                       [NOT_IMPLEMENTED]
[tmptrns]      [Transformer temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpsw]        [IGBT/MOSFET temperature.]                                                                     [NOT_IMPLEMENTED]
[tmpot]        [Other temperature.]                                                                           [NOT_IMPLEMENTED]
[wl1]          [Active power L1.]                                                                             [NOT_IMPLEMENTED]
[val1]         [Apparent power L1.]                                                                           [NOT_IMPLEMENTED]
[varl1]        [Reactive power L1.]                                                                           [NOT_IMPLEMENTED]
[pfl1]         [Power factor phase L1.]                                                                       [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al1]          [Current phase L1.]                                                                            [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl1l2]        [Phase voltage L1-L2.]                                                                         [NOT_IMPLEMENTED]
[vl1]          [Phase voltage L1-N.]                                                                          [238.40] = [2384 * (10**-1)] using scale factor [v_sf]
[totwhinjl1]   [Total active energy injected L1.]                                                             [NOT_IMPLEMENTED]
[totwhabsl1]   [Total active energy absorbed L1.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl1] [Total reactive energy injected L1.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl1] [Total reactive energy absorbed L1.]                                                           [NOT_IMPLEMENTED]
[wl2]          [Active power L2.]                                                                             [NOT_IMPLEMENTED]
[val2]         [Apparent power L2.]                                                                           [NOT_IMPLEMENTED]
[varl2]        [Reactive power L2.]                                                                           [NOT_IMPLEMENTED]
[pfl2]         [Power factor L2.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al2]          [Current L2.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl2l3]        [Phase voltage L2-L3.]                                                                         [NOT_IMPLEMENTED]
[vl2]          [Phase voltage L2-N.]                                                                          [0]
[totwhinjl2]   [Total active energy injected L2.]                                                             [NOT_IMPLEMENTED]
[totwhabsl2]   [Total active energy absorbed L2.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl2] [Total reactive energy injected L2.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl2] [Total reactive energy absorbed L2.]                                                           [NOT_IMPLEMENTED]
[wl3]          [Active power L3.]                                                                             [NOT_IMPLEMENTED]
[val3]         [Apparent power L3.]                                                                           [NOT_IMPLEMENTED]
[varl3]        [Reactive power L3.]                                                                           [NOT_IMPLEMENTED]
[pfl3]         [Power factor L3.]                                                                             [-0.01] = [-1 * (10**-2)] using scale factor [pf_sf]
[al3]          [Current L3.]                                                                                  [-1.00] = [-1 * (10**0)] using scale factor [a_sf]
[vl3l1]        [Phase voltage L3-L1.]                                                                         [NOT_IMPLEMENTED]
[vl3]          [Phase voltage L3-N.]                                                                          [0]
[totwhinjl3]   [Total active energy injected L3.]                                                             [NOT_IMPLEMENTED]
[totwhabsl3]   [Total active energy absorbed L3.]                                                             [NOT_IMPLEMENTED]
[totvarhinjl3] [Total reactive energy injected L3.]                                                           [NOT_IMPLEMENTED]
[totvarhabsl3] [Total reactive energy absorbed L3.]                                                           [NOT_IMPLEMENTED]
[throtpct]     [Throttling in pct of maximum active power.]                                                   [NOT_IMPLEMENTED]
[throtsrc]     [Active throttling source.]                                                                    [NOT_IMPLEMENTED]
[a_sf]         [Current scale factor.]                                                                        [0]
[v_sf]         [Voltage scale factor.]                                                                        [-1]
[hz_sf]        [Frequency scale factor.]                                                                      [-3]
[w_sf]         [Active power scale factor.]                                                                   [1]
[pf_sf]        [Power factor scale factor.]                                                                   [-2]
[va_sf]        [Apparent power scale factor.]                                                                 [1]
[var_sf]       [Reactive power scale factor.]                                                                 [1]
[totwh_sf]     [Active energy scale factor.]                                                                  [0]
[totvarh_sf]   [Reactive energy scale factor.]                                                                [0]
[tmp_sf]       [Temperature scale factor.]                                                                    [0]
[mnalrminfo]   [Manufacturer alarm information. Valid if MANUFACTURER_ALRM indication is active.]             []


   Reading Block at address [40276 (0x9d54)] for device [1]
    Block id     = [702]
    Block length = [50]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                                             [702]
[name]                                                                                                                           [DERCapacity]
[label]                                                                                                                          [DER Capacity]
[description]                                                                                                                    [DER capacity model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER capacity model ID.]                                                                                     [702]
[l]                 [DER capacity model length.]                                                                                 [50]
[wmaxrtg]           [Maximum active power rating at unity power factor in watts.]                                                [3700.00] = [3700 * (10**0)] using scale factor [w_sf]
[wovrextrtg]        [Active power rating at specified over-excited power factor in watts.]                                       [2960.00] = [2960 * (10**0)] using scale factor [w_sf]
[wovrextrtgpf]      [Specified over-excited power factor.]                                                                       [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[wundextrtg]        [Active power rating at specified under-excited power factor in watts.]                                      [2960.00] = [2960 * (10**0)] using scale factor [w_sf]
[wundextrtgpf]      [Specified under-excited power factor.]                                                                      [0.80] = [80 * (10**-2)] using scale factor [pf_sf]
[vamaxrtg]          [Maximum apparent power rating in voltamperes.]                                                              [3700.00] = [3700 * (10**0)] using scale factor [va_sf]
[varmaxinjrtg]      [Maximum injected reactive power rating in vars.]                                                            [2220.00] = [2220 * (10**0)] using scale factor [var_sf]
[varmaxabsrtg]      [Maximum absorbed reactive power rating in vars.]                                                            [2220.00] = [2220 * (10**0)] using scale factor [var_sf]
[wchartemaxrtg]     [Maximum active power charge rate in watts.]                                                                 [3700.00] = [3700 * (10**0)] using scale factor [w_sf]
[wdischartemaxrtg]  [Maximum active power discharge rate in watts.]                                                              [NOT_IMPLEMENTED]
[vachartemaxrtg]    [Maximum apparent power charge rate in voltamperes.]                                                         [3700.00] = [3700 * (10**0)] using scale factor [va_sf]
[vadischartemaxrtg] [Maximum apparent power discharge rate in voltamperes.]                                                      [NOT_IMPLEMENTED]
[vnomrtg]           [AC voltage nominal rating.]                                                                                 [230.00] = [2300 * (10**-1)] using scale factor [v_sf]
[vmaxrtg]           [AC voltage maximum rating.]                                                                                 [253.00] = [2530 * (10**-1)] using scale factor [v_sf]
[vminrtg]           [AC voltage minimum rating.]                                                                                 [202.40] = [2024 * (10**-1)] using scale factor [v_sf]
[amaxrtg]           [AC current maximum rating in amps.]                                                                         [NOT_IMPLEMENTED]
[pfovrextrtg]       [Unused. Please use WOvrExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[pfundextrtg]       [Unused. Please use WUndExtRtgPF.]                                                                           [NOT_IMPLEMENTED]
[reactsusceptrtg]   [Reactive susceptance that remains connected to the Area EPS in the cease to energize and trip state.]       [0]
[noropcatrtg]       [Normal operating performance category as specified in IEEE 1547-2018.]                                      [CAT_B]
[abnopcatrtg]       [Abnormal operating performance category as specified in IEEE 1547-2018.]                                    [CAT_3]
[ctrlmodes]         [Supported control mode functions.]                                                                          [4294965247]
[intislandcatrtg]   [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[wmax]              [Maximum active power setting used to adjust maximum active power setting.]                                  [NOT_IMPLEMENTED]
[wmaxovrext]        [Active power setting at specified over-excited power factor in watts.]                                      [NOT_IMPLEMENTED]
[wovrextpf]         [Specified over-excited power factor.]                                                                       [NOT_IMPLEMENTED]
[wmaxundext]        [Active power setting at specified under-excited power factor in watts.]                                     [NOT_IMPLEMENTED]
[wundextpf]         [Specified under-excited power factor.]                                                                      [NOT_IMPLEMENTED]
[vamax]             [Maximum apparent power setting used to adjust maximum apparent power rating.]                               [NOT_IMPLEMENTED]
[varmaxinj]         [Maximum injected reactive power setting used to adjust maximum injected reactive power rating.]             [NOT_IMPLEMENTED]
[varmaxabs]         [Maximum absorbed reactive power setting used to adjust maximum absorbed reactive power rating.]             [NOT_IMPLEMENTED]
[wchartemax]        [Maximum active power charge rate setting used to adjust maximum active power charge rate rating.]           [NOT_IMPLEMENTED]
[wdischartemax]     [Maximum active power discharge rate setting used to adjust maximum active power discharge rate rating.]     [NOT_IMPLEMENTED]
[vachartemax]       [Maximum apparent power charge rate setting used to adjust maximum apparent power charge rate rating.]       [NOT_IMPLEMENTED]
[vadischartemax]    [Maximum apparent power discharge rate setting used to adjust maximum apparent power discharge rate rating.] [NOT_IMPLEMENTED]
[vnom]              [Nominal AC voltage setting.]                                                                                [NOT_IMPLEMENTED]
[vmax]              [AC voltage maximum setting used to adjust AC voltage maximum rating.]                                       [NOT_IMPLEMENTED]
[vmin]              [AC voltage minimum setting used to adjust AC voltage minimum rating.]                                       [NOT_IMPLEMENTED]
[amax]              [Maximum AC current setting used to adjust maximum AC current rating.]                                       [NOT_IMPLEMENTED]
[pfovrext]          [Unused. Please use WOvrExtPF.]                                                                              [NOT_IMPLEMENTED]
[pfundext]          [Unused. Please use WUndExtPF.]                                                                              [NOT_IMPLEMENTED]
[intislandcat]      [Intentional island categories.]                                                                             [NOT_IMPLEMENTED]
[w_sf]              [Active power scale factor.]                                                                                 [0]
[pf_sf]             [Power factor scale factor.]                                                                                 [-2]
[va_sf]             [Apparent power scale factor.]                                                                               [0]
[var_sf]            [Reactive power scale factor.]                                                                               [0]
[v_sf]              [Voltage scale factor.]                                                                                      [-1]
[a_sf]              [Current scale factor.]                                                                                      [0]
[s_sf]              [Susceptance scale factor.]                                                                                  [0]


   Reading Block at address [40328 (0x9d88)] for device [1]
    Block id     = [703]
    Block length = [17]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                               [703]
[name]                                                                             [DEREnterService]
[label]                                                                            [Enter Service]
[description]                                                                      [Enter service model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [Enter service model ID.]                                            [703]
[l]           [Enter service model length.]                                        [17]
[es]          [Permit enter service.]                                              [ENABLED]
[esvhi]       [Enter service voltage high threshold as percent of normal voltage.] [111.30] = [11130 * (10**-2)] using scale factor [v_sf]
[esvlo]       [Enter service voltage low threshold as percent of normal voltage.]  [83.48] = [8348 * (10**-2)] using scale factor [v_sf]
[eshzhi]      [Enter service frequency high threshold.]                            [50.20] = [50200 * (10**-3)] using scale factor [hz_sf]
[eshzlo]      [Enter service frequency low threshold.]                             [49.40] = [49400 * (10**-3)] using scale factor [hz_sf]
[esdlytms]    [Enter service delay time in seconds.]                               [60]
[esrndtms]    [Enter service random delay in seconds.]                             [0]
[esrmptms]    [Enter service ramp time in seconds.]                                [600]
[esdlyremtms] [Enter service delay time remaining in seconds.]                     [NOT_IMPLEMENTED]
[v_sf]        [Voltage percentage scale factor.]                                   [-2]
[hz_sf]       [Frequency scale factor.]                                            [-3]


   Reading Block at address [40347 (0x9d9b)] for device [1]
    Block id     = [704]
    Block length = [65]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                                                              [704]
[name]                                                                                                            [DERCtlAC]
[label]                                                                                                           [DER AC Controls]
[description]                                                                                                     [DER AC controls model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]                [DER AC controls model ID.]                                                                   [704]
[l]                 [DER AC controls model length.]                                                               [65]
[pfwinjena]         [Power factor enable when injecting active power.]                                            [ENABLED]
[pfwinjenarvrt]     [Power factor reversion timer when injecting active power enable.]                            [NOT_IMPLEMENTED]
[pfwinjrvrttms]     [Power factor reversion timer when injecting active power.]                                   [NOT_IMPLEMENTED]
[pfwinjrvrtrem]     [Power factor reversion time remaining when injecting active power.]                          [NOT_IMPLEMENTED]
[pfwabsena]         [Power factor enable when absorbing active power.]                                            [NOT_IMPLEMENTED]
[pfwabsenarvrt]     [Power factor reversion timer when absorbing active power enable.]                            [NOT_IMPLEMENTED]
[pfwabsrvrttms]     [Power factor reversion timer when absorbing active power.]                                   [NOT_IMPLEMENTED]
[pfwabsrvrtrem]     [Power factor reversion time remaining when absorbing active power.]                          [NOT_IMPLEMENTED]
[wmaxlimpctena]     [Limit maximum active power percent enable.]                                                  [DISABLED]
[wmaxlimpct]        [Limit maximum active power percent value.]                                                   [NOT_IMPLEMENTED]
[wmaxlimpctrvrt]    [Reversion limit maximum active power percent value.]                                         [NOT_IMPLEMENTED]
[wmaxlimpctenarvrt] [Reversion limit maximum active power percent value enable.]                                  [NOT_IMPLEMENTED]
[wmaxlimpctrvrttms] [Limit maximum active power percent reversion time.]                                          [NOT_IMPLEMENTED]
[wmaxlimpctrvrtrem] [Limit maximum active power percent reversion time remaining.]                                [NOT_IMPLEMENTED]
[wsetena]           [Set active power enable.]                                                                    [DISABLED]
[wsetmod]           [Set active power mode.]                                                                      [W_MAX_PCT]
[wset]              [Active power setting value in watts.]                                                        [-1.00] = [-1 * (10**0)] using scale factor [wset_sf]
[wsetrvrt]          [Reversion active power setting value in watts.]                                              [NOT_IMPLEMENTED]
[wsetpct]           [Active power setting value as percent.]                                                      [-0.01] = [-1 * (10**-2)] using scale factor [wsetpct_sf]
[wsetpctrvrt]       [Reversion active power setting value as percent.]                                            [NOT_IMPLEMENTED]
[wsetenarvrt]       [Reversion active power function enable.]                                                     [NOT_IMPLEMENTED]
[wsetrvrttms]       [Set active power reversion time.]                                                            [NOT_IMPLEMENTED]
[wsetrvrtrem]       [Set active power reversion time remaining.]                                                  [NOT_IMPLEMENTED]
[varsetena]         [Set reactive power enable.]                                                                  [DISABLED]
[varsetmod]         [Set reactive power mode.]                                                                    [W_MAX_PCT]
[varsetpri]         [Reactive power priority.]                                                                    [NOT_IMPLEMENTED]
[varset]            [Reactive power setting value in vars.]                                                       [0]
[varsetrvrt]        [Reversion reactive power setting value in vars.]                                             [NOT_IMPLEMENTED]
[varsetpct]         [Reactive power setting value as percent.]                                                    [0]
[varsetpctrvrt]     [Reversion reactive power setting value as percent.]                                          [NOT_IMPLEMENTED]
[varsetenarvrt]     [Reversion reactive power function enable.]                                                   [NOT_IMPLEMENTED]
[varsetrvrttms]     [Set reactive power reversion time.]                                                          [NOT_IMPLEMENTED]
[varsetrvrtrem]     [Set reactive power reversion time remaining.]                                                [NOT_IMPLEMENTED]
[wrmp]              [Ramp rate for increases in active power during normal generation.]                           [NOT_IMPLEMENTED]
[wrmpref]           [Ramp rate reference unit for increases in active power or current during normal generation.] [NOT_IMPLEMENTED]
[varrmp]            [Ramp rate based on max reactive power per second.]                                           [NOT_IMPLEMENTED]
[antiislena]        [Anti-islanding enable.]                                                                      [NOT_IMPLEMENTED]
[pf_sf]             [Power factor scale factor.]                                                                  [-3]
[wmaxlimpct_sf]     [Limit maximum power scale factor.]                                                           [-2]
[wset_sf]           [Active power scale factor.]                                                                  [0]
[wsetpct_sf]        [Active power pct scale factor.]                                                              [-2]
[varset_sf]         [Reactive power scale factor.]                                                                [0]
[varsetpct_sf]      [Reactive power pct scale factor.]                                                            [-2]


   Reading Block at address [40414 (0x9dde)] for device [1]
    Block id     = [705]
    Block length = [57]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [705]
[name]                                                                  [DERVoltVar]
[label]                                                                 [DER Volt-Var]
[description]                                                           [DER Volt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Var model ID.]                                  [705]
[l]           [DER Volt-Var model length.]                              [57]
[ena]         [Volt-Var control enable.]                                [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve var points.]                      [-2]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40473 (0x9e19)] for device [1]
    Block id     = [706]
    Block length = [47]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [706]
[name]                                                                  [DERVoltWatt]
[label]                                                                 [DER Volt-Watt]
[description]                                                           [DER Volt-Watt model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Volt-Watt model ID.]                                 [706]
[l]           [DER Volt-Watt model length.]                             [47]
[ena]         [Volt-Watt control enable.]                               [DISABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [6]
[ncrv]        [Number of stored curves supported.]                      [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]      [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                    [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]                  [NOT_IMPLEMENTED]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[deptref_sf]  [Scale factor for curve watt points.]                     [0]
[rsptms_sf]   [Open loop response time scale factor.]                   [-3]


   Reading Block at address [40522 (0x9e4a)] for device [1]
    Block id     = [707]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [707]
[name]                                                                  [DERTripLV]
[label]                                                                 [DER Trip LV]
[description]                                                           [DER low voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low voltage trip model ID.]                          [707]
[l]           [DER low voltage trip model length.]                      [105]
[ena]         [DER low voltage trip control enable.]                    [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40629 (0x9eb5)] for device [1]
    Block id     = [708]
    Block length = [105]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [708]
[name]                                                                  [DERTripHV]
[label]                                                                 [DER Trip HV]
[description]                                                           [DER high voltage trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high voltage trip model ID.]                         [708]
[l]           [DER high voltage trip model length.]                     [105]
[ena]         [DER high voltage trip control enable.]                   [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[v_sf]        [Scale factor for curve voltage points.]                  [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40736 (0x9f20)] for device [1]
    Block id     = [709]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [709]
[name]                                                                  [DERTripLF]
[label]                                                                 [DER Trip LF]
[description]                                                           [DER low frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER low frequency trip model ID.]                        [709]
[l]           [DER low frequency trip model length.]                    [135]
[ena]         [DER low frequency trip control enable.]                  [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [40873 (0x9fa9)] for device [1]
    Block id     = [710]
    Block length = [135]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                    [710]
[name]                                                                  [DERTripHF]
[label]                                                                 [DER Trip HF]
[description]                                                           [DER high frequency trip model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER high frequency trip model ID.]                       [710]
[l]           [DER high frequency trip model length.]                   [135]
[ena]         [DER high frequency trip control enable.]                 [ENABLED]
[adptcrvreq]  [Index of curve points to adopt. First curve index is 1.] [0]
[adptcrvrslt] [Result of last adopt curve operation.]                   [COMPLETED]
[npt]         [Number of curve points supported.]                       [5]
[ncrvset]     [Number of stored curves supported.]                      [2]
[hz_sf]       [Scale factor for curve frequency points.]                [-2]
[tms_sf]      [Scale factor for curve time points.]                     [-3]


   Reading Block at address [41010 (0xa032)] for device [1]
    Block id     = [711]
    Block length = [32]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                 [711]
[name]                                                               [DERFreqDroop]
[label]                                                              [DER Frequency Droop]
[description]                                                        [DER Frequency Droop model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Frequency Droop model ID.]                        [711]
[l]           [DER Frequency Droop model length.]                    [32]
[ena]         [DER Frequency-Watt (Frequency-Droop) control enable.] [DISABLED]
[adptctlreq]  [Set active control. 0 = No active control.]           [0]
[adptctlrslt] [Result of last set active control operation.]         [COMPLETED]
[nctl]        [Number of stored controls supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.]   [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]                 [NOT_IMPLEMENTED]
[rvrtctl]     [Default control after reversion timeout.]             [NOT_IMPLEMENTED]
[db_sf]       [Deadband scale factor.]                               [-3]
[k_sf]        [Frequency change scale factor.]                       [-3]
[rsptms_sf]   [Open loop response time scale factor.]                [-3]


   Reading Block at address [41044 (0xa054)] for device [1]
    Block id     = [712]
    Block length = [44]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                               [712]
[name]                                                             [DERWattVar]
[label]                                                            [DER Watt-Var]
[description]                                                      [DER Watt-Var model.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER Watt-Var model ID.]                             [712]
[l]           [DER Watt-Var model length.]                         [44]
[ena]         [DER Watt-Var control enable.]                       [DISABLED]
[adptcrvreq]  [Set active curve. 0 = No active curve.]             [0]
[adptcrvrslt] [Result of last set active curve operation.]         [COMPLETED]
[npt]         [Number of curve points supported.]                  [6]
[ncrv]        [Number of stored curves supported.]                 [2]
[rvrttms]     [Reversion time in seconds.  0 = No reversion time.] [NOT_IMPLEMENTED]
[rvrtrem]     [Reversion time remaining in seconds.]               [NOT_IMPLEMENTED]
[rvrtcrv]     [Default curve after reversion timeout.]             [NOT_IMPLEMENTED]
[w_sf]        [Scale factor for curve active power points.]        [-2]
[deptref_sf]  [Scale factor for curve var points.]                 [-2]


   Reading Block at address [41090 (0xa082)] for device [1]
    Block id     = [713]
    Block length = [7]
=================================================================== DEVICE DETAILS ===================================================================
[id]                                                                              [713]
[name]                                                                            [DERStorageCapacity]
[label]                                                                           [DER Storage Capacity]
[description]                                                                     [DER storage capacity.]
-------------------------------------------------------------------- MEASUREMENTS --------------------------------------------------------------------
[id]          [DER storage capacity model ID.]                                    [713]
[l]           [DER storage capacity model length.]                                [7]
[whrtg]       [Energy rating of the DER storage.]                                 [NOT_IMPLEMENTED]
[whavail]     [Energy available of the DER storage (WHAvail = WHRtg * SoC * SoH)] [NOT_IMPLEMENTED]
[soc]         [State of charge of the DER storage.]                               [0]
[soh]         [State of health of the DER storage.]                               [NOT_IMPLEMENTED]
[sta]         [Storage status.]                                                   [NOT_IMPLEMENTED]
[wh_sf]       [Scale factor for energy capacity.]                                 [-2]
[pct_sf]      [Scale factor for percentage.]                                      [-2]


   Reading Block at address [41099 (0xa08b)] for device [1]
    Block id     = [65535]
    Block length = [0]
    Block type   = [The End of the block list has been reached]

  End of SunSpec MAP

  Looking for Battery at address [57600 (0xe100)] for device [1]
   No battery found at this address

  Looking for Battery at address [57856 (0xe200)] for device [1]
   No battery found at this address

Disconnected from server
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / IndeVolt SF3000 / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Post Reply