gickowtf / pixoo-homeassistant

Home Assistant Integration for Divoom Pixoo 64
MIT License
112 stars 12 forks source link

[Feature] Added the gif page_type #68

Closed Mrredstone5230 closed 5 months ago

Mrredstone5230 commented 5 months ago

This adds animated gifs support to the integration!! Now, since the device only supports url's, the integration only supports that. (Altough, it's technically possible to host a gif/webpage in HA, as can be seen in my feat/updatable-text-demo branch).

As said in the documentation, the device only supports gif files size 16x16 ,32x32 and 64x64. If an incorrect sized gif is passed to the device, it will crash and reboot. To fix this, here's maybe a good list of instructions to follow when wanting to give the pixoo64 a gif:

1- Download the gif on your computer. 2- Resize your gif to 16x16, 32x32 or 64x64. I know some websites say it's 64x64, but it has to actually be 64x64. You can resize gifs on multiple websites. Here's an example. (You only have to select manually the width and height of the size down the page). 3- Re-download the gif. 4- Re-upload the gif. You can use many image services like this one. (Make sure you use the gif file's link, and not the "gif viewing page". You can get that by right-clicking the gif on the website, and then clicking "Copy Image Link". The link in your clipboard probably now ends in .gif, like your file. (Although this might not be 100% the case.))

Example use of the page:

- page_type: gif
  gif_url: https://i.ibb.co/tKnvLs2/ezgif-5-30ff95e9ca.gif

Closes #66.