patman15 / BMS_BLE-HA

This integration allows to monitor Bluetooth Low Energy (BLE) battery management systems (BMS) from within Home Assistant.
GNU Lesser General Public License v2.1
6 stars 2 forks source link

some minor things missing on type A #2

Closed gkathan closed 3 months ago

gkathan commented 3 months ago

hi sir,

I gave it a final look and detected following issues here in my setup (type-A battery)

1) two values are always "0" (Current and Power) - it looks like "Current" matches what I see in the offgridtec app (see screenshot), "Power" is not shown in the app ... but should also not be zero

2) very important (at least for me) is to see (as displayed in the app) that the battery is either "charging", "discharging" or "idling" => but I suspect that this is just a calculated value derived from simple rule to check whether "Current" is positive, negative or zero value => but would be nice to gave that as an entity too in the integration

3) the switching between using your integration and the offgridtec is currently also a bit quirky => tested to disable the integration => this worked after some time (30 min) that the offgridtec app again could connect BUT from then on it was no longer possible to re-enable succesfully the integration => it just showed "unavailable error" => only removing the device and the integration and re-adding the integration cured the situation

OK thats it from my side - i hope we can fix these last glitches => then it will be perfect and maybe even point 3) is irrelevant as all relevant data is provided by HA

cheerz greetings from vienna

ble_offgridtec

Screenshot_20230916-070415-EDIT

patman15 commented 3 months ago

Hi!

I gave it a final look and detected following issues here in my setup (type-A battery)

Thanks a lot!

1. two values are always "0" (Current and Power)

This should be fixed in version 1.0.1. Need to dig deeper into the topic, but it should work now. Thanks for spotting this!

2. very important (at least for me) is to see (as displayed in the app) that the battery is either "charging", "discharging" or "idling" => but I suspect that this is just a calculated value derived from simple rule to check whether "Current" is positive, negative or zero value => but would be nice to gave that as an entity too in the integration

Yes, the app just goes with the current. I could add a binary sensor battery_charging which is foreseen by HA. Is that what you would be looking for? (This would not cover the state idle though.)

3. the switching between using your integration and the offgridtec is currently also a bit quirky

True, did not think of this as a real use-case ... Anyway, to switch from the app to the integration, you need to click Scanning on the right top of the app and confirm to close the bluetooth connection. If you just close the app it still blocks the connection to the BMS and the integration cannot read values. The other way round I need to dig much deeper, as I have not seen how HA cleans up connections on deactivation actively.

gkathan commented 3 months ago

hej, just updated to 1.01 - to be 100% sure the updated version is actually used I even removed the device and re-added the integration which found the battery immediatly ...

ad 1) this still shows zero at "Current" and "Power" but there is a router + raspi4 running in my van eating around 0,6A constantly - which i can see that the SOC percentage slooowly is going down (so in general it seems to work) - again - do you have a type-A battery to test your code ? or shall I jump into this role ;-) what I anyhow already do :-)

ad 2) yez - should not be a big deal to add this binary sensor ... would appreciate it

ad 3) agree this sounds a bit more complicated especially if connection handling and termination seems to be quite vague :-)

thanx & cheerz

Screenshot 2024-04-01 222347
patman15 commented 3 months ago

Ah, one thing, did you reboot HA? Updates via HACS require that ... ad 1) weired, I tested it with my battery and also with my emulated A type battery. Could you please enable debug mode, ensure there is some current (in or out) and send attach the log? (If you leave debug on for some minutes and then disable it, HA will automatically offer you the download.) Log would be great as next step for analysis. Thanks.

gkathan commented 3 months ago

good morning,

gkathan commented 3 months ago

just one more information:

patman15 commented 3 months ago

Morning! Please provide me a debug log (see my previous message on how to do it), so I can check what's happening! Thanks!

gkathan commented 3 months ago

should also be attached in my previous GitHub comment ... but here again :-)

gerold kathan :: +43 699 1973536

On Tue, Apr 2, 2024, 07:07 Patrick @.***> wrote:

Morning! Please provide me a debug log (see my previous message on how to do it), so I can check what's happening! Thanks!

β€” Reply to this email directly, view it on GitHub https://github.com/patman15/BLE_BMS-HA/issues/2#issuecomment-2031091669, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJLVXSFFZR7MOU4RAURUDY3I4KNAVCNFSM6AAAAABFRXJ45CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGA4TCNRWHE . You are receiving this because you authored the thread.Message ID: @.***>

