biemond / solaredge.modbus

Homey Solaredge modbus app
GNU General Public License v3.0
7 stars 8 forks source link

It would be great if this app also supported Solax inverters + battery #70

Open JorgenSeemann opened 3 months ago

JorgenSeemann commented 3 months ago

Note Solax supports both own Lithium battery as well as Lead Acid batteries :)

JorgenSeemann commented 3 months ago

The latest document about I can find about Solax MODBUS protocol is located here: https://gbc-solino.cz/wp-content/uploads/2022/07/Hybrid-X1X3-G4-ModbusTCPRTU-V3.21-English_0622-public-version.pdf

biemond commented 3 months ago

nice, looks doable.

do you provide vpn access else it will be hard for me to test it.

JorgenSeemann commented 3 months ago

Hi Edwin, What do you need access to - Homey, Solax inverter or ? Easy (if useful) would be to provide create an admin account on my homey. That would allow you to play around (but I'm unsure if it's useful)? Currently I'm using the "Solax Inverter", but I like the joined app better (using it for my Huawei :)) Cheers Jørgen

Den man. 1. apr. 2024 kl. 18.46 skrev Edwin Biemond < @.***>:

nice, looks doable.

do you provide vpn access else it will be hard for me to test it.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2030136602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMDWMQ4MWPDVFYCAZK3Y3GFP5AVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGEZTMNRQGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Med venlig hilsen Jørgen

biemond commented 3 months ago

hey, only solax is ok.

do you also have a Huawei? like to try to do write access part.

JorgenSeemann commented 3 months ago

Hi Edwin. Not sure my system supports VPN, but will have a look tonight. Yes. Have both Solax and Huawei (w. Battery) Cheers Jørgen

man. 1. apr. 2024 23.12 skrev Edwin Biemond @.***>:

hey, only solax is ok.

do you also have a Huawei? like to try to do write access part.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2030564968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMASHQLUUSHJGE3OB2LY3HEUZAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGU3DIOJWHA . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

I got this , but having a hard time to get your batt soc. what can be use for this?


edwinbiemond@Edwins-MBP solaredge.modbus % node test9.js
-------------------
Connected ...
SolarChargerUseMode: 0
output power limits precent 0~100: 100
Manual mode: 0
Grid connected pull in power point: 2000
GridVoltage: 2366
GridCurrent: 91
GridPower: 6479
radiator temperature: 43
Powerdc1: 5977
Powerdc2: 5996
Batpower_Charge1: 5127
TemperatureBat: 0
Battery Capacity: 0
OutputEnergy_Charge_today: 26
InputEnergy_Charge_today: 83
feedin_energy_total: 1256587264
consum_energy_total: 2529492992
GridVoltage_R(X3): 2366
GridCurrent_R(X3): 91
GridPower_R(X3): 2140
GridVoltage_S(X3): 2386
GridCurrent_S(X3): 92
GridPower_S(X3): 2195
GridVoltage_T(X3): 2385
GridCurrent_T(X3): 90
GridPower_T(X3): 2143
FeedinPower_Rphase(X3): 132644864
FeedinPower_Tphase(X3): 132186112
EchargeToday: 0
EchargeTotal: 8978432
SolarEnergyTotal: 699990016
SolarEnergyToday: 107
energy to the grid: 3538944
energy from the grid: 4
BMS_UserSOC: 0
BMS_UserSOH: 0
ActivePowerTarget: 0
Charge_Discharg_Power: 0
SocUpper: 100
SocLower: 10
biemond commented 2 months ago

