I have a esp32-camera (ttgo esp-wrover with PIR) that sends images to HA. It works well, but from time to time it stops sending images, while the sensors keep sending data to HA.
The restart switch fixes this problem every time and makes it send images again.
I want to automate restart of the camera if HA doesn’t receive an image in a given time.
Is there a way to include a sensor in the ESPhome-YAML that sends timestamp for the last image to HA?
It sends images to camera.ttgocam_1_camera like this:
Device log in ESPhome:
[12:42:11][D][esp32_camera:157]: Got Image: len=53392
[12:42:11][D][binary_sensor:033]: 'ttgocam_1 PIR': Sending state ON
[12:42:15][D][sensor:092]: 'ttgocam_1 WiFi Signal': Sending state -21.00000 dB with 0 decimals of accuracy
[12:42:16][D][binary_sensor:033]: 'ttgocam_1 PIR': Sending state OFF
I don’t think it is an image file sent to HA, but I don’t really know Where would I find it then?