daweizhangau / esphome_uni_trend_sound_meter Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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?
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:
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!
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.