Open DCSBL opened 2 years ago
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 [12:25:24][I][ble_client:171]: start_handle: 0x1 end_handle: 0xb [12:25:24][I][ble_client:383]: characteristic 0x2A00, handle 0x3, properties 0xa [12:25:24][I][ble_client:383]: characteristic 0x2A01, handle 0x5, properties 0xa [12:25:24][I][ble_client:383]: characteristic 0x2A04, handle 0x7, properties 0x2 [12:25:24][I][ble_client:383]: characteristic 0x2AA6, handle 0x9, properties 0x2 [12:25:24][I][ble_client:383]: characteristic 0x2AC9, handle 0xb, properties 0x2 [12:25:24][I][ble_client:170]: Service UUID: 0x1801 [12:25:24][I][ble_client:170]: Service UUID: 6ACC5500-E631-4069-944D-B8CA7598AD50 [12:25:24][I][ble_client:171]: start_handle: 0xd end_handle: 0x1a [12:25:24][I][ble_client:383]: characteristic 6ACC5501-E631-4069-944D-B8CA7598AD50, handle 0xf, properties 0x2 [12:25:24][I][ble_client:383]: characteristic 6ACC5502-E631-4069-944D-B8CA7598AD50, handle 0x11, properties 0x8 [12:25:24][I][ble_client:383]: characteristic 6ACC5561-E631-4069-944D-B8CA7598AD50, handle 0x89, properties 0x52 [12:25:24][I][ble_client:383]: characteristic 6ACC5562-E631-4069-944D-B8CA7598AD50, handle 0x8c, properties 0x5a [12:25:24][I][ble_client:383]: characteristic 6ACC5563-E631-4069-944D-B8CA7598AD50, handle 0x8f, properties 0x52 [12:25:24][I][ble_client:383]: characteristic 6ACC5564-E631-4069-944D-B8CA7598AD50, handle 0x92, properties 0x5a `
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?
[12:25:24][I][ble_client:170]: Service UUID: 0x1800 [12:25:24][I][ble_client:171]: start_handle: 0x1 end_handle: 0xb [12:25:24][I][ble_client:383]: characteristic 0x2A00, handle 0x3, properties 0xa [12:25:24][I][ble_client:383]: characteristic 0x2A01, handle 0x5, properties 0xa [12:25:24][I][ble_client:383]: characteristic 0x2A04, handle 0x7, properties 0x2 [12:25:24][I][ble_client:383]: characteristic 0x2AA6, handle 0x9, properties 0x2 [12:25:24][I][ble_client:383]: characteristic 0x2AC9, handle 0xb, properties 0x2 [12:25:24][I][ble_client:170]: Service UUID: 0x1801 [12:25:24][I][ble_client:170]: Service UUID: 6ACC5500-E631-4069-944D-B8CA7598AD50 [12:25:24][I][ble_client:171]: start_handle: 0xd end_handle: 0x1a [12:25:24][I][ble_client:383]: characteristic 6ACC5501-E631-4069-944D-B8CA7598AD50, handle 0xf, properties 0x2 [12:25:24][I][ble_client:383]: characteristic 6ACC5502-E631-4069-944D-B8CA7598AD50, handle 0x11, properties 0x8 [12:25:24][I][ble_client:383]: characteristic 6ACC5561-E631-4069-944D-B8CA7598AD50, handle 0x89, properties 0x52 [12:25:24][I][ble_client:383]: characteristic 6ACC5562-E631-4069-944D-B8CA7598AD50, handle 0x8c, properties 0x5a [12:25:24][I][ble_client:383]: characteristic 6ACC5563-E631-4069-944D-B8CA7598AD50, handle 0x8f, properties 0x52 [12:25:24][I][ble_client:383]: characteristic 6ACC5564-E631-4069-944D-B8CA7598AD50, handle 0x92, properties 0x5a `
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.
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?