-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use this library for the Home Assistant project #4
Comments
I would be in huge favor for this! I've been thinking about making a pi somewhere close to where i park my bike and then with the help of this code and mqtt send this to my HA instance. However im not sure if the pi will just connect once the bike is within reach and start sending as only 1 app can be connected and i would like to use my moofer app as well. Or could it be possible to make the data being pulled from the Vanmoof servers ? that would be the optimal solution |
any progress perhaps? i'm able to connect my vanmoof with an esp-board and esphome and get some data, but I haven't got a clou to use it for Home Assistant |
What data where you able to extract? With an mqtt component or directly through esphome we can fetch the data to ha and create some sensors |
[12:25:24][I][ble_client:170]: Service UUID: 0x1800 |
Can the data be used for calculating battery status etc? |
update: i gave up the idea of using an esp-board and bought an old pi and I managed to periodically read the battery status in home assistant with this addition https://github.com/thomasbaetge/Vanmoof-MQTT |
I'm also interested in that! I am currently trying to figure out if the connection is stable enough to get the data consistently out of the bike. The 1.8.1 sleep feature seems to break that idea without manually turning on the bike or just using the bike in general. |
True, to fix that I also added a automation to switch on/off the power supply to wake up the bike. As long as it is plugged in, I can now automatically check and charge during the night |
Any update on this? Did anyone got it working? |
What code did you use in esphome?, i can't connect. You need to decrypt the data later on |
I used an esp-wroom-32 board to scan for Bluetooth devices and read the MAC adress of the bike than used an BLE client sensor to read the data. |
@speedy-c Can you provide any details on this? |
I didn't save the original yaml but I use https://esphome.io/components/sensor/ble_client.html which resulted in the follow logfile. Hope this helps. [17:43:16][C][ble_sensor:019]: BLE Sensor 'VanMoof battery level' [17:32:10][D][esp32_ble_tracker:723]: Found device ----- RSSI=-77 [17:49:01][I][ble_client:085]: Attempting BLE connection to ----- |
I think it is easy to implement things like 'battery' and 'device_tracker' for VanMoof into Home Assistant with this library. https://www.home-assistant.io
I have some experience with developing an integration in HA. Maybe we can pull this off, what do you think?
The text was updated successfully, but these errors were encountered: