weekendwarrior1 / powerpal_ble Goto Github PK
View Code? Open in Web Editor NEWCollection of code, tools and documentation for data retrieval over BLE from your Powerpal
License: GNU General Public License v3.0
Collection of code, tools and documentation for data retrieval over BLE from your Powerpal
License: GNU General Public License v3.0
G'day mate,
Thanks for your great work, I have gotten this going and it is working a treat.
For the benefit of others, I just wanted to point out that unlike your example esphome yaml skeleton, my powerpal lives in a bluetooth address space of F9:D1:0F:00:00:00 rather than the DF:5C:55:00:00:00 address space mentioned.
If you are another punter like me trying to get this to work, and your powerpal does not have the bluetooth address listed on the device or on the packaging, an easy way to find it is to stand near the powerpal with an android phone and add a new bluetooth device. You'll see "powerpal-somethingblahblah" appear. Connect to it, and then once that is completed, view the connection. The bluetooth address is listed.
Additionally, if your computer is close enough to the powerpal, just flash the esp32 with this repo's code and the esp32's local console will display blue output from "esp32_ble_tracker" which will list detected bluetooth addresses. My computers were nowhere near the PowerPal, so I found using an android phone easier.
Once again, thanks for making available your work so the rest of us could enjoy it, you're a top bloke.
Cheers.
Using the example powerpal_ble.yaml, and ESPHome v2012.12.3 (simply changing the board from "wemos_d1_mini32" to "esp32dev")- the Install compilation consistently fails with errors relating to the ble_tracker.cpp component and in incompatible return type.
In file included from src/esphome/components/ble_client/ble_client.cpp:5:
src/esphome/components/ble_client/ble_client.h:89:8: error: conflicting return type specified for 'virtual void esphome::ble_client::BLEClient::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)'
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
^~~~~~~~~~~~~~~~~~~
In file included from src/esphome/components/ble_client/ble_client.cpp:4:
src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h:182:16: note: overridden function is 'virtual bool esphome::esp32_ble_tracker::ESPBTClient::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)'
virtual bool gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
^~~~~~~~~~~~~~~~~~~
*** [/data/powerpalble/.pioenvs/powerpalble/src/esphome/components/ble_client/ble_client.cpp.o] Error 1
ESPHome yaml file and compile log are attached.
Is this a possibly a breaking change in the ESPHome core framework since your powerpal_ble component was devised? I'm sorry that I'm new to ESPHome custom components and framework source code, so I can only report to you what I'm encountering - not sure what code changes might resolve these errors.
Compile Log: logs_powerpalble-3e5538_compile_errors.txt
YAML File: powerpalble-3e5538_yaml.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.