Quick question: is it easy to include a pdf file to be viewed on the dashboard by uploading an instructions.pdf file?
This will be for now the short cut for my renters. Later I will add a video. What would be the best? A mp4 locally stored or just a link to a YouTube video? Is it possible to include a YouTube on the dashboard in HA?
See if the Webpage card works for you. It’s basically just an iframe.
The Webpage card allows you to embed your favorite webpage right into Home Assistant. You can also embed files stored in your <config-directory>/www folder and reference them using /local/<file>.
So, try putting your instructions.pdf in <config-directory>/www/ and create a lovelace card like this:
Thanks, this works for me! (I must have add an additional /, like /local/Instructions.pdf)
However, I’m wondering how to include for instance an external webpage like a YouTube video (with instructions) which I created myself? If I include https://youtube.com/playlist?list=x it shows a white panel.
found it already…
just add https ://www.youtube.com/embed/x where x is the unique YouTube identifier found in the URL of YouTube (remove space between https and ://
I added space otherwise its shown as a hyperlink)
How to make the pdf into full width? I have changed the aspect ratio, but nothing really works… at my iPad (instructions are for renters on the iPad at the wall).
hi all!!
I’m trying to do that, however I received an error saying “this page has been blocked by Chrome” and in the smartphone does not show up. Do you know why or a fix? thanks
In the end I created an instruction manual for renters based on the Markdown card. Although it’s a pity to setup it twice, the Markdown card automatically adjust to the width of the screen and integrates seamlessly.
I also used a grid card, but this works only on some browsers, like iPad:
Use a grid with a picture glance card. This way you can set a title and an action. Then have the pdf available and the image you want to use. Clicking the card will immediately open the corresponding pdf.
I tried using nextcloud as it has a built in PDF viewer. It works as a separate tab but i wanted in home assistant. I tried using iframe but nextcloud as a security feature blocks embedding and there is no easy way to undo it, especially in newer versions.