esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 34 forks source link

Animation does not work with remote files #5232

Open telefonmann opened 6 months ago

telefonmann commented 6 months ago

The problem

I would like to show an animation on a display connected to an esp32. Showing local and remote images does work. Showing local animations does work as well. But animations from remote files do not work. Error message is:

Could not find file '/config/esphome/https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating...

It seems the file is being searched locally. But the documentation says "Animation inherits all options from the image component", so as displaying remote images does work, I expect the remote animations to work as well.

Thanks in advance!

Which version of ESPHome has the issue?

2023.11.4

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

D1 mini ESP32

Component causing the issue

No response

Example YAML snippet

animation:
  - file: https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif
    type: RGB24
    id: dummy
    resize: 100x100

Anything in the logs that might be useful for us?

No response

Additional information

No response

guillempages commented 6 months ago

It's probably a case of "the documentation is outdated" ;-) The remote image implementation was only done recently, and was only done for images; the animation component does not support that (yet?)

@landonr you might want to take a look at this.

landonr commented 6 months ago

nice catch I'll check it out

Releah commented 1 month ago

This is still an issue :(

landonr commented 1 month ago

@Releah thanks for the reminder, i'll try to work on this today or tomorrow

landonr commented 1 month ago

https://github.com/esphome/esphome/pull/6876