Predbat not able to control invertor anymore.
Hi All, I've noticed that predbat isn't able to send commands to my invertor anymore. I'm not sure when it happened but somethings broken and I'm not sure where to start. It was working great. I'm getting the following logs.
68306 | 2026-11-09 00:20:47.932375: Warn: Service call button/press data {'entity_id': 'button.solax_inverter_battery_awaken'} failed: {'code': 'home_assistant_error', 'message': 'SolaX: write to register 0x56 was not confirmed and was queued for retry'}
68305 | 2026-11-09 00:20:47.932212: Warn: Web Socket result failed {'id': 48, 'type': 'result', 'success': False, 'error': {'code': 'home_assistant_error', 'message': 'SolaX: write to register 0x56 was not confirmed and was queued for retry'}}
68304 | 2026-11-09 00:20:43.641149: Warn: Service call button/press data {'entity_id': 'button.solax_inverter_battery_awaken'} failed: {'code': 'home_assistant_error', 'message': 'SolaX: write to register 0x56 was not confirmed and was queued for retry'}
68303 | 2026-11-09 00:20:43.640396: Warn: Web Socket result failed {'id': 47, 'type': 'result', 'success': False, 'error': {'code': 'home_assistant_error', 'message': 'SolaX: write to register 0x56 was not confirmed and was queued for retry'}}
68302 | 2026-11-09 00:20:23.631157: Warn: Service call button/press data {'entity_id': 'button.solax_inverter_battery_awaken'} failed: {'code': 'home_assistant_error', 'message': 'SolaX: write to register 0x56 was not confirmed and was queued for retry'}
This is an automated first-pass triage by a bot (a maintainer will review before any action is taken).
Classification: bug · Component: solax · detailed triage is on hold until the files below are attached.
Predbat's log shows the button.solax_inverter_battery_awaken button press being rejected, with the error text coming back from the SolaX integration (SolaX: write to register 0x56 was not confirmed and was queued for retry). Those quoted warning lines alone aren't enough to tell what is failing, whether it is only the awaken button or every inverter command, or since when — so please attach:
- a
predbat_debug.yamland apredbat.logcaptured while the errors are happening — both from the Debug panel on Predbat's web interface. The debug file downloads aspredbat_debug.yaml.txtand can be attached as-is. - the Home Assistant / SolaX integration log covering the same period — the register-write error is raised by the SolaX integration, so its side of the failure is needed too.
- the inverter model, the SolaX integration version, and roughly when the last successful control was, so "not sure when it happened" can be narrowed down.
Debug history docs if useful: https://springfall2008.github.io/batpred/customisation/#debug-history
I've done a restart. I will upload logs when a bit of history appears.
This is an automated follow-up triage review (a maintainer will review before any action is taken).
What's new since the first-pass review: one reply from the reporter — a restart has been done and logs will be uploaded once some history accumulates. No predbat_debug.yaml, predbat.log, or HA-side log has been attached yet, so the evidence request from the first-pass triage is still outstanding. Nothing material has changed: the classification (bug) and the hold on detailed triage are unchanged, and there is still no root-cause assessment because the evidence is missing — no theory yet, deliberately.
Two claims from the first-pass comment were re-verified against today's latest main (commit 9947c0d2):
- The error text
SolaX: write to register 0x56 was not confirmed and was queued for retrydoes not appear anywhere in Predbat's source (grepped today). It is raised by the Home Assistant solax-modbus integration when a Modbus write to the inverter isn't confirmed, so Predbat's log only shows that the button-press service call failed — the HA/SolaX integration log for the same window is still required to see the Modbus side of the failure. button.solax_inverter_battery_awakenis an entity of the solax-modbus integration, not a Predbat entity. Predbat presses it only when your inverter config wires it into one of the write/commit button settings (schedule_write_button,charge_discharge_update_button,charge_update_button, ordischarge_update_button), and the Solax Gen4 (SX4) inverter type is configured to press its write button after control changes — so each of these warnings is a failed write attempt from Predbat's control loop landing on a Modbus link that isn't confirming writes.
On the restart: when you upload the files, it would help to also say whether the same warnings have reappeared since the restart, and roughly when they last appeared. If the restart cleared the problem, that's a useful signal in itself; if it recurs, please capture both logs while the errors are happening — a log from a healthy period won't show the failure.
Still needed (unchanged from the first-pass request):
- a
predbat_debug.yamland apredbat.logcaptured while the errors are happening — both from the Debug panel on Predbat's web interface (the yaml downloads aspredbat_debug.yaml.txtand can be attached as-is) - the Home Assistant log for the same window — the register-write rejection is raised by the solax-modbus integration, so its side of the failure is needed
- the inverter model, the solax-modbus integration version, and roughly when control last worked
waiting_for_user has been re-applied; your next reply will queue another review automatically.
I'm thinking this is the cause but I'm not sure what it's telling me.
Logger: custom_components.solax_modbus Source: custom_components/solax_modbus/init.py:3026 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 01:38:45 (2 occurrences) Last logged: 01:58:26
SolaX: stopping powercontrolmode8_trigger because a required control input is invalid: ['house_load_alt']
This is an automated follow-up triage review (a maintainer will review before any action is taken).
What's new since the last review: all three files the earlier reviews asked for have now arrived — a predbat.log and predbat_debug.yaml from the Debug panel plus the Home Assistant log covering the same window — and the solax_modbus warning you quoted has been investigated for the first time. Because the evidence request is now satisfied, the detailed triage that was on hold has been completed. Your instinct is right: that quoted warning is the active cause of the loss of control, and it belongs to the solax_modbus integration, not Predbat.
What the evidence shows
- Your debug file wires the Gen4 "Modbus Power Control" inverter exactly as the docs/sx4 template describe:
charge_discharge_update_button: button.solax_inverter_battery_awaken, with charge start/stop/freeze and discharge start/stop/freeze all calling your scriptscript.solax_remote_control_mode_8. - Predbat's part of the chain works in the captured window: the charge window times were written successfully (
idle_start_time/charge_end_time),button.solax_inverter_battery_awakenwas pressed successfully at 01:58:26, and the Mode-8 service calls went out without error —{'power': '4000', 'operation': 'Force Charge'}. - The warning you quoted (
custom_components/solax_modbus/__init__.py:3026) matches solax_modbus release 2026.10.02 precisely, and in that release the Mode-8 keepalive (powercontrolmode8_trigger) declareshouse_load_alt— a computed House Load sensor that ships disabled by default in the entity registry — as a required dependency. When a required input is missing, stale or invalid, the integration stops the keepalive and queues a cleanup payload that writesremotecontrol_power_control_mode = "Disabled"to the inverter (read directly in the 2026.10.02 source). - Both cancellations in your HA log line up with Predbat's control activity: 01:38:45, seconds after Predbat came back up post-restart (Predbat entities store from 01:38:39), and 01:58:26.139 — 33 ms after your Predbat log shows the
script.solax_remote_control_mode_8Force Charge call at 01:58:26.106. Net result: the inverter is told Force Charge and then told Disabled, and indeed at 01:58 it sat at 0 W battery power despite an active charge window, 10% SoC and a 100% target. - The pre-restart failures are a related but distinct symptom on the same link:
write to register 0x56 was not confirmed and was queued for retryis solax_modbus's Modbus transport failing to confirm a write, and Predbat's log accounts forControl failures: 3 slot(s) in the last 24h {'Charging': 2, 'Freeze charging': 1}for that period. The restart cleared that part — no write failures appear after 01:36 in either log — but the house_load_alt cancellation was still active at 01:58:26.
Classification: bug · solax, priority unchanged — but the root cause is now established. One-line statement: Predbat's control commands are sent correctly — the inverter stops being controlled because the solax_modbus integration's Mode-8 trigger treats house_load_alt (a computed sensor disabled by default) as a required dependency, finds it invalid, stops the keepalive and queues a write of Disabled to the inverter's power control mode; before the restart the same Modbus link was also not confirming writes to the awaken register.
What I could not determine: which specific input makes house_load_alt invalid on your system — solax_modbus's own sensor values (House Load Alt, Meter 2, external house load) are not captured in a Predbat debug file.
Suggested next steps, in order:
- In HA → Developer Tools → States, check
sensor.solax_inverter_house_load_altandsensor.solax_inverter_meter_2_measured_power. If House Load Alt isunavailable/unknown, enable it in the solax_modbus entity settings (it ships disabled), or work out why its inputs (PV power, battery charge power, grid/meter power, meter 2) are absent or stale — meter 2 (CT2) is the usual blind spot. - Update solax_modbus — you run 2026.10.02 and 2026.11.03 is current, and this exact validation and the house_load_alt dependency handling have been actively changed between those releases.
- If the warning persists once house_load_alt is enabled and you're on current solax_modbus, it is a bug for https://github.com/wills106/homeassistant-solax-modbus to fix — please raise it there, linking this issue for the reproduction detail.
Predbat version note: you are on v9.6.3 (v9.7.5 is current). Nothing in Predbat's changes since your version touches how write buttons or these services are driven, so it does not appear to be a factor.
waiting_for_user has been re-applied — if you can post back what sensor.solax_inverter_house_load_alt shows (and whether updating solax_modbus stops the warning), that pins down which input is failing; otherwise the maintainer can take it from here.
Both sensor.solax_inverter_house_load_alt and sensor.solax_inverter_meter_2_measured_power were disabled in Solax Modbus for some reason. It must have been after an update. I can confirm Predbat seems to have control of the inverter now.
This is an automated follow-up triage review (a maintainer will review before any action is taken).
What's new since the last review: your confirmation that both sensor.solax_inverter_house_load_alt and sensor.solax_inverter_meter_2_measured_power had been disabled in Solax Modbus (you suspect an integration update did it), and that Predbat has control of the inverter again after those were re-enabled. No new attachments — the previous review's evidence stands.
Assessment: classification, priority and root cause are unchanged, and your confirmation closes the loop. Those are exactly the two sensors the previous review pointed at: house_load_alt (a computed sensor that ships disabled by default) plus meter 2 are the required inputs of the solax_modbus Mode-8 keepalive. With a required input invalid the integration stops the keepalive and queues a write of Disabled to the inverter's power control mode — which was cancelling each command Predbat sent — so re-enabling the sensors restores the chain, matching what you observed. "After an update" is also consistent: solax_modbus 2026.10.02 introduced the required-input validation on house_load_alt, so an entity disabled at update time leaves it permanently invalid. No changes on Predbat's main since the triage touch this control path; the fault was never in Predbat's part of it.
One-line bug statement, restated (the new evidence confirms it rather than changing it): Predbat's control commands are sent correctly — the inverter stops being controlled because the solax_modbus integration's Mode-8 trigger treats house_load_alt (a computed sensor disabled by default) as a required dependency, finds it invalid, stops the keepalive and queues a write of Disabled to the inverter's power control mode; before the restart the same Modbus link was also not confirming writes to the awaken register.
waiting_for_user has not been re-applied — nothing further is needed from you for this triage. Labels stay bug / ExternalChange / solax, with the issue left open for a maintainer's review.
Two optional follow-ups, neither needed for the triage itself:
- Upstream report — still worthwhile: an integration update that leaves the sensors Mode-8 control depends on disabled, plus a required-input gate that then cancels active control commands, is worth fixing for other users. You now have a clean reproduction — please raise it at https://github.com/wills106/homeassistant-solax-modbus and link this issue.
- Predbat docs — for the maintainer: Predbat's Gen4 "Modbus Power Control" template and docs don't currently mention that Mode-8 control requires
house_load_alt/meter-2 to remain enabled, so the next solax_modbus update will trip other users the same way; a one-line setup note may be worth adding.
bot please draft a documentation update to add the advice about this sensor must be enabled for Predbat control
Upstream report — still worthwhile: an integration update that leaves the sensors Mode-8 control depends on disabled, plus a required-input gate that then cancels active control commands, is worth fixing for other users. You now have a clean reproduction — please raise it at https://github.com/wills106/homeassistant-solax-modbus and link this issue.
@Locky1978 thanks for confirming the fix. We'll get the documentation updated for Predbat suggest this needs to be raised on the modbus integration
Just want to clarify, the meter 2 sensors do not need to be enabled unless you actually have a second power meter. They are an optional dependency of the house load calculation which is ignored of not available.
The house_load_alt is the only one that needs to be manually enabled if it is not already. Unfortunately this was originally disabled by default though is not any more. Unfortunately once an entity in HA has been disabled, the integration cannot force it to be enabled again - the user has to do that.
Hello, just to echo @TCWORLD , I spent a while looking on my system for "sensor.solax_inverter_meter_2_measured_power", since the docs now say it has to be enabled, but my system doesn't have a "meter_2_measured_power" entity. The documentation is incorrect.
@TCWORLD @webdubois the original defect was raised because the meter 2 power wasn't enabled.
Please can you propose revised wording for the documentation so we can get it updated
To use Mode 8 power control, ensure the following entities are enabled:
-
number.solax_remotecontrol_push_mode_power_8_9 -
number.solax_remotecontrol_pv_power_limit -
number.solax_remotecontrol_duration -
number.solax_remotecontrol_timeout -
number.solax_remotecontrol_autorepeat_duration -
select.solax_inverter_remotecontrol_timeout_next_motion_mode_1_9 -
select.solax_remotecontrol_power_control_mode -
button.solax_powercontrolmode8_trigger -
sensor.solax_house_load_alt
If you have a second power meter, also ensure the following entity is enabled:
- sensor.solax_meter_2_measured_power
With recent versions of the Solax Modbus integration, House Load Alt (sensor.solax_house_load_alt) is a required input to the Mode 8 trigger: unless it's enabled, Predbat's commands sent to the inverter will be ignored. If you have a second power meter, the 'Meter 2 Measured Power' sensor (sensor.solax_meter_2_measured_power) is also required, as this is one of the inputs House Load Alt is calculated from if you have multiple power meters.
As with the other entities, the prefix may differ on your system (e.g. sensor.solax_inverter_house_load_alt).
@TCWORLD @webdubois the original defect was raised because the meter 2 power wasn't enabled.
Please can you propose revised wording for the documentation so we can get it updated
Looking back the original defect was that house_load_alt was not enabled, the bot identified this from the log:
stopping powercontrolmode8_trigger because a required control input is invalid: ['house_load_alt']
The OP enabled both that and the meter two sensor because the bot hinted at it. Though meter 2 was never strictly necessary. TBH even if you have a second meter but the entity is disabled, VPP will still run, the results just might not be quite as expected.
Guys thanks for the input, but can you give me the revised text you'd like including in inverter_setup.md and I can raise a PR, or feel free to raise a PR yourselves. It sounds like the docs need to be updated to highlight that how the second meter be configured, and recognise that it is optional?
Sorry, I should have explained: the text in https://github.com/springfall2008/batpred/issues/6059#issuecomment-6950108845 should be a straight swap in for the current text (apologies if a PR would be preferred! Let me know)
Thanks @webdubois I wasn't sure !
I already have a PR open for documentation changes, so its easy for me to add it into there.
I am removing the entire block:
- Mode 8 control also needs the 'House Load Alt' sensor (`sensor.solax_house_load_alt`) and the 'Meter 2 Measured Power' sensor (`sensor.solax_meter_2_measured_power`), one of the inputs House Load Alt is calculated from, to stay enabled.
As with the other entities, the prefix may differ on your system (e.g. `sensor.solax_inverter_house_load_alt`).
Recent versions of the Solax Modbus integration treat House Load Alt as a required input to the Mode 8 trigger: if it is disabled or unavailable the integration stops the trigger and sets the inverter's power control mode back to 'Disabled' straight after Predbat sends each command,
so the inverter ignores Predbat. House Load Alt is disabled by default, and both sensors have been found disabled after a Solax Modbus update, so re-check them after updating the integration.
The Home Assistant log then shows `SolaX: stopping powercontrolmode8_trigger because a required control input is invalid: ['house_load_alt']` (see [issue #6059](https://github.com/springfall2008/batpred/issues/6059)).
So the text now reads
- To use Mode 8 power control, ensure the following entities are enabled:
- number.solax_remotecontrol_push_mode_power_8_9
- number.solax_remotecontrol_pv_power_limit
- number.solax_remotecontrol_duration
- number.solax_remotecontrol_timeout
- number.solax_remotecontrol_autorepeat_duration
- select.solax_inverter_remotecontrol_timeout_next_motion_mode_1_9
- select.solax_remotecontrol_power_control_mode
- button.solax_powercontrolmode8_trigger
- sensor.solax_house_load_alt
- sensor.solax_meter_2_measured_power
- If you have a second power meter, also ensure the following entity is enabled:
- sensor.solax_meter_2_measured_power
With recent versions of the Solax Modbus integration, House Load Alt (sensor.solax_house_load_alt) is a required input to the Mode 8 trigger: unless it's enabled, Predbat's commands sent to the inverter will be ignored. If you have a second power meter, the 'Meter 2 Measured Power' sensor (sensor.solax_meter_2_measured_power) is also required, as this is one of the inputs House Load Alt is calculated from if you have multiple power meters.
As with the other entities, the prefix may differ on your system (e.g. sensor.solax_inverter_house_load_alt).
- Predbat needs a 'Todays House Load' sensor, this can be created from inverter-supplied information by creating two custom helper entities:
- Create a helper entity of type 'Integral', set the Name to 'Todays House Load Integral', Metric Prefix to 'k (kilo)', Time unit to 'Hours', Input sensor to 'House Load', Integration method to 'Trapezoidal', Precision to '2'
and Max sub-interval to '0:05:00'
- Create a helper entity of type 'Utility Meter', set the Name to 'Todays House Load', Input sensor to 'Todays House Load Integral' (that you just created) and Meter Reset Cycle to 'Daily'
...
There's an error there. "sensor.solax_meter_2_measured_power" should not appear in the first list; it's described in the following para instead.
- To use Mode 8 power control, ensure the following entities are enabled:
- number.solax_remotecontrol_push_mode_power_8_9
- number.solax_remotecontrol_pv_power_limit
- number.solax_remotecontrol_duration
- number.solax_remotecontrol_timeout
- number.solax_remotecontrol_autorepeat_duration
- select.solax_remotecontrol_timeout_next_motion_mode_1_9
- select.solax_remotecontrol_power_control_mode
- button.solax_powercontrolmode8_trigger
- sensor.solax_house_load_alt
- If you have a second energy meter, also ensure the following entity is enabled:
- sensor.solax_meter_2_measured_power
Starting with version 2026.10.01 of the Solax Modbus integration, House Load Alt (sensor.solax_house_load_alt) is a required input to the Mode 8 trigger: unless it's enabled, Predbat's commands sent to the inverter will be ignored. If you have a second power meter, the 'Meter 2 Measured Power' sensor (sensor.solax_meter_2_measured_power) is also required, as this is one of the inputs House Load Alt is calculated from if you have multiple power meters.
As with the other entities, the prefix may differ on your system (e.g. sensor.solax_inverter_house_load_alt). Please note some of these entities may have very different names if the integration was first added on rwer versions of home assistant due to changes in the way it generates entity IDs.
- Predbat needs a 'Todays House Load' sensor. Version 2026.01.2 and newer can provide this for you by enabling the "Enable Dashboard Virtual Device" option in the home assistant device configuration. This will provide a sensor called "Home Consumption Energy" (sensor.solax_energy_dashboard_solax_home_consumption_power) which can be used for this purpose.