registers = {
        "SolarChargerUseMode":       [0x008B, 1, 'UINT16', "SolarChargerUseMode"],
        "PowerLimitsPercent":        [0x0025, 1, 'UINT16', "output power limits precent 0~100"],
        "ManualMode":                [0x008C, 1, 'UINT16', "Manual mode"],
        "FeedinOnPower":             [0x0123, 1, 'UINT16', "Grid connected pull in power point"],

    }    

    inputRegisters = {

        "GridVoltage":              [0x0000, 1, 'UINT16', "GridVoltage"],
        "GridCurrent":              [0x0001, 1, 'INT16', "GridCurrent"],
        "GridPower":                [0x0002, 1, 'INT16', "GridPower"],

        // 0x0007 GridFrequency(X1) R GridFrequency 0.01Hz uint16 1

        "Temperature":             [0x0008, 1, 'INT16', "radiator temperature"],
        "Powerdc1":                [0x000A, 1, 'UINT16', "Powerdc1"],
        "Powerdc2":                [0x000B, 1, 'UINT16', "Powerdc2"],
        // 0x0016 Batpower_Charge1 R Batpower_Charge1 1W int16 1
        "Batpower_Charge1":        [0x0016, 1, 'INT16', "Batpower_Charge1"],
        // 0x0018 TemperatureBat R TemperatureBat 1℃ int16
        "TemperatureBat":          [0x0018, 1, 'INT16', "TemperatureBat"],
        // 0x001C Battery Capacity R Battery capacity 1% uint16 1
        "BatteryCapacity":         [0x001C, 1, 'UINT16', "Battery Capacity"],
        // 0x0020 OutputEnergy_Charge_today R OutputEnergy_Charge_today 0.1kWh uint16 1
        "OutputEnergy_Charge_today": [0x0020, 1, 'UINT16', "OutputEnergy_Charge_today"],
        // 0x0023 InputEnergy_Charge_today R InputEnergy_Charge_today 0.1kWh uint16 1
        "InputEnergy_Charge_today":  [0x0023, 1, 'UINT16', "InputEnergy_Charge_today"],

        // 0x0048
        // feedin_energy_total(meter) R
        // energy to the grid
        // (0x48:LSB,0x49:MSB)
        // 0.01kWh uint32 2
        "feedin_energy_total":  [0x0048, 2, 'UINT32', "feedin_energy_total"],
        // 0x004A
        // consum_energy_total(meter) R
        // energy form the grid
        // (0x4A:LSB,0x4B:MSB)
        // 0.01kWh uint32 2
        "consum_energy_total":  [0x004A, 2, 'UINT32', "consum_energy_total"],

        // 0x006A GridVoltage_R(X3) R GridVoltage_R 0.1V uint16 1
        "GridVoltage_R(X3)":        [0x006A, 1, 'UINT16', "GridVoltage_R(X3)"],
        // 0x006B GridCurrent_R(X3) R GridCurrent_R 0.1A int16 1
        "GridCurrent_R(X3)":        [0x006B, 1, 'INT16', "GridCurrent_R(X3)"],
        // 0x006C GridPower_R(X3) R GridPower_R 1W int16 1
        "GridPower_R(X3)":          [0x006C, 1, 'INT16', "GridPower_R(X3)"],
        // 0x006E GridVoltage_S(X3) R GridVoltage_S 0.1V uint16 1
        "GridVoltage_S(X3)":        [0x006E, 1, 'UINT16', "GridVoltage_S(X3)"],
        // 0x006F GridCurrent_S(X3) R GridCurrent_S 0.1A int16 1
        "GridCurrent_S(X3)":        [0x006F, 1, 'INT16', "GridCurrent_S(X3)"],
        // 0x0070 GridPower_S(X3) R GridPower_S 1W int16 1
        "GridPower_S(X3)":          [0x0070, 1, 'INT16', "GridPower_S(X3)"],
        // 0x0072 GridVoltage_T(X3) R GridVoltage_T 0.1V uint16 1
        "GridVoltage_T(X3)":        [0x0072, 1, 'UINT16', "GridVoltage_T(X3)"],
        // 0x0073 GridCurrent_T(X3) R GridCurrent_T 0.1A int16 1
        "GridCurrent_T(X3)":        [0x0073, 1, 'INT16', "GridCurrent_T(X3)"],
        // 0x0074 GridPower_T(X3) R GridPower_T 1W int16 1
        "GridPower_T(X3)":          [0x0074, 1, 'INT16', "GridPower_T(X3)"],

        // 0x0082
        // ~0x0083
        // FeedinPower_Rphase(X3)
        // R
        // FeedinPower_Rphase
        // (meter/CT)
        // (082:LSB,0x83:MSB)
        // 1W int32
        // 2
        "FeedinPower_Rphase(X3)":          [0x0082, 2, 'INT32', "FeedinPower_Rphase(X3)"],
        // ~0x0085
        // FeedinPower_Sphase(X3)
        // R
        // FeedinPower_Sphase
        // (meter/CT)
        // (0x84:LSB,0x85:MSB)
        // 1W int32
        // 2
        "FeedinPower_Sphase(X3)":          [0x0084, 2, 'INT32', "FeedinPower_Sphase(X3)"],
        // ~0x0087
        // FeedinPower_Tphase(X3)
        // R
        // FeedinPower_Tphas
        // e
        // (meter/CT)
        // (0x86:LSB,0x87:MSB)
        // 1W int32
        // 2
        "FeedinPower_Sphase(X3)":          [0x0086, 2, 'INT32', "FeedinPower_Tphase(X3)"],

        // 0x0091 EchargeToday
        // R
        // EchargeToday
        // (Inverter AC Port)
        // 0.1kWh uint16
        // 1
        "EchargeToday":        [0x0091, 1, 'UINT16', "EchargeToday"],
        // ~0x0093
        // EchargeTotal
        // R
        // EchargeTotal
        // (Inverter AC Port)
        // (0x92:LSB,0x93:MSB)
        // 0.1kWh uint32
        // 2
        "EchargeTotal":  [0x0092, 2, 'UINT32', "EchargeTotal"],
        // ~0x0095
        // SolarEnergyTotal
        // R
        // SolarEnergyTotal
        // (0x94:LSB,0x95:MSB)
        // 0.1kWh uint32
        // 2
        "SolarEnergyTotal":  [0x0094, 2, 'UINT32', "SolarEnergyTotal"],
        // 0x0096 SolarEnergyToday
        // R SolarEnergyToday 0.1kWh uint16
        // 1
        // 0x0097 REV
        // R
        // -
        // - uint16
        // 1
        "SolarEnergyToday":        [0x0096, 1, 'UINT16', "SolarEnergyToday"],

        // ~0x0099
        // feedin_energy_today
        // R
        // energy to the grid
        // (meter)
        // (0x98:LSB,0x99:MSB)
        // 0.01kWh uint32
        // 2
        "feedin_energy_today":  [0x0098, 2, 'UINT32', "energy to the grid"],
        // ~0x009B
        // consum_energy_today
        // R
        // energy form the grid
        // (meter)
        // (0x9A:LSB,0x9B:MSB)
        // 0.01kWh uint16
        "consum_energy_today":  [0x009A, 1, 'UINT16', "energy from the grid"],
        // 2
        // 0x00BE BMS_UserSOC R BMS_UserSOC 1% Uint16 1
        "BMS_UserSOC":        [0x00BE, 1, 'UINT16', "BMS_UserSOC"],
        // 0x00BF BMS_UserSOH R BMS_UserSOH 1% Uint16 1
        "BMS_UserSOH":        [0x00BF, 1, 'UINT16', "BMS_UserSOH"],
        // 0x0102
        // ActivePowerTarget R ActivePowerTarget 1W int32 2
        "ActivePowerTarget":  [0x0102, 2, 'INT32', "ActivePowerTarget"],

        // 0x0114
        // Charge_Discharg_Power R
        // Charge_Discharg_Power
        // (0x114:LSB,0x115:MSB)
        // 1W int32 2
        "Charge_Discharg_Power":  [0x0114, 2, 'INT32', "Charge_Discharg_Power"],

        // 0x011C SocUpper R SocUpper 1% uint16 1
        "SocUpper":        [0x011C, 1, 'UINT16', "SocUpper"],
        // 0x011D SocLower R SocLower 1% uint16 1
        "SocLower":        [0x011D, 1, 'UINT16', "SocLower"],

    }    
