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

 找回密码
 立即注册
查看: 1076|回复: 1

[求助] 求助:ESP32 CAM 接入HA,老是重启

[复制链接]

3

主题

35

帖子

310

积分

中级会员

Rank: 3Rank: 3

积分
310
金钱
275
HASS币
0
发表于 2022-12-3 15:51:46 | 显示全部楼层 |阅读模式
本帖最后由 iamouryu 于 2022-12-3 16:08 编辑

ESP32 CAM 开发版,单独接了一个hlk的人体存在传感器,烧录后接入homeassistant,发现常出现设备不可用。

                               
登录/注册后可看大图


看日志,当时是“连接成功”,貌似是重启了,连接WIFI成功,
[16:00:58][D][esp32_camera:168]: Got Image: len=10240
[16:01:06][D][esp32_camera:168]: Got Image: len=9571
[16:01:07][D][esp32_camera:168]: Got Image: len=10266
[16:01:08][D][api:102]: Accepted ::FFFF:C0A8:7B0F
[16:01:08][D][api.connection:917]: Home Assistant 2022.11.5 (::FFFF:C0A8:7B0F): Connected successfully
[16:01:16][D][esp32_camera:168]: Got Image: len=9687
[16:01:17][D][esp32_camera:168]: Got Image: len=9807
[16:01:26][D][esp32_camera:168]: Got Image: len=9808
[16:01:27][D][binary_sensor:036]: 'rip-sensor': Sending state OFF
[16:01:27][D][esp32_camera:168]: Got Image: len=9737
[16:01:36][D][esp32_camera:168]: Got Image: len=9764
[16:01:38][D][esp32_camera:168]: Got Image: len=9779
[16:01:38][D][binary_sensor:036]: 'rip-sensor': Sending state ON
[16:01:39][D][api:102]: Accepted ::FFFF:C0A8:7B0F
[16:01:40][D][api.connection:917]: Home Assistant 2022.11.5 (::FFFF:C0A8:7B0F): Connected successfully
[16:01:46][D][esp32_camera:168]: Got Image: len=9804
[16:01:47][D][esp32_camera:168]: Got Image: len=9983
[16:01:56][D][esp32_camera:168]: Got Image: len=9923
[16:01:57][D][esp32_camera:168]: Got Image: len=9934
[16:01:58][D][binary_sensor:036]: 'rip-sensor': Sending state OFF
[16:02:05][D][binary_sensor:036]: 'rip-sensor': Sending state ON
[16:02:07][D][esp32_camera:168]: Got Image: len=10004
[16:02:08][D][esp32_camera:168]: Got Image: len=9511
[16:02:17][D][esp32_camera:168]: Got Image: len=9601
[16:02:26][D][binary_sensor:036]: 'rip-sensor': Sending state OFF
[16:02:26][D][esp32_camera:168]: Got Image: len=9985
[16:02:27][D][esp32_camera:168]: Got Image: len=9952
[16:02:28][D][esp32_camera:168]: Got Image: len=9947
[16:02:29][D][esp32_camera:168]: Got Image: len=9970
[16:02:37][D][esp32_camera:168]: Got Image: len=10001
[16:02:40][D][esp32_camera:168]: Got Image: len=9986
[16:02:40][D][api:102]: Accepted ::FFFF:C0A8:7B0F
[16:02:40][D][api.connection:917]: Home Assistant 2022.11.5 (::FFFF:C0A8:7B0F): Connected successfully
[16:02:47][D][esp32_camera:168]: Got Image: len=10013

有老大知道是咋回事嘛.....


ESPHOME 使用的代码
esp32_camera:
  external_clock:
    pin: GPIO0
    frequency: 20MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22
  power_down_pin: GPIO32
  resolution: QVGA

  # Image settings
  name: My Camera

binary_sensor:                      
  - platform: gpio
    pin: GPIO13
    name: "rip-sensor"
    device_class: motion






回复

使用道具 举报

56

主题

929

帖子

4075

积分

论坛元老

Rank: 8Rank: 8

积分
4075
金钱
3146
HASS币
0
发表于 2022-12-5 17:20:41 | 显示全部楼层
换个好的电源试试
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 05:36 , Processed in 0.121981 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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