hi there,
had the following code/script working perfect. now it does make a directory, but no (video) file…
alias: fotos deurcam bij deurbel indrukken
description: 'maakt wel map , geen file '
trigger:
- platform: state
entity_id: binary_sensor.xxxxxx_button_pressed
to: 'on'
condition: []
action:
- service: camera.record
data:
filename: /media/deurcam/vids/deurcam_{{ now().strftime("%Y%m%d-%H%M%S") }}.mpeg
duration: 2
target:
entity_id: camera.xxxxx_main
mode: queued
max: 100