JorgenSeemann commented 2 months ago

Hi Edwin

You are right because currently I'm using the settings for Lead Acid Battery. Hence you cannot get SOC/SOH. There should be a battery voltage.

When you configure the battery for Lead Acid you basically enters min/max voltage. It's defined as 4 different values due to the charge/discharge parameters.

Cheers Jørgen

søn. 7. apr. 2024 12.23 skrev Edwin Biemond @.***>:

registers = { "SolarChargerUseMode": [0x008B, 1, 'UINT16', "SolarChargerUseMode"], "PowerLimitsPercent": [0x0025, 1, 'UINT16', "output power limits precent 0~100"], "ManualMode": [0x008C, 1, 'UINT16', "Manual mode"], "FeedinOnPower": [0x0123, 1, 'UINT16', "Grid connected pull in power point"],

}

inputRegisters = {

    "GridVoltage":              [0x0000, 1, 'UINT16', "GridVoltage"],
    "GridCurrent":              [0x0001, 1, 'INT16', "GridCurrent"],
    "GridPower":                [0x0002, 1, 'INT16', "GridPower"],

    // 0x0007 GridFrequency(X1) R GridFrequency 0.01Hz uint16 1

    "Temperature":             [0x0008, 1, 'INT16', "radiator temperature"],
    "Powerdc1":                [0x000A, 1, 'UINT16', "Powerdc1"],
    "Powerdc2":                [0x000B, 1, 'UINT16', "Powerdc2"],
    // 0x0016 Batpower_Charge1 R Batpower_Charge1 1W int16 1
    "Batpower_Charge1":        [0x0016, 1, 'INT16', "Batpower_Charge1"],
    // 0x0018 TemperatureBat R TemperatureBat 1℃ int16
    "TemperatureBat":          [0x0018, 1, 'INT16', "TemperatureBat"],
    // 0x001C Battery Capacity R Battery capacity 1% uint16 1
    "BatteryCapacity":         [0x001C, 1, 'UINT16', "Battery Capacity"],
    // 0x0020 OutputEnergy_Charge_today R OutputEnergy_Charge_today 0.1kWh uint16 1
    "OutputEnergy_Charge_today": [0x0020, 1, 'UINT16', "OutputEnergy_Charge_today"],
    // 0x0023 InputEnergy_Charge_today R InputEnergy_Charge_today 0.1kWh uint16 1
    "InputEnergy_Charge_today":  [0x0023, 1, 'UINT16', "InputEnergy_Charge_today"],

    // 0x0048
    // feedin_energy_total(meter) R
    // energy to the grid
    // (0x48:LSB,0x49:MSB)
    // 0.01kWh uint32 2
    "feedin_energy_total":  [0x0048, 2, 'UINT32', "feedin_energy_total"],
    // 0x004A
    // consum_energy_total(meter) R
    // energy form the grid
    // (0x4A:LSB,0x4B:MSB)
    // 0.01kWh uint32 2
    "consum_energy_total":  [0x004A, 2, 'UINT32', "consum_energy_total"],

    // 0x006A GridVoltage_R(X3) R GridVoltage_R 0.1V uint16 1
    "GridVoltage_R(X3)":        [0x006A, 1, 'UINT16', "GridVoltage_R(X3)"],
    // 0x006B GridCurrent_R(X3) R GridCurrent_R 0.1A int16 1
    "GridCurrent_R(X3)":        [0x006B, 1, 'INT16', "GridCurrent_R(X3)"],
    // 0x006C GridPower_R(X3) R GridPower_R 1W int16 1
    "GridPower_R(X3)":          [0x006C, 1, 'INT16', "GridPower_R(X3)"],
    // 0x006E GridVoltage_S(X3) R GridVoltage_S 0.1V uint16 1
    "GridVoltage_S(X3)":        [0x006E, 1, 'UINT16', "GridVoltage_S(X3)"],
    // 0x006F GridCurrent_S(X3) R GridCurrent_S 0.1A int16 1
    "GridCurrent_S(X3)":        [0x006F, 1, 'INT16', "GridCurrent_S(X3)"],
    // 0x0070 GridPower_S(X3) R GridPower_S 1W int16 1
    "GridPower_S(X3)":          [0x0070, 1, 'INT16', "GridPower_S(X3)"],
    // 0x0072 GridVoltage_T(X3) R GridVoltage_T 0.1V uint16 1
    "GridVoltage_T(X3)":        [0x0072, 1, 'UINT16', "GridVoltage_T(X3)"],
    // 0x0073 GridCurrent_T(X3) R GridCurrent_T 0.1A int16 1
    "GridCurrent_T(X3)":        [0x0073, 1, 'INT16', "GridCurrent_T(X3)"],
    // 0x0074 GridPower_T(X3) R GridPower_T 1W int16 1
    "GridPower_T(X3)":          [0x0074, 1, 'INT16', "GridPower_T(X3)"],

    // 0x0082
    // ~0x0083
    // FeedinPower_Rphase(X3)
    // R
    // FeedinPower_Rphase
    // (meter/CT)
    // (082:LSB,0x83:MSB)
    // 1W int32
    // 2
    "FeedinPower_Rphase(X3)":          [0x0082, 2, 'INT32', "FeedinPower_Rphase(X3)"],
    // ~0x0085
    // FeedinPower_Sphase(X3)
    // R
    // FeedinPower_Sphase
    // (meter/CT)
    // (0x84:LSB,0x85:MSB)
    // 1W int32
    // 2
    "FeedinPower_Sphase(X3)":          [0x0084, 2, 'INT32', "FeedinPower_Sphase(X3)"],
    // ~0x0087
    // FeedinPower_Tphase(X3)
    // R
    // FeedinPower_Tphas
    // e
    // (meter/CT)
    // (0x86:LSB,0x87:MSB)
    // 1W int32
    // 2
    "FeedinPower_Sphase(X3)":          [0x0086, 2, 'INT32', "FeedinPower_Tphase(X3)"],

    // 0x0091 EchargeToday
    // R
    // EchargeToday
    // (Inverter AC Port)
    // 0.1kWh uint16
    // 1
    "EchargeToday":        [0x0091, 1, 'UINT16', "EchargeToday"],
    // ~0x0093
    // EchargeTotal
    // R
    // EchargeTotal
    // (Inverter AC Port)
    // (0x92:LSB,0x93:MSB)
    // 0.1kWh uint32
    // 2
    "EchargeTotal":  [0x0092, 2, 'UINT32', "EchargeTotal"],
    // ~0x0095
    // SolarEnergyTotal
    // R
    // SolarEnergyTotal
    // (0x94:LSB,0x95:MSB)
    // 0.1kWh uint32
    // 2
    "SolarEnergyTotal":  [0x0094, 2, 'UINT32', "SolarEnergyTotal"],
    // 0x0096 SolarEnergyToday
    // R SolarEnergyToday 0.1kWh uint16
    // 1
    // 0x0097 REV
    // R
    // -
    // - uint16
    // 1
    "SolarEnergyToday":        [0x0096, 1, 'UINT16', "SolarEnergyToday"],

    // ~0x0099
    // feedin_energy_today
    // R
    // energy to the grid
    // (meter)
    // (0x98:LSB,0x99:MSB)
    // 0.01kWh uint32
    // 2
    "feedin_energy_today":  [0x0098, 2, 'UINT32', "energy to the grid"],
    // ~0x009B
    // consum_energy_today
    // R
    // energy form the grid
    // (meter)
    // (0x9A:LSB,0x9B:MSB)
    // 0.01kWh uint16
    "consum_energy_today":  [0x009A, 1, 'UINT16', "energy from the grid"],
    // 2
    // 0x00BE BMS_UserSOC R BMS_UserSOC 1% Uint16 1
    "BMS_UserSOC":        [0x00BE, 1, 'UINT16', "BMS_UserSOC"],
    // 0x00BF BMS_UserSOH R BMS_UserSOH 1% Uint16 1
    "BMS_UserSOH":        [0x00BF, 1, 'UINT16', "BMS_UserSOH"],
    // 0x0102
    // ActivePowerTarget R ActivePowerTarget 1W int32 2
    "ActivePowerTarget":  [0x0102, 2, 'INT32', "ActivePowerTarget"],

    // 0x0114
    // Charge_Discharg_Power R
    // Charge_Discharg_Power
    // (0x114:LSB,0x115:MSB)
    // 1W int32 2
    "Charge_Discharg_Power":  [0x0114, 2, 'INT32', "Charge_Discharg_Power"],

    // 0x011C SocUpper R SocUpper 1% uint16 1
    "SocUpper":        [0x011C, 1, 'UINT16', "SocUpper"],
    // 0x011D SocLower R SocLower 1% uint16 1
    "SocLower":        [0x011D, 1, 'UINT16', "SocLower"],

}

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041408674, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMFPSU23CSI5AV4A7XTY4ENBHAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGQYDQNRXGQ . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

