s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
931 stars 214 forks source link

Version Lite #332

Closed zilhos closed 10 months ago

zilhos commented 10 months ago

Hello, in my country the espcam version with more memory has not yet arrived. We only have the common version. My question is, could a lite version be made that contains only motion detection through images and notification to telegram. it would be great . From already thank you very much

klimentiy23 commented 10 months ago

It would really be nice to have a lightweight version with the main functions: 1 connect via mutte to the home assistant and work as a binary sensor as a motion detector and record on a flash drive. I think nothing else is needed; many will thank you.

klimentiy23 commented 10 months ago

I tried many times to use the camera as a motion sensor, but alas, my code never worked, simply because the camera says that it cannot connect to my mqtt mqtt_binary_sensor:

mqtt:
  - binary_sensor:
          name: "Cam1"
          state_topic: "homeassistant/sensor/ESP-CAM_1/status"
          value_template: >- 
              {% if value_json.RECORD == 'ON' %}
                {{'ON'}}
              {% else %}
                {{'OFF'}}
              {% endif %}
          device_class: motion
          qos: 1
s60sc commented 10 months ago

If by more memory you mean psram, the app cant work without psram, The app can be used as a lite version by simply not using / configuring unwanted features. I cant help with debugging mqtt connectivity to home assistant - I've never used it, only mosquitto. The mqtt feature was contributed by @gemi254

gemi254 commented 10 months ago

I confirm this is a bug because of the stars in mqtt_user_Pass.. Can you try it without password?

gemi254 commented 10 months ago

I had to add CONFIG_MQTT_PROTOCOL_311 on mqtt.cpp top in order to work properly Check this pool request https://github.com/s60sc/ESP32-CAM_MJPEG2SD/pull/334