Hi Guys I am currently decluttering my Automations and I wanted to send x Pictures at once with one service
I currently have following services in my Automation:
- service: camera.snapshot
data:
filename: /media/door_opened_1.jpg
target:
device_id: aaa
- service: camera.snapshot
data:
filename: /media/door_opened_2.jpg
target:
device_id: aaa
- service: camera.snapshot
data:
filename: /media/door_opened_3.jpg
target:
device_id: aaa
- service: camera.snapshot
data:
filename: /media/door_opened_4.jpg
target:
device_id: aaa
- service: camera.snapshot
data:
filename: /media/door_opened_5.jpg
target:
device_id: aaa
- service: telegram_bot.send_photo
data:
authentication: digest
caption: '1'
file: /media/door_opened_1.jpg, /media/door_opened_2.jpg
- service: telegram_bot.send_photo
data:
authentication: digest
caption: '2'
file: /media/door_opened_2.jpg
- service: telegram_bot.send_photo
data:
authentication: digest
caption: '3'
file: /media/door_opened_3.jpg
- service: telegram_bot.send_photo
data:
authentication: digest
caption: '4'
file: /media/door_opened_4.jpg
- service: telegram_bot.send_photo
data:
authentication: digest
caption: '5'
file: /media/door_opened_5.jpg
It works pretty solid but it is pretty nasty to maintain it in case I want to change something. And since I want to improve my skills I can maybe use the new aquired knowledge how to do it better in my future projects.
Therefore I have following questions:
Does anyone know if it is possible to define multiple files in one message?
I looked up the docs but they always mention file (not “fileS”) but they dont explicitly say that it is not possible so Im just curios.
Also the Forum always mentions single files but never multiple files (at least I didnt find anything)
Thanks in advance.