don't get the batt voltage. all are 0. what register should I use for that.

JorgenSeemann commented 2 months ago

Hi Edwin,

I think it would be very usefull to check 0x008D wBattery1_Type R 0:Lead Acid 1:Lithium 1 uint16 1

And if it 0 (lead acid) then use 0x008E Charge_floatVolt R Lead-acid battery charge_float voltage 0.1V uint16 1 0x008F Battery_DischargeCutVoltage R Lead-acid battery discharge cut-off voltage 0.1V uint16 1 0x0090 Battery_ChargeMaxCurrent R Lead-acid battery charge maximum current 0.1A uint16 1 0x0091 Battery_DischargeMaxCurrent R Lead-acid battery discharge maximum Current 0.1A uint16 1 0x0092 absorpt_voltage R Lead-acid battery absorpt_voltage 0.1V uint16 1

I'm not a 100% sure but I imagine the current voltage would be the 0x0092 absorpt_voltage It could also be 0x0014 BatVoltage_Charge1 R BatVoltage_Charge1 0.1V int16 1 0x0015 BatCurrent_Charge1 R BatCurrent_Charge1 0.1A int16 1 0x0016 Batpower_Charge1 R Batpower_Charge1 1W int16 1

To compare if you read values, them my setup is: Charge equalization voltage = 735 Charge float voltage = 735 Discharge cut voltage 605 Discharge backup voltage = 605 Charge max current = 20 Discharge max current = 20

