Foscam C1 Camera doesn't create a snapshot with camera.snapshot

Hi all,

I have troubles getting camera.snapshot working with a Fascom C1 camera. It shows images on the frontend, but when calling the camera.snapshot function there is no image written.
I have added /tmp to the whitelisting dirs in configuration.yml. Logs do not register any errors… I’m a bit list on how to get this working and get an screenshot when fe. a motion sensor is triggered…

Thnx,
Jeroen

1 Like

I’m wondering the same thing. Did you ever figure it out?

Could you post your scripts so we can analyze it?

I use the downloader component to achieve this,

In configuration.yaml:

    downloader:
      download_dir: www

The automation:

- id: lounge_snapshot
  alias: Lounge snapshot
  trigger:
  - platform: state
    entity_id: binary_sensor.lounge_motion
    to: 'on'
  action:
  - service: downloader.download_file
    data_template:
      url: "http://192.168.1.18:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=xxxxxx&pwd=xxxxxx"
      filename: "snap.jpg"
      overwrite: true
  - service: notify.pushb
    data:
      title: "Home Alert"
      message: "Motion Detected"
      data:
        file_url: https://xxx.xxx.xxx/local/snap.jpg
2 Likes