本帖最后由 riceball 于 2022-6-21 19:01 编辑
前文见这里: 尝试利用红外热像仪传感器模块作人体存在检测
目前勉强可用,仅包括最基本的功能, 但是还有问题没有解决:
- 传递红外温度矩阵数组还是用的临时解决方案: text sensor, 这个最多传递255个字符,而且还要base64编码,十分不爽
代码地址: https://github.com/snowyu/esphome-components
使用方法
substitutions:
# Name the device and it's entities
device: amg8833
device_name: amg8833_1
esphome:
name: $device_name
platform: ESP32
board: esp32doit-devkit-v1
external_components:
- source: github://snowyu/esphome-components
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
reboot_timeout: 20min
# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "$device_name Fallback Hotspot"
password: !secret ap_password
logger:
api:
ota:
password: !secret ota_password
reboot_timeout: 2min
i2c:
# sda: 21
# scl: 22
# scan: true
amg88xx:
ir_camera:
name: $device_name ir camera
device_temperature:
name: $device_name device temperature
如果使用 IR_Camera 需要安装 Thermal Vison 集成
然后修改HA configuration.yaml :
camera:
- platform: thermal_vision
name: Prototype Thermal Camera
overlay: true
pixel_sensor: sensor.amg8833_1_ir_camera
auto_range: true
|