Currently my voltage is around 717 and dropping as I'm charging my car :)

Cheers Jørgen

Den søn. 7. apr. 2024 kl. 13.18 skrev Edwin Biemond < @.***>:

don't get the batt voltage. all are 0. what register should I use for that.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041434409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMCPIDKZ3JRRBOO75YTY4ETPFAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGQZTINBQHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Med venlig hilsen Jørgen

biemond commented 2 months ago
SolarChargerUseMode: 0
output power limits precent 0~100: 100
Manual mode: 0
Grid connected pull in power point: 2000
Battery1 Type: 0
Charge_floatVolt: 7350
Battery_DischargeCutVoltage: 6050
Battery_ChargeMaxCurrent: 200
Battery_DischargeMaxCurrent: 200
absorpt_voltage: 7350
GridVoltage: 2376
GridCurrent: 11
GridPower: 366
radiator temperature: 46
Powerdc1: 2236
Powerdc2: 2628
BatVoltage_Charge1: 7275
BatCurrent_Charge1: 60
Batpower_Charge1: 4390
TemperatureBat: 0
Battery Capacity: 0
OutputEnergy_Charge_today: 94
InputEnergy_Charge_today: 129
Feedin power is obtained from Meter or CT: 0
energy to the grid: 1278214144
consum_energy_total: 2531590144
Today Energy (Inverter AC Port): 508
Total Energy (Inverter AC Port): 678821888
GridVoltage_R(X3): 2374
GridCurrent_R(X3): 11
GridPower_R(X3): 124
GridVoltage_S(X3): 2363
GridCurrent_S(X3): 13
GridPower_S(X3): 174
GridVoltage_T(X3): 2380
GridCurrent_T(X3): 10
GridPower_T(X3): 59
FeedinPower_Rphase(X3): 262144
FeedinPower_Tphase(X3): 65536
EchargeToday: 0
EchargeTotal: 8978432
SolarEnergyTotal: 729743360
SolarEnergyToday: 560
energy to the grid: 25165824
energy from the grid: 36
BMS_UserSOC: 0
BMS_UserSOH: 0
ActivePowerTarget: 0
Charge_Discharg_Power: 0
SocUpper: 100
SocLower: 10
Cell_Voltage_High: 0
Cell_Voltage_Low: 0
Off-gridVoltage(X1): 0
Off-gridCurrent(X1): 0
Off-gridPower(X1): 0
BusVolt: 0
biemond commented 2 months ago

