Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
763 commits
Select commit Hold shift + click to select a range
497fbec
Correct reading of hwID
dalathegreat Jan 14, 2026
245ff15
Add reading of 96 cells
dalathegreat Jan 14, 2026
00be9fd
Add runtime battery model configuration for Sungrow SBRXXX inverter
aferrara Jan 15, 2026
3cc7caa
Add full SBR064-SBR256 battery model range to Sungrow web settings
aferrara Jan 15, 2026
8368774
Support 2-8 module range for Sungrow SBRXXX CAN protocol
aferrara Jan 15, 2026
0ee960c
Allow battery to charge to 100%
dalathegreat Jan 15, 2026
5e6f735
Fix negative reading of celltemps
dalathegreat Jan 15, 2026
4e50339
Merge pull request #1952 from dalathegreat/bugfix/meb-celltemps
dalathegreat Jan 15, 2026
6c7e5a5
Refactor Sungrow battery model to use 0-indexed storage
aferrara Jan 15, 2026
761cdd7
Merge pull request #1953 from dalathegreat/main
rjsc Jan 15, 2026
561004f
Add missing 4 cells
dalathegreat Jan 15, 2026
7a2eba7
Fix mistake in array
dalathegreat Jan 15, 2026
06704df
Fix platformio.ini build error for esp32devkit
rjsc Jan 15, 2026
fd8e15c
Add BECom image build to GitHub workflows
rjsc Jan 15, 2026
2554aa8
Motor A & B info added
NiclasHedis Jan 15, 2026
74a23d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 15, 2026
1f897a7
Optimize PID polling functions
dalathegreat Jan 16, 2026
abf86e8
Merge pull request #1950 from dalathegreat/feature/kia-ceed-phev-support
dalathegreat Jan 16, 2026
570f48c
Fix esp32devkit missing lines
rjsc Jan 16, 2026
c27159c
Merge pull request #1955 from dalathegreat/main
rjsc Jan 16, 2026
3531993
Merge pull request #1712 from dalathegreat/feature/BECOM-HW
dalathegreat Jan 16, 2026
2c1dbdd
Add contactor closing messages for Kia Ceed PHEV
dalathegreat Jan 16, 2026
b2803ff
Update THINK-BATTERY.h
dalathegreat Jan 16, 2026
8ab7623
Merge branch 'main' into feature/Volvo-EX30
dalathegreat Jan 16, 2026
82e7299
Pause PID polling if commands are issued
dalathegreat Jan 16, 2026
f125521
Refactor DTC read
dalathegreat Jan 16, 2026
77904e3
Fix undervoltage occuring at startup
dalathegreat Jan 16, 2026
034b69b
Typo in comment for 'max_cell_voltage_mV'
Almendronman Jan 17, 2026
8cb69b1
Update local project with latest version from server.
Almendronman Jan 17, 2026
acd9005
Begin correct interface
dalathegreat Jan 17, 2026
00d4550
Merge pull request #1957 from dalathegreat/feature/kia-ceed-phev-cont…
dalathegreat Jan 17, 2026
389658d
Update BYD-MODBUS.cpp
pmajor021 Jan 17, 2026
78e49d9
Add working version of Growatt WIT
dalathegreat Jan 17, 2026
1a7b8a6
Merge pull request #1964 from dalathegreat/bugfix/CAN-FD-restart-bug
dalathegreat Jan 17, 2026
ec7b304
Merge pull request #1965 from dalathegreat/bugfix/growatt-wit-functional
dalathegreat Jan 17, 2026
37da291
Add gradual charge taper
demon1300 Jan 18, 2026
7202e7d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2026
3afb649
update to 11kWh max capacity
pmajor021 Jan 18, 2026
37624b8
Update BYD-MODBUS.cpp
pmajor021 Jan 18, 2026
fe95054
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2026
3cd5cef
Update BYD-MODBUS.cpp
pmajor021 Jan 18, 2026
d15ebdc
Merge pull request #1948 from dalathegreat/feature/recovery-mode
dalathegreat Jan 18, 2026
0e8d6b7
Merge pull request #1951 from Wired-Square/feature/sungrow-sbrxxx-can
dalathegreat Jan 18, 2026
066c1cd
Merge pull request #1963 from Almendronman/main
dalathegreat Jan 18, 2026
32f0ae4
Update Software.cpp
dalathegreat Jan 18, 2026
9893112
Update BYD-MODBUS.cpp
pmajor021 Jan 18, 2026
ca96055
Merge branch 'main' into demon1300-atto3_charge_taper
demon1300 Jan 20, 2026
8c6f409
Update Software.cpp
dalathegreat Jan 23, 2026
678a696
Feature gate LEAF SOH reset to large flash devices
dalathegreat Jan 23, 2026
a7a6401
Remove unused MaxusEV80 integration
dalathegreat Jan 23, 2026
440bb34
Remove unused sections of AsyncTCP to save flash
dalathegreat Jan 24, 2026
d789abc
Merge pull request #1946 from dalathegreat/feature/legacy-tesla
dalathegreat Jan 25, 2026
e9a0f6a
Pad struct more efficiently
dalathegreat Jan 25, 2026
39d4046
Pack struct, add abs() for celldev
dalathegreat Jan 25, 2026
702c39a
Optimize flash usage by WIT integration
dalathegreat Jan 25, 2026
cb8b815
Minify OTA library
dalathegreat Jan 25, 2026
1097e06
Merge pull request #1979 from dalathegreat/improvement/-flash-reduct
dalathegreat Jan 27, 2026
0acc0b9
Update Stark to 8MB. Update ESP32 to 3.3.6
dalathegreat Jan 28, 2026
2250bbb
Merge pull request #1893 from jonny5532/feature/rejig-mqtt-watchdog
dalathegreat Jan 29, 2026
7563cc4
Update 4MB to 8MB for Stark
dalathegreat Jan 29, 2026
83c5050
Update version number
dalathegreat Jan 29, 2026
89554fc
Merge pull request #1960 from dalathegreat/bugfix/think-startup-voltage
dalathegreat Jan 29, 2026
91974a5
Set all boards to QIO and 80MHZ flash
dalathegreat Jan 29, 2026
9dad119
Remove small flash device flag from Stark
dalathegreat Jan 29, 2026
5b98600
Merge pull request #1986 from dalathegreat/feature/Stark-8MB
dalathegreat Jan 29, 2026
3059539
Fix offset for bootloader for Stark CMR image
dalathegreat Jan 29, 2026
545fa97
Merge pull request #1989 from dalathegreat/bugfix/stark-factory.bin
dalathegreat Jan 29, 2026
d6f91c2
Updates to prevent DTCs
Jan 29, 2026
0f78435
Change QIO to DIO for factory bins
dalathegreat Jan 29, 2026
2979fa5
Bump RC
dalathegreat Jan 29, 2026
c850f08
Merge pull request #1991 from dalathegreat/bugfix/flash-dio
dalathegreat Jan 29, 2026
e15d9bd
Merge branch 'main' into feature/Volvo-EX30
dalathegreat Jan 29, 2026
5c2286a
Temporarily revert platformio
dalathegreat Jan 29, 2026
dd75edb
Updated contactor description
NiclasHedis Jan 29, 2026
9ca7ab8
Add remaining capacity calculation
dalathegreat Jan 29, 2026
0596a3e
Merge branch 'feature/Volvo-EX30' of github.com:dalathegreat/Battery-…
dalathegreat Jan 29, 2026
af3f153
Add hardcoded 3kW charge limits
dalathegreat Jan 29, 2026
bd86335
:art: prevent voltage bouncing due to repeadetly force-charging and d…
M4GNV5 Jan 29, 2026
b97018f
Added inhibition (crash) status readout
NiclasHedis Jan 29, 2026
aa9ad23
:art: daly: prevent discharge bouncing when running into voltage limi…
M4GNV5 Jan 30, 2026
82a7b0d
Merge pull request #1988 from M4GNV5/pylon-lv-bouncing
dalathegreat Jan 31, 2026
4107331
Show memory stats when profiling is enabled
dalathegreat Feb 1, 2026
a7984d5
Add event for low memory
dalathegreat Feb 1, 2026
b61d5b1
Make heap variable under info
dalathegreat Feb 1, 2026
9188eb0
Lower amount of stored CAN messages for now
dalathegreat Feb 1, 2026
99cb328
Lower amount of chars reserved for shunt name
dalathegreat Feb 1, 2026
be7ff27
Further reduce CAN log allocation
dalathegreat Feb 1, 2026
543db41
Downgrade ESP32 to v3.3.5
dalathegreat Feb 1, 2026
dd35947
Merge pull request #1997 from dalathegreat/bugfix/free-heap
dalathegreat Feb 1, 2026
2630af5
Refactor PylonBattery for baud rate and constants
ErikssonPer Feb 1, 2026
c6e9cfb
Implement battery status updates and CAN handling
ErikssonPer Feb 1, 2026
fb24dfe
Add user_selected_pylon_baudrate variable
ErikssonPer Feb 1, 2026
08365bb
Add user_selected_pylon_baudrate variable
ErikssonPer Feb 1, 2026
be45306
Add Pylon CAN baudrate selection and update UI
ErikssonPer Feb 1, 2026
4b73409
Add user_selected_pylon_baudrate setting
ErikssonPer Feb 1, 2026
3e93cbb
Clean up PylonBattery.cpp by removing dead code
ErikssonPer Feb 1, 2026
658715e
Change default PYLONBAUD setting from 250 to 500
ErikssonPer Feb 1, 2026
ec7421a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 1, 2026
74e073c
Add current candidate
dalathegreat Feb 1, 2026
47c5163
Merge pull request #1998 from ErikssonPer/Emus_G1_BMS
dalathegreat Feb 1, 2026
9d21b22
Added crash reset
Feb 2, 2026
9bf84d9
Merge branch 'feature/Volvo-EX30' of https://github.com/dalathegreat/…
Feb 2, 2026
33374fa
Invert current sign
dalathegreat Feb 2, 2026
ab830cf
Add double pylon option
dalathegreat Feb 2, 2026
5d05656
Update capacity variables in GROWATT-HV-CAN.h
ErikssonPer Feb 2, 2026
36b2169
Refine Growatt HV CAN protocol for inverter
ErikssonPer Feb 2, 2026
5258684
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 2, 2026
552f8c1
Added one frame
NiclasHedis Feb 2, 2026
142e412
Modify protocol comment for inverter model update
ErikssonPer Feb 2, 2026
ab36505
Adjusted frame timing
NiclasHedis Feb 3, 2026
8796c26
Fixed value corruption when reading DTC
NiclasHedis Feb 3, 2026
53474e9
Merge pull request #2001 from ErikssonPer/Growatt-HV-capacity-fix
dalathegreat Feb 3, 2026
63f373b
Change SOC to be based on DOD
dalathegreat Feb 3, 2026
e86fd4d
Swap charge/discharge. Fix cell temperatures to use proper min/max
dalathegreat Feb 3, 2026
ba4a5a0
Add min/max cellvoltages
dalathegreat Feb 3, 2026
24d7b39
Tighten cellvoltage limits for eCMP
dalathegreat Feb 5, 2026
c3c9cbc
BMW iX: add additional DTC descriptions
lenvm Feb 5, 2026
51d8310
Fix conditional check for number_of_cells
ErikssonPer Feb 5, 2026
94bf3d1
Fix syntax error in cell count condition
ErikssonPer Feb 5, 2026
fc095c4
Merge pull request #2009 from lenvm/feature/bmw-ix-codes
lenvm Feb 5, 2026
0e4fc1f
Merge pull request #2007 from dalathegreat/bugfix/ecmp-voltage-limits
dalathegreat Feb 5, 2026
faf76ca
Merge pull request #2011 from ErikssonPer/BUG]-Growatt-HV-CAN-compari…
dalathegreat Feb 6, 2026
3872fc0
Merge pull request #2000 from dalathegreat/feature/double-pylon
dalathegreat Feb 6, 2026
753f069
Add more battery info page for Rivian
dalathegreat Feb 6, 2026
226b06f
Improve error detection capability for Rivian
dalathegreat Feb 6, 2026
b0ce0f1
Update voltage limits for Think City
dalathegreat Feb 7, 2026
97a3025
Merge pull request #1966 from pmajor021/byd_modbus_44k
dalathegreat Feb 7, 2026
67c32e1
Add files via upload
ErikssonPer Feb 7, 2026
4f8f9aa
Add GrowattHvArk battery type handling
ErikssonPer Feb 7, 2026
af8fcf3
Add GROWATT-HV-ARK-BATTERY.h include
ErikssonPer Feb 7, 2026
f1ea82b
Add GrowattHvArk to supported battery types
ErikssonPer Feb 7, 2026
af6cbe1
Add support for battery type 49 in settings
ErikssonPer Feb 7, 2026
6357300
Merge pull request #2004 from dalathegreat/bugfix/think-values
dalathegreat Feb 7, 2026
2ed0678
Refactor battery capacity calculations
ErikssonPer Feb 7, 2026
6021f8e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2026
e19ae94
Implement destructor for GrowattHvArkBattery class
ErikssonPer Feb 7, 2026
1f1866f
Add destructor and override methods to GrowattHvArkBattery
ErikssonPer Feb 7, 2026
4ecb4f6
Fix destructor declaration in GrowattHvArkBattery
ErikssonPer Feb 7, 2026
20f7437
Refactor GrowattHvArkBattery constructor and destructor
ErikssonPer Feb 7, 2026
0a04c77
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2026
c80d643
Remove destructor definition from GrowattHvArkBattery
ErikssonPer Feb 7, 2026
1ee78d3
Add GROWATT-HV-ARK-BATTERY source file to CMake
ErikssonPer Feb 7, 2026
7e8731d
Fixing cell voltage discovery when there is a delay getting the numbe…
No-Signal Feb 8, 2026
4ef539d
Add CRC check to incoming CAN
dalathegreat Feb 9, 2026
4b6f980
Improve HVIL enumeration
dalathegreat Feb 9, 2026
8350d12
Merge pull request #2020 from No-Signal/feature/mqtt_cellvoltage_disc…
dalathegreat Feb 9, 2026
3691cd0
Remove secondary battery constructor from GrowattHvArkBattery
ErikssonPer Feb 9, 2026
56ceb1a
Add offset to current value
dalathegreat Feb 9, 2026
80dec08
Refactor GrowattHvArkBattery constructor and members
ErikssonPer Feb 9, 2026
0c9b82e
Refactor datalayer structure for battery info
ErikssonPer Feb 9, 2026
6249b22
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 9, 2026
f513990
Merge pull request #2018 from ErikssonPer/Growatt_HV_ARK
dalathegreat Feb 10, 2026
dfb87f4
Hold with CAN sending until battery wakes up
dalathegreat Feb 10, 2026
32a6bd5
Correct CRC calculation
dalathegreat Feb 11, 2026
247867c
Add more info to more data view
dalathegreat Feb 11, 2026
72ff7fd
Add more info to more battery info page
dalathegreat Feb 11, 2026
1ae47ef
Fix compiler warning
dalathegreat Feb 12, 2026
dcf0918
Add compiler_warning_build
dalathegreat Feb 12, 2026
32b958a
Merge pull request #2028 from dalathegreat/feature/id-exploration
dalathegreat Feb 12, 2026
2c962ec
Increase accuracy on voltage, change datatype to uint16
dalathegreat Feb 13, 2026
a0febf5
Remove duplicate values from More Battery Info page
dalathegreat Feb 13, 2026
f0aafa7
Remove values seen from main page from more bat info
dalathegreat Feb 13, 2026
0c8af7d
Convert current to int16_t instead of double
dalathegreat Feb 13, 2026
05ba4ac
Remove leftover logging printouts from dev
dalathegreat Feb 13, 2026
a4138fb
Update Software.cpp
dalathegreat Feb 14, 2026
a6d5ba5
Update Software.cpp
dalathegreat Feb 14, 2026
e746637
Update ESP32 to v3.3.7
dalathegreat Feb 15, 2026
883d4db
Merge pull request #2033 from dalathegreat/feature/esp337
dalathegreat Feb 16, 2026
6ec71df
Merge branch 'main' into feature/pylon-more-info
dalathegreat Feb 16, 2026
0fe1712
Remove unused OTA functions to save space
dalathegreat Feb 16, 2026
1ec21c4
Further minify esp.c ledhandler for lower flash size
dalathegreat Feb 16, 2026
07b59f1
Fix profiling tool not showing 112ms offset on 10ms-CAN tasks
dalathegreat Feb 16, 2026
aa1de18
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 16, 2026
afd4bde
Merge pull request #2035 from dalathegreat/feature/optimizationsz
dalathegreat Feb 17, 2026
589735b
Merge branch 'main' into feature/compiler-flags-w
dalathegreat Feb 17, 2026
199d58c
Merge pull request #2014 from dalathegreat/feature/crash-rivian-detec…
dalathegreat Feb 17, 2026
92f811a
Merge pull request #1967 from demon1300/demon1300-atto3_charge_taper
dalathegreat Feb 17, 2026
51c9b12
Merge branch 'main' into feature/Volvo-EX30
dalathegreat Feb 17, 2026
f3fffb3
Comment out unused switch cases
dalathegreat Feb 17, 2026
1324587
Remove unnecessary cellvoltage array
dalathegreat Feb 17, 2026
6c93bff
Removed unused code from Tesla Legacy integration
dalathegreat Feb 17, 2026
756baa3
Fix ID for Sono
dalathegreat Feb 17, 2026
69f372f
Calibrate 12V reading for Zoe2
dalathegreat Feb 17, 2026
e4cdf20
Merge pull request #2039 from dalathegreat/bugfix/zoe2-12v-calibration
dalathegreat Feb 17, 2026
b4d24ab
Optimize the PHEV integration for lower flash usage
dalathegreat Feb 17, 2026
ba43bc9
Merge pull request #2038 from dalathegreat/feature/more-flash-savingss
dalathegreat Feb 17, 2026
ce773d6
Merge branch 'main' into feature/Volvo-EX30
dalathegreat Feb 17, 2026
7bbe6d1
Merge pull request #1889 from dalathegreat/feature/Volvo-EX30
dalathegreat Feb 17, 2026
0c5969a
Optimize iX integration for lower flash usage
dalathegreat Feb 17, 2026
40e1852
Merge pull request #2029 from dalathegreat/feature/compiler-flags-w
dalathegreat Feb 17, 2026
5d83d2d
Merge pull request #2040 from dalathegreat/bugfix/even-more-flash-sav…
dalathegreat Feb 17, 2026
eb2555b
BMW iX: add additional DTC descriptions
lenvm Feb 17, 2026
80fe7f7
Revert accidental flash/size for Stark
dalathegreat Feb 18, 2026
5227506
Fix compilation issue
dalathegreat Feb 18, 2026
3cf7a9e
Merge pull request #2044 from dalathegreat/bugfix/small-flash-dev
dalathegreat Feb 18, 2026
39d2d22
Merge branch 'main' into bugfix/ford-mach-e-capacity-algo
dalathegreat Feb 18, 2026
8eab2d3
Merge pull request #2042 from lenvm/feature/bmw-ix-dtc-descriptions
dalathegreat Feb 18, 2026
62a33fa
Fix initialization of double BYD atto 3
dalathegreat Feb 18, 2026
79f4cde
Ensure the battery chemistry is set to the user selected value (batte…
Feb 18, 2026
969bd4b
Merge pull request #2047 from jonny5532/feature/better-battery-chemis…
dalathegreat Feb 18, 2026
11a2856
Merge pull request #2045 from dalathegreat/bugfix/double-atto3
dalathegreat Feb 19, 2026
54ad75a
Do not sample invalid 5000mV cells
dalathegreat Feb 20, 2026
5ac1fdc
Add autodetection for 90/94/96/108S
dalathegreat Feb 20, 2026
890da5b
Add support for double CMP batteries
dalathegreat Feb 20, 2026
0affe15
Update CONTRIBUTING.md
dalathegreat Feb 20, 2026
d352a7b
Add ESPNow support to broadcast battery data
madymax Feb 20, 2026
901704d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 20, 2026
af61baa
Merge branch 'dalathegreat:main' into feature/espnow
madymax Feb 21, 2026
d7095e3
Add battery_id
madymax Feb 21, 2026
216e489
Add 1000mV Offset to new cellreadings
dalathegreat Feb 21, 2026
2b32141
Rename some globals to avoid conflict
madymax Feb 21, 2026
5a6fa3f
Merge pull request #2050 from dalathegreat/feature/double-cmp-smart
dalathegreat Feb 21, 2026
1785ce9
Merge pull request #1904 from dalathegreat/bugfix/ford-mach-e-capacit…
dalathegreat Feb 21, 2026
378d39e
Update Software.cpp
dalathegreat Feb 21, 2026
7bce695
Optimize for size and debug
madymax Feb 21, 2026
054e597
Update Software.cpp
dalathegreat Feb 21, 2026
a107dac
Merge pull request #2053 from madymax/feature/optimize_for_size_and_dbug
dalathegreat Feb 21, 2026
a414a37
Merge branch 'dalathegreat:main' into feature/espnow
madymax Feb 21, 2026
eee7448
Update logging
madymax Feb 21, 2026
9cb010c
Merge pull request #2051 from madymax/feature/espnow
dalathegreat Feb 22, 2026
3de983a
Invert current direction
dalathegreat Feb 22, 2026
39f6fb8
Merge pull request #2057 from dalathegreat/bugfix/volvo-spa-current-d…
dalathegreat Feb 22, 2026
0d259b4
Feature/bmw i3 balancing (#2056)
odlg Feb 22, 2026
a377a21
Make solax battery type configurable again
dalathegreat Feb 23, 2026
df508d8
Add autostart of precharge without battery
dalathegreat Feb 23, 2026
168b9de
Merge pull request #2059 from dalathegreat/bugfix/solax-battery-type
dalathegreat Feb 23, 2026
c751b85
Update CONTRIBUTING.md
dalathegreat Feb 23, 2026
b0c16c7
Force BMS mode to standby
dalathegreat Feb 23, 2026
86bc4d1
Compile the display on all boards
madymax Feb 23, 2026
536bd52
Merge pull request #2061 from dalathegreat/feature/precharge-test-mode
dalathegreat Feb 23, 2026
41ff504
Add display feature on Lilygo T-CAN485
madymax Feb 23, 2026
a8503b0
Merge branch 'main' into feature/display_tcan485
madymax Feb 23, 2026
7772cee
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 23, 2026
7c3d320
Update webserver.cpp
madymax Feb 23, 2026
8ac3fb8
Merge pull request #2063 from madymax/feature/display_tcan485
dalathegreat Feb 24, 2026
cf58dcd
Merge pull request #2062 from madymax/feature/display_on_all_boards
dalathegreat Feb 24, 2026
76f0d8d
Correct PID polling
dalathegreat Feb 24, 2026
90b1c3e
Add DTC clear for ECMP
dalathegreat Feb 25, 2026
2f8cdf2
Merge pull request #2070 from dalathegreat/feature/ecmp-clear-DTC
dalathegreat Feb 26, 2026
b73de1f
Move out strings from main.cpp
dalathegreat Feb 26, 2026
eb35103
Remove OTA from core, move eqstop button to 10ms
dalathegreat Feb 26, 2026
8e9f63b
Rename Deye fix
dalathegreat Feb 27, 2026
e8d7a62
Merge pull request #2076 from dalathegreat/improvement/rename-deye-fixes
dalathegreat Mar 1, 2026
05031c5
Merge pull request #2073 from dalathegreat/improvement/speedup-fixes
dalathegreat Mar 1, 2026
99a9a60
Add estimates for missing values
dalathegreat Mar 1, 2026
236aa40
Merge branch 'main' into feature/pylon-more-info
dalathegreat Mar 1, 2026
332e607
Add if-guards for user_selected settings
dalathegreat Mar 1, 2026
9952a60
Merge pull request #1891 from dalathegreat/feature/pylon-more-info
dalathegreat Mar 1, 2026
10c6860
Merge pull request #2064 from dalathegreat/bugfix/kangoo-bat
dalathegreat Mar 1, 2026
6ee57b8
Merge upstream v10.2.dev with ESP32-S3 port
Luca-Timo Mar 2, 2026
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
54 changes: 0 additions & 54 deletions .github/workflows/compile-common-image-lilygo-2CAN.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/compile-common-image-lilygo-TCAN.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/compile-common-image-stark.yml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/compile-common-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: 🔋 Compile Common Images

on:
# The workflow is run when a commit is pushed or for a
# Pull Request.
- push
- pull_request

# This is the list of jobs that will be run concurrently.
jobs:
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
skip-duplicate-actions:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'never'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

build:
needs: skip-duplicate-actions
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'
runs-on: ubuntu-latest

strategy:
matrix:
include:
- board_name: "LilygoT-CAN485"
pio_env: "lilygo_330"
artifact_name: "battery-emulator-lilygo-t-can485"
- board_name: "Stark CMR"
pio_env: "stark_330"
artifact_name: "battery-emulator-stark"
- board_name: "LilygoT-2CAN"
pio_env: "lilygo_2CAN_330"
artifact_name: "battery-emulator-lilygo-t-2can"
- board_name: "ESP32 DevKit V1"
pio_env: "esp32devkit_330"
artifact_name: "battery-emulator-esp32devkit"
- board_name: "BECom"
pio_env: "BECom_330"
artifact_name: "battery-emulator-becom"
- board_name: "Compiler warning check"
pio_env: "compiler_warning_check"
artifact_name: "battery-dummy-check"

steps:
- uses: actions/checkout@v6
name: Checkout code

- uses: actions/cache@v5
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio

- uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build image for ${{ matrix.board_name }}
run: pio run -e ${{ matrix.pio_env }}

- name: Upload artifact for ${{ matrix.board_name }}
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.artifact_name }}.bin
path: .pio/build/${{ matrix.pio_env }}/firmware.bin
14 changes: 7 additions & 7 deletions .github/workflows/release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fi

