Can I use the Restful command response data https://www.home-assistant.io/integrations/rest_command/#using-rest-command-response-in-automations to receive an image? I have a webhook that returns a jpg as a response. I am currently using the generic camera but that continuously polls when I only rarely want to receive an image.
#Restful Command - response data for image?
7 messages · Page 1 of 1 (latest)
The answer is no. You can not use the response vaiable for images. The response of "http://10.1.1.241:11080/endpoint/@scrypted/webhook/public/62/xxxxxxxxxx/takePicture" could not be decoded as text
Why not encode it as base64?
I have no control over the endpoint.
Use an automation to download the image locally and point your generic camera to the local image.
There's a limit_refetch_to_url_change option for the generic camera. If the endpoint ignores query parameters you could do some template magic to build a URL that only changes when needed and uses a query parameter to update the URL.
I may be an idiot. I can use the webhook URL directly in my rarely needed notification, 🤦♂️