Git Product home page Git Product logo

ble-mqtt-sensor's Introduction

BLE MQTT Sensor

BLE MQTT Sensor是一款ha自定义插件,配合esp32-ble2mqtt使用,能够整合mqtt信息到homeassistant

下载custom component

下载下面网址所有文件到如下目录/config/custom_components/ https://github.com/tiandeyu/ble-mqtt-sensor/tree/master/custom_components/ble_mqtt_sensor

//文件目录结构如下
/config/custom_components/ble_mqtt_sensor/__init__.py
/config/custom_components/ble_mqtt_sensor/sensor.py
/config/custom_components/ble_mqtt_sensor/manifest.json

configuration.yaml配置

名称 可选 描述
name ha中显示传感器的名字
mac 小写mac地址
topic ble2mqtt config.json里面配置的service name和characteristics name 默认/SensorService/SensorValue
set_suffix ble2mqtt config.json里面配置的set_suffix,默认/Set
scan_interval 温湿度扫描间隔s,默认30,电池更新间隔为12小时,不可更改
device_class meizu_remote代表魅族遥控器
sensor:
  - platform: ble_mqtt_sensor
    name: 'Meizu Remote'
    mac: '68:3e:34:cc:d4:69'
    topic: '/SensorService/SensorValue'
    set_suffix: '/Set'
    scan_interval: 60
    device_class: meizu_remote

多个配置

sensor:
  - platform: ble_mqtt_sensor
    name: 'Meizu Remote'
    mac: '68:3e:34:cc:d4:69'
    device_class: meizu_remote
    
  - platform: ble_mqtt_sensor
    name: 'Living Room Meizu Remote'
    mac: '68:3e:34:cc:d4:70'
    device_class: meizu_remote
    
  - platform: ble_mqtt_sensor
    name: 'Bedroom Meizu Remote'
    mac: '68:3e:34:cc:d4:71'
    device_class: meizu_remote

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.