- name: Checkout code at tag
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: refs/tags/${{ steps.vars.outputs.tag }}

Expand All @@ -34,7 +34,7 @@ jobs:
mkdir output
echo "Built for tag ${{ steps.vars.outputs.tag }}" > output/info.txt

- uses: actions/cache@v4
- uses: actions/cache@v5
with:
path: |
~/.cache/pip
Expand All @@ -45,7 +45,7 @@ jobs:
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
run: pip install --upgrade platformio esptool

- name: 🛠 Build ota image for Lilygo T-CAN
run: |
Expand All @@ -54,7 +54,7 @@ jobs:

- name: 🛠 Build factory image for Lilygo T-CAN
run: |
esptool --chip esp32 merge-bin -o .pio/build/lilygo_330/factory.bin --flash-mode dio --flash-freq 40m --flash-size 4MB 0x1000 .pio/build/lilygo_330/bootloader.bin 0x8000 .pio/build/lilygo_330/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/lilygo_330/firmware.bin
esptool --chip esp32 merge-bin -o .pio/build/lilygo_330/factory.bin --flash-mode dio --flash-freq 80m --flash-size 4MB 0x1000 .pio/build/lilygo_330/bootloader.bin 0x8000 .pio/build/lilygo_330/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/lilygo_330/firmware.bin
mv .pio/build/lilygo_330/factory.bin output/BE_${{ steps.vars.outputs.tag }}_LilygoT-CAN485.factory.bin

