3 Star 22 Fork 4

席理加 / sensor.mitemp_bt2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

English | 简体中文

小米 米家蓝牙温湿度计2

GitHub Release hacs_badge

这是一个Home Assistant自定义组件,用于 Home Assistant 通过 蓝牙适配器 直接集成 小米 米家蓝牙温湿度计 (LYWSDCGQ/01ZM) 和 米家蓝牙温湿度计2 (LYWSD03MMC)。

v0.2.0-dev版本以后,已经支持自动发现功能,不需要任何配置。

不需要蓝牙网关。

LYWSD03MMC LYWSDCGQ/01ZM
LYWSD03MMC LYWSDCGQ/01ZM

必要条件

  • 已支持和测试版本 HassOS 4.13 (HassOS Release-4 build 13 (Stable))
    • 注意: 版本HassOS 4.14 存在蓝牙缺陷,蓝牙设备无法连接.
    • 其它版本有待大家提交测试报告
  • 需要在带有蓝牙适配器的设备上运行,已经在树莓派 (Raspberry PI 3 Model B) 上测试成功
    • 其它硬件有待大家提交测试报告

支持的设备

Name Model Model no.
小米 米家蓝牙温湿度计 LYWSDCGQ/01ZM
小米 米家蓝牙温湿度计2 LYWSD03MMC

功能

米家蓝牙温湿度计 (LYWSDCGQ/01ZM)

  • Attributes
    • temperature
    • humidity
    • battery

米家蓝牙温湿度计2 (LYWSD03MMC)

  • Attributes
    • temperature
    • humidity
    • battery

安装

你可以先在HACS设置菜单中,把这个库 (https://github.com/leonxi/mitemp_bt2) 添加到 HACS . 你将在集成菜单中找到定制组件,然后查找关键字 'Xiaomi Mijia BLE Temperature Hygrometer 2 Integration' 进行添加. 或者, 也可以通过将该自定义组件的 custom_component 文件夹,复制到 Home Assistant 的 config 文件夹.

设置 (可选)

v0.2.0-dev版本以后, 支持免配置自动发现,安装后即可自动找到符合条件的设备。

# configuration.yaml

sensor:
  - platform: mitemp_bt2
    mac: 'A4:C1:38:AA:AA:AA'
    mode: 'LYWSD03MMC'
    name: book room
    period: 60
  - platform: mitemp_bt2
    mac: 'A4:C1:38:FF:FF:FF'
    mode: 'LYWSD03MMC'
    name: living room
    period: 60

配置变量:

  • mac (Required): The MAC of your device.
  • mode (Optional): The mode of your device. Default LYWSD03MMC
  • name (Optional): The name of your device.
  • period (Optional): The scan period of your device. Default 300 seconds.

面板显示

LYWSD03MMC_PANEL_SHOW

待处理事项

  • 集成选项
    • (已支持) 增加自动发现选项,控制自动发现(启用/禁用)
    • (已支持) 增加周期选项,控制读取蓝牙设备数据周期(默认15分钟),避免频繁访问蓝牙设备,造成蓝牙设备耗电高
  • 已知问题
    • (已解决) 安装集成的时候,无法每次都显示扫描到的设备,并设置所在区域
    • (已解决) 设备区域和名称无法设置和修改
MIT License Copyright (c) 2020 席理加 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

小米蓝牙温湿度计2 Home Assistant 自定义组件 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/leon_xi/mitemp_bt2.git
git@gitee.com:leon_xi/mitemp_bt2.git
leon_xi
mitemp_bt2
sensor.mitemp_bt2
master

搜索帮助