I have successfully set up the ESPHome integration of the ttgo t-camera.
esphome:
name: ringeapparat
platform: ESP32
board: esp-wrover-kit
I get the Successfully connected to 192.168.1.112
message, but even so I still struggle connecting to the Home Assistant API, it seems.
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 1 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 2 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 4 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
INFO Successfully connected to 192.168.1.112
[12:02:53][D][time:030]: Synchronized time: Mon Sep 16 12:02:53 2019
[12:02:53][C][esp32_camera:043]: ESP32 Camera:
[12:02:53][C][esp32_camera:044]: Name: Ringeapparat Camera
[12:02:53][C][esp32_camera:045]: Board Has PSRAM: YES
[12:02:53][C][esp32_camera:047]: Data Pins: D0:5 D1:14 D2:4 D3:15 D4:18 D5:23 D6:36 D7:39
[12:02:53][C][esp32_camera:048]: VSYNC Pin: 27
[12:02:53][C][esp32_camera:049]: HREF Pin: 25
[12:02:53][C][esp32_camera:050]: Pixel Clock Pin: 19
[12:02:53][C][esp32_camera:051]: External Clock: Pin:32 Frequency:20000000
[12:02:53][C][esp32_camera:052]: I2C Pins: SDA:13 SCL:12
[12:02:53][C][esp32_camera:053]: Reset Pin: -1
[12:02:53][C][esp32_camera:074]: Resolution: 640x480 (VGA)
[12:02:53][C][esp32_camera:097]: JPEG Quality: 10
[12:02:53][C][esp32_camera:099]: Contrast: 0
[12:02:53][C][esp32_camera:100]: Brightness: 0
[12:02:53][C][esp32_camera:101]: Saturation: 0
[12:02:53][C][esp32_camera:102]: Vertical Flip: ON
WARNING Disconnected from API: Timeout while waiting for message response!
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Timeout while waiting for message response!). Trying to reconnect in 1 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
INFO Successfully connected to 192.168.1.112
[12:03:02][D][time:030]: Synchronized time: Mon Sep 16 12:03:02 2019
[12:03:03][D][esp32_camera:157]: Got Image: len=26070
[12:03:03][D][binary_sensor:033]: 'Ringeapparat PIR': Sending state ON
[12:03:03][D][binary_sensor:033]: 'Ringeapparat Button': Sending state ON
[12:03:04][D][api:573]: Client 'Home Assistant 0.98.5 (192.168.1.10)' connected successfully!
[12:03:04][D][time:030]: Synchronized time: Mon Sep 16 12:03:04 2019
[12:03:04][D][binary_sensor:033]: 'Ringeapparat Button': Sending state OFF
[12:03:07][D][binary_sensor:033]: 'Ringeapparat PIR': Sending state OFF
[12:03:11][D][sensor:092]: 'Ringeapparat WiFi Signal': Sending state -68.00000 dB with 0 decimals of accuracy
[12:03:13][D][esp32_camera:157]: Got Image: len=24904
WARNING Disconnected from API: Timeout while waiting for message response!
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 1 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 2 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 4 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
INFO Successfully connected to 192.168.1.112
[12:03:30][D][time:030]: Synchronized time: Mon Sep 16 12:03:30 2019
[12:03:33][D][api:573]: Client 'Home Assistant 0.98.5 (192.168.1.10)' connected successfully!
[12:03:33][D][time:030]: Synchronized time: Mon Sep 16 12:03:33 2019
[12:03:38][D][esp32_camera:157]: Got Image: len=26136
WARNING Disconnected from API: Timeout while waiting for message response!
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 1 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 2 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
WARNING Couldn't connect to API (Error connecting to 192.168.1.112: [Errno 111] Connection refused). Trying to reconnect in 4 seconds
INFO Connecting to 192.168.1.112:6053 (192.168.1.112)
INFO Successfully connected to 192.168.1.112
When the button on the ttgo camera is pressed this action is fired. The tts.google_say is working, the message is sendt via notify.notify
action:
- service: sonos.snapshot
- service: media_player.volume_set
data:
entity_id: media_player.kjokken
volume_level: 0.6
- service: tts.google_say
entity_id: media_player.kjokken, media_player.terrasse, media_player.soverom, media_player.lekerom, media_player.bad
data:
message: 'Det ringer på!'
cache: false
- service: notify.notify
data:
title: Ringeapparat, hoveddør
message: Hvem ringer på?
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.ringeapparat_camera
- service: sonos.restore
… but there is no photo arriving on my iPhone, only this message inside the pop-up window on the iPhone:
ttgo cam do capture images (see log below), but does not foreward the photo to the notify message.
[12:03:02][D][time:030]: Synchronized time: Mon Sep 16 12:03:02 2019
[12:03:03][D][esp32_camera:157]: Got Image: len=26070
[12:03:03][D][binary_sensor:033]: 'Ringeapparat PIR': Sending state ON
[12:03:03][D][binary_sensor:033]: 'Ringeapparat Button': Sending state ON
[12:03:04][D][api:573]: Client 'Home Assistant 0.98.5 (192.168.1.10)' connected successfully!
[12:03:04][D][time:030]: Synchronized time: Mon Sep 16 12:03:04 2019
[12:03:04][D][binary_sensor:033]: 'Ringeapparat Button': Sending state OFF
[12:03:07][D][binary_sensor:033]: 'Ringeapparat PIR': Sending state OFF
[12:03:11][D][sensor:092]: 'Ringeapparat WiFi Signal': Sending state -68.00000 dB with 0 decimals of accuracy
[12:03:13][D][esp32_camera:157]: Got Image: len=24904
What is going on here?
FYI: This has worked as expected until I moved the cam from my lab (EDIT 9/17: setup to its final setup in the same location, using external power supply) to its final location with external power. This same power supply was used when it worked.
Any clue is highly appreciated