tungmeister / hass-blind-card

Blind card for Home Assistant Lovelace UI
Apache License 2.0
32 stars 13 forks source link

Image replace. #13

Open smic717394 opened 2 years ago

smic717394 commented 2 years ago

Hi,

How to replace the image, I see there is a image folder but in the hass-blind-card.js there is no reference to any of the files, I assume they are in the sc-blind-selector-picture but the link is base64 encoded.

smic717394 commented 2 years ago

nevermind I got it

Photelegy commented 2 years ago

Could you please tell how you figured it out? Maybe with code or a screenshot?

Thank you very much!

tungmeister commented 2 years ago

@Photelegy you have to convert the image you want to base64 then use it in the code.

pista73 commented 2 years ago

ciao potete spiegare anche a me per favore come fare per sostituire l immagine , ho capito che va convertita in base64 , ma poi ?

grazie mille

sohail579 commented 1 year ago

when you say change the image is that so we can use our own picture for the window and blind?

CZX6 commented 1 year ago

Once I've converted the background image I would like to use to Base64 and replace the code in hass-blind-card.js, I'm not seeing the image change in Lovelace (after reload/reboot). Is there something else that needs to happen to see the changes?