2024-04-02 06:22:29.888 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration bms_ble which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-02 06:22:29.891 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration victron_ble which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-02 06:22:29.894 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-02 06:23:00.454 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError' 2024-04-02 06:23:01.247 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 127.0.0.1:28765 ssl:default [Connect call failed ('127.0.0.1', 28765)] 2024-04-02 06:23:02.706 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-04-02 06:23:35.331 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 127.0.0.1:28765 ssl:default [Connect call failed ('127.0.0.1', 28765)] 2024-04-02 06:23:45.591 WARNING (MainThread) [motioneye_client.client] Connection failed to motionEye: Cannot connect to host 127.0.0.1:28765 ssl:default [Connect call failed ('127.0.0.1', 28765)] 2024-04-02 06:24:05.046 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for hamburgesp @ 192.168.1.199: Timeout while connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.199', port=6053))] (TimeoutAPIError) 2024-04-02 06:25:11.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:25:11.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:25:11.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:25:11.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:25:12.053 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:25:12.054 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:25:12.054 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:25:12.055 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:25:12.055 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:25:12.253 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"W!!%T\x18\x1f') 2024-04-02 06:25:12.254 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,047B440A 2024-04-02 06:25:12.254 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175310, value: 175.31 2024-04-02 06:25:12.255 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:25:12.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:25:12.553 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:25:12.554 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:25:12.554 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:25:12.555 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:25:12.555 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:25:12.753 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:25:12.754 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:25:12.754 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:25:12.755 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:25:12.755 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:25:12.953 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:25:12.954 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:25:12.954 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:25:12.955 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:25:12.955 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:25:13.153 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-S \'$\x18\x1f") 2024-04-02 06:25:13.153 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,18F521 2024-04-02 06:25:13.153 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8693, value: 521580 2024-04-02 06:25:13.154 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:25:13.154 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:25:13.353 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:25:13.354 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:25:13.354 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:25:13.355 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2330.22052, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 521580, 'cycles': 8, 'power': 0.0} 2024-04-02 06:25:13.356 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.497 seconds (success: True) 2024-04-02 06:25:42.859 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:25:42.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:25:42.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:25:42.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:25:43.154 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:25:43.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:25:43.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:25:43.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:25:43.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:25:43.354 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"T!!%T\x18\x1f') 2024-04-02 06:25:43.355 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,047A440A 2024-04-02 06:25:43.355 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175300, value: 175.3 2024-04-02 06:25:43.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:25:43.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:25:43.554 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:25:43.555 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:25:43.555 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:25:43.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:25:43.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:25:43.754 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:25:43.755 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:25:43.755 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:25:43.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:25:43.757 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:25:43.955 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:25:43.955 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:25:43.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:25:43.957 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:25:43.958 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:25:44.154 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-&Q\'\'\x18\x1f") 2024-04-02 06:25:44.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,183D22 2024-04-02 06:25:44.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8765, value: 525900 2024-04-02 06:25:44.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:25:44.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:25:44.454 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:25:44.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:25:44.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:25:44.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2330.0876, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 525900, 'cycles': 8, 'power': 0.0} 2024-04-02 06:25:44.457 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.598 seconds (success: True) 2024-04-02 06:26:13.859 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:26:13.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:26:13.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:26:13.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:26:14.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:26:14.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:26:14.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:26:14.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:26:14.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:26:14.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!",!!%T\x18\x1f') 2024-04-02 06:26:14.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0479440A 2024-04-02 06:26:14.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175290, value: 175.29 2024-04-02 06:26:14.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:26:14.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:26:14.655 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:26:14.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:26:14.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:26:14.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:26:14.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:26:14.855 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:26:14.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:26:14.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:26:14.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:26:14.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:26:15.055 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:26:15.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:26:15.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:26:15.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:26:15.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:26:15.255 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-&Q\'\'\x18\x1f") 2024-04-02 06:26:15.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,183D22 2024-04-02 06:26:15.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8765, value: 525900 2024-04-02 06:26:15.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:26:15.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:26:15.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:26:15.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:26:15.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:26:15.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.95468, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 525900, 'cycles': 8, 'power': 0.0} 2024-04-02 06:26:15.457 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.598 seconds (success: True) 2024-04-02 06:26:44.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:26:44.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:26:44.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:26:44.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:26:45.055 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:26:45.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:26:45.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:26:45.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:26:45.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:26:45.255 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"-!!%T\x18\x1f') 2024-04-02 06:26:45.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0478440A 2024-04-02 06:26:45.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175280, value: 175.28 2024-04-02 06:26:45.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:26:45.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:26:45.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:26:45.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:26:45.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:26:45.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:26:45.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:26:45.655 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:26:45.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:26:45.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:26:45.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:26:45.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:26:45.855 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:26:45.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:26:45.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:26:45.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:26:45.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:26:46.055 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-&V\'\'\x18\x1f") 2024-04-02 06:26:46.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,183C22 2024-04-02 06:26:46.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8764, value: 525840 2024-04-02 06:26:46.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:26:46.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:26:46.255 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:26:46.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:26:46.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:26:46.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.82176, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 525840, 'cycles': 8, 'power': 0.0} 2024-04-02 06:26:46.258 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.398 seconds (success: True) 2024-04-02 06:27:15.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:27:15.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:27:15.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:27:15.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:27:16.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:27:16.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:27:16.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:27:16.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:27:16.158 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:27:16.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!""!!%T\x18\x1f') 2024-04-02 06:27:16.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0477440A 2024-04-02 06:27:16.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175270, value: 175.27 2024-04-02 06:27:16.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:27:16.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:27:16.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:27:16.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:27:16.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:27:16.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:27:16.658 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:27:16.855 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:27:16.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:27:16.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:27:16.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:27:16.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:27:17.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%- SS%%\x18\x1f') 2024-04-02 06:27:17.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1085FF00 2024-04-02 06:27:17.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:27:17.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:27:17.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:27:17.255 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-- \'\'\x18\x1f") 2024-04-02 06:27:17.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,188522 2024-04-02 06:27:17.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8837, value: 530220 2024-04-02 06:27:17.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:27:17.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:27:17.455 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:27:17.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:27:17.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:27:17.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.68884, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 530220, 'cycles': 8, 'power': 0.0} 2024-04-02 06:27:17.457 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.597 seconds (success: True) 2024-04-02 06:27:46.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:27:46.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:27:46.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:27:46.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:27:47.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:27:47.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:27:47.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:27:47.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:27:47.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:27:47.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"#!!%T\x18\x1f') 2024-04-02 06:27:47.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0476440A 2024-04-02 06:27:47.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175260, value: 175.26 2024-04-02 06:27:47.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:27:47.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:27:47.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:27:47.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:27:47.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:27:47.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:27:47.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:27:47.755 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:27:47.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:27:47.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:27:47.757 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:27:47.757 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:27:47.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:27:47.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:27:47.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:27:47.957 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:27:47.957 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:27:48.255 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-- \'\'\x18\x1f") 2024-04-02 06:27:48.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,188522 2024-04-02 06:27:48.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8837, value: 530220 2024-04-02 06:27:48.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:27:48.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:27:48.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:27:48.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:27:48.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:27:48.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.55592, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 530220, 'cycles': 8, 'power': 0.0} 2024-04-02 06:27:48.458 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.599 seconds (success: True) 2024-04-02 06:28:17.861 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:28:17.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:28:17.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:28:17.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:28:18.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:28:18.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:28:18.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:28:18.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:28:18.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:28:18.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!" !!%T\x18\x1f') 2024-04-02 06:28:18.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0475440A 2024-04-02 06:28:18.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175250, value: 175.25 2024-04-02 06:28:18.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:28:18.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:28:18.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:28:18.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:28:18.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:28:18.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:28:18.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:28:18.755 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:28:18.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:28:18.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:28:18.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:28:18.757 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:28:18.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%-WSS%%\x18\x1f') 2024-04-02 06:28:18.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,108BFF00 2024-04-02 06:28:18.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:28:18.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:28:18.957 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:28:19.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$--!\'\'\x18\x1f") 2024-04-02 06:28:19.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,188422 2024-04-02 06:28:19.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8836, value: 530160 2024-04-02 06:28:19.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:28:19.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:28:19.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:28:19.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:28:19.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:28:19.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.423, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 530160, 'cycles': 8, 'power': 0.0} 2024-04-02 06:28:19.357 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.497 seconds (success: True) 2024-04-02 06:28:48.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:28:48.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:28:48.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:28:48.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:28:49.155 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:28:49.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:28:49.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:28:49.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:28:49.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:28:49.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"!!!%T\x18\x1f') 2024-04-02 06:28:49.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0474440A 2024-04-02 06:28:49.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175240, value: 175.24 2024-04-02 06:28:49.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:28:49.358 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:28:49.555 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:28:49.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:28:49.556 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:28:49.559 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:28:49.559 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:28:49.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:28:49.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:28:49.756 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:28:49.757 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:28:49.757 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:28:49.955 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:28:49.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:28:49.956 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:28:49.957 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:28:49.957 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:28:50.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$--!\'\'\x18\x1f") 2024-04-02 06:28:50.156 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,188422 2024-04-02 06:28:50.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8836, value: 530160 2024-04-02 06:28:50.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:28:50.158 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:28:50.355 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:28:50.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:28:50.356 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:28:50.358 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.29008, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 530160, 'cycles': 8, 'power': 0.0} 2024-04-02 06:28:50.358 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.498 seconds (success: True) 2024-04-02 06:29:19.861 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:29:19.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:29:19.862 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:29:19.862 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:29:20.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:29:20.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:29:20.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:29:20.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:29:20.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:29:20.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"&!!%T\x18\x1f') 2024-04-02 06:29:20.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0473440A 2024-04-02 06:29:20.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175230, value: 175.23 2024-04-02 06:29:20.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:29:20.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:29:20.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:29:20.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:29:20.456 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:29:20.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:29:20.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:29:20.655 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:29:20.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:29:20.656 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:29:20.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:29:20.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:29:20.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:29:20.856 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:29:20.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:29:20.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:29:20.858 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:29:21.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-&T\'\'\x18\x1f") 2024-04-02 06:29:21.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,183A22 2024-04-02 06:29:21.056 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8762, value: 525720 2024-04-02 06:29:21.057 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:29:21.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:29:21.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:29:21.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:29:21.256 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:29:21.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.15716, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 525720, 'cycles': 8, 'power': 0.0} 2024-04-02 06:29:21.258 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.397 seconds (success: True) 2024-04-02 06:29:50.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:29:50.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:29:50.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:29:50.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:29:51.157 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:29:51.158 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:29:51.158 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:29:51.159 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:29:51.159 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:29:51.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"\'!!%T\x18\x1f') 2024-04-02 06:29:51.357 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0472440A 2024-04-02 06:29:51.358 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175220, value: 175.22 2024-04-02 06:29:51.358 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:29:51.359 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:29:51.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:29:51.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:29:51.557 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:29:51.562 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:29:51.562 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:29:51.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:29:51.857 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:29:51.858 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:29:51.858 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:29:51.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:29:52.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:29:52.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:29:52.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:29:52.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:29:52.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:29:52.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$--&\'\'\x18\x1f") 2024-04-02 06:29:52.257 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,188322 2024-04-02 06:29:52.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8835, value: 530100 2024-04-02 06:29:52.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:29:52.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:29:52.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:29:52.457 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:29:52.458 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:29:52.459 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2329.02424, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 530100, 'cycles': 8, 'power': 0.0} 2024-04-02 06:29:52.460 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.600 seconds (success: True) 2024-04-02 06:30:21.860 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:30:21.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:30:21.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:30:21.861 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:30:22.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:30:22.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:30:22.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:30:22.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:30:22.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:30:22.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"$!!%T\x18\x1f') 2024-04-02 06:30:22.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0471440A 2024-04-02 06:30:22.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175210, value: 175.21 2024-04-02 06:30:22.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:30:22.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:30:22.458 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:30:22.458 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:30:22.458 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:30:22.459 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:30:22.459 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:30:22.657 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:30:22.658 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:30:22.658 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:30:22.659 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:30:22.659 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:30:22.858 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%- SS%%\x18\x1f') 2024-04-02 06:30:22.858 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1085FF00 2024-04-02 06:30:22.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:30:22.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:30:22.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:30:23.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$-&,\'\'\x18\x1f") 2024-04-02 06:30:23.058 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,183922 2024-04-02 06:30:23.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8761, value: 525660 2024-04-02 06:30:23.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:30:23.060 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:30:23.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:30:23.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:30:23.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:30:23.260 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2328.89132, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 525660, 'cycles': 8, 'power': 0.0} 2024-04-02 06:30:23.261 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.401 seconds (success: True) 2024-04-02 06:30:52.861 DEBUG (MainThread) [custom_components.bms_ble] BMS SmartBat-A42491 data update 2024-04-02 06:30:52.862 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] BMS SmartBat-A42491 already connected 2024-04-02 06:30:52.862 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0201 2024-04-02 06:30:52.862 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%\'%$") 2024-04-02 06:30:53.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9%\' ,\x18\x1f") 2024-04-02 06:30:53.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0259 2024-04-02 06:30:53.060 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: battery_level (#2), raw: 89, value: 89 2024-04-02 06:30:53.060 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0403 2024-04-02 06:30:53.061 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT%!%&') 2024-04-02 06:30:53.258 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%!"%!!%T\x18\x1f') 2024-04-02 06:30:53.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0470440A 2024-04-02 06:30:53.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycle_capacity (#4), raw: 175200, value: 175.2 2024-04-02 06:30:53.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0802 2024-04-02 06:30:53.260 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%-%\'") 2024-04-02 06:30:53.459 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%-PV&&\x18\x1f') 2024-04-02 06:30:53.459 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,08EC33 2024-04-02 06:30:53.459 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: voltage (#8), raw: 13292, value: 13.292 2024-04-02 06:30:53.460 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA0C02 2024-04-02 06:30:53.460 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT%V%\'") 2024-04-02 06:30:53.658 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9%V!,%W\x18\x1f') 2024-04-02 06:30:53.659 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,0C490B 2024-04-02 06:30:53.659 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: temperature (#12), raw: 2889, value: 15.8 2024-04-02 06:30:53.659 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1003 2024-04-02 06:30:53.660 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b'>GTT$%%&') 2024-04-02 06:30:53.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b'>GQ9$%--SS%%\x18\x1f') 2024-04-02 06:30:53.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,1088FF00 2024-04-02 06:30:53.859 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: current (#16), raw: 0, value: 0.0 2024-04-02 06:30:53.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA1802 2024-04-02 06:30:53.860 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT$-%\'") 2024-04-02 06:30:54.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9$--\'\'\'\x18\x1f") 2024-04-02 06:30:54.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,188222 2024-04-02 06:30:54.059 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: runtime (#24), raw: 8834, value: 530040 2024-04-02 06:30:54.060 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] command: +RAA2C02 2024-04-02 06:30:54.061 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] ble cmd frame bytearray(b">GTT\'V%\'") 2024-04-02 06:30:54.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Received BLE data: bytearray(b">GQ9\'V%-%%\x18\x1f") 2024-04-02 06:30:54.259 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] response: +RD,2C0800 2024-04-02 06:30:54.260 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Decoded data: reg: cycles (#44), raw: 8, value: 8 2024-04-02 06:30:54.260 DEBUG (MainThread) [custom_components.bms_ble.plugins.ogt_bms] Data collected: {'battery_level': 89, 'cycle_capacity': 2328.7584, 'voltage': 13.292, 'temperature': 15.8, 'current': 0.0, 'runtime': 530040, 'cycles': 8, 'power': 0.0} 2024-04-02 06:30:54.261 DEBUG (MainThread) [custom_components.bms_ble] Finished fetching SmartBat-A42491 data in 1.399 seconds (success: True)

patman15 commented 3 months ago

Sorry, overlooked the file below the huge picture. 😎 I'll have a look at it soon, first glance indicates that A type batteries use a different data format for the current. Strange implementation. The number of cycles is correct? I see 4 and 8 values ...

patman15 commented 3 months ago

Hey @gkathan, I just drafted a fix for the current issue. Can you check the v1.0.2-beta version? You can download it via HACS by enabling beta versions after clicking "download again". Let me know if it helps. Thanks a lot!

gkathan commented 3 months ago

ok will try right now ...

gerold kathan :: +43 699 1973536

On Tue, Apr 2, 2024, 20:33 Patrick @.***> wrote:

Hey @gkathan https://github.com/gkathan, I just drafted a fix for the current issue. Can you check the v1.0.2-beta version? You can download it via HACS by enabling beta versions after clicking "download again". Let me know if it helps. Thanks a lot!

β€” Reply to this email directly, view it on GitHub https://github.com/patman15/BLE_BMS-HA/issues/2#issuecomment-2032781299, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJLVWQU7RIMW5FYL75I43Y3L2WRAVCNFSM6AAAAABFRXJ45CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSG44DCMRZHE . You are receiving this because you were mentioned.Message ID: @.***>

gkathan commented 3 months ago

FANTASTIC πŸ€˜πŸ’š

you nailed it ! now both values are accurate

awesome

so to keep you busy ;-) one more (very minor) feedback for the "Runtime" Sensor .. would be cool to have it also split in days (d) when Runtime is larger than 24h as current format is not really human readable ( how many days are 123h again 🀭) and if you still would consider to add the boolean value (charging/discharging) we have a perfect version 1.2

