Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: isolate the Victron BLE access lib from the ESPHOME biding #23

Open
bmedici opened this issue Aug 26, 2023 · 6 comments
Open

Comments

@bmedici
Copy link

bmedici commented Aug 26, 2023

As this implementation of Victron BLE access seems to be the first one really working, it would be really great if we could use it even outside of the ESPHome project.
For example, being able to use the lib by itself in any ESP32 project would be nice.
The binding to ESPHome could abstract the lib in this way.

Thank you for considering this idea and for this nice work !

Bruno

@Fabian-Schmidt
Copy link
Owner

This issue is that i use the Bluetooth infra provided by ESP Home. So as a lib it would require a bring your own Bluetooth stack.

Are you aware of a good library example / pattern for ESP32 which needs Bluetooth?

@Wummeke
Copy link

Wummeke commented Aug 29, 2023

I am actually looking for this too. My usecase is that I want to get a readout every hour or so from the smartshunt in my campervan and send it home over LoRa/The Things Network. Now I am trying to write something similar to your library and I only got as far as receiving the manufacturer data from the smartshunt (pretty basic stuff, probably), but struggle (due to lack of time and knowledge) with the decryption part and probalby after that with translating the decrypted data to something usefull I can use (but I am hoping I can borrow that part from your library, when I can get that far ).

@bmedici
Copy link
Author

bmedici commented Aug 29, 2023

This issue is that i use the Bluetooth infra provided by ESP Home. So as a lib it would require a bring your own Bluetooth stack.

Are you aware of a good library example / pattern for ESP32 which needs Bluetooth?

Thank you for your message. I'm not a Bluetooth expert on ESP32 at all, unfortunately. But from what I've read, it seems to be pretty easy and straightforward.

I think a big part of the value lies in the parsing / decrypting logic of the frames.

@aviatorhh
Copy link

Some devices can be accessed via VE.direct which is a serial line. I would prefer to use such method because I trust in wired connections more than in wireless (life lessons). So yes, I too would like to see a spin off. Thank you.

@Fabian-Schmidt
Copy link
Owner

Some devices can be accessed via VE.direct which is a serial line. I would prefer to use such method because I trust in wired connections more than in wireless (life lessons). So yes, I too would like to see a spin off. Thank you.

For the VE.Direct to ESPHome connection is already an existing project - https://github.com/KinDR007/VictronMPPT-ESPHOME.
The VE.Direct and the Bluetooth announcement protocol are completely different and share no logic. This library / component is specific for the Bluetooth wireless protocol.

@aviatorhh
Copy link

Oh, great. Thanks for that and keep up your good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants