请选择 进入手机版 | 继续访问电脑版

『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1102|回复: 0

红外热像仪传感器模块 AMG88XX ESPHome 组件开发实践

[复制链接]

19

主题

290

帖子

1507

积分

论坛技术达人

积分
1507
金钱
1202
HASS币
130
发表于 2022-6-20 21:53:42 | 显示全部楼层 |阅读模式
本帖最后由 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

评分

参与人数 2金钱 +10 收起 理由
sorrypqa + 5 大神666!
xuchida + 5 膜拜大神!

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-3-29 14:12 , Processed in 0.048342 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表