How to save a url as an image?

Hi All,
I’m writing an automation where I need to save an url (passed through json) as a file so I can do other stuff with image. The IP and port will be constant. I’d love some advise.

A possible (long) way - create a camera entity for this url, then save a snapshot.
In your case - create a template sensor with this url (or save it in input_text in an automation), then use this entity as a source for that camera entity.

Thanks for the fast response. I must have gotten distracted as i was writing and forgot to mention that the rest of the url is always changing.

This changes nothing, camera entity accepts a templated url.

Actually an image component may be better suited.

1 Like

I’m sorry, I don’t I understand, I’m still pretty new.

1 Like

TY! That was exactly what a needed.