curious as I am ... what was the issue withe two values ?Screenshot_20240402-204424~2.png

cheeerz from vienna

gkathan commented 3 months ago

... one more thing

patman15 commented 3 months ago
* the Current and Power values seem a bit too low ... will check tomorrow by comparing what the offgridtec app shows with the integration

I think I know. Factor of 10 missing, give me a minute ...

patman15 commented 3 months ago

Fixed. I did not do a new version, just select main under beta-versions.

gkathan commented 3 months ago

...trying to select "main" ... but always jumps back to 1.2-beta ... seems to be sticky ... cannot see r anything else than 1.2-beta

any ideas ? what does the comment window tell me ? "..use service call for update entities .."

πŸ€”Screenshot_20240402-215512.png

Screenshot_20240402-215523.png

gkathan commented 3 months ago

ok ... got it ... stupid me was on the wrong HA instance πŸ€­πŸ˜‚

values look very reasonable now

good night - let's follow up tomorrow c

patman15 commented 3 months ago

ok ... got it ... stupid me was on the wrong HA instance πŸ€­πŸ˜‚

Then it's already to late in the day. :smile:

BTW, I have your charging indicator implemented, but it needs cleanup. Will make a new version tomorrow.

curious as I am ... what was the issue withe two values ?

Type B uses the format <16bit current><8 bit multiplier> while type A only has the <16bit current> without multiplier. The integration always read the multiplier, which then was 0 so it multiplied the current with 0 ... Power is voltage*current so also 0 in that case.