- name: 🛠 Build ota image for Lilygo 2-CAN
Expand All @@ -64,7 +64,7 @@ jobs:

- name: 🛠 Build factory image for Lilygo 2-CAN
run: |
esptool --chip esp32s3 merge-bin -o .pio/build/lilygo_2CAN_330/factory.bin --flash-mode dio --flash-freq 40m --flash-size 16MB 0x0000 .pio/build/lilygo_2CAN_330/bootloader.bin 0x8000 .pio/build/lilygo_2CAN_330/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/lilygo_2CAN_330/firmware.bin
esptool --chip esp32s3 merge-bin -o .pio/build/lilygo_2CAN_330/factory.bin --flash-mode dio --flash-freq 80m --flash-size 16MB 0x0000 .pio/build/lilygo_2CAN_330/bootloader.bin 0x8000 .pio/build/lilygo_2CAN_330/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/lilygo_2CAN_330/firmware.bin
mv .pio/build/lilygo_2CAN_330/factory.bin output/BE_${{ steps.vars.outputs.tag }}_LilygoT-2CAN.factory.bin

- name: 🛠 Build ota image for Stark
Expand All @@ -74,7 +74,7 @@ jobs:

- name: 🛠 Build factory image for Stark
run: |
esptool --chip esp32 merge-bin -o .pio/build/stark_330/factory.bin --flash-mode dio --flash-freq 40m --flash-size 4MB 0x1000 .pio/build/stark_330/bootloader.bin 0x8000 .pio/build/stark_330/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/stark_330/firmware.bin
esptool --chip esp32 merge-bin -o .pio/build/stark_330/factory.bin --flash-mode dio --flash-freq 80m --flash-size 8MB 0x1000 .pio/build/stark_330/bootloader.bin 0x8000 .pio/build/stark_330/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/stark_330/firmware.bin
mv .pio/build/stark_330/factory.bin output/BE_${{ steps.vars.outputs.tag }}_StarkCMR.factory.bin

