Repository navigation
[BATTERY SUPPORT] Generic battery #823
Replies: 1 comment 1 reply
|
I have built the read-only half of this and it has been running on my installation for a while, so let me offer it here rather than let it sit on my fork: #915. What it does. A new brand, Other battery, read-only via Home Assistant entities. You pick a SOC entity and a power entity (energy counters and a target-SOC entity are optional), and that is the whole config — no host, port or credentials. Omnibattery then reads that battery and never commands it. What it does not do. The full control this request asks for. I stopped deliberately at monitoring, because my BYD/Kostal battery is limited and the installer has not enabled the possibility to control the battery. So testing full control is out of my hands. Why the read-only half is worth having on its own. It is not only about seeing the battery on a chart. Omnibattery derives household load as grid + sum(ac_power) + solar. A battery on the same meter that Omnibattery does not know about contributes no term to that sum, so its charging is billed to the house and its discharging is subtracted from it. On my setup — a BYD stack behind a Kostal Plenticore, next to a Marstek — the house read 2044 W while the inverter's own figure was 1491 W, with the BYD absorbing 403 W at that moment. That error does not just sit on a dashboard: it integrates into the daily total and into the learned quarter-hour consumption profile, where it stays and goes on to shape every predictive plan. So anyone running a second, undriven battery is quietly teaching Omnibattery a wrong house profile today. Shape of it. Two capability flags carry the behaviour, so nothing is special-cased on the brand: supports_power_setpoint=False keeps it out of the PD loop, load sharing, the charge/discharge order, the fleet capacity totals and the measured round-trip efficiency, and suppresses the control entities that would shape a setpoint; supports_target_soc gates an optional Target SOC number, the one thing such a battery can usually write. Its kWh stay out of predictive charging for now — counting them needs the stored half in and the headroom half out, which is a separate change I would rather do properly than half. @ffunes — in #491 you said you prefer owners to add their own drivers since they can test them. That is the case here: I have the hardware and it is running. But this is a feature, and the PR template is clear that a feature without an approved item gets closed with a pointer rather than reviewed, so I would rather ask than assume. Would you be open to this as the read-only stage, and does the shape above look right to you? If you would rather it were scoped, renamed, or built differently (a driver subclass instead of capability flags, say), I would much rather hear it now than after writing stage 2. @ronaldd2 — you offered to test. If this lands as read-only first, would that be useful to you, or is control the only part you actually need? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Requested battery
Any available Home Assistant battery.
What kind of support are you requesting?
Full control: charging, discharging, and monitoring
Developer documentation
The battery is already available via another integration with a list of needed capabilities/sensors
Documentation access
Publicly available without an account
Known connection methods
Capabilities found in the documentation
battery_soc)battery_power)apply_setpoint +W)apply_setpoint -W)standby)Technical references and useful clues
Let Omnibattery add a battery where the user can select the available (optional) parameters needed for Omnibattery to work. So instead of making a driver for each brand/model fill in fixed values and select the existing sensors from HA
Do you have access to the battery for testing?
Yes, I can test versions and share results
What would you like to achieve?
Have a quick way to see if with an existing battery that is already an HA device can be part of Omnibattery without the need for a special driver.
Confirmations
All reactions