GithubHelp home page GithubHelp logo

esphome_uni_trend_sound_meter's People

Contributors

daweizhangau avatar jcallaghan avatar littleyoda avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

esphome_uni_trend_sound_meter's Issues

Curious of your usage - care to share?

Hi Dawei. Non-issue here. I was curious after finding your project about your configuration/setup?

I am fascinated by weather/environmental related data. During COVID I really got into studying it from the usual weather station data to air quality. I brought a decibel meter a few years back which I was running during the lockdown in the UK during COVID. I was amazed at how low the environmental noise was due to no traffic on the roads or aircraft in the sky. I recorded all the data to Grafana and InfluxDB and started finding patterns. Sadly, this unit required a USB serial connection which I interfaced with a Raspberry Pi and some Python, but it was difficult to keep this alive when I moved. When I found this project and your component for ESPHome I immediately brought a Ut353bt unit as it piqued my interest again. It fits perfectly in one of these radiation shields. Interestingly, I setup an input_number helper in HA which I use to trigger when the unit detects sound above this threshold. This makes for a very interesting security noise sensor!

I was curious if you have this running 24/7? With some good quality batteries, I think I've got max ~72 hours out of it. I plan to wire it to a powered supply but am aware the Bluetooth button sometimes needs to be pressed when powered on for the ESP32 to connect to the unit again. What is your setup and how are you using it?

@jcallaghan

Failed to install

Hello,
I already have the component install on another esp32 and it works great! Now i'm trying to install it on another esp32 and i get this code:

INFO Reading configuration /config/esphome/store-toilette-soundmeter.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing store-toilette-soundmeter (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.5.0)

Library Manager: Installing Hash
INFO Installing Hash
Library Manager: Installing ESP8266WiFi
INFO Installing ESP8266WiFi
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 1.0
|-- FS @ 1.0
|-- Update @ 1.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 1.1.0
|-- ESPmDNS @ 1.0
|-- noise-c @ 0.1.4
| |-- libsodium @ 1.10018.1
|-- ArduinoJson @ 6.18.5
Compiling /data/store-toilette-soundmeter/.pioenvs/store-toilette-soundmeter/src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp.o
Compiling /data/store-toilette-soundmeter/.pioenvs/store-toilette-soundmeter/src/main.cpp.o
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp: In member function 'virtual void esphome::uni_trend_sound_meter::UnitTrendSoundMeter::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)':
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp:73:63: error: 'class esphome::ble_client::BLEClient' has no member named 'gattc_if'
esp_ble_gattc_register_for_notify(this->parent()->gattc_if, this->parent()->remote_bda, this->output_handle_);
^
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp:73:89: error: 'class esphome::ble_client::BLEClient' has no member named 'remote_bda'
esp_ble_gattc_register_for_notify(this->parent()->gattc_if, this->parent()->remote_bda, this->output_handle_);
^
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp:83:52: error: 'class esphome::ble_client::BLEClient' has no member named 'conn_id'
if (param->notify.conn_id != this->parent()->conn_id || param->notify.handle != this->output_handle_)
^
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp: In member function 'virtual void esphome::uni_trend_sound_meter::UnitTrendSoundMeter::update()':
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp:137:21: error: 'class esphome::ble_client::BLEClient' has no member named 'gattc_if'
this->parent()->gattc_if,
^
src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp:138:21: error: 'class esphome::ble_client::BLEClient' has no member named 'conn_id'
this->parent()->conn_id,
^
*** [/data/store-toilette-soundmeter/.pioenvs/store-toilette-soundmeter/src/esphome/components/uni_trend_sound_meter/uni_trend_sound_meter.cpp.o] Error 1
========================== [FAILED] Took 6.83 seconds ==========================

Can you please help me?
Thanks a lot!

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.