reinhard-brandstaedter / solarflow-control

A tool to automatically control Zendure's Solarflow hub with more flexibility to match home power demand
71 stars 12 forks source link

Solarflow does not discharge #305

Open mrostock opened 2 days ago

mrostock commented 2 days ago

I'm facing the problem, that mit solarflow is not discharging anymore. As you can see in the attached screenshot of my grafana dashbord, the battery is full (100%), the sun is shining and the produced solar energy is sending to house.

solarflow-status

This is my current setting:

2024-11-12 09:18:53,001:INFO: MQTT Host: hms-mqtt:1883
2024-11-12 09:18:53,001:INFO: MQTT User is not set, assuming authentication not needed
2024-11-12 09:18:53,001:INFO: Solarflow Hub: A8yh63/2nW22QUp
2024-11-12 09:18:53,002:INFO: Limit via inverter: True
2024-11-12 09:18:53,002:INFO: Control Parameters:
2024-11-12 09:18:53,002:INFO:   MIN_CHARGE_POWER = 75
2024-11-12 09:18:53,002:INFO:   MAX_DISCHARGE_LEVEL = 200
2024-11-12 09:18:53,002:INFO:   MAX_INVERTER_LIMIT = 800
2024-11-12 09:18:53,002:INFO:   MAX_INVERTER_INPUT = 725
2024-11-12 09:18:53,002:INFO:   SUNRISE_OFFSET = 60
2024-11-12 09:18:53,002:INFO:   SUNSET_OFFSET = 60
2024-11-12 09:18:53,002:INFO:   DISCHARGE_DURING_DAYTIME = True
2024-11-12 09:18:53,087:INFO: IP Address: 91.41.108.213
2024-11-12 09:18:53,087:INFO: Location: **********, North Rhine-Westphalia, Germany
2024-11-12 09:18:53,087:INFO: Coordinates: (Lat: **.****, Lng: *.****
2024-11-12 09:18:53,089:INFO: Publishing Homeassistant templates...
2024-11-12 09:18:53,124:INFO: Published 33 Homeassistant templates.
2024-11-12 09:18:53,124:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 09:18:53,125:INFO: Using OpenDTU: Base topic: solar/1164a00caa21, Limit topic: solar/1164a00caa21/cmd/limit_nonpersistent_absolute, SF Channels: [1, 2], AC Limit: 800
2024-11-12 09:18:53,125:INFO: No config setting found for option "scaling_factor" in section smartmeter!
2024-11-12 09:18:53,125:INFO: Using Smartmeter: Base topic: tele/tasmota/SENSOR, Current power accessor: Power.Power_curr, Total power accessor: Power.Total_in, Rapid change diff: 500W, Zero offset: 20W, Scaling factor: 1
2024-11-12 09:18:53,125:INFO: Connected to MQTT Broker!
2024-11-12 09:18:53,125:INFO: Hub subscribing: /A8yh63/2nW22QUp/properties/report
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/solarInputPower
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/electricLevel
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/outputPackPower
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/packInputPower
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/outputHomePower
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/outputLimit
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/inverseMaxPower
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/masterSoftVersion
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/pass
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/passMode
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/batteries/+/socLevel
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/telemetry/batteries/+/totalVol
2024-11-12 09:18:53,126:INFO: Hub subscribing: solarflow-hub/2nW22QUp/control/#
2024-11-12 09:18:53,126:INFO: Turning hub buzzer OFF
2024-11-12 09:18:53,126:INFO: Turning hub bypass OFF
2024-11-12 09:18:53,127:INFO: Turning hub bypass autorecover OFF
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/0/powerdc
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/0/efficiency
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/+/power
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/status/producing
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/status/reachable
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/status/limit_absolute
2024-11-12 09:18:53,127:INFO: DTU subscribing: solar/1164a00caa21/status/limit_relative
2024-11-12 09:18:53,127:INFO: DTU subscribing: solarflow-hub/+/control/dryRun
2024-11-12 09:18:53,127:INFO: Smartmeter subscribing: tele/tasmota/SENSOR
2024-11-12 09:18:53,168:INFO: Taking over bypass control: True
2024-11-12 09:18:53,169:INFO: Updating SUNRISE_OFFSET to 60 minutes
2024-11-12 09:18:53,169:INFO: Updating SUNSET_OFFSET to 60 minutes
2024-11-12 09:18:53,169:INFO: Updating MIN_CHARGE_POWER to 75 W
2024-11-12 09:18:53,169:INFO: Updating MAX_DISCHARGE_POWER to 200 W
2024-11-12 09:18:53,169:INFO: Updating DISCHARGE_DURING_DAYTIME to True
2024-11-12 09:18:53,169:INFO: Solarflow set DryRun: False
2024-11-12 09:18:53,169:INFO: OpenDTU set DryRun: False
2024-11-12 09:18:53,169:INFO: Set ChargeThrough: False
2024-11-12 09:18:53,169:INFO: Reading last full time: 2024-11-12 09:18:46
2024-11-12 09:18:53,170:INFO: Reading battery target mode: discharging
2024-11-12 09:18:53,170:INFO: Solarflow set DryRun: False
2024-11-12 09:18:53,170:INFO: OpenDTU set DryRun: False
2024-11-12 09:18:55,771:INFO: Bypass control, turning on bypass!
2024-11-12 09:18:55,771:INFO: Turning hub bypass ON
2024-11-12 09:18:55,771:INFO: Reading last full time: 2024-11-12 09:18:55
2024-11-12 09:18:55,772:INFO: Reading battery target mode: discharging
2024-11-12 09:19:11,309:INFO: Determined inverter's max capacity: 1600.0
2024-11-12 09:19:45,344:INFO: Reading last full time: 2024-11-12 09:19:45
2024-11-12 09:19:45,385:INFO: Reading battery target mode: discharging
2024-11-12 09:19:53,136:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 09:19:56,575:INFO: Reading last full time: 2024-11-12 09:19:56
2024-11-12 09:19:56,616:INFO: Reading battery target mode: discharging

... and here is the current output of solarflow-control:

2024-11-12 11:22:53,521:INFO: HUB: S:146.0W [ 146.0,146.0 ], B:100% (100), V:50.0V (50.0), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H:145W, L:800W
2024-11-12 11:22:53,521:INFO: INV: AC:157.6W, DC:165.9W (83.3|84.2|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-12 11:22:53,521:INFO: SMT: T:Smartmeter P:180.0W [ 179.8,179.8,179.5 ]
2024-11-12 11:22:53,522:INFO: Direct connected panel are producing 0.0W, trying to get 318.6W from hub.
2024-11-12 11:22:53,522:INFO: Based on time, solarpower (146.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-12 11:22:53,522:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-12 11:22:53,522:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 318.6!
2024-11-12 11:22:53,522:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-12 11:22:53,522:INFO: Sun: 07:45 - 16:44 Demand: 318.6W, Panel DC: (0.0W), Hub DC: (159.1W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-12 11:22:53,576:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 11:22:56,783:INFO: Reading last full time: 2024-11-12 11:22:56
2024-11-12 11:22:56,783:INFO: Reading battery target mode: discharging

I guess the problem is this here: P:True (manual, not possible) But I don't know how to change it to possible ;-) Has anybody an idea to fix this?!?

Thanks a lot in advance

reinhard-brandstaedter commented 2 days ago

The reason is indeed that your hub is "stuck" in passthrough mode. Usually passthrough mode is enforced off in the morning or at startup. Do you have control_bypass set to true in your config.ini?

I assume yes as you have this entry:

2024-11-12 09:18:55,771:INFO: Bypass control, turning on bypass!
2024-11-12 09:18:55,771:INFO: Turning hub bypass ON

So since the battery got full, it switched to Bypass. And since we do not want to switch bypass on/off (to reduce wear on the relay) it will only turn off at sunset and use battery power during night. I assume you have not direct connected panels? This is what it is optimized for with this strategy.

mrostock commented 2 days ago

Correct, control_bypass is set to true in your config.ini ;-) and yes, there are no direct connected panels.

So, am I understanding correctly that sf-control will not change status until the sun has set? Or in other words, when the sun has set, the battery will be discharged?

reinhard-brandstaedter commented 2 days ago

Correct. The rationale behind this is that typically throughout the day the bypass state will rather be reached in the afternoon (unless in charge-through operation when SFControl will try to get the batteries to 100% once in a while) and discharging happens during the night (ideally almost down to zero). The bypass relay should be switched as few times as possible...a big drawback of the original SF handling is that they would switch an/off/on/off/on very frequently.

mrostock commented 1 day ago

I observed solarflow last night and the result: The systems did not discharge the whole night :-( ... as you can see in the attached screenshot:

Bildschirmfoto 2024-11-13 um 07 41 57

2024-11-13 06:42:45,146:INFO: Rapid rise in demand detected, clearing buffer!
2024-11-13 06:42:45,146:INFO: HUB: S:0.0W [ 0.0 ], B: 96% (96), V:49.8V (49.8), C: 0W, P:False (manual, not possible), F:17.7h, E:-1.0h, H: 0W, L:800W
2024-11-13 06:42:45,146:INFO: INV: AC:0.0W, DC:0.0W (0.0|0.0|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 06:42:45,146:INFO: SMT: T:Smartmeter P:2567.0W [ 2567.0,2567.0 ]
2024-11-13 06:42:45,146:INFO: Direct connected panel are producing 0.0W, trying to get 2547.0W from hub.
2024-11-13 06:42:45,147:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-13 06:42:45,147:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 06:42:45,147:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 2547.0!
2024-11-13 06:42:45,147:INFO: Inverter is not reachable/down. Can't set limit
2024-11-13 06:42:45,147:INFO: Sun: 07:47 - 16:43 Demand: 2547.0W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 400.0W, Hub Limit: 800.0W
2024-11-13 06:42:45,147:INFO: SMT triggers limit function: 2567.0 -> 2567.0: executed

Can anybody help me to fix this ... please ...

tuxianerDE commented 1 day ago

Hey, are you running the latest master oder dev version? Has it worked before and if so when did it stop any correlation of FW upgrade or sf-control update?

mrostock commented 1 day ago

I'm running latest master verion of solarflow-control in a docker setting.

rbrandstaedter/solarflow-control                            latest           3733453d09a3   3 months ago     85.8MB

And yes, it worked before. "Before" means: I did a firmware update. After that solarflow does not discharge. So I connected my box back to cloud. In cloud setting, the box "worked". After that I was able to set the settings for discharging. Solarflow discharged the battery into the house grid. After two days I disconnected the box from cloud. Since then, the battery has not been discharged anymore.

This is my current firmware setting: Bildschirmfoto 2024-11-13 um 09 35 04

tuxianerDE commented 1 day ago

Thanks. Are you operating a Hub2k or the older hub? If it is the older hub, I can confirm that I am running also on the latest FW and it is working fine (just to ease a bit).

If it is a Hub2k, when you connect via Bluetooth to it, can you see the latest settings made for the output to home in other words do you see the controls being set at least properly?

reinhard-brandstaedter commented 1 day ago

@mrostock can you check in your logs when the first occurrence of this line happens:

2024-11-13 06:42:45,147:INFO: Inverter is not reachable/down. Can't set limit

It seems that your inverter got at some point unreachable (the DTU) and never woke up again. Sine sf-control never should set the output of your hub to completely 0 if no other power source is available, we need to find out if that is the case and limiting via inverter stopped.

Is your inverter reachable/DTU reachable now?

mrostock commented 1 day ago

The actual state is, that my inverter is available due to the battery is fully charged and the sun is shining:

2024-11-13 09:55:56,998:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 09:56:00,199:INFO: Reading last full time: 2024-11-13 09:56:00
2024-11-13 09:56:00,199:INFO: Reading battery target mode: discharging
2024-11-13 09:56:05,212:INFO: HUB: S:158.5W [ 153.5,153.5,155.5,156.5,157.5,158.5 ], B:100% (100), V:50.5V (50.5), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H:156W, L:800W
2024-11-13 09:56:05,212:INFO: INV: AC:168.0W, DC:177.2W (88.8|89.6|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 09:56:05,212:INFO: SMT: T:Smartmeter P:864.0W [ 869.5,869.5,882.5 ]
2024-11-13 09:56:05,212:INFO: Direct connected panel are producing 0.0W, trying to get 1032.1W from hub.
2024-11-13 09:56:05,212:INFO: Based on time, solarpower (158.5W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 09:56:05,212:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 09:56:05,212:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 1032.1!
2024-11-13 09:56:05,212:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 09:56:05,212:INFO: Sun: 07:47 - 16:43 Demand: 1032.1W, Panel DC: (0.0W), Hub DC: (169.6W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 09:56:05,212:INFO: SMT triggers limit function: 869.5 -> 882.5: executed
2024-11-13 09:56:13,193:INFO: Reading last full time: 2024-11-13 09:56:13
2024-11-13 09:56:13,193:INFO: Reading battery target mode: discharging
2024-11-13 09:56:15,196:INFO: SMT triggers limit function: 869.8 -> 859.5: skipped

Here you can see: Bildschirmfoto 2024-11-13 um 10 52 19

The lower left chart is showing the state of the inverter.

The hub seems to set the output to 0. If the battery is in state 10% the hub stopps discharging and the inverter will go offline.

mrostock commented 1 day ago

https://github.com/reinhard-brandstaedter/solarflow-control/issues/305#issuecomment-2472864614 @tuxianerDE Yes, I'm using a Hub2k, but I can't see any settings :-(

reinhard-brandstaedter commented 1 day ago

The actual state is, that my inverter is available due to the battery is fully charged and the sun is shining:

I'm mostly interested in the state during the nightm when it should have discharged and kept the inverter alive. So in your logs from this morning, you can see that the hub has actually set a limit of 800W at a battery charge state of 96% (first line). This means it should feed to the inverter and keep it online....but it doesn't

So we need the point in the logs and the state where the hub stopped home output and the inverter went offline during the night.

2024-11-13 06:42:45,146:INFO: Rapid rise in demand detected, clearing buffer!
2024-11-13 06:42:45,146:INFO: HUB: S:0.0W [ 0.0 ], B: 96% (96), V:49.8V (49.8), C: 0W, P:False (manual, not possible), F:17.7h, E:-1.0h, H: 0W, L:800W
2024-11-13 06:42:45,146:INFO: INV: AC:0.0W, DC:0.0W (0.0|0.0|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 06:42:45,146:INFO: SMT: T:Smartmeter P:2567.0W [ 2567.0,2567.0 ]
2024-11-13 06:42:45,146:INFO: Direct connected panel are producing 0.0W, trying to get 2547.0W from hub.
2024-11-13 06:42:45,147:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-13 06:42:45,147:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 06:42:45,147:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 2547.0!
2024-11-13 06:42:45,147:INFO: Inverter is not reachable/down. Can't set limit

Another possibility could be that sf-control couldn't read/update any data from inverter/hub if MQTT connection was lost or not available. The logs should also provide insights on that. So we need the logs to diagnose that.

mrostock commented 1 day ago

@reinhard-brandstaedter I guess this here is what we are looking for:

2024-11-05 02:41:05,515:INFO: HUB: S:0.0W [ 0.0 ], B: 5% ( 5), V:43.6V (43.6), C: -91W, P:False (manual, not possible), F:16.9h, E:66.9h, H: 87W, L:800W
2024-11-05 02:41:05,516:INFO: INV: AC:99.2W, DC:86.3W (0.0|0.0|0.0|0.0), L:400W (100.0W/channel) [1600W]
2024-11-05 02:41:05,516:INFO: SMT: T:Smartmeter P:241.0W [ 241.0,241.0 ]
2024-11-05 02:41:05,516:INFO: Direct connected panel are producing 0.0W, trying to get 221.0W from hub.
2024-11-05 02:41:05,516:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-05 02:41:05,516:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-05 02:41:05,516:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 221.0!
2024-11-05 02:41:05,516:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-05 02:41:05,516:INFO: Sun: 07:33 - 16:55 Demand: 221.0W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 400.0W, Hub Limit: 800.0W
2024-11-05 02:41:05,516:INFO: SMT triggers limit function: 241.0 -> 241.0: executed
2024-11-05 02:41:10,236:INFO: DTU triggers limit function: 94.9 -> 40.0: skipped
2024-11-05 02:41:10,241:INFO: DTU triggers limit function: 94.9 -> 40.0: skipped
2024-11-05 02:41:10,271:INFO: DTU triggers limit function: 94.9 -> 40.0: skipped
2024-11-05 02:41:10,289:INFO: DTU triggers limit function: 94.9 -> 40.0: skipped
2024-11-05 02:41:10,309:INFO: DTU triggers limit function: 94.9 -> 40.0: skipped
2024-11-05 02:41:15,221:INFO: DTU triggers limit function: 70.9 -> 32.0: skipped
2024-11-05 02:41:15,246:INFO: DTU triggers limit function: 70.9 -> 32.0: skipped
2024-11-05 02:41:15,271:INFO: DTU triggers limit function: 70.9 -> 32.0: skipped
2024-11-05 02:41:15,292:INFO: DTU triggers limit function: 70.9 -> 32.0: skipped
2024-11-05 02:41:15,315:INFO: DTU triggers limit function: 70.9 -> 32.0: skipped
2024-11-05 02:41:15,495:INFO: Rapid drop in demand detected, clearing buffer!
2024-11-05 02:41:15,495:INFO: HUB: S:0.0W [ 0.0 ], B: 5% ( 5), V:43.6V (43.6), C: -13W, P:False (manual, not possible), F:16.9h, E:66.9h, H: 13W, L:800W
2024-11-05 02:41:15,495:INFO: INV: AC:32.0W, DC:0.0W (0.0|0.0|0.0|0.0), L:400W (100.0W/channel) [1600W]
2024-11-05 02:41:15,495:INFO: SMT: T:Smartmeter P:236.0W [ 236.0,236.0 ]
2024-11-05 02:41:15,495:INFO: Direct connected panel are producing 0.0W, trying to get 216.0W from hub.
2024-11-05 02:41:15,495:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-05 02:41:15,496:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-05 02:41:15,496:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 216.0!
2024-11-05 02:41:15,496:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-05 02:41:15,496:INFO: Sun: 07:33 - 16:55 Demand: 216.0W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 400.0W, Hub Limit: 800.0W
2024-11-05 02:41:15,496:INFO: SMT triggers limit function: 236.0 -> 236.0: executed
2024-11-05 02:41:25,519:INFO: Rapid drop in demand detected, clearing buffer!

I attached my complete logfile taken from docker. solarflow-control.log.zip

May it gives you some more details.

BTW.: I never saw the state that the hub tries to keep the inverter alive.... :-(

reinhard-brandstaedter commented 1 day ago

This is the point in your logs that I was looking for:

at 2024-11-12 14:44:53,907:INFO: Turning hub bypass OFF the bypass is correctly turned off ( 2 hours before sunset as per your configuration) The hub limit is at 800W and the inverter limit (if correct is still at 1600W) from the bypass state before. The DTU/Inverter goes offline 2024-11-12 14:46:53,903:INFO: Inverter is not reachable/down. Can't set limit as no power is coming from the hub, although it is allowed to discharge. Since both limits hub and inverter are set high enough the hub should discharge.

Could it be that the batteries are too cold, maybe? Maybe another safety on the hub that we didn't consider? Can you post a screenshot of your MQTT topic tree solarflow-hub/*?

2024-11-12 14:44:53,906:INFO: HUB: S:0.0W [ 0.0 ], B: 98% (98), V:49.8V (49.8), C: 0W, P:True (manual, not possible), F:1.8h, E:-1.0h, H: 0W, L:800W
2024-11-12 14:44:53,906:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-12 14:44:53,906:INFO: SMT: T:Smartmeter P:352.0W [ 357.5,357.5,357.0,357.5,359.0,355.5 ]
2024-11-12 14:44:53,906:INFO: Direct connected panel are producing 0.0W, trying to get 335.5W from hub.
2024-11-12 14:44:53,907:INFO: Turning hub bypass OFF
2024-11-12 14:44:53,907:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.1.
2024-11-12 14:44:53,907:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-12 14:44:53,907:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 335.5!
2024-11-12 14:44:53,907:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-12 14:44:53,907:INFO: Sun: 07:45 - 16:44 Demand: 335.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-12 14:44:54,075:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 14:45:54,073:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 14:46:53,902:INFO: HUB: S:7.7W [ 7.2,7.2,7.7 ], B: 98% (98), V:49.9V (49.9), C: 7W, P:False (manual, not possible), F:1.8h, E:-1.0h, H: 0W, L:800W
2024-11-12 14:46:53,902:INFO: INV: AC:0.0W, DC:0.0W (0.0|0.0|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-12 14:46:53,903:INFO: SMT: T:Smartmeter P:363.0W [ 367.2,367.2,365.3,362.0 ]
2024-11-12 14:46:53,903:INFO: Direct connected panel are producing 0.0W, trying to get 342.0W from hub.
2024-11-12 14:46:53,903:INFO: Based on time, solarpower ( 7.7W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-12 14:46:53,903:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-12 14:46:53,903:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 342.0!
2024-11-12 14:46:53,903:INFO: Inverter is not reachable/down. Can't set limit
2024-11-12 14:46:53,903:INFO: Sun: 07:45 - 16:44 Demand: 342.0W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 400.0W, Hub Limit: 800.0W
2024-11-12 14:46:54,072:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 14:47:54,071:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-12 14:48:53,675:INFO: Publishing Homeassistant templates...
2024-11-12 14:48:53,708:INFO: Published 33 Homeassistant templates.
2024-11-12 14:48:53,899:INFO: HUB: S:9.0W [ 9.0,9.0 ], B: 98% (98), V:49.9V (49.9), C: 8W, P:False (manual, not possible), F:1.8h, E:-1.0h, H: 0W, L:800W
2024-11-12 14:48:53,899:INFO: INV: AC:0.0W, DC:0.0W (0.0|0.0|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-12 14:48:53,899:INFO: SMT: T:Smartmeter P:354.0W [ 357.3,357.3,355.5,351.8,351.7,350.5 ]
2024-11-12 14:48:53,899:INFO: Direct connected panel are producing 0.0W, trying to get 330.5W from hub.
2024-11-12 14:48:53,899:INFO: Based on time, solarpower ( 9.0W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-12 14:48:53,900:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-12 14:48:53,900:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 330.5!
2024-11-12 14:48:53,900:INFO: Inverter is not reachable/down. Can't set limit
mrostock commented 1 day ago

@reinhard-brandstaedter Thank you for your analysis! The hub is in the basement next to the heater. I don't think the hub is too cold.

Here my current MQTT topic tree of solarflow-hub/*: Bildschirmfoto 2024-11-13 um 14 02 52

tuxianerDE commented 1 day ago

The only thing I notice is the hubstate. My hubstate is always (just checked the history) always 0. Not sure what the value does but at least that is different.

Second but that is the current state the pass is set to 1 (by pass active I assume?)

reinhard-brandstaedter commented 1 day ago

The bypass is currently on. There are two other things I've not seen before: acMode=2 and exitPassTime=360 the latter one seems to influence the bypass (from the name I guess). Maybe this impacts what happens when a bypass is turned really off? Is there a (new) setting in the App maybe regarding bypass behavior?

At this stage I'd suggest to try something: manually turn off the bypass via MQTT (see here) by setting these variables (one after the other to see if the hub starts discharging):

Check in the Zendure App (you should be able to connect via bluetooth to the hub while the hub is still reporting offline) if the hub is in a special state (e.g. reporting a error state) to confirm the the hubState variable.

mrostock commented 1 day ago

So, I did these changes as you can see in the attached video ;-) After setting passMode = 1 after several seconds the hub starts to charge again :-( No output to home :-(

https://github.com/user-attachments/assets/db5009e1-4fe2-46ef-b380-8ab06fe13496

pass is set to 0

After setting exitPassTime = 0 I can't see any changes.

mrostock commented 1 day ago

I tried to reset solarflow-control and hub by

  1. Shutdown solarflow-control: docker stop solarflow-control
  2. Deleting all topics of solarhub and so on ...
  3. Starting solarflow-control: docker start solarflow-control

This here is what happens after a while:

2024-11-13 14:36:10,287:INFO: Turning hub bypass OFF
2024-11-13 14:36:10,287:INFO: Turning hub bypass autorecover OFF
2024-11-13 14:36:10,287:INFO: DTU subscribing: solar/1164a00caa21/0/powerdc
2024-11-13 14:36:10,288:INFO: DTU subscribing: solar/1164a00caa21/0/efficiency
2024-11-13 14:36:10,288:INFO: DTU subscribing: solar/1164a00caa21/+/power
2024-11-13 14:36:10,288:INFO: DTU subscribing: solar/1164a00caa21/status/producing
2024-11-13 14:36:10,288:INFO: DTU subscribing: solar/1164a00caa21/status/reachable
2024-11-13 14:36:10,288:INFO: DTU subscribing: solar/1164a00caa21/status/limit_absolute
2024-11-13 14:36:10,288:INFO: DTU subscribing: solar/1164a00caa21/status/limit_relative
2024-11-13 14:36:10,288:INFO: DTU subscribing: solarflow-hub/+/control/dryRun
2024-11-13 14:36:10,288:INFO: Smartmeter subscribing: tele/tasmota/SENSOR
2024-11-13 14:36:10,331:INFO: Taking over bypass control: True
2024-11-13 14:36:10,331:INFO: Updating SUNRISE_OFFSET to 60 minutes
2024-11-13 14:36:10,331:INFO: Updating SUNSET_OFFSET to 60 minutes
2024-11-13 14:36:10,331:INFO: Updating MIN_CHARGE_POWER to 75 W
2024-11-13 14:36:10,332:INFO: Updating MAX_DISCHARGE_POWER to 200 W
2024-11-13 14:36:10,332:INFO: Updating DISCHARGE_DURING_DAYTIME to True
2024-11-13 14:36:13,491:INFO: Bypass control, turning on bypass!
2024-11-13 14:36:13,491:INFO: Turning hub bypass ON
2024-11-13 14:36:13,492:INFO: Reading last full time: 2024-11-13 14:36:13
2024-11-13 14:36:13,492:INFO: Reading battery target mode: discharging
2024-11-13 14:36:26,925:INFO: Determined inverter's max capacity: 1600.0
2024-11-13 14:36:46,589:INFO: Reading last full time: 2024-11-13 14:36:46
2024-11-13 14:36:46,631:INFO: Reading battery target mode: discharging
2024-11-13 14:37:10,246:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:37:12,988:INFO: Reading last full time: 2024-11-13 14:37:12
2024-11-13 14:37:12,988:INFO: Reading battery target mode: discharging
2024-11-13 14:37:15,515:INFO: HUB: S:6.0W [ 6.0,6.0 ], B:100% (100), V:53.1V (53.1), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 2W, L:800W
2024-11-13 14:37:15,515:INFO: INV: AC:39.6W, DC:41.8W (20.8|21.0|0.0|0.0), L:800W (200.0W/channel) [1600W]
2024-11-13 14:37:15,515:INFO: SMT: T:Smartmeter P:238.0W [ 289.5,289.5,270.0 ]
2024-11-13 14:37:15,515:INFO: Direct connected panel are producing 0.0W, trying to get 289.6W from hub.
2024-11-13 14:37:15,517:INFO: Based on time, solarpower ( 6.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:37:15,517:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:37:15,517:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 289.6!
2024-11-13 14:37:15,517:INFO: Setting inverter output limit to 1600W (1 min moving average of 400W x 4)
2024-11-13 14:37:15,517:INFO: Sun: 07:47 - 16:43 Demand: 289.6W, Panel DC: (0.0W), Hub DC: (39.6W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:37:15,517:INFO: SMT triggers limit function: 289.5 -> 270.0: executed
2024-11-13 14:37:35,531:INFO: HUB: S:19.0W [ 19.0,19.0 ], B:100% (100), V:53.1V (53.1), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:37:35,531:INFO: INV: AC:17.5W, DC:18.6W (0.4|0.6|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:37:35,531:INFO: SMT: T:Smartmeter P:342.0W [ 307.5,307.5,308.6,306.8,308.3,343.5 ]
2024-11-13 14:37:35,531:INFO: Direct connected panel are producing 0.0W, trying to get 323.5W from hub.
2024-11-13 14:37:35,531:INFO: Based on time, solarpower (19.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:37:35,531:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:37:35,532:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 323.5!
2024-11-13 14:37:35,532:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:37:35,532:INFO: Sun: 07:47 - 16:43 Demand: 323.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:37:35,532:INFO: SMT triggers limit function: 308.3 -> 343.5: executed
2024-11-13 14:37:45,499:INFO: SMT triggers limit function: 314.0 -> 336.5: skipped
2024-11-13 14:37:47,237:INFO: Reading last full time: 2024-11-13 14:37:47
2024-11-13 14:37:47,279:INFO: Reading battery target mode: discharging
2024-11-13 14:38:10,245:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:38:10,282:INFO: HUB: S:19.0W [ 19.0,19.0 ], B:100% (100), V:53.0V (53.0), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:38:10,282:INFO: INV: AC:0.0W, DC:1.0W (0.4|0.6|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:38:10,282:INFO: SMT: T:Smartmeter P:302.0W [ 329.5,329.5,322.5 ]
2024-11-13 14:38:10,282:INFO: Direct connected panel are producing 0.0W, trying to get 302.5W from hub.
2024-11-13 14:38:10,282:INFO: Based on time, solarpower (19.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:38:10,283:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:38:10,283:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 302.5!
2024-11-13 14:38:10,283:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:38:10,283:INFO: Sun: 07:47 - 16:43 Demand: 302.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:38:13,550:INFO: Reading last full time: 2024-11-13 14:38:13
2024-11-13 14:38:13,550:INFO: Reading battery target mode: discharging
2024-11-13 14:38:47,573:INFO: Reading last full time: 2024-11-13 14:38:47
2024-11-13 14:38:47,614:INFO: Reading battery target mode: discharging
2024-11-13 14:39:10,243:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:39:12,897:INFO: Reading last full time: 2024-11-13 14:39:12
2024-11-13 14:39:12,937:INFO: Reading battery target mode: discharging
2024-11-13 14:39:45,484:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.9V (52.9), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:39:45,484:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:39:45,484:INFO: SMT: T:Smartmeter P:279.0W [ 302.0,302.0,300.5,297.8,293.8,280.5 ]
2024-11-13 14:39:45,484:INFO: Direct connected panel are producing 0.0W, trying to get 260.5W from hub.
2024-11-13 14:39:45,484:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:39:45,484:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:39:45,484:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 260.5!
2024-11-13 14:39:45,484:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:39:45,485:INFO: Sun: 07:47 - 16:43 Demand: 260.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:39:45,485:INFO: SMT triggers limit function: 293.8 -> 280.5: executed
2024-11-13 14:39:47,955:INFO: Reading last full time: 2024-11-13 14:39:47
2024-11-13 14:39:47,955:INFO: Reading battery target mode: discharging
2024-11-13 14:40:10,241:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:40:10,277:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.9V (52.9), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:40:10,278:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:40:10,278:INFO: SMT: T:Smartmeter P:289.0W [ 286.5,286.5,292.5 ]
2024-11-13 14:40:10,278:INFO: Direct connected panel are producing 0.0W, trying to get 272.5W from hub.
2024-11-13 14:40:10,278:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:40:10,278:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:40:10,278:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 272.5!
2024-11-13 14:40:10,279:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:40:10,279:INFO: Sun: 07:47 - 16:43 Demand: 272.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:40:13,267:INFO: Reading last full time: 2024-11-13 14:40:13
2024-11-13 14:40:13,267:INFO: Reading battery target mode: discharging
2024-11-13 14:40:48,270:INFO: Reading last full time: 2024-11-13 14:40:48
2024-11-13 14:40:48,310:INFO: Reading battery target mode: discharging
2024-11-13 14:41:10,239:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:41:13,584:INFO: Reading last full time: 2024-11-13 14:41:13
2024-11-13 14:41:13,584:INFO: Reading battery target mode: discharging
2024-11-13 14:41:48,601:INFO: Reading last full time: 2024-11-13 14:41:48
2024-11-13 14:41:48,642:INFO: Reading battery target mode: discharging
2024-11-13 14:42:10,238:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:42:10,274:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.7V (52.7), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:42:10,274:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:42:10,274:INFO: SMT: T:Smartmeter P:294.0W [ 297.0,297.0,299.0 ]
2024-11-13 14:42:10,274:INFO: Direct connected panel are producing 0.0W, trying to get 279.0W from hub.
2024-11-13 14:42:10,274:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:42:10,274:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:42:10,274:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 279.0!
2024-11-13 14:42:10,274:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:42:10,274:INFO: Sun: 07:47 - 16:43 Demand: 279.0W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:42:12,963:INFO: Reading last full time: 2024-11-13 14:42:12
2024-11-13 14:42:12,963:INFO: Reading battery target mode: discharging
2024-11-13 14:42:45,462:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.7V (52.7), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:42:45,462:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:42:45,462:INFO: SMT: T:Smartmeter P:343.0W [ 301.1,301.1,301.3,300.8,302.5,315.5 ]
2024-11-13 14:42:45,462:INFO: Direct connected panel are producing 0.0W, trying to get 295.5W from hub.
2024-11-13 14:42:45,462:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:42:45,462:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:42:45,462:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 295.5!
2024-11-13 14:42:45,462:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:42:45,463:INFO: Sun: 07:47 - 16:43 Demand: 295.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:42:45,463:INFO: SMT triggers limit function: 302.5 -> 315.5: executed
2024-11-13 14:42:48,984:INFO: Reading last full time: 2024-11-13 14:42:48
2024-11-13 14:42:49,024:INFO: Reading battery target mode: discharging
2024-11-13 14:42:55,490:INFO: SMT triggers limit function: 336.0 -> 360.0: skipped
2024-11-13 14:43:05,462:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.6V (52.6), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:43:05,462:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:43:05,463:INFO: SMT: T:Smartmeter P:366.0W [ 343.5,343.5,371.5 ]
2024-11-13 14:43:05,463:INFO: Direct connected panel are producing 0.0W, trying to get 351.5W from hub.
2024-11-13 14:43:05,463:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.2.
2024-11-13 14:43:05,463:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:43:05,463:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 351.5!
2024-11-13 14:43:05,463:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:43:05,463:INFO: Sun: 07:47 - 16:43 Demand: 351.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:43:05,463:INFO: SMT triggers limit function: 343.5 -> 371.5: executed
2024-11-13 14:43:10,236:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:43:13,297:INFO: Reading last full time: 2024-11-13 14:43:13
2024-11-13 14:43:13,298:INFO: Reading battery target mode: discharging
2024-11-13 14:43:49,300:INFO: Reading last full time: 2024-11-13 14:43:49
2024-11-13 14:43:49,341:INFO: Reading battery target mode: discharging
2024-11-13 14:44:10,234:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:44:10,269:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.5V (52.5), C: 0W, P:True (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:44:10,269:INFO: INV: AC:0.0W, DC:0.9W (0.4|0.5|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:44:10,269:INFO: SMT: T:Smartmeter P:363.0W [ 361.8,361.8,362.2,364.3,368.5 ]
2024-11-13 14:44:10,269:INFO: Direct connected panel are producing 0.0W, trying to get 348.5W from hub.
2024-11-13 14:44:10,270:INFO: Turning hub bypass OFF
2024-11-13 14:44:10,270:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (True), hub could contribute 800.0W - Decision path: 0.1.
2024-11-13 14:44:10,270:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:44:10,270:INFO: Solarflow is willing to contribute 400.0W (per channel) of the requested 348.5!
2024-11-13 14:44:10,270:INFO: Not setting inverter output limit as it is identical to current limit!
2024-11-13 14:44:10,271:INFO: Sun: 07:47 - 16:43 Demand: 348.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 1600.0W, Hub Limit: 800.0W
2024-11-13 14:44:13,652:INFO: Reading last full time: 2024-11-13 14:44:13
2024-11-13 14:44:13,652:INFO: Reading battery target mode: discharging
2024-11-13 14:44:49,674:INFO: Reading last full time: 2024-11-13 14:44:49
2024-11-13 14:44:49,674:INFO: Reading battery target mode: discharging
2024-11-13 14:45:10,232:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:45:12,977:INFO: Reading last full time: 2024-11-13 14:45:12
2024-11-13 14:45:12,977:INFO: Reading battery target mode: discharging
2024-11-13 14:45:50,054:INFO: Reading last full time: 2024-11-13 14:45:50
2024-11-13 14:45:50,054:INFO: Reading battery target mode: discharging
2024-11-13 14:46:10,222:INFO: Publishing Homeassistant templates...
2024-11-13 14:46:10,231:INFO: Triggering telemetry update: iot/A8yh63/2nW22QUp/properties/read
2024-11-13 14:46:10,267:INFO: HUB: S:0.0W [ 0.0 ], B:100% (100), V:52.5V (52.5), C: 0W, P:False (manual, not possible), F:0.0h, E:-1.0h, H: 0W, L:800W
2024-11-13 14:46:10,267:INFO: INV: AC:0.0W, DC:0.0W (0.0|0.0|0.0|0.0), L:1600W (400.0W/channel) [1600W]
2024-11-13 14:46:10,268:INFO: SMT: T:Smartmeter P:381.0W [ 364.8,364.8,366.2,368.7,374.5 ]
2024-11-13 14:46:10,268:INFO: Direct connected panel are producing 0.0W, trying to get 354.5W from hub.
2024-11-13 14:46:10,268:INFO: Based on time, solarpower ( 0.0W) minimum charge power (75W) and bypass state (False), hub could contribute 200.0W - Decision path: 2.1.
2024-11-13 14:46:10,268:INFO: Not setting solarflow output limit to 800.0W as it is identical to current limit!
2024-11-13 14:46:10,268:INFO: Solarflow is willing to contribute 100.0W (per channel) of the requested 354.5!
2024-11-13 14:46:10,268:INFO: Inverter is not reachable/down. Can't set limit
2024-11-13 14:46:10,268:INFO: Sun: 07:47 - 16:43 Demand: 354.5W, Panel DC: (0.0W), Hub DC: (0.0W), Inverter Limit: 400.0W, Hub Limit: 800.0W
2024-11-13 14:46:10,277:INFO: Published 33 Homeassistant templates.
2024-11-13 14:46:13,295:INFO: Reading last full time: 2024-11-13 14:46:13
2024-11-13 14:46:13,336:INFO: Reading battery target mode: discharging

After starting sf-control the hub contributed nearly 60 seconds 19W. After 60 seconds no power will be send to house grid.

Then:

2024-11-13 14:44:10,270:INFO: Turning hub bypass OFF

and

2024-11-13 14:44:13,652:INFO: Reading battery target mode: discharging

but it does NOT :-(

reinhard-brandstaedter commented 1 day ago

Is your hubState still 1?

Btw the hub didn’t contribute from battery though…only from bypass directly.

reinhard-brandstaedter commented 1 day ago

Also: did you check in the App if there are any errors (re hubState)? Another thing to try tomorrow is to connect 1 panel to the hub and one to the inverter (change config for direct panels) this will keep the inverter up.

mrostock commented 1 day ago

Oh, sorry. Yes, checked in the app if there are any errors .. but, no. I can't find any error messages. Here you can see two screenshots: Bildschirmfoto 2024-11-13 um 16 40 59 Bildschirmfoto 2024-11-13 um 16 41 52

And yes, the solarflow-hub/2nW22QUp/telemetry/hubState is still 1

mrostock commented 1 day ago

What does it mean when you're saying: "Btw the hub didn’t contribute from battery though…only from bypass directly."

mrostock commented 1 day ago

"Another thing to try tomorrow is to connect 1 panel to the hub and one to the inverter (change config for direct panels) this will keep the inverter up."

I will try this ... tomorrow ;-)

reinhard-brandstaedter commented 1 day ago

What does it mean when you're saying: "Btw the hub didn’t contribute from battery though…only from bypass directly."

It means when your hub is in bypass mode the panels are directly connected to the inverter via relay switch.

But I likely just found your issue:

image

Your hub is in this mode, means it tries to use it's own matching mode via a smartplug or something similar. You need to disable this as it likely tries to read a non existing usage input from a smartplug or the Zendure CT monitor, whch will not work together with sf-control!

Try publishing or change this setting via the app:

{"properties": {"acMode": 1}}

I tried on the Hub 1.2k and it seems to accept two values 1 or 2.

mrostock commented 1 day ago

Thank you so much! I set {"properties": {"acMode": 1}}

So now I have to wait, I guess ;-)

rostchri commented 1 day ago

It is possible that your hub is broken! Unfortunately there are many hub 2000 devices which stopped working in the last weeks. The root cause is completely unknown (maybe firmware related) and as far as i know these devices needs to be replaced by zendure. I don‘t know any other means to fix broken devices. The forum in the zendure app has a lot of cases. The keywords to find these are: hub 2000 standby. See https://www.photovoltaikforum.com/thread/235590-zendure-hub2000-ab2000-keine-leistungsabgabe-vom-akku/?postID=4024892#post4024892 too. Did you update the firmware on your hub recently? I‘m affected by this problem too. I have one working hub 1200, and if I replace this hub with my hub 2000 everything stops working in terms of: The hub 2000 is not able to take energy from the (full) batteries. If the sun is shining and the batteries are full and bypass mode is reached, my hub 2000 delivers energy to the inverter (so the inverter and cables are correctly working) but using the battery is simply broken, wheras loading the batteries is possible. The zendure app says: Standby. This problem is not related in any way to the solarflow-software. You should concentrate on using the zendure app! Read the articles and as last resort open a zendure ticket to get your hub replaced. Sorry for these news. But I‘m in the same boat …

mrostock commented 23 hours ago

@rostchri Thank you for your reply.

I reconnected my hub2k back to cloud and after setting it up it instandly went into discharge mode.

Now, I will have a closer look at the hub during next days.

rostchri commented 23 hours ago

Ok so you are lucky :)

reinhard-brandstaedter commented 11 hours ago

@mrostock after reconnecting, is your mode still in this smart matching mode as in the above screenshot? When i tried editing mine it told me that the mode cannot be changed via bluetooth connections?

Question is also why is your hub in this mode? Are or have you been using a smart plug/shelly/CT previously?

mrostock commented 3 hours ago

Due to the facts that the zendure mqtt communication format is a bit confusing (all data are written to a single topic), I wrote a python script to collect all the data into a influxdb. Now I am meassuring all the data in my own influx. For now I havn't seen the parameter acMode yet. I will observe it.

And no, I didn't use smart plug/shelly/CT previously. I always used the "Intelligenter Abgleichsmodus" and set the output constantly to a specific value e.g. 200W. I never used the "Smart-CT-Mode"

Okay, now the hub sent following values: passMode=0 acMode=1

The hub is in "Intelligenter Abgleichsmodus".