简体中文
English
简体中文
日本語

Unit NCIR Home Assistant 集成

本教程将介绍如何使用 Unit NCIR 单点红外测温传感器集成至 Home Assistant,实现非接触温度监测。

1. 准备工作

环境准备

  1. 参考 Home Assistant 官方文档安装 Home Assistant。
  2. 参考 ESPHome 官方文档完成 ESPHome Device Builder 插件安装。
  3. 查阅以下配置资料:

硬件产品

  • Unit NCIR
  • 兼容主控设备(如 Atom 系列、Stamp 系列、Stick 系列、Core/Basic 系列等)
注意
Unit NCIR 只是单独的传感器平台,需要额外的主控设备(如 Atom 系列、Stamp 系列, Stick 系列,Core/Basic 系列等)才能集成至 Home Assistant。

2. 修改配置

需要在 ESPHome 配置中启用 I²C 组件:

# Example configuration entry for ESP32
i2c:
  sda: GPIOXX
  scl: GPIOXX
  scan: true

这里的 GPIO 引脚会因为使用的主控设备不一而不同。比如使用 Atom Lite 作为主控:

# I2C Bus on Grove Port (HY2.0-4P)
i2c:
  sda: GPIO26
  scl: GPIO32

Unit NCIR 配置的范例:

yaml
1 2 3 4 5 6 7
sensor:
  - platform: mlx90614
    ambient:
      name: Ambient
    object:
      name: Object
    update_interval: 10s

3. 开始使用

当添加至 Dashboard 之后,您可以在 Home Assistant 中查看传感器数据:

4. 相关视频

Page Tools
PDF
On This Page