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

Add JK-PB bms compatibility. Target: 1 ESP in a "listening mode" connected to RS485 network. #464

Open
wants to merge 195 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
43c4b32
script to sniffing traffic from the RS485 network
txubelaxu Feb 25, 2024
9fa2529
some data got from [JK-PB2A16S-20P v14]
txubelaxu Feb 26, 2024
aa69361
JK BMS internal RS485 network compatibility (?)
txubelaxu Mar 3, 2024
de66167
Added multidevice example at esp32-example-rs485.yaml
txubelaxu Mar 4, 2024
dfdd217
Back some changes
txubelaxu Mar 4, 2024
5fa5e43
Some modifications to jk_rs485
txubelaxu Mar 5, 2024
513c461
Some modifications to jk_rs485
txubelaxu Mar 5, 2024
dc9d15f
First working RS485 for JK-PB. Sensors config working in progress
txubelaxu Mar 11, 2024
8ba7e4e
Create README.md for jk-pb
txubelaxu Mar 11, 2024
0796982
Update README.md
txubelaxu Mar 11, 2024
b68b5e1
Added more sensors
txubelaxu Mar 11, 2024
cbb4270
changed config .yaml for second bms
txubelaxu Mar 11, 2024
5806353
Merge pull request #1 from syssi/main
txubelaxu Mar 11, 2024
1bf6f67
Related to issue #390: some parameters added to BLE code
txubelaxu Mar 11, 2024
35d326d
corrected a small bug in my previous commit
txubelaxu Mar 11, 2024
c8574ee
updated 5 params for BLE. Example added: esp32-example-jkpb-example.yaml
txubelaxu Mar 12, 2024
93f9729
error corrected and example MAC changed to: XX:XX:XX:XX:XX:XX # <--- …
txubelaxu Mar 12, 2024
8f2219d
Update README.md
txubelaxu Mar 12, 2024
4372d9c
Update README.md
txubelaxu Mar 12, 2024
90347f5
+4 temperature sensor info added
txubelaxu Mar 13, 2024
09a3c37
changed example device name to: esp-rs485-gw
txubelaxu Mar 13, 2024
c8fd40c
+capacity remainint units corrected
txubelaxu Mar 13, 2024
8eb06c7
Update README.md
txubelaxu Mar 13, 2024
aa34b04
added Home Assistant Dashboards
txubelaxu Mar 13, 2024
c3b0fe7
Merge branch 'main' of github.com:txubelaxu/esphome-jk-bms
txubelaxu Mar 13, 2024
813fc82
added 2 examples of 1maste/6slaves and 1master/1slave
txubelaxu Mar 13, 2024
07b3a9e
Published README.md in jk_rs485_sniffer as well
txubelaxu Mar 14, 2024
47ff69e
changed scheme a bit
txubelaxu Mar 14, 2024
95e79a9
changed scheme a bit
txubelaxu Mar 14, 2024
20c62d6
Update README.md
txubelaxu Mar 14, 2024
a0d70af
Update README.md
txubelaxu Mar 14, 2024
0914ae5
Update README.md
txubelaxu Mar 14, 2024
c3f0766
Update README.md
txubelaxu Mar 14, 2024
c440d64
A bug corrected. Buffer management changed. jk_bms_ble returned to or…
txubelaxu Mar 17, 2024
35f2810
Merge branch 'main' of github.com:txubelaxu/esphome-jk-bms
txubelaxu Mar 17, 2024
c8e9fd3
Update README.md with new schematics (by @denveronly)
txubelaxu Mar 17, 2024
38a212a
Actualizar README.md
txubelaxu Mar 17, 2024
0f19110
More parameters and home assitant dashboard changed as well to includ…
txubelaxu Mar 18, 2024
f46a326
this file changed as well
txubelaxu Mar 18, 2024
7fec2e9
changed examples to external_components_source: github://txubelaxu/…
txubelaxu Mar 18, 2024
70fbc6c
removed some debug info
txubelaxu Mar 18, 2024
4f51502
Update README.md
txubelaxu Mar 18, 2024
c6135ff
Update README.md
txubelaxu Mar 18, 2024
59b0d26
Update README.md
txubelaxu Mar 19, 2024
d8fae98
esp32-ble-battery_number_001.yaml example created and working
txubelaxu Mar 19, 2024
70acca8
Added smart_sleep_voltage parameter to rs485 and BLE components
txubelaxu Mar 19, 2024
2d69367
New params: SOC100 and SOC0 Voltage added to BLE component
txubelaxu Mar 19, 2024
3d65500
added RCV RFV to BLE component
txubelaxu Mar 19, 2024
92b4b3b
Display always on "switch" icon changed in BLE component
txubelaxu Mar 19, 2024
381bbf0
More parameters for BLE component: Temp3 & Temp4
txubelaxu Mar 19, 2024
547c4be
precharging, charging, discharging, balancing status (working status,…
txubelaxu Mar 19, 2024
84db259
a bug corrected (charging/discharging status)
txubelaxu Mar 19, 2024
592bcd1
balancing_sensor_ created. Binary_Sensor says if is working, and Sens…
txubelaxu Mar 19, 2024
dfa9234
charging float mode switch available in BLE and RS485 components
txubelaxu Mar 19, 2024
afac449
bug in a bit detected
txubelaxu Mar 19, 2024
00528b1
CFM charging float mode available in BLE and RS485 components
txubelaxu Mar 19, 2024
2ffd6a9
All switches available for BLE now.
txubelaxu Mar 19, 2024
857b01c
Created "home assistant dashboards" folder inside jk_bms_ble.
txubelaxu Mar 19, 2024
45e61de
All switches available (read only) in RS-485 component
txubelaxu Mar 20, 2024
b495a23
Some inprovements for rs485, new sensors: OVP, SLEEP VOLTAGE, OVPR, R…
txubelaxu Mar 20, 2024
a961110
+ ota on_begin disable ESP bluetooth
txubelaxu Mar 20, 2024
12e4606
rs485 new parameters:
txubelaxu Mar 20, 2024
2c6ff12
external_components changed to source
txubelaxu Mar 20, 2024
dae52fa
name change:
txubelaxu Mar 20, 2024
a56fb60
Update README.md
txubelaxu Mar 20, 2024
180e1be
text correction
txubelaxu Mar 20, 2024
3a49ac0
Added multiple alarm boolean sensors: BATTempSensor1Absent, BATTempSe…
txubelaxu Mar 21, 2024
28ec98f
Update README.md
txubelaxu Mar 21, 2024
0482fca
state vs value
txubelaxu Mar 21, 2024
b9ffafc
heating_current_sensor and heating_status_binary_sensor changed to an…
txubelaxu Mar 21, 2024
5b4bc6b
Merge branch 'main' of github.com:txubelaxu/esphome-jk-bms
txubelaxu Mar 21, 2024
4164fb9
new parames in config files
txubelaxu Mar 21, 2024
c7204b9
Added:
txubelaxu Mar 21, 2024
d36770a
a small bug, anyway cell rcv time, and cell rfv time are read correct…
txubelaxu Mar 21, 2024
e5d945d
debugging... is frame type >02 present in rs485 network sometimes?
txubelaxu Mar 21, 2024
538a9e8
debug
txubelaxu Mar 21, 2024
aaf79a6
Actualizar README.md
txubelaxu Mar 21, 2024
059ed06
BLE "cell RCV Time" & "cell RFV Time" bug corrected. Missing register…
txubelaxu Mar 21, 2024
d5ffc5d
Merge branch 'main' of github.com:txubelaxu/esphome-jk-bms
txubelaxu Mar 21, 2024
dba8fc3
+ balancing --> balancing_direction (charging,idle,discharging)
txubelaxu Mar 22, 2024
1fd4536
Attention: To avoid misinterpretations. It is a parameter that refers…
txubelaxu Mar 22, 2024
db977dd
commented "device info" from update
txubelaxu Mar 22, 2024
6d4b647
* Renaming (avoiding risky missunderstanding between cell or battery …
txubelaxu Mar 22, 2024
4b8d273
Update README.md
txubelaxu Mar 22, 2024
d1d3844
rs485 changes
txubelaxu Mar 22, 2024
961897d
Merge branch 'main' of github.com:txubelaxu/esphome-jk-bms
txubelaxu Mar 22, 2024
805de5d
label changed
txubelaxu Mar 22, 2024
fe45b4c
rs485 examples updated
txubelaxu Mar 22, 2024
9dd8ada
rs485 bug corrected obtaining status values
txubelaxu Mar 22, 2024
ed12ac0
LOGI to LOGV two lines
txubelaxu Mar 22, 2024
f8a2a37
Multiple params added to rs-485 component:
txubelaxu Mar 23, 2024
3d71cea
New params added to rs-485 bms component:
txubelaxu Mar 24, 2024
821f0dd
More params added to rs-485 component:
txubelaxu Mar 24, 2024
d86ae10
rs-485 some bugs corrected
txubelaxu Mar 24, 2024
8e42218
new dashboards for home assistant
txubelaxu Mar 27, 2024
62f111d
Update README.md
txubelaxu Mar 27, 2024
485fd36
Update README.md
txubelaxu Mar 27, 2024
7e426a3
reordered two params
txubelaxu Mar 27, 2024
c0eb1a8
corrected example config
txubelaxu Mar 27, 2024
5312c7a
BLE status of balancing corrected? (some new params added as well)
txubelaxu Mar 27, 2024
f050939
status_balancing possible firmware bug at address 169? (decode_jk02_c…
txubelaxu Mar 27, 2024
998fb3e
rs485 status_balancing possible firmware bug at address 169? (decode_…
txubelaxu Mar 27, 2024
ab876f8
Precharge working status posible bug corrected
txubelaxu Mar 27, 2024
1a20c5f
rs485 crc bug corrected
txubelaxu Mar 29, 2024
eb53d9b
crc bug corrected
txubelaxu Mar 29, 2024
66c5afe
* BLE:
txubelaxu Mar 31, 2024
fee91d0
HA dashboard updated
txubelaxu Mar 31, 2024
8a95a6c
trying to correct binary_output.h bug
txubelaxu Apr 1, 2024
df78dd9
output folder
txubelaxu Apr 1, 2024
67745fc
binary_output.h bug corrected
txubelaxu Apr 1, 2024
3dc9c6a
Changes to master mode (optional) and more dashboards
txubelaxu Apr 9, 2024
209e597
Actualizar README.md
txubelaxu Apr 9, 2024
7d3596d
Actualizar README.md
txubelaxu Apr 9, 2024
eb4a486
Actualizar README.md
txubelaxu Apr 9, 2024
92b792d
Actualizar README.md
txubelaxu Apr 9, 2024
0a23a43
Update README.md
txubelaxu Apr 9, 2024
9df7f4c
esp32-example-jkpb-rs485_1master_6slaves example updated
txubelaxu Apr 9, 2024
6d88e7c
Added SOH (State of Health). Dashboards updated as well.
txubelaxu Apr 10, 2024
6aa064f
minimal change to dashboard
txubelaxu Apr 10, 2024
95e8e17
small bug corrected in the dashboard
txubelaxu Apr 10, 2024
c51c3f4
dashboard changed again (minimal change)
txubelaxu Apr 10, 2024
402aeed
global info updated (number of online BMS vs number of total BMSs)
txubelaxu Apr 10, 2024
aa57785
+Corrected a temperature bug
txubelaxu Apr 10, 2024
0dd8914
HASS dashboard updated here
txubelaxu Apr 10, 2024
6a4af40
+SHORT_CIRCUIT_PROTECTION_RECOVERY_DELAY
txubelaxu Apr 12, 2024
891ee14
Update README.md
txubelaxu Jun 10, 2024
53f136b
Update README.md
txubelaxu Jun 11, 2024
2325770
moved talk_pin namespace from binary_output to talk_pin
txubelaxu Jun 12, 2024
a416ea8
DEVICE PWD (setup passcode) is gathered as well.
txubelaxu Jun 13, 2024
a6e7831
Checking another settings parameter
txubelaxu Jun 14, 2024
ad1c9f2
changed update_intervale to 180s
txubelaxu Jun 15, 2024
d640e6a
Bug corrected: converting from uint32 to float. Sometimes esp32 reboo…
txubelaxu Jun 16, 2024
1a93af6
more convertions corrected (int32 to float & int16 to float)
txubelaxu Jun 16, 2024
8327649
bug finding... not resolved yet
txubelaxu Jun 17, 2024
7a9a909
recoded some uint32 to float and int32 to float functions
txubelaxu Jun 17, 2024
96c58dd
debugging
txubelaxu Jun 19, 2024
44d1c33
buggly behaveour whith this->disable_pcl_module_switch_ pointer addre…
txubelaxu Jun 19, 2024
08cfb09
Corrected a bug about false presence of JK BMS master when all of th…
txubelaxu Jun 19, 2024
b795951
dashboard updated showing BT pass and settings pass
txubelaxu Jun 19, 2024
a6b1fef
debugging disable_pcl_module_switch_
txubelaxu Jun 20, 2024
c2360c2
debugging switch_::Switch issue
txubelaxu Jun 23, 2024
7362313
debugg "Object changes its nullptr"
txubelaxu Jun 24, 2024
b26b432
debugging again
txubelaxu Jun 25, 2024
233e888
Switch pointer address change bug - corrected (to verify)
txubelaxu Jun 25, 2024
694b459
bug corrected and some improvements
txubelaxu Jun 26, 2024
fe90cad
Changed frequencies:
txubelaxu Jun 26, 2024
802002c
some performance inproements,
txubelaxu Jun 27, 2024
4b2cdb8
correction in yaml
txubelaxu Jun 27, 2024
f9f2d88
yaml corrected
txubelaxu Jun 27, 2024
3d1895b
New improvement and a v14 vs v15 comparation pdf
txubelaxu Jun 28, 2024
e43d65e
uptime text with 2 digits and small correction
txubelaxu Jul 1, 2024
067c7d8
small change in an example
txubelaxu Jul 1, 2024
9f82653
uploaded a Home Assistant Dashboard
txubelaxu Jul 1, 2024
834d0af
Testing 0 master and 7 slaves yaml
txubelaxu Jul 22, 2024
caddaf1
Charge/Discharge/Balancing Switches in read & WRITE mode
txubelaxu Aug 4, 2024
c5f6216
talk_pin moved to "OPTIONAL" for converters that do not have this pin
txubelaxu Aug 4, 2024
295a8f4
Update README.md
txubelaxu Aug 4, 2024
c26f610
Update README.md
txubelaxu Aug 4, 2024
6d1a1bb
Update README.md
txubelaxu Aug 4, 2024
7d61609
10 "grouped" switches now are READ AND WRITE:
txubelaxu Aug 5, 2024
3b1ae04
restored some original files (ble, heltec)
txubelaxu Aug 6, 2024
2a13aaa
increasing the "MAX_NO_RESPONSE_COUNT" before setting a BMS to unavai…
txubelaxu Aug 6, 2024
99541c4
more Verbose log to investigate "Object changes its nullptr" bug
txubelaxu Aug 6, 2024
7949b41
more Verbose log to investigate "Object changes its nullptr" bug
txubelaxu Aug 6, 2024
427b710
change to investigate "Object changes its nullptr" bug
txubelaxu Aug 6, 2024
a6a5490
change to investigate "Object changes its pointer" bug
txubelaxu Aug 6, 2024
e467cdf
increased the device-settings asking-period: from 5s to 10s
txubelaxu Aug 7, 2024
43d429f
Changeable params converted from sensor into NUMBER:
txubelaxu Aug 8, 2024
368f436
Update README.md
txubelaxu Aug 8, 2024
e3c8ee9
Update README.md
txubelaxu Aug 8, 2024
aad50fa
Update 0bms_master_and_2bms_slaves.yaml
txubelaxu Aug 8, 2024
57d7eef
Update README.md
txubelaxu Aug 8, 2024
5a3e534
RCV Time and RFV Time added (Read & Write)
txubelaxu Aug 9, 2024
8474cc2
Merge branch 'main' of https://github.com/txubelaxu/esphome-jk-bms
txubelaxu Aug 9, 2024
91e08dd
Update README.md
txubelaxu Aug 9, 2024
40d7006
period changed
txubelaxu Aug 9, 2024
a312ccc
changed again device info period to 3600000s, or when a change is sen…
txubelaxu Aug 11, 2024
932397d
Moved "broadcast_changes_to_all_BMS" to a NEW switch.
txubelaxu Aug 12, 2024
628bd9d
updated HA dashboard/panel
txubelaxu Aug 12, 2024
4b79840
Update esp32-S3-example-jkpb-rs485_0master_2slaves.yaml
txubelaxu Aug 12, 2024
d4d8d72
dashboard small change
txubelaxu Aug 28, 2024
5c5330c
Renewed S3 - 0master_7slaves.yaml example
txubelaxu Sep 3, 2024
0726f84
More examples available
txubelaxu Sep 3, 2024
abdd242
corrected an small bug in "VERBOSE" log level
txubelaxu Sep 8, 2024
cb1e92f
avoiding "Object is nullptr" false errors with "minimal" config
txubelaxu Nov 7, 2024
ba43c5a
mistery not resolved: what happens with voltage of cell number 3 (i=2…
txubelaxu Nov 7, 2024
9186ee4
"3th cell in 0x01 address BMS" voltage problem avoided, inserting a 4…
txubelaxu Nov 10, 2024
ae6b257
All HA Dashboards unified in one
txubelaxu Nov 10, 2024
6f2b448
sniffer time settings updated to previous version values
txubelaxu Nov 12, 2024
4913859
BOOT TIME: changed the mode that BMS signals "online" and priorized s…
txubelaxu Nov 15, 2024
c5db5ce
changing MAX_NO_RESPONSE_COUNT from 100 to 10. This way, only 30s nee…
txubelaxu Nov 16, 2024
c2a62c3
Solved a issue in the log (https://github.com/txubelaxu/esphome-jk-bm…
txubelaxu Nov 19, 2024
2c6b01d
Previous change corrected %lu --> %u
txubelaxu Nov 19, 2024
e5855b5
uint16_to_float and int16_to_float function intermediate type changed…
txubelaxu Nov 22, 2024
2bc35d6
cell_count_real issue solved
txubelaxu Jan 9, 2025
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
37 changes: 27 additions & 10 deletions components/jk_bms_ble/jk_bms_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,11 @@ void JkBmsBle::decode_jk04_cell_info_(const std::vector<uint8_t> &data) {
this->publish_state_(this->total_runtime_sensor_, (float) jk_get_32bit(286));
this->publish_state_(this->total_runtime_formatted_text_sensor_, format_total_runtime_(jk_get_32bit(286)));

// 290 4 0x00 0x00 0x00 0x00 Unknown290
// 290 1 0x00 Unknown290
// 291 1 0x00 ** [JK-PB2A16S-20P v14] CHARGE IS WORKING
// 292 1 0x00 ** [JK-PB2A16S-20P v14] DISCHARGE IS WORKING
// 293 1 0x00 ** [JK-PB2A16S-20P v14] PREDISCHARGE IS WORKING (?)
// 294 1 0x00 ** [JK-PB2A16S-20P v14] BALANCE IS WORKING (?)
ESP_LOGD(TAG, "Unknown290: 0x%02X 0x%02X 0x%02X 0x%02X (always 0x00 0x00 0x00 0x00?)", data[290], data[291],
data[292], data[293]);

Expand Down Expand Up @@ -794,13 +798,13 @@ void JkBmsBle::decode_jk02_settings_(const std::vector<uint8_t> &data) {
// 0 4 0x55 0xAA 0xEB 0x90 Header
// 4 1 0x01 Frame type
// 5 1 0x4F Frame counter
// 6 4 0x58 0x02 0x00 0x00 Unknown6
// 6 4 0x58 0x02 0x00 0x00 ** [JK-PB2A16S-20P v14] VOLTAGE SMART SLEEP
ESP_LOGD(TAG, " Unknown6: %f", (float) jk_get_32bit(6) * 0.001f);
// 10 4 0x54 0x0B 0x00 0x00 Cell UVP
ESP_LOGI(TAG, " Cell UVP: %f V", (float) jk_get_32bit(10) * 0.001f);
this->publish_state_(this->cell_voltage_undervoltage_protection_number_, (float) jk_get_32bit(10) * 0.001f);

// 14 4 0x80 0x0C 0x00 0x00 Cell OVP Recovery
// 14 4 0x80 0x0C 0x00 0x00 Cell UVP Recovery
ESP_LOGI(TAG, " Cell UVPR: %f V", (float) jk_get_32bit(14) * 0.001f);
this->publish_state_(this->cell_voltage_undervoltage_recovery_number_, (float) jk_get_32bit(14) * 0.001f);

Expand All @@ -816,10 +820,10 @@ void JkBmsBle::decode_jk02_settings_(const std::vector<uint8_t> &data) {
ESP_LOGI(TAG, " Balance trigger voltage: %f V", (float) jk_get_32bit(26) * 0.001f);
this->publish_state_(this->balance_trigger_voltage_number_, (float) jk_get_32bit(26) * 0.001f);

// 30 4 0x00 0x00 0x00 0x00 Unknown30
// 34 4 0x00 0x00 0x00 0x00 Unknown34
// 38 4 0x00 0x00 0x00 0x00 Unknown38
// 42 4 0x00 0x00 0x00 0x00 Unknown42
// 30 4 0x00 0x00 0x00 0x00 ** [JK-PB2A16S-20P v14] SOC-100% VOLTAGE
// 34 4 0x00 0x00 0x00 0x00 ** [JK-PB2A16S-20P v14] SOC-0% VOLTAGE
// 38 4 0x00 0x00 0x00 0x00 ** [JK-PB2A16S-20P v14] VOLTAGE CELL REQUEST CHARGE VOLTAGE
// 42 4 0x00 0x00 0x00 0x00 ** [JK-PB2A16S-20P v14] VOLTAGE CELL REQUEST FLOAT VOLTAGE
// 46 4 0xF0 0x0A 0x00 0x00 Power off voltage
ESP_LOGI(TAG, " Power off voltage: %f V", (float) jk_get_32bit(46) * 0.001f);
this->publish_state_(this->power_off_voltage_number_, (float) jk_get_32bit(46) * 0.001f);
Expand All @@ -830,15 +834,15 @@ void JkBmsBle::decode_jk02_settings_(const std::vector<uint8_t> &data) {

// 54 4 0x1E 0x00 0x00 0x00 Charge OCP delay
ESP_LOGI(TAG, " Charge OCP delay: %f s", (float) jk_get_32bit(54));
// 58 4 0x3C 0x00 0x00 0x00 Charge OCP recovery delay
// 58 4 0x3C 0x00 0x00 0x00 Charge OCP recovery time
ESP_LOGI(TAG, " Charge OCP recovery delay: %f s", (float) jk_get_32bit(58));
// 62 4 0xF0 0x49 0x02 0x00 Max. discharge current
ESP_LOGI(TAG, " Max. discharge current: %f A", (float) jk_get_32bit(62) * 0.001f);
this->publish_state_(this->max_discharge_current_number_, (float) jk_get_32bit(62) * 0.001f);

// 66 4 0x2C 0x01 0x00 0x00 Discharge OCP delay
ESP_LOGI(TAG, " Discharge OCP recovery delay: %f s", (float) jk_get_32bit(66));
// 70 4 0x3C 0x00 0x00 0x00 Discharge OCP recovery delay
// 70 4 0x3C 0x00 0x00 0x00 Discharge OCP recovery time
ESP_LOGI(TAG, " Discharge OCP recovery delay: %f s", (float) jk_get_32bit(70));
// 74 4 0x3C 0x00 0x00 0x00 SCPR time
ESP_LOGI(TAG, " SCP recovery time: %f s", (float) jk_get_32bit(74));
Expand Down Expand Up @@ -929,13 +933,26 @@ void JkBmsBle::decode_jk02_settings_(const std::vector<uint8_t> &data) {
// 274 4 0x00 0x00 0x00 0x00
// 278 4 0x00 0x00 0x00 0x00
// 282 1 0x00 New controls bitmask
// ** [JK-PB2A16S-20P v14]
// bit0: HEATING_SWITCH_ENABLED
// bit1: DISABLE_TEMP_SENSOR_SWITCH_ENABLED
// bit2: ?
// bit3: ?
// bit4: DISPLAY_ALWAYS_ON_SWITCH_ENABLED
// bit5: ?
// bit6: SMART_SLEEP_ON_SWITCH_ENABLED
// bit7: DISABLE_PCL_MODULE_SWITCH_ENABLED
this->publish_state_(this->heating_switch_, check_bit_(data[282], 1));
ESP_LOGI(TAG, " heating switch: %s", ((bool) check_bit_(data[282], 1)) ? "on" : "off");
this->publish_state_(this->disable_temperature_sensors_switch_, check_bit_(data[282], 2));
this->publish_state_(this->display_always_on_switch_, check_bit_(data[282], 16));
ESP_LOGI(TAG, " Port switch: %s", check_bit_(data[282], 8) ? "RS485" : "CAN");

// 283 3 0x00 0x00 0x00
// 283 1 0x00
// ** [JK-PB2A16S-20P v14]
// bit0: TIME_STORED_DATA_SWITCH_ENABLED
// bit1: CHARGING_FLOAT_MODE_SWITCH_ENABLED
// 284 2 0X00 0X00
// 286 4 0x00 0x00 0x00 0x00
// 290 4 0x00 0x00 0x00 0x00
// 294 4 0x00 0x00 0x00 0x00
Expand Down
95 changes: 95 additions & 0 deletions scripts/20240225_122638.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
0f10162000010200009a91
55aaeb900200130d120d120d110d110d110d110d110d110d110d110d110d110d110d110d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000110d02000005530050004f004a004d004b004d004d0053004e004d004a004c004d00520051000000000000000000000000000000000000000000000000000000000000000000dd000000000017d100000000000000000000c400cb000000000000000062fd8d040080a3040000000000601d0000640000008505490001010000000000000000000000000000ff00010000009a030000000060543f4000000000e81400000001010100060000554d960100000000dd00c500cc009a031ba228007f0000008051010000000000000000000000000000feff7fdd2f0101b00700000016001016200001059a
55aaeb900100ac0d0000280a00005a0a0000240e0000780d000005000000790d0000500a00007a0d0000160d0000c409000050c30000030000003c000000102700002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000060e3160010023c3218feffffffbfe9010200000000f50010161e00016456
011016200001020000d6f1
021016200001020000c201
031016200001020000cf91
041016200001020000e9a1
051016200001020000e431
061016200001020000f0c1
071016200001020000fd51
55aaeb900205150d120d120d120d110d120d120d120d120d120d120d120d120d120d120d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000120d030000094d004b004d004b004d004a004c0049004c004b004e004c0050004e0050004e000000000000000000000000000000000000000000000000000000000000000000ce000000000022d100000000000000000000bd00c5000000000000000062fd8d040080a30400000000008c1500006400000086812b0001010000000000000000000000000000ff00010000009303000000000bc23f4000000000e914000000010101000600002d44960100000000ce00bd00bf008d032ba12800340000008051010000000000000000000000000000feff7fdd2f0101b007000000fc
071016200001042d
0710161e0001020000f98f
55aaeb900105ac0d0000280a00005a0a00001a0e0000780d000005000000790d0000500a00007a0d0000160d0000c4090000a8610000030000003c000000400d03002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000500000060e3160010023c3218feffffffbfe901020000000006
0710161e000165e1
081016200001020000bca1
091016200001020000b131
0a1016200001020000a5c1
0b1016200001020000a851
0c10162000010200008e61
0d101620000102000083f1
0e10162000010200009701
0f10162000010200009a91
55aaeb900200130d120d120d120d120d110d110d110d110d110d110d110d110d110d110d100d0000000000000000000000000000000000000000000000000000000000000000ffff0000110d04000003530050004f004a004d004b004d004d0053004e004d004a004c004d00520051000000000000000000000000000000000000000000000000000000000000000000dd000000000015d100000000000000000000c400cb000000000000000062fc8d040080a3040000000000601d0000640000008c05490001010000000000000000000000000000ff00010000009a030000000060543f4000000000e814000000010101000600009d4d960100000000dd00c500cc009a0322a228007f0000008051010000000000000000000000000000feff7fdd2f0101b0070000006a001016200001059a
55aaeb900100ac0d0000280a00005a0a0000240e0000780d000005000000790d0000500a00007a0d0000160d0000c409000050c30000030000003c000000102700002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000060e3160010023c3218feffffffbfe9010200000000f50010161e00016456
011016200001020000d6f1
021016200001020000c201
031016200001020000cf91
041016200001020000e9a1
051016200001020000e431
061016200001020000f0c1
071016200001020000fd51
55aaeb900205150d120d120d120d120d120d120d120d120d120d120d120d120d110d120d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000120d0400000d4d004b004d004b004d004a004c0049004c004b004e004c0050004e0050004e000000000000000000000000000000000000000000000000000000000000000000ce000000000023d100000000000000000000bd00c5000000000000000062fd8d040080a30400000000008c150000640000008e812b0001010000000000000000000000000000ff00010000009303000000000bc23f4000000000e914000000010101000600007544960100000000ce00bd00bf008d0333a12800340000008051010000000000000000000000000000feff7fdd2f0101b0070000005a
071016200001042d
0710161e0001020000f98f
55aaeb900105ac0d0000280a00005a0a00001a0e0000780d000005000000790d0000500a00007a0d0000160d0000c4090000a8610000030000003c000000400d03002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000500000060e3160010023c3218feffffffbfe901020000000006
0710161e000165e1
081016200001020000bca1
091016200001020000b131
0a1016200001020000a5c1
0b1016200001020000a851
0c10162000010200008e61
0d101620000102000083f1
0e10162000010200009701
0f10162000010200009a91
55aaeb900200150d120d120d120d110d120d110d110d110d110d120d110d110d110d110d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000110d0500000b530050004f004a004d004b004d004d0053004e004d004a004c004d00520051000000000000000000000000000000000000000000000000000000000000000000dd000000000016d100000000000000000000c400cb000000000000000062fc8d040080a3040000000000601d0000640000009305490001010000000000000000000000000000ff00010000009a030000000060543f4000000000e81400000001010100060000e54d960100000000dd00c500cc009a0329a228007f0000008051010000000000000000000000000000feff7fdd2f0101b007000000ce001016200001059a
55aaeb900100ac0d0000280a00005a0a0000240e0000780d000005000000790d0000500a00007a0d0000160d0000c409000050c30000030000003c000000102700002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000060e3160010023c3218feffffffbfe9010200000000f50010161e00016456
011016200001020000d6f1
021016200001020000c201
031016200001020000cf91
041016200001020000e9a1
051016200001020000e431
061016200001020000f0c1
071016200001020000fd51
55aaeb900205140d120d120d120d120d120d120d120d120d120d110d120d120d110d120d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000120d040000044d004b004d004b004d004a004c0049004c004b004e004c0050004e0050004e000000000000000000000000000000000000000000000000000000000000000000ce000000000024d100000000000000000000bd00c6000000000000000062fd8d040080a30400000000008c1500006400000095812b0001010000000000000000000000000000ff00010000009303000000000bc23f4000000000ea1400000001010100060000bd44960100000000ce00bd00bf008d033aa12800340000008051010000000000000000000000000000feff7fdd2f0101b007000000a8
071016200001042d
0710161e0001020000f98f
55aaeb900105ac0d0000280a00005a0a00001a0e0000780d000005000000790d0000500a00007a0d0000160d0000c4090000a8610000030000003c000000400d03002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000500000060e3160010023c3218feffffffbfe901020000000006
0710161e000165e1
081016200001020000bca1
091016200001020000b131
0a1016200001020000a5c1
0b1016200001020000a851
0c10162000010200008e61
0d101620000102000083f1
0e10162000010200009701
0f10162000010200009a91
55aaeb900200130d120d120d110d120d110d110d110d110d110d110d110d110d110d110d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000110d0300000f530050004f004a004d004b004d004d0053004e004d004a004c004d00520051000000000000000000000000000000000000000000000000000000000000000000dd000000000016d100000000000000000000c400cb000000000000000062fc8d040080a3040000000000601d0000640000009a05490001010000000000000000000000000000ff00010000009a030000000060543f4000000000e814000000010101000600002d4e960100000000dd00c500cc009a0330a228007f0000008051010000000000000000000000000000feff7fdd2f0101b00700000023001016200001059a
55aaeb900100ac0d0000280a00005a0a0000240e0000780d000005000000790d0000500a00007a0d0000160d0000c409000050c30000030000003c000000102700002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000060e3160010023c3218feffffffbfe9010200000000f50010161e00016456
011016200001020000d6f1
021016200001020000c201
031016200001020000cf91
041016200001020000e9a1
051016200001020000e431
061016200001020000f0c1
071016200001020000fd51
55aaeb900205150d120d110d120d120d120d120d110d120d120d120d120d120d120d120d110d0000000000000000000000000000000000000000000000000000000000000000ffff0000120d0400000e4d004b004d004b004d004a004c0049004c004b004e004c0050004e0050004e000000000000000000000000000000000000000000000000000000000000000000ce000000000022d100000000000000000000bd00c5000000000000000062fd8d040080a30400000000008c150000640000009c812b0001010000000000000000000000000000ff00010000009303000000000bc23f4000000000e914000000010101000600000545960100000000ce00bd00bf008d0341a12800340000008051010000000000000000000000000000feff7fdd2f0101b00700000006
071016200001042d
0710161e0001020000f98f
55aaeb900105ac0d0000280a00005a0a00001a0e0000780d000005000000790d0000500a00007a0d0000160d0000c4090000a8610000030000003c000000400d03002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000500000060e3160010023c3218feffffffbfe901020000000006
0710161e000165e1
081016200001020000bca1
091016200001020000b131
0a1016200001020000a5c1
0b1016200001020000a851
0c10162000010200008e61
0d101620000102000083f1
0e10162000010200009701
0f10162000010200009a91
55aaeb900200130d120d120d110d120d110d110d110d110d110d110d110d110d120d110d100d0000000000000000000000000000000000000000000000000000000000000000ffff0000110d04000004530050004f004a004d004b004d004d0053004e004d004a004c004d00520051000000000000000000000000000000000000000000000000000000000000000000dd000000000016d100000000000000000000c400cb000000000000000062fc8d040080a3040000000000601d000064000000a205490001010000000000000000000000000000ff00010000009a030000000060543f4000000000e81400000001010100060000754e960100000000dd00c500cc009a0338a228007f0000008051010000000000000000000000000000feff7fdd2f0101b00700000071001016200001059a
55aaeb900100ac0d0000280a00005a0a0000240e0000780d000005000000790d0000500a00007a0d0000160d0000c409000050c30000030000003c000000102700002c0100003c00000005000000d0070000bc02000058020000bc0200005802000038ffffff9cffffffe8030000200300001000000001000000010000000100000080a30400dc0500007a0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000060e3160010023c3218feffffffbfe9010200000000f50010161e00016456
011016200001020000d6f1
021016200001020000c201
031016200001020000cf91
041016200001020000e9a1
Loading