Foscam C2 doorbell

HI!

Im using Hass.io 0.9

Im trying to use my Foscam C2 to include a photo when someone press the doorbell.

I have added this in to my configuration.yaml
But i dosen’t get a photo in the folder.
If i remove the wihtelist_external_dirs then i get an error that it cant write to the folder!
Can someone please help me to understand whats missing or wrong!
I can see images in lovelace.

whitelist_external_dirs:
- ‘/tmp’

Foscam

camera:

  • platform: foscam
    ip: ipadress
    username: user
    password: passwd
    name: entre