[App][Pro] Sofar (Release 1.1.35, Test 1.1.36)

I can’t see a log of the mDNS results, so maybe the inverter is not publishing it or Homey is not receiving it for some reason.

Could you try enabling the log in the app settings page and then restart the app, then send the log from the app settings page as it contains more information than the Homey Diagnostics Report.

1 Like

:folded_hands:I sent it to you

The Sofar app stopped working since the update yesterday. What can I do?

Does the app startup?
I have changed the required Homey version to allow the dashboard components and new Energy properties to show up. Can you confirm if your Homey is up-to-date?

Did you receive the log?

  1. Yes 12.4.4 latest stable release
  2. V1.1.29
  3. Do you have a latest stable release we can fall back on?

I’ve restarted the app several times. My Homey is version 12.4.2.

@Adrian_Rockall
I pressed Send Log several times, I hope you received.
From checking the log it looks like the inverter is found and some readings are not 0 while daylight. But the device icon Sofar in Homey still shows no update.

In addition, it says something about “Missing one or more of Frequency = 50.05..”:

Log
  • 2025-05-14T07:57:40.947Z
    ************** App has initialised. ***************

  • 2025-05-14T07:57:40.962Z
    2025-05-14T07:57:40.961Z [log] [ManagerDrivers] [Driver:battery] BatteryDriver has been initialized

  • 2025-05-14T07:57:40.967Z
    2025-05-14T07:57:40.967Z [log] [ManagerDrivers] [Driver:grid] GridDriver has been initialized

  • 2025-05-14T07:57:40.990Z
    2025-05-14T07:57:40.990Z [log] [ManagerDrivers] [Driver:solar_panel] SolarPanelDriver has been initialized

  • 2025-05-14T07:57:41.000Z
    2025-05-14T07:57:41.000Z [log] [ManagerDrivers] [Driver:summary] InverterDriver has been initialized

  • 2025-05-14T07:57:41.156Z
    Get Data

  • 2025-05-14T07:57:41.159Z
    2025-05-14T07:57:41.158Z [log] [ManagerDrivers] [Driver:solar_panel] [Device:277174aa-6a0b-47ac-ac33-7192b7cd68f9] SolarPanelDevice has been initialized

  • 2025-05-14T07:57:41.172Z
    2025-05-14T07:57:41.172Z [log] [ManagerDrivers] [Driver:summary] [Device:2f8f1634-d8fe-43bd-8296-45e26682f34d] StationDevice has been initialized

  • 2025-05-14T07:57:46.047Z
    Found Inverter: IP: 192.168.1.18, S.No: 0123456789

  • 2025-05-14T07:57:46.052Z
    Checking register 14 for grid frequency:

  • 2025-05-14T07:57:46.057Z
    send_request: start = 14, end = 14, fc = 3

  • 2025-05-14T07:57:46.287Z
    Data received: {
    “type”: “Buffer”,
    “data”: [
    19,
    142
    ]
    }

  • 2025-05-14T07:57:46.297Z
    Frequency 50.06 is good

  • 2025-05-14T07:57:46.300Z
    Found inverter

  • 2025-05-14T07:57:51.159Z
    Get Data

  • 2025-05-14T07:57:51.161Z
    send_request: start = 0, end = 5, fc = 3

  • 2025-05-14T07:57:51.263Z
    Data received: {
    “type”: “Buffer”,
    “data”: [
    0,
    2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
    ]
    }

  • 2025-05-14T07:57:51.268Z
    send_request: start = 6, end = 12, fc = 3

  • 2025-05-14T07:57:51.570Z
    Data received: {
    “type”: “Buffer”,
    “data”: [
    16,
    114,
    3,
    23,
    22,
    146,
    1,
    150,
    1,
    78,
    0,
    235,
    2,
    39
    ]
    }

  • 2025-05-14T07:57:51.574Z
    send_request: start = 14, end = 28, fc = 3

  • 2025-05-14T07:57:51.913Z
    Data received: {
    “type”: “Buffer”,
    “data”: [
    19,
    141,
    9,
    37,
    3,
    25,
    9,
    21,
    3,
    19,
    9,
    42,
    3,
    18,
    0,
    0,
    217,
    30,
    0,
    0,
    78,
    5,
    6,
    73,
    1,
    92,
    0,
    48,
    0,
    55
    ]
    }

  • 2025-05-14T07:57:51.915Z
    send_request: start = 39, end = 39, fc = 3

  • 2025-05-14T07:57:52.204Z
    Data received: {
    “type”: “Buffer”,
    “data”: [
    0,
    12
    ]
    }

  • 2025-05-14T07:57:52.294Z
    Missing one or more of Frequency = 50.050000000000004, Consumption = undefined, Grid_Voltage = 234.10000000000002, Total_Import = undefined

  • 2025-05-14T07:58:02.326Z
    Get Data

  • 2025-05-14T07:58:02.327Z
    send_request: start = 0, end = 5, fc = 3

  • 2025-05-14T07:58:02.450Z
    Data received: {
    “type”: “Buffer”,
    “data”: [
    0,
    2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
    ]
    }

