TMP102 温度传感器允许您在 ESPHome 中使用 TMP102(Sparkfun)和 LM75 传感器。使用此传感器需要在配置中设置 I²C 总线。
# 示例配置条目sensor: - platform: tmp102 name: "客厅温度" update_interval: 60s
update_interval (可选, 时间): 检查传感器的时间间隔。默认为 60s。
60s
address (可选, 整数): 传感器的 I²C 地址。默认为 0x48。 详见 I²C 地址。
0x48
传感器的所有其他选项。