this indeed

BatVoltage_Charge1: 7275
BatCurrent_Charge1: 60
Batpower_Charge1: 4390
JorgenSeemann commented 2 months ago

Pretty sure those 3 are correct with my app showing battery V is 728, and charge W 4143 😀 Note its showing in 0.1V so 7275 would be 727.5V

søn. 7. apr. 2024 16.59 skrev Edwin Biemond @.***>:

this indeed

BatVoltage_Charge1: 7275 BatCurrent_Charge1: 60 Batpower_Charge1: 4390

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041497626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMB2EFZARI6JAIFU643Y4FNO3AVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGQ4TONRSGY . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

let me make a test version which you can try out.

JorgenSeemann commented 2 months ago

Thanks, I'll be happy to check it out 😀

søn. 7. apr. 2024 17.35 skrev Edwin Biemond @.***>:

let me make a test version which you can try out.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041507902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMAEO7PSW5DBTESZC5LY4FRUNAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGUYDOOJQGI . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

can you check this 1 https://homey.app/a/solaredge.modbus/test/

JorgenSeemann commented 2 months ago

I think the battery power, heatsink (inverter), and pv1+2 is correct. Solar power looks more to be loaded power. Its for sure not equal to pv1+2. Battery charge voltage and current is showing "-". So some fine, some not 😀

søn. 7. apr. 2024 19.18 skrev Edwin Biemond @.***>:

can you check this 1 https://homey.app/a/solaredge.modbus/test/

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041535639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMHKWDVZPXSGPLGUQ7DY4F5V3AVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGUZTKNRTHE . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

I think it is correct , it is also batt discharge

Inverter Power: 476
Powerdc1: 34
Powerdc2: 93
Batpower_Charge1: -358
biemond commented 2 months ago

for discharge current is negative

