GithubHelp home page GithubHelp logo

esphome_uni_trend_sound_meter's Introduction

ESPHome Component: Uni-T (Uni Trend) Mini Sound Level Meter

This is a bridge for a Uni-T Mini Sound Level Meter UT353BT and an ESP32 device.

After this integration, the sound meter can work with Home Assitant. Every time the meter is powered on and its Bluetooth is enabled, ESP32 device can connect to it automatically and start to collect the measurement dBA. Home Assistant Sound Meter

Dependencies

Installation

You can install this component with ESPHome external components feature like this:

external_components:
  - source: github://daweizhangau/esphome_uni_trend_sound_meter@main

Configuration

You need the following components. For full configuration example, please reference to esphome_config_sample.yaml.

Find MAC Address

esp32_ble_tracker component should be able to detect it when you turn on Bluetooth on your sound meter, and print it in the log.

  1. Add esp32_ble_tracker to your ESPHome device config
    esp32_ble_tracker:
  2. Install to ESP32 device
  3. Open log of your ESP32 device
  4. Turn on Bluetooth of your sound meter
  5. Look for
    [...][D][esp32_ble_tracker:726]: Found device 00:00:00:00:00:00 RSSI=-29
    [...][D][esp32_ble_tracker:747]:   Address Type: PUBLIC
    [...][D][esp32_ble_tracker:749]:   Name: 'UT353BT'
    

00:00:00:00:00:00 above is MAC address of your sound meter.

BLE Client

Then configure ESPHome BLE Client (check the documentation for more information):

ble_client:
  - mac_address: "00:00:00:00:00:00" # Replace with your sound meter bluetooth mac address
    id: sound_meter_ble_client

Sound Meter

Then you need to enable this component with the id of the ble_client component.

uni_trend_sound_meter:
    # [Required] Name or ID is required.
    name: "Sound Level"
    # [Optional] Enhance entity with icon and unit.
    icon: 'mdi:microphone'
    # [Optional] Defaut value is dBA
    unit_of_measurement: 'dBA'
    # [Required] Reference to the ble_client.id set above
    ble_client_id: sound_meter_ble_client
    # [Optional] Reference to
    update_interval: 1s

References

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.