Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many improvements #620

Merged
merged 116 commits into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
a170d04
added balancing switch status
mr-manuel Feb 17, 2023
18fbb63
added balancing switch status
mr-manuel Feb 17, 2023
0de5c0a
changed default config file
mr-manuel Feb 17, 2023
4478e24
indentation was wrong
mr-manuel Feb 17, 2023
891f742
adding fix for Venus OS >= v3.00~14 QML files
mr-manuel Feb 20, 2023
c6a750d
added cell balancing status for JKBMS
mr-manuel Feb 22, 2023
1e0e3da
changed ConsumedAmpHours
mr-manuel Feb 22, 2023
5fe3517
TimeToSoc fixes
mr-manuel Feb 22, 2023
3069a28
resorted functions
mr-manuel Feb 22, 2023
124ca1f
fix CPU overload
mr-manuel Feb 22, 2023
906b881
fix Time-to-Go and Time-to-SoC
mr-manuel Feb 23, 2023
403a207
small fixes
mr-manuel Feb 23, 2023
ac6efb6
Show MOSFET temperature from JKBMS
mr-manuel Mar 5, 2023
b6f69b2
bump version to 1.0.0
mr-manuel Mar 6, 2023
af7ac0e
added uninstall script and fixed reinstall
mr-manuel Mar 9, 2023
8d9993c
small fixes
mr-manuel Mar 10, 2023
bbe2b1c
typo
mr-manuel Mar 10, 2023
0628c9b
fixed cell balancing color for cells 13-24
mr-manuel Mar 10, 2023
5b04613
updated description in default config file
mr-manuel Mar 12, 2023
9c2d4cd
Updated logging to get relevant informations
mr-manuel Mar 13, 2023
0ead422
clearer config file
mr-manuel Mar 15, 2023
e5da874
make config file clearer
mr-manuel Mar 17, 2023
623b055
fix #421
mr-manuel Apr 9, 2023
a589056
missing removals
mr-manuel Apr 9, 2023
11676e6
corrected typo, added missing +x in release.yml
mr-manuel Apr 13, 2023
a79af27
added info for new issue
mr-manuel Apr 15, 2023
883c7d5
fix black lint errors
mr-manuel Apr 15, 2023
5bfb3ed
optimize installation scripts
mr-manuel Apr 15, 2023
256c9ae
added script to install directly from repository
mr-manuel Apr 15, 2023
9393245
fixed serial-starter.d
mr-manuel Apr 15, 2023
b52f2b1
smaller fixes
mr-manuel Apr 18, 2023
8d46417
fix #351
mr-manuel Apr 20, 2023
bb7244b
fix System Switch in IO page
mr-manuel Apr 20, 2023
5a93013
fix #239
mr-manuel Apr 20, 2023
ba5a09d
fix black lint errors
mr-manuel Apr 20, 2023
2442e94
run code analyse only on code change
mr-manuel Apr 21, 2023
93661ac
fix #311
mr-manuel Apr 21, 2023
1967da3
Separate Time-To-Go and Time-To-SoC activation
mr-manuel Apr 23, 2023
4b740b8
remove duplicated and incorrect log message on handle_changed_setting
codeworkx Apr 24, 2023
507ddc0
properly log max battery currents on startup
codeworkx Apr 24, 2023
da129c7
optimize uninstall script
mr-manuel Apr 26, 2023
ce9668e
fix typo in log_settings
mr-manuel Apr 26, 2023
2996782
add charge mode display
mr-manuel Apr 26, 2023
a988ff8
Added: Temp name for sensor 1 & 2
mr-manuel Apr 26, 2023
b869cf0
Added: Choose how battery temperature is assembled
mr-manuel Apr 26, 2023
3b0b917
fix black lint errors
mr-manuel Apr 26, 2023
b5c928c
Added/Changed alarms for JKBMS
mr-manuel Apr 26, 2023
e6ab006
Removed Alarms/HighCellVoltage
mr-manuel Apr 26, 2023
0dc1722
Changed: Moved charge mode
mr-manuel Apr 26, 2023
d7c26a4
Merge branch 'master' into master
mr-manuel Apr 26, 2023
ad707b5
Merge branch 'master' into master
mr-manuel Apr 26, 2023
d8aa058
Added: Show (dis)charge current limitation reason
mr-manuel Apr 26, 2023
38a882b
Added changelog
mr-manuel Apr 26, 2023
7d3ed5c
corrected file permissions
mr-manuel Apr 26, 2023
a44ea76
Update readme
mr-manuel Apr 26, 2023
df30aed
Small word case changes
mr-manuel Apr 26, 2023
b3b6d02
fix dbus-daemon memory leak
mr-manuel Apr 26, 2023
6c710b1
Added: Show specific TimeToSoC points in GUI
mr-manuel Apr 26, 2023
f7682fe
fix black lint error
mr-manuel Apr 26, 2023
51f5241
removed wildcard import, fixed black lint errors
mr-manuel Apr 27, 2023
a286645
removed wildcard import, fixed black lint errors
mr-manuel Apr 27, 2023
b7ddfa4
remove old log message in handle_changed_setting()
mr-manuel Apr 27, 2023
808359b
simplified condition for Time-To-Go/Soc
mr-manuel Apr 27, 2023
e7766bc
Merge branch 'master' into master
mr-manuel Apr 27, 2023
5001d03
remove duplicated and incorrect log message on handle_changed_setting
mr-manuel Apr 27, 2023
d54581e
fix renogy import
mr-manuel Apr 27, 2023
51fb746
added BMS info and cleanup
mr-manuel Apr 28, 2023
eaa6e3b
moved BMS to subfolder
mr-manuel Apr 28, 2023
89cfe0a
Added self.unique_identifier to the battery class
mr-manuel Apr 28, 2023
cc82d7b
fix small errors
mr-manuel Apr 28, 2023
eb7f328
added linear voltage recalculation interval
mr-manuel May 1, 2023
157532b
revert Daly adaption
mr-manuel May 1, 2023
aba26a9
replaced penalty voltage calculation
mr-manuel May 1, 2023
dac8766
flake config change
mr-manuel May 1, 2023
17acb70
updated changelog
mr-manuel May 1, 2023
509e0bb
disabled ANT BMS by default
mr-manuel May 1, 2023
3339fb1
fix typo
mr-manuel May 1, 2023
10972b9
fixed wrong variable assignment
mr-manuel May 2, 2023
a225059
updated battery template
mr-manuel May 2, 2023
faeede5
updated nightly script
mr-manuel May 2, 2023
58b06b7
Fix for #450
mr-manuel May 2, 2023
163a4c9
Read charge/discharge limit JKBMS
mr-manuel May 2, 2023
58dc5da
Merge branch 'master' into pr/468
mr-manuel May 2, 2023
b9f24cc
updated release workflow
mr-manuel May 2, 2023
7a584bd
Merge branch 'master' of https://github.com/mr-manuel/venus-os_dbus-s…
mr-manuel May 2, 2023
1e67d5b
updated readme
mr-manuel May 2, 2023
41c77a8
deploy to github pages only
mr-manuel May 2, 2023
83ea14e
cleanup
mr-manuel May 2, 2023
632c5ac
GitHub pages config change
mr-manuel May 2, 2023
645cd92
Renamed scripts for better reading #532
mr-manuel May 3, 2023
19a62bc
update docusaurus dependencies
mr-manuel May 3, 2023
cf88e22
limitation reason cleanup
mr-manuel May 3, 2023
1f7b11d
changed default config settings
mr-manuel May 3, 2023
c283067
small typo fixes
mr-manuel May 3, 2023
7ea6317
updated changelog
mr-manuel May 3, 2023
32079a9
fix disconnection behaviour & small fixes
mr-manuel May 4, 2023
c93c7ac
fixed file permission
mr-manuel May 4, 2023
2c20991
Added: apply max voltage if CVCM_ENABLE is False
mr-manuel May 4, 2023
28395bc
Added: BMS disconnect behaviour
mr-manuel May 4, 2023
47fe42c
Changed: Remove wildcard import from dbushelper.py
mr-manuel May 4, 2023
a6b6465
Added: Show additional data in device page
mr-manuel May 5, 2023
63433a1
Added: JKBMS unique identifier & fixed data length
mr-manuel May 5, 2023
6897900
move config.ini before update
mr-manuel May 5, 2023
082bbeb
read production date by @tranistorgit
mr-manuel May 5, 2023
8dafe69
Merge branch 'Louisvdw:master' into master
mr-manuel May 6, 2023
115521d
Merge branch 'Louisvdw:master' into master
mr-manuel May 6, 2023
0fc9589
Changed: Merged all install files into one
mr-manuel May 6, 2023
f45d4db
Merge branch 'master' of https://github.com/mr-manuel/venus-os_dbus-s…
mr-manuel May 6, 2023
76b8410
updated install docs for nightly build
mr-manuel May 6, 2023
d908a21
changed config backup
mr-manuel May 6, 2023
eb7a8cf
changed release workflow
mr-manuel May 7, 2023
910d228
changed release workflow
mr-manuel May 7, 2023
bbcd135
changed release workflow
mr-manuel May 7, 2023
a5ae224
optimized USB install method
mr-manuel May 8, 2023
f721682
Daly improvements
mr-manuel May 8, 2023
043a4a2
moved production date and added custom field
mr-manuel May 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pre-release

