GithubHelp home page GithubHelp logo

weekendwarrior1 / powerpal_ble Goto Github PK

View Code? Open in Web Editor NEW
49.0 9.0 9.0 304 KB

Collection of code, tools and documentation for data retrieval over BLE from your Powerpal

License: GNU General Public License v3.0

C++ 82.98% Python 17.02%
arduino ble energy-consumption energy-data energy-efficiency energy-monitor esp32 esp32-arduino powerpal esphome

powerpal_ble's Introduction

me

powerpal_ble's People

Contributors

abarnesy avatar weekendwarrior1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerpal_ble's Issues

Finding PowerPal bluetooth address

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.

ESPHome Compilation Errors (example yaml) with ESPHome v2022.12.3

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.