- name: 🌐 Deploy to Web Installer repo
Expand All @@ -87,7 +87,7 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
mkdir -p images/${{ steps.vars.outputs.tag }}
cp ../output/*.factory.bin images/${{ steps.vars.outputs.tag }}/
cp ../output/*.factory.bin ../output/*.ota.bin images/${{ steps.vars.outputs.tag }}/
git add images
git commit -m "Deploy from GitHub Actions"
git push origin main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Run pre-commit
uses: pre-commit/action@v3.0.1
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Configure and build with CMake
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.2
rev: v21.1.8
hooks:
- id: clang-format
args: [-Werror] # change formatting warnings to errors, hook includes -i (Inplace edit) by default
Expand Down
21 changes: 15 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,27 @@ sudo make
```

## Downloading a pull request build to test locally 🛜
If you want to help test a new feature that is only available in an open pull request, you can download the precompiled binaries from the build system. To do this,start by clicking on the "**Checks**" tab
If you want to help test a new feature that is only available in an open pull request, you can download the precompiled binaries from the build system.

<img width="779" height="312" alt="image" src="https://github.com/user-attachments/assets/fc7783c1-ba61-440e-ab09-b53d2b49f1bb" />
First, login to Github. If you don't have an account already, create one.

Then select which hardware you need the binaries for. Currently we build for these hardwares:
Start by clicking on the "**Checks**" tab

<img alt="image" src="https://github.com/user-attachments/assets/fc7783c1-ba61-440e-ab09-b53d2b49f1bb" />

Then click the down arrow next to the "Compile Common Images" selection, and then click on the hardware you need the binaries for. Currently we build for these hardwares:
- LilyGo T-CAN485
- Stark CMR
- LilyGo T-2CAN
- ESP32 Devkit
- BECom

<img alt="image" src="https://github.com/user-attachments/assets/e38f5c2c-098a-47d0-97be-10494b9ef5b2" />

After selecting the hardware you need, click the "**Upload Artifact**", and there will be a download link. Download the file!

<img width="647" height="476" alt="image" src="https://github.com/user-attachments/assets/fbb97719-0155-4792-9d91-c51e6052fa57" />
<img alt="image" src="https://github.com/user-attachments/assets/68f10c73-772f-499b-a14c-6b84d11c0ef2" />

After selecting the hardware you need, click the "**Upload Artifact**", and there will be a download link. Download the file, and [OTA Update](https://github.com/dalathegreat/Battery-Emulator/wiki/OTA-Update) your device with this file!
After downloading the .zip file, extract the .bin file from it. Then [OTA Update](https://github.com/dalathegreat/Battery-Emulator/wiki/OTA-Update) your device with this .bin file!

<img width="1714" height="697" alt="image" src="https://github.com/user-attachments/assets/2e17f90f-cc7d-4265-b7bc-7aa5cc6b6ec8" />

Loading
Loading