跳转到内容

OPT3001 环境光传感器

opt3001 传感器平台允许您在 ESPHome 中使用 OPT3001 (数据手册) 环境光传感器。此传感器需要在您的配置中设置 I²C 总线 才能工作。

OPT3001 环境光传感器。
# Example configuration entry
sensor:
- platform: opt3001
name: "OPT3001 Illuminance"
address: 0x44
update_interval: 60s
  • name (可选,string): 传感器的名称。

  • address (可选,int): 手动指定传感器的 I²C 地址。 默认为 0x44(地址引脚拉低时的地址)。如果地址引脚拉高, 地址为 0x45。如果地址引脚连接到 SDA,地址为 0x46。如果 地址引脚连接到 SCL,地址为 0x47。

  • update_interval (可选,Time): 检查 传感器的间隔。默认为 60s。

  • id (可选,ID): 手动指定用于代码生成的 ID。

  • 来自 Sensor 的其他所有选项。