Hey All,
where i need to add the - delay: to my code?
i need the image take after 3 sec the trigger start.
this is how my code set up.
trigger:
- entity_id: binary_sensor
from: 'off'
platform: state
to: 'on'
action:
- data:
entity_id: camera
filename: /home/homeassistant/.homeassistant/camera/image.jpg
service: camera.snapshot
- data:
message: gate
target: '285788'
service: telegram_bot.send_message
- data:
file: /home/homeassistant/.homeassistant/camera/image.jpg
target: '285788'
service: telegram_bot.send_photo