Comments (4)
I'm currently working on it. Got the total_pack_voltage already. But somehow the sensors for the packs are not added yet (but they're already read)
from hassio-bluetti-bt.
Currrent log with 0.0.24
2024-05-31 12:15:43.423 DEBUG (MainThread) [custom_components.bluetti_bt] Init Bluetti BT Integration
2024-05-31 12:15:45.699 INFO (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Reading data
2024-05-31 12:15:45.924 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=10, quantity=10)
2024-05-31 12:15:46.265 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 25 bytes
2024-05-31 12:15:46.265 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'AC300\x00\x00\x00\x00\x00\x00\x00\x03\xfa\x12V\x0cg\x02\x06'
2024-05-31 12:15:46.267 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'device_type': 'AC300'}
2024-05-31 12:15:46.267 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=36, quantity=4)
2024-05-31 12:15:46.565 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 13 bytes
2024-05-31 12:15:46.565 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00a\x04\x15\x04\x10\x00\x00'
2024-05-31 12:15:46.565 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'dc_input_power': 97, 'ac_input_power': 1045, 'ac_output_power': 1040, 'dc_output_power': 0}
2024-05-31 12:15:46.565 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=41, quantity=1)
2024-05-31 12:15:46.825 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:46.826 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x1ez'
2024-05-31 12:15:46.826 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'power_generation': Decimal('780.2')}
2024-05-31 12:15:46.826 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=43, quantity=1)
2024-05-31 12:15:47.129 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:47.130 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x0e'
2024-05-31 12:15:47.130 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'total_battery_percent': 14}
2024-05-31 12:15:47.130 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=48, quantity=2)
2024-05-31 12:15:47.437 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:47.437 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x01\x00\x01'
2024-05-31 12:15:47.437 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'ac_output_on': True, 'dc_output_on': True}
2024-05-31 12:15:47.437 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3007, quantity=2)
2024-05-31 12:15:47.747 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:47.747 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x01\x00\x01'
2024-05-31 12:15:47.748 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'ac_output_on_switch': True, 'dc_output_on_switch': True}
2024-05-31 12:15:47.748 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=70, quantity=11)
2024-05-31 12:15:48.053 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 27 bytes
2024-05-31 12:15:48.053 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x03\t9\x00\x07\xff\xda\x13\x85\x00,\x04\x10\tB\x00$\x04\x15\x13\x85'
2024-05-31 12:15:48.053 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'ac_output_mode': <OutputMode.BYPASS_OUTPUT_D: 3>, 'internal_ac_voltage': Decimal('236.1'), 'internal_current_one': Decimal('0.7'), 'internal_power_one': 65498, 'internal_ac_frequency': Decimal('49.97'), 'internal_current_two': Decimal('4.4'), 'internal_power_two': 1040, 'ac_input_voltage': Decimal('237'), 'internal_current_three': Decimal('3.6'), 'internal_power_three': 1045, 'ac_input_frequency': Decimal('49.97')}
2024-05-31 12:15:48.053 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=86, quantity=3)
2024-05-31 12:15:48.462 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 11 bytes
2024-05-31 12:15:48.462 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x03q\x001\x00\x05'
2024-05-31 12:15:48.462 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'internal_dc_input_voltage': 88.10000000000001, 'internal_dc_input_power': Decimal('4.9'), 'internal_dc_input_current': Decimal('0.05')}
2024-05-31 12:15:48.462 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3001, quantity=1)
2024-05-31 12:15:48.769 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:48.769 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x02'
2024-05-31 12:15:48.769 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'ups_mode': <UpsMode.PV_PRIORITY: 2>}
2024-05-31 12:15:48.769 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3004, quantity=2)
2024-05-31 12:15:49.078 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:49.078 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x00\x00\x01'
2024-05-31 12:15:49.079 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'split_phase_on': False, 'split_phase_machine_mode': <SplitPhaseMachineType.MASTER: 1>}
2024-05-31 12:15:49.079 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3011, quantity=1)
2024-05-31 12:15:49.382 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:49.383 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x01'
2024-05-31 12:15:49.383 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'grid_charge_on': True}
2024-05-31 12:15:49.383 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3013, quantity=1)
2024-05-31 12:15:49.689 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:49.689 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x01'
2024-05-31 12:15:49.690 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'time_control_on': True}
2024-05-31 12:15:49.690 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3015, quantity=2)
2024-05-31 12:15:49.997 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:49.997 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\n\x00Z'
2024-05-31 12:15:49.998 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'battery_range_start': 10, 'battery_range_end': 90}
2024-05-31 12:15:49.998 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=3061, quantity=1)
2024-05-31 12:15:50.304 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:50.304 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Raw data: b'\x00\x03'
2024-05-31 12:15:50.304 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'auto_sleep_mode': <AutoSleepMode.ONE_MINUTE: 3>}
2024-05-31 12:15:50.304 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Polling battery packs
2024-05-31 12:15:50.304 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting WriteSingleRegister(address=3006, value=0x01)
2024-05-31 12:15:50.611 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 8 bytes
2024-05-31 12:15:55.612 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=91, quantity=2)
2024-05-31 12:15:55.936 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:55.937 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'pack_num_max': 4, 'total_battery_voltage': Decimal('52.8')}
2024-05-31 12:15:55.937 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed pack_num(None) does not match expected '1'
2024-05-31 12:15:55.937 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=96, quantity=1)
2024-05-31 12:15:56.243 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 7 bytes
2024-05-31 12:15:56.243 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'pack_num': 1}
2024-05-31 12:15:56.243 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=98, quantity=2)
2024-05-31 12:15:56.549 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:56.549 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'pack_voltage': Decimal('52.7'), 'pack_battery_percent': 15}
2024-05-31 12:15:56.549 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=105, quantity=16)
2024-05-31 12:15:56.860 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 37 bytes
2024-05-31 12:15:56.861 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'cell_voltages': [Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28'), Decimal('3.27'), Decimal('3.28'), Decimal('3.27'), Decimal('3.28'), Decimal('3.28'), Decimal('3.28')]}
2024-05-31 12:15:56.861 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=201, quantity=2)
2024-05-31 12:15:57.165 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 9 bytes
2024-05-31 12:15:57.165 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Parsed data: {'pack_bms_version': Decimal('1014.13')}
2024-05-31 12:15:57.165 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting WriteSingleRegister(address=3006, value=0x02)
2024-05-31 12:15:57.574 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Got 8 bytes
2024-05-31 12:16:02.575 DEBUG (MainThread) [custom_components.bluetti_bt.bluetti_bt_lib.bluetooth.device_reader] Requesting ReadHoldingRegisters(starting_address=91, quantity=2)
from hassio-bluetti-bt.
Release 0.1 is now out and should fix this issue
from hassio-bluetti-bt.
Patrick, excelent job ! Thanks a lot !
from hassio-bluetti-bt.
Related Issues (20)
- [Bug]: AC200M : many errors in settings -> system -> logs HOT 2
- [Bug]: AC500 + 2XB300S: Battery1+2 0% and 0V with Version 0.1.0 HOT 4
- [Bug]: AC500 + 2XB300S: Battery1+2 percent and voltage are "unavailable" with Version 0.1.3 HOT 3
- [Bug]: AC180 won't connect using Bluetooth Proxy HOT 2
- [Bug]: Device AC70P not supported yet - Onboarding fails HOT 5
- AC200PL Support
- How to change UPS mode? HOT 2
- AC2P support
- [Bug]: Integration stop working HOT 3
- [Bug]: Newer versions of Bluetti firmware use BLE encryption HOT 8
- [Bug]: AC60P not work
- What's the hardware setup? HOT 3
- Tried version 0.0.11 and beta 0.0.22 not possible make integration in home assistant[Bug]: HOT 5
- Hassio-Bluetti-BT will work with ESP32 WiFi/Bluetooth module? HOT 3
- No polling with Ac200max HOT 10
- [Bug]: Still cannot rename entities HOT 2
- Bluetti EP760 Home Assistant intigrieren HOT 17
- AC500: Version up to 0.0.23: Scaling wrong for three "Internal DC Input" entities HOT 8
- AC200M: Adding battery_pack_x_dc_input fields please and some fields Unknown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hassio-bluetti-bt.