pdf-icon

Unit NCIR Home Assistant 集成

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

准备工作

注意事项

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

修改配置

需要在 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

开始使用

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

相关视频

On This Page