I’m trying to add to home assistant this monitor, here i find a method using esphome but i was thinking if already have bluetooth connection why no use it. so i come across a guide for sniff the data from bluetooth and some of the code in
i rewrite the connection with bleak and added some more code, and now this is the output i get
INFO:root:{'power': 360.66, 'impedance': 10.11, 'mins_remaining': 1338, 'current': 13.61, 'discharge': 4.50254, 'ah_remaining': 307.294, 'soc': 85.35944444444445, 'voltage': 26.5}
INFO:root:{'power': 360.66, 'impedance': 10.11, 'mins_remaining': 1338, 'current': 13.61, 'discharge': 4.50264, 'ah_remaining': 307.29, 'soc': 85.35833333333333, 'voltage': 26.5}
INFO:root:{'power': 358.81, 'impedance': 10.11, 'mins_remaining': 1338, 'current': 13.54, 'discharge': 4.50264, 'ah_remaining': 307.29, 'soc': 85.35833333333333, 'voltage': 26.5}
INFO:root:{'power': 358.81, 'impedance': 10.11, 'mins_remaining': 1338, 'current': 13.54, 'discharge': 4.50274, 'ah_remaining': 307.287, 'soc': 85.3575, 'voltage': 26.5}
INFO:root:{'power': 360.4, 'impedance': 10.11, 'mins_remaining': 1338, 'current': 13.6, 'discharge': 4.50274, 'ah_remaining': 307.287, 'soc': 85.3575, 'voltage': 26.5}
INFO:root:{'power': 360.4, 'impedance': 10.11, 'mins_remaining': 1338, 'current': 13.6, 'discharge': 4.50284, 'ah_remaining': 307.283, 'soc': 85.35638888888889, 'voltage': 26.5}
INFO:root:{'power': 360.4, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.6, 'discharge': 4.50284, 'ah_remaining': 307.283, 'soc': 85.35638888888889, 'voltage': 26.5}
INFO:root:{'power': 359.07, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.55, 'discharge': 4.50284, 'ah_remaining': 307.283, 'soc': 85.35638888888889, 'voltage': 26.5}
INFO:root:{'power': 359.07, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.55, 'discharge': 4.50293, 'ah_remaining': 307.279, 'soc': 85.35527777777777, 'voltage': 26.5}
INFO:root:{'power': 357.22, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.48, 'discharge': 4.50293, 'ah_remaining': 307.279, 'soc': 85.35527777777777, 'voltage': 26.5}
INFO:root:{'power': 357.22, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.48, 'discharge': 4.50303, 'ah_remaining': 307.275, 'soc': 85.35416666666666, 'voltage': 26.5}
INFO:root:{'power': 359.07, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.55, 'discharge': 4.50303, 'ah_remaining': 307.275, 'soc': 85.35416666666666, 'voltage': 26.5}
INFO:root:{'power': 359.07, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.55, 'discharge': 4.50313, 'ah_remaining': 307.272, 'soc': 85.35333333333332, 'voltage': 26.5}
INFO:root:{'power': 358.54, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.53, 'discharge': 4.50313, 'ah_remaining': 307.272, 'soc': 85.35333333333332, 'voltage': 26.5}
INFO:root:{'power': 358.54, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.53, 'discharge': 4.50323, 'ah_remaining': 307.268, 'soc': 85.35222222222222, 'voltage': 26.5}
INFO:root:{'power': 358.81, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.54, 'discharge': 4.50323, 'ah_remaining': 307.268, 'soc': 85.35222222222222, 'voltage': 26.5}
INFO:root:{'power': 358.81, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.54, 'discharge': 4.50333, 'ah_remaining': 307.264, 'soc': 85.35111111111111, 'voltage': 26.5}
INFO:root:{'power': 360.93, 'impedance': 10.29, 'mins_remaining': 1353, 'current': 13.62, 'discharge': 4.50333, 'ah_remaining': 307.264, 'soc': 85.35111111111111, 'voltage': 26.5}
INFO:root:{'power': 360.93, 'impedance': 10.27, 'mins_remaining': 1362, 'current': 13.62, 'discharge': 4.50333, 'ah_remaining': 307.264, 'soc': 85.35111111111111, 'voltage': 26.5}
INFO:root:{'power': 360.93, 'impedance': 10.27, 'mins_remaining': 1362, 'current': 13.62, 'discharge': 4.50343, 'ah_remaining': 307.26, 'soc': 85.35, 'voltage': 26.5}
INFO:root:{'power': 358.81, 'impedance': 10.27, 'mins_remaining': 1362, 'current': 13.54, 'discharge': 4.50343, 'ah_remaining': 307.26, 'soc': 85.35, 'voltage': 26.5}
INFO:root:{'power': 355.89, 'impedance': 10.27, 'mins_remaining': 1362, 'current': 13.43, 'discharge': 4.50343, 'ah_remaining': 307.26, 'soc': 85.35, 'voltage': 26.5}
INFO:root:{'power': 355.89, 'impedance': 10.27, 'mins_remaining': 1362, 'current': 13.43, 'discharge': 4.50353, 'ah_remaining': 307.257, 'soc': 85.34916666666666, 'voltage': 26.5}
what is the idea? i wanna create a Custom Integrations, but my knowles about this topic is basically null, and the documentation is too dense. maybe i can use some of the code from the AC Infinity Bluetooth integration, that my next step but if anyone can help o guide me to the right path.