Have a good night!

patman15 commented 3 months ago

@gkathan so, good news, just published v1.1.0-beta which has:

Hope that solves your request stuff in this issue. :smile:

"Runtime" Sensor .. would be cool to have it also split in days

I haven't found a way to influence the presentation by HA. Also I did not find an example where this is handled, e.g. my UPS integrations acts the same. If you have hints, let me know.

Enjoy and let me know if you see issues so I can make it a final version or fix it.

gkathan commented 3 months ago

hi, just installed beta 1.1.0 .. but on first try I had just "unknown" on all entities ... maybe due to HA core 24.04 update πŸ€” ... just rebooting HA to see whether this helps ... otherwise will step back to 1.0.2 OK ... came up now ... and took.around 1 minute till it got the live values ... but now it looks good will test the app switch tomorrow morning cheerz

patman15 commented 3 months ago

just installed beta 1.1.0 .. but on first try I had just "unknown" on all entities ...

I removed the initial update, so time to first values was longer. This was to speed up HA startup time. Nevertheless, all integrations block for the initial update, so I will reintroduce it. Should not affect functionality in any way, just takes 30s longer to show first values.

gkathan commented 3 months ago

hi,

so just drove home and tested also the switch to the app by disabling the integration => works like a breeze - great (forth and back)