on:
push:
tags:
# only match pre release
# matches:
# v1.0.0alpha20230507
# v1.0.0-beta20230507
# v1.0.0-development-20230507
- "v*.*.[0-9]+-?[a-zA-Z]*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: build release archive
run: |
find . -type f -name "*.py" -exec chmod +x {} \;
find . -type f -name "*.sh" -exec chmod +x {} \;
find . -type f -name "run" -exec chmod +x {} \;
tar -czvf venus-data.tar.gz \
--mode='a+rwX' \
--exclude __pycache__ \
--exclude bms/battery_template.py \
--exclude bms/revov.py \
--exclude bms/test_max17853.py \
etc/dbus-serialbattery/ \
rc/

- name: Release
uses: softprops/action-gh-release@v1
with:
files: venus-data.tar.gz
prerelease: true
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: Release
on:
push:
tags:
- "v*.*.*"
# do not match pre release
# matches:
# v1.0.0
# v1.0.123
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
Expand All @@ -23,7 +27,8 @@ jobs:
--exclude bms/battery_template.py \
--exclude bms/revov.py \
--exclude bms/test_max17853.py \
etc/dbus-serialbattery/
etc/dbus-serialbattery/ \
rc/

- name: Release
uses: softprops/action-gh-release@v1
Expand Down
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@
* Added: Create empty `config.ini` for easier user usage by @mr-manuel
* Added: Daly BMS - Read capacity https://github.com/Louisvdw/dbus-serialbattery/pull/594 by @transistorgit
* Added: Daly BMS - Read production date and build unique identifier by @transistorgit
* Added: Daly BMS - Set SoC by @transistorgit
* Added: Daly BMS - Show "battery code" field that can be set in the Daly app by @transistorgit
* Added: Device name field (found in the GUI -> SerialBattery -> Device), that show a custom string that can be set in some BMS, if available by @mr-manuel
* Added: Driver uninstall script by @mr-manuel
* Added: Fix for Venus OS >= v3.00~14 showing unused items https://github.com/Louisvdw/dbus-serialbattery/issues/469 by @mr-manuel
* Added: HighInternalTemperature alarm (MOSFET) for JKBMS by @mr-manuel
* Added: Improved maintainability (flake8, black lint), introduced code checks and automate release build https://github.com/Louisvdw/dbus-serialbattery/pull/386 by @ppuetsch
* Added: JKBMS - MOS temperature https://github.com/Louisvdw/dbus-serialbattery/pull/440 by @baphomett
* Added: JKBMS - Uniqie identifier and show "User Private Data" field that can be set in the JKBMS App to identify the BMS in a multi battery environment by @mr-manuel
* Added: Possibility to add `config.ini` to the root of a USB flash drive on install via the USB method by @mr-manuel
* Added: Post install notes by @mr-manuel
* Added: Read charge/discharge limits from JKBMS by @mr-manuel
* Added: Recalculation interval in linear mode for CVL, CCL and DCL by @mr-manuel
* Added: Reset values to None, if battery goes offline (not reachable for 10s). Fixes https://github.com/Louisvdw/dbus-serialbattery/issues/193 https://github.com/Louisvdw/dbus-serialbattery/issues/64 by @transistorgit
* Added: Script to install directly from repository by @mr-manuel
* Added: Serial number field (found in the GUI -> SerialBattery -> Device), that show the serial number or a unique identifier for the BMS, if available by @mr-manuel
* Added: Show charge mode (absorption, bulk, ...) in Parameters page by @mr-manuel
* Added: Show charge/discharge limitation reason by @mr-manuel
* Added: Show MOSFET temperature for JKBMS https://github.com/Louisvdw/dbus-serialbattery/pull/440 by @baphomett
Expand All @@ -39,7 +45,8 @@
* Changed: `reinstall-local.sh` to recreate `/data/conf/serial-starter.d`, if deleted by `disable.sh` --> to check if the file `conf/serial-starter.d` could now be removed from the repository by @mr-manuel
* Changed: Added QML to `restore-gui.sh` by @mr-manuel
* Changed: Bash output by @mr-manuel
* Changed: Default config file by @mr-manuel
* Changed: Daly BMS - Improved driver stability by @transistorgit & @mr-manuel
* Changed: Default config file by @ppuetsch
* Added missing descriptions to make it much clearer to understand by @mr-manuel
* Changed name from `default_config.ini` to `config.default.ini` https://github.com/Louisvdw/dbus-serialbattery/pull/412#issuecomment-1434287942 by @mr-manuel
* Changed TimeToSoc default value `TIME_TO_SOC_VALUE_TYPE` from `Both seconds and time string "<seconds> [<days>d <hours>h <minutes>m <seconds>s]"` to `1 Seconds` by @mr-manuel
Expand All @@ -57,11 +64,13 @@
* Changed: Fixed black lint errors by @mr-manuel
* Changed: Fixed cell balancing background for cells 17-24 by @mr-manuel
* Changed: Fixed Time-To-Go is not working, if `TIME_TO_SOC_VALUE_TYPE` is set to other than `1` https://github.com/Louisvdw/dbus-serialbattery/pull/424#issuecomment-1440511018 by @mr-manuel
* Changed: Improved install workflow via USB flash drive by @mr-manuel
* Changed: Improved JBD BMS soc calculation https://github.com/Louisvdw/dbus-serialbattery/pull/439 by @aaronreek
* Changed: Logging to get relevant data by @mr-manuel
* Changed: Many code improvements https://github.com/Louisvdw/dbus-serialbattery/pull/393 by @ppuetsch
* Changed: Moved BMS scripts to subfolder by @mr-manuel
* Changed: Removed cell voltage penalty. Replaced by automatic voltage calculation. Max voltage is kept until cells are balanced and reset when cells are inbalanced by @mr-manuel
* Changed: Removed all wildcard imports and fixed black lint errors by @mr-manuel
* Changed: Removed cell voltage penalty. Replaced by automatic voltage calculation. Max voltage is kept until cells are balanced and reset when cells are inbalanced by @mr-manuel
* Changed: Renamed scripts for better reading #532 by @mr-manuel
* Changed: Reworked and optimized installation scripts by @mr-manuel
* Changed: Separate Time-To-Go and Time-To-SoC activation by @mr-manuel
Expand Down
21 changes: 21 additions & 0 deletions docs/docs/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@ See [this page](../general/install#how-to-change-the-default-limits).

See the Victron Energy documentation how to get [root access](https://www.victronenergy.com/live/ccgx:root_access#root_access).


## How to aggregate multiple batteries?

You need an additional driver for that. Here are a few listed:


### [BatteryAggregator](https://github.com/pulquero/BatteryAggregator) by [pulquero](https://github.com/pulquero)

Automatically merges connected batteries. Additional configuration for excluded batteries, total capacity and custom merging possible.

Can be installed through the [SetupHelper](https://github.com/kwindrem/SetupHelper) of [kwindrem](https://github.com/kwindrem).

### [dbus-aggregate-batteries](https://github.com/Dr-Gigavolt/dbus-aggregate-batteries) by [Dr-Gigavolt](https://github.com/Dr-Gigavolt)

Automatically merges connected batteries. Takes consideration of SmartShunt, Multies, Quattros, SmartSolars, BlueSolars and MPPT for current calculation. Additional configuration possible.

### [venus-os_dbus-mqtt-battery](https://github.com/mr-manuel/venus-os_dbus-mqtt-battery) by [mr-manuel](https://github.com/mr-manuel)

Virtual battery that has to be fed over MQTT in case you want to merge your data how you'd like. Venus OS Large with Node-RED recommended.


## Why do I need a BMS for lithium batteries?
Lithuim cells are great at storing energy, but they can be dangerous. An overcharged cell can cause a fire. A Battery Management System (BMS) first priority is to protect the cells in your battery from any potential hazards.

Expand Down
37 changes: 27 additions & 10 deletions docs/docs/general/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ In [VRM](https://vrm.victronenergy.com/) look under the device list for your ins

1. Download and copy the [latest release](https://github.com/Louisvdw/dbus-serialbattery/releases) `venus-data.tar.gz` to the root of a USB flash drive that is in FAT32 format (a SD card is also an option for GX devices, but not for Raspberry Pi).

2. Plug the flash drive/SD into the Venus device and reboot. It will automatically extract and install to the correct locations and try the driver on any connected devices.
2. OPTIONAL (`>= v1.0.0`): Create a `config.ini` file in the root of your USB flash drive with your custom settings. Put `[DEFAULT]` in the first line of the file and add all the values you want to change below. You only have to insert the values you want to change, all other values are fetched from the `config.default.ini`. In the [`config.default.ini`](https://github.com/Louisvdw/dbus-serialbattery/blob/jkbms_ble/etc/dbus-serialbattery/config.default.ini) you find all possible settings that you can copy over and change.

3. Reboot the GX (in the Remote Console go to `Settings` &rarr; `General` &rarr; `Reboot?`).
> If you put a `config.ini` in the root of the USB flash drive, then an existing `config.ini` will be overwritten.

3. Plug the flash drive/SD into the Venus device and reboot. It will automatically extract and install to the correct locations and try the driver on any connected devices.

4. Reboot the GX (in the Remote Console go to `Settings` &rarr; `General` &rarr; `Reboot?`).


### Install over SSH
Expand All @@ -74,9 +78,9 @@ In [VRM](https://vrm.victronenergy.com/) look under the device list for your ins
2. Run these commands to install or update to the latest release version.

```bash
wget -O /tmp/install-release.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/install-release.sh
wget -O /tmp/install.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/install.sh

bash /tmp/install-release.sh
bash /tmp/install.sh

reboot
```
Expand Down Expand Up @@ -110,10 +114,10 @@ In [VRM](https://vrm.victronenergy.com/) look under the device list for your ins
> This version is installed directly from the repository and can contain errors. Not recommended for production environments unless you know what you do.

```bash
wget -O /tmp/install-nightly.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/jkbms_ble/etc/dbus-serialbattery/install-nightly.sh && bash /tmp/install-nightly.sh
wget -O /tmp/install.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/jkbms_ble/etc/dbus-serialbattery/install.sh && bash /tmp/install.sh
```

Select `2` for `jkbms_ble`.
Select `2` for `nightly build` and then select the branch you want to install from.

### BMS specific settings

Expand Down Expand Up @@ -218,13 +222,15 @@ bash /data/etc/dbus-serialbattery/reinstall-local.sh

## Uninstall/remove the driver

To uninstall/remove the driver run the uninstall script. The script is included from driver version `> v0.14.3`.
To uninstall the driver run the uninstall script. The script is included from driver version `>= v1.0.0`.

```bash
bash /data/etc/dbus-serialbattery/uninstall.sh
```

To uninstall/remove previous driver versions `<= v0.14.3` run this commands.
To uninstall previous driver versions `<= v0.14.3` run this commands:

**Uninstall**

```bash
# handle read only mounts
Expand All @@ -239,8 +245,19 @@ rm -rf /opt/victronenergy/dbus-serialbattery
# kill driver, if running
pkill -f "python .*/dbus-serialbattery.py"

# remove install-script from rc.local
sed -i "/sh \/data\/etc\/dbus-serialbattery\/reinstall-local.sh/d" /data/rc.local
# remove install script from rc.local
sed -i "/sh \/data\/etc\/dbus-serialbattery\/reinstalllocal.sh/d" /data/rc.local

# restore GUI changes
bash /data/etc/dbus-serialbattery/restore-gui.sh
```

> If after the uninstall for some reason several items in the GUI were red, DO NOT reboot your GX device. See [Uninstalling driver bricked my cerbo #576](https://github.com/Louisvdw/dbus-serialbattery/issues/576)

**Remove**

If you want to remove also the install files of the driver run this after you run the uninstall script/commands:

```bash
rm -rf /data/etc/dbus-serialbattery
```
42 changes: 21 additions & 21 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2064,9 +2064,9 @@
integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==

"@types/node@*":
version "18.16.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.3.tgz#6bda7819aae6ea0b386ebc5b24bdf602f1b42b01"
integrity sha512-OPs5WnnT1xkCBiuQrZA4+YAV4HEJejmHneyraIaxsbev5yCEr6KMwINNFP9wQeFIw8FWcoTqF3vQsa5CDaI+8Q==
version "20.1.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.0.tgz#258805edc37c327cf706e64c6957f241ca4c4c20"
integrity sha512-O+z53uwx64xY7D6roOi4+jApDGFg0qn6WHcxe5QeqjMaTezBO/mxdfFXIVAVVyNWKx84OmPB3L8kbVYOTeN34A==

"@types/node@^17.0.5":
version "17.0.45"
Expand Down Expand Up @@ -2125,9 +2125,9 @@
"@types/react" "*"

"@types/react@*":
version "18.2.0"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.0.tgz#15cda145354accfc09a18d2f2305f9fc099ada21"
integrity sha512-0FLj93y5USLHdnhIhABk83rm8XEGA7kH3cr+YUlvxoUGp1xNt/DINUMvqPxLyOQMzLmZe8i4RTHbvb8MC7NmrA==
version "18.2.5"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.5.tgz#f9403e1113b12b53f7edcdd9a900c10dd4b49a59"
integrity sha512-RuoMedzJ5AOh23Dvws13LU9jpZHIc/k90AgmK7CecAYeWmSr3553L4u5rk4sWAPBuQosfT7HmTfG4Rg5o4nGEA==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down Expand Up @@ -2411,9 +2411,9 @@ ajv@^8.0.0, ajv@^8.9.0:
uri-js "^4.2.2"

algoliasearch-helper@^3.10.0:
version "3.12.0"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.12.0.tgz#0fe39d49b0290e4aa5e1fe733bd24d857d258e94"
integrity sha512-/j1U3PEwdan0n6P/QqSnSpNSLC5+cEMvyljd5CnmNmUjDlGrys+vFEOwjVEnqELIiAGMHEA/Nl3CiKVFBUYqyQ==
version "3.13.0"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8"
integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==
dependencies:
"@algolia/events" "^4.0.1"

Expand Down Expand Up @@ -2789,9 +2789,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001464:
version "1.0.30001482"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001482.tgz#8b3fad73dc35b2674a5c96df2d4f9f1c561435de"
integrity sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ==
version "1.0.30001485"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001485.tgz#026bb7319f1e483391872dc303a973d4f513f619"
integrity sha512-8aUpZ7sjhlOyiNsg+pgcrTTPUXKh+rg544QYHSvQErljVEKJzvkYkCR/hUFeeVoEfTToUtY9cUKNRC7+c45YkA==

ccount@^1.0.0:
version "1.1.0"
Expand Down Expand Up @@ -3556,9 +3556,9 @@ ee-first@1.1.1:
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==

electron-to-chromium@^1.4.284:
version "1.4.380"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.380.tgz#195dc59d930c6b74efbee6f0e6a267ce4af5ed91"
integrity sha512-XKGdI4pWM78eLH2cbXJHiBnWUwFSzZM7XujsB6stDiGu9AeSqziedP6amNLpJzE3i0rLTcfAwdCTs5ecP5yeSg==
version "1.4.385"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.385.tgz#1afd8d6280d510145148777b899ff481c65531ff"
integrity sha512-L9zlje9bIw0h+CwPQumiuVlfMcV4boxRjFIWDcLfFqTZNbkwOExBzfmswytHawObQX4OUhtNv8gIiB21kOurIg==

emoji-regex@^8.0.0:
version "8.0.0"
Expand Down Expand Up @@ -6801,9 +6801,9 @@ statuses@2.0.1:
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==

std-env@^3.0.1:
version "3.3.2"
resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.3.2.tgz#af27343b001616015534292178327b202b9ee955"
integrity sha512-uUZI65yrV2Qva5gqE0+A7uVAvO40iPo6jGhs7s8keRfHCmtg+uB2X6EiLGCI9IgL1J17xGhvoOqSz79lzICPTA==
version "3.3.3"
resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.3.3.tgz#a54f06eb245fdcfef53d56f3c0251f1d5c3d01fe"
integrity sha512-Rz6yejtVyWnVjC1RFvNmYL10kgjC49EOghxWn0RFqlCHGFpQx+Xe7yW3I4ceK1SGrWIGMjD5Kbue8W/udkbMJg==

string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2:
version "4.2.3"
Expand Down Expand Up @@ -7451,9 +7451,9 @@ webpack-sources@^3.2.2, webpack-sources@^3.2.3:
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==

webpack@^5.73.0:
version "5.81.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.81.0.tgz#27a2e8466c8b4820d800a8d90f06ef98294f9956"
integrity sha512-AAjaJ9S4hYCVODKLQTgG5p5e11hiMawBwV2v8MYLE0C/6UAGLuAF4n1qa9GOwdxnicaP+5k6M5HrLmD4+gIB8Q==
version "5.82.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.82.0.tgz#3c0d074dec79401db026b4ba0fb23d6333f88e7d"
integrity sha512-iGNA2fHhnDcV1bONdUu554eZx+XeldsaeQ8T67H6KKHl2nUSwX8Zm7cmzOA46ox/X1ARxf7Bjv8wQ/HsB5fxBg==
dependencies:
"@types/eslint-scope" "^3.7.3"
"@types/estree" "^1.0.0"
Expand Down
9 changes: 9 additions & 0 deletions etc/dbus-serialbattery/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,17 @@ def __init__(self, port, baud, address):
# max battery charge/discharge current
self.max_battery_charge_current = None
self.max_battery_discharge_current = None
self.has_settings = 0

self.init_values()

# used to identify a BMS when multiple BMS are connected - planned for future use
self.unique_identifier = None

# fetched from the BMS from a field where the user can input a custom string
# only if available
self.custom_field = None

def init_values(self):
self.voltage = None
self.current = None
Expand Down Expand Up @@ -919,3 +924,7 @@ def log_settings(self) -> None:
logger.info(f"Serial Number/Unique Identifier: {self.unique_identifier}")

return

def reset_soc_callback(self, path, value):
# callback for handling reset soc request
return
Loading