It seems the Total Import value is not being reported. It could be that I have the wrong registers for that on your inverter. Can you remember if that was previously reported in Homey?

One change I made was to valid some registers to prevent bad values being recorded and I think that is causing the problems.

I do not know Total Import value, but here a screenshot of the device:

The below screenshot shows the values available in Homey.

It’s the one that shows “7 days ago”, so it looks like it was working but not now.
I will investigate.

I have published an update. Let me know if this fixes it for you.

Thanks v1.1.30. No change unfortunately.
The log: sent to Adrian_Rockall

I didn’t realise how many parameters were missing from your inverter. There is a new version that omits the check for Consumption.

1 Like

And we’re back! Great work and thanks so much.

Your app is a big enabler in automating our heating system.

Using solar power in its calculations it will switch as late as possible from electricity (heat pump) to pellets.

1 Like

Thanks, it works again.

1 Like

Thanks for the support, can the SOH percentage also be implemented in the accumulation?
this is the home assistant yaml that returns this value if you need it.

thanks

  • name: “Battery 1 SOH”
    class: “battery”
    state_class: “measurement”
    uom: “%”
    scale: 1
    rule: 1
    registers: [ 0x0609 ]

That should already be in the Battery device:

Sorry, maybe I didn’t explain myself well. I didn’t mean the charge percentage but the battery’s state of health percentage. “SOH” (State of Health) and “storage” refer to a battery’s State of Health, a measure of its current capacity compared to its original capacity, often expressed as a percentage.

1 Like

I have published a new test version that should add the SOH if the data is provided.

I can’t test it fully as my inverter doesn’t have that information.

in the sofar log the SOH is present but I can’t find it in the written properties anywhere.
exactly where should this data appear ?
thanks

  • 2025-10-18T07:54:24.090Z
    Inverter data: : ********, {
    “Inverter_status”: “waiting”,
    “Ambient_temperature”: 0,
    “Heatsink_Temperature”: 23,
    “Internal_Temperature”: 0,
    “Grid_Voltage”: 237.4,
    “Grid_Current”: 0.05,
    “Grid_Frequency”: 50.01,
    “Grid_Power”: 310,
    “Consumption”: 310,
    “PV1_Voltage”: 305.6,
    “PV1_Current”: 0.03,
    “PV1_Power”: 0,
    “PV2_Voltage”: 305.3,
    “PV2_Current”: 0,
    “PV2_Power”: 0,
    “PV_Power”: 0,
    “Battery_Power”: 0,
    “Battery_Charge”: 10,
    “Battery_SOH”: 97,
    “Battery Voltage”: 51.300000000000004,
    “Battery_Current”: 0,
    “Battery_Temperature”: 23,
    “Battery_Cycles”: 0,
    “Daily_Production”: 0.02,
    “Battery_Charge_Today”: 0,
    “Battery_Discharge_Today”: 1.12,
    “Battery_Charge_Total”: 3227.1000000000004,
    “Battery_Discharge_Total”: 2726.1000000000004,
    “Import_Today”: 1.46,
    “Export_Today”: 0.01,
    “Total_Import”: 5313.8,
    “Total_Export”: 3348.5,
    “Consumed_Today”: 2.65,
    “Total_Consumption”: 20171.2,
    “Total_Generation”: 19810.300000000003,
    “Daily_Battery_Charge”: 0,
    “Total_Battery_Charge”: 3227.1000000000004,
    “Daily_Battery_Discharge”: 1.12,
    “Total_Battery_Discharge”: 2726.1000000000004
    }