BatVoltage_Charge1: 7302
BatCurrent_Charge1: -4
Batpower_Charge1: -358
JorgenSeemann commented 2 months ago

Let me show you how it looks

søn. 7. apr. 2024 19.46 skrev Edwin Biemond @.***>:

for discharge current is negative

BatVoltage_Charge1: 7302 BatCurrent_Charge1: -4 Batpower_Charge1: -358

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041542765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMDZ5W5DMIZH67E7EGLY4GBADAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGU2DENZWGU . You are receiving this because you authored the thread.Message ID: @.***>

JorgenSeemann commented 2 months ago

This is what I see in other app

søn. 7. apr. 2024 20.03 skrev Joergen Seemann @.***>:

Let me show you how it looks

søn. 7. apr. 2024 19.46 skrev Edwin Biemond @.***>:

for discharge current is negative

BatVoltage_Charge1: 7302 BatCurrent_Charge1: -4 Batpower_Charge1: -358

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041542765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMDZ5W5DMIZH67E7EGLY4GBADAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGU2DENZWGU . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

don't see it but this is also what I see on our inverters. probably in the app they do something. but the modbus ones looks correct with your data and what I know from other inverters.

it is all about bookkeeping. charge of batt is removed from solar power and with discharge it comes back.

I changed the label to make it conform others

JorgenSeemann commented 2 months ago

The value shown as solar power is definitely load. I just checked by putting the kettle on :)

søn. 7. apr. 2024 20.09 skrev Edwin Biemond @.***>:

don't see it but this is also what I see on our inverters. probably in the app they do something. but the modbus ones looks correct with your data and what I know from other inverters.

it is all about bookkeeping. charge of batt is removed from solar power and with discharge it comes back.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041548764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMBUYP2FPIQAYTUWO7DY4GDXBAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGU2DQNZWGQ . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

no no it is including batt discharge

biemond commented 2 months ago

looks like load because you don't need more than that

biemond commented 2 months ago

tomorrow you will see it is pv minus charging your battery.

biemond commented 2 months ago

we can check tomorrow when the sun is up and maybe you can stop charging the battery . then we know for sure.

JorgenSeemann commented 2 months ago

Ok. I'll check it again tomorrow. Sleep well :)

søn. 7. apr. 2024 20.41 skrev Edwin Biemond @.***>:

we can check tomorrow when the sun is up and maybe you can stop charging the battery . then we know for sure.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041558105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMC2E3ROMZKQ3RNE3LDY4GHM5AVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGU2TQMJQGU . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

yep , can add pvtotal based on pv1 and pv2 but curious if it is correct. else need to calculate with pv and batt (dis)charge . it need to be correct for the homey energy tab.

JorgenSeemann commented 2 months ago

Good morning Edwin

We now have sun and the app is showing Solar power = 496 Battery power = 5715 PV1 = 3151 PV2 = 3173 Battery charge current & voltage both just shows a "-" Cheers Jørgen

søn. 7. apr. 2024 20.49 skrev Edwin Biemond @.***>:

yep , can add pvtotal based on pv1 and pv2 but curious if it is correct. else need to calculate with pv and batt (dis)charge . it need to be correct for the homey energy tab.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2041560035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMECRET7J22HCEXDGRTY4GIKNAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGU3DAMBTGU . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

now

I see this 7032 = 4154 + 4124 - 910.

Inverter Power: 7032
radiator temperature: 44
Powerdc1: 4154
Powerdc2: 4124
BatVoltage_Charge1: 7349
BatCurrent_Charge1: 12
Batpower_Charge1: 910

2426 + 2289 + 2336

GridPower_R(X3): 2426
GridVoltage_S(X3): 2358
GridCurrent_S(X3): 97
GridPower_S(X3): 2289
GridVoltage_T(X3): 2381
GridCurrent_T(X3): 98
GridPower_T(X3): 2336
JorgenSeemann commented 2 months ago

Sounds like the math is summing up correctly then. But strange I don't get any numbers on Bat charge curr/vol (I don't have bat power, nor any of the grid, but I guess this is just limitations in the test version 😀)

man. 8. apr. 2024 09.58 skrev Edwin Biemond @.***>:

now

I see this 7032 = 4154 + 4124 - 910.

Inverter Power: 7032 radiator temperature: 44 Powerdc1: 4154 Powerdc2: 4124 BatVoltage_Charge1: 7349 BatCurrent_Charge1: 12 Batpower_Charge1: 910

2426 + 2289 + 2336

