I’m using HA telegram_bot to send messages and photos via nodered to my family. Since a few days I cannot send anymore photos via call service node and I’m struggeling to identify the issue. Sending messages via nodered works fine, only photos won’t work.
Sending photos from within HA settings > developer tools > services using telegram_bot.send_photo works fine as well.
The picture exists in the folder, the target is correct but the service node says “API error”. I’ve tried already different combinations of single / double quotes but the errors persist. With add. braces the error disappears but I still do not get a photo.
I recently updated to the latest HA and nodered versions, maybe thats the problem.
Does anybody have similar issues? How a working config looks like? How to debug further to understand what happens?
Thanks for your example. It helps to better understand it.
Interestingly your example only works for me if I add the path of the photo that is known to HA in the call service node to create the photo (/config/tmp/haustuer.jpg). In the function node I have to use the path that is known to nodered (/data/tmp/haustuer.jpg) otherwise I don’t get a photo. The file is known for both (nodered + HA) since I map tmp folder via “mount -o bind”.
Don’t know why it worked before but at least I now receive the photos again.