regarding the initial startup => fully agree with what you said

one last thisng => could you replace the text in "Charging" sensor / entity to "discharging" instead of "not charging" as this makes clear that something is pulling from the battery => "not charging" could also mean the battery is idling - just some minor semantic comment ;-)

thanx

patman15 commented 3 months ago

Hi @gkathan,

some further solutions for you:

"Runtime" Sensor .. would be cool to have it also split in days (d)

You can use a template sensor or a template card, e.g. Mushroom template card with the following template: {{ timedelta(seconds=int(states("sensor.smartbat_aXXXXX_runtime"), 0)) }} results in 4 days, 4:20:00

could you replace the text in "Charging" sensor / entity to "discharging"

Sorry, the HA semantic says that the sensor needs to be called BATTERY_CHARGING. Nevertheless, you can create your own threshold sensor based on the current that does exactly what you want. You can even define something other than 0 or hysteresis in addition. :smile:

Are we good then with version 1.1.0-beta? I did some further fixes on the startup issue that I would put into the final version.

gkathan commented 3 months ago

did not mean the name of the sensor ;-) but the value of the sensor when it is not charging should be "discharging"

gkathan commented 3 months ago

ok got it 🀭 ... yes the threshold thing makes sense ... thÀnx 🀘 too early in the morning

yez - ready to go for 1.1

patman15 commented 3 months ago

issue(s) fixed by release v1.1.0 thanks @gkathan