GridPower_R(X3): 2426 GridVoltage_S(X3): 2358 GridCurrent_S(X3): 97 GridPower_S(X3): 2289 GridVoltage_T(X3): 2381 GridCurrent_T(X3): 98 GridPower_T(X3): 2336

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2042101102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMGSUV4HQIAPIPLNNRDY4JE3PAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGEYDCMJQGI . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

can you send me a diagnistic report for the batt vol /current. that should always display it.

biemond commented 2 months ago

ah I see , forgot to add the data , will fix it tonight and add more.

JorgenSeemann commented 2 months ago

Sounds good, thanks! 🙂

man. 8. apr. 2024 11.27 skrev Edwin Biemond @.***>:

ah I see , forgot to add the data , will fix it tonight and add more.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2042280281, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMFZTDWMXNRYE5PP4CLY4JPHRAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGI4DAMRYGE . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

can you try this https://homey.app/a/solaredge.modbus/test/

probably you need to remove and add the device again.

JorgenSeemann commented 2 months ago

seems to be straight into working mode just doing the upgrade. Now have solar+batt power. PV1+2=0 (of course - it black here now). Battery charge current i 730A and battery charge voltage is 0A. I will guess the parameters was swapped by accident. the 3 meter power phase shows "-" so they are likely incorrect linked. Besides of this - it's all looking great :)

Den man. 8. apr. 2024 kl. 21.11 skrev Edwin Biemond < @.***>:

can you try this https://homey.app/a/solaredge.modbus/test/

probably you need to remove and add the device again.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2043479471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMEBGEL5NOTAKMQB223Y4LTVNAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGQ3TSNBXGE . You are receiving this because you authored the thread.Message ID: @.***>

-- Med venlig hilsen Jørgen

biemond commented 2 months ago

thanks indeed, fixed them https://homey.app/a/solaredge.modbus/test/

for now just do an upgrade of the app.

biemond commented 2 months ago

can you add a screenshot to the github thread.

JorgenSeemann commented 2 months ago
image image image
JorgenSeemann commented 2 months ago

with 3.0.101

JorgenSeemann commented 2 months ago

Done :)

Den man. 8. apr. 2024 kl. 21.58 skrev Edwin Biemond < @.***>:

can you add a screenshot to the github thread.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2043540009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMBRDN2CGEGVN7UJZ23Y4LZE7AVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGU2DAMBQHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Med venlig hilsen Jørgen

biemond commented 2 months ago

yeah checking the big numbers. , can you add and remove again. looks like screenshots are from before.

JorgenSeemann commented 2 months ago

Removed the device and added it again. No it doesn't read any values at all Claim all read last 54years ago Homey rebooted as well but to no avail

man. 8. apr. 2024 22.23 skrev Edwin Biemond @.***>:

yeah checking the big numbers. , can you add and remove again. looks like screenshots are from before.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2043582189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMBMHIYHB4HP5QDZU53Y4L4EVAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGU4DEMJYHE . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

I think it was because both we reading it . got this.

UserRequestError {
  err: 'OutOfSync',
  message: 'rejecting because of earlier OutOfSync error',
  response: undefined
}
biemond commented 2 months ago

let me change the timing from 20 to 30 seconds

JorgenSeemann commented 2 months ago

Good morning Edwin. Upgraded to 3.0.102 Removed unit and added it again. Same problem- all values are "-" Cheers

man. 8. apr. 2024 23.14 skrev Edwin Biemond @.***>:

let me change the timing from 20 to 30 seconds

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2043652484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMDWJFWIEJS4ZNCOJSDY4MCCHAVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGY2TENBYGQ . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

can you send me a report, else we need to restart the inverter somehow.

JorgenSeemann commented 2 months ago

Sure, here you go! 52c92b14-1954-4619-b475-be9f00de6498

Note I also have the Huawei running on the code.

Br Jørgen

tir. 9. apr. 2024 09.56 skrev Edwin Biemond @.***>:

can you send me a report, else we need to restart the inverter somehow.

— Reply to this email directly, view it on GitHub https://github.com/biemond/solaredge.modbus/issues/70#issuecomment-2044375150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMMPMCKJVYAOTHP4JDVYODY4ONL3AVCNFSM6AAAAABFKKWOXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGM3TKMJVGA . You are receiving this because you authored the thread.Message ID: @.***>

biemond commented 2 months ago

yeah send it to you, huawei I see indeed. I think we need to restart solax. it is stuck or has a new ip or something.