UPDATE SEPTEMBER 2021
Now using layout-card and a css-grid for changing between portrait and landscape. I always use this in porttrait so this one is only for you guys
Browser_mod is now used for popups !
Added a footer with som stocks and news info.
Added a “photoframe” popup that autoplays images with the swipe card.
Did some clean-up and added some stuff in the theme-file.
Added the ability to write notes straight on the dashboard. This has high WAF.
Moved media players into a separate popup.
Fine tuned some design elements.
And more…
Video demo of the responsive design and more:
If you like this you can always:
Hello,
So i posted my theme/custom lovelace UI on reddit a and some folks really liked it. I promised to post my code and that is why i started this topic.
FEATURES:
Modern and clean design using 3D-elements and blur-effects.
Popup windows.
Auto switch between portrait and landscape.
Notfications and more !
CONS:
This is specific made for the screen resolution used in the iPad pro 10,5 model but It is works good on desktop and bigger tablets also. For smaller tablets some resizing of the cards and css-grid might be needed.
PROS:
Well, i think it looks awesome
HOW TO SET UP:
1. In order for this to work/look as shown in my pictures and video you will need to have the latest versions of the following custom-cards installed:
optional: (someone was asking how i did to display my car information and that is done with:
I also use the Waze Travelsensor integration, Spotify integration, yahoo finance and more…
2. For the gradient icons/images used in the four top cards: Download them here and put them in your www folder.
The 3D weather icons can be downloaded here. For some weather conditions i have one pic for day and one for night. See my code for example and put them in your www folder.
3. Here is my lovelace code. I am not using yaml-mode. Just copy my code and overwrite the code inside your Raw config editor. (updated 15/9 2021)
4. And here is the needed theme file. Put it under /config/themes/Neon/neon.yaml (updated 15/9 2021)
5. You should also create a group for binary sensors and lights. This group should include the same sensors that you would like to show in your notifications.
6 Now it is up to you to change to your sensors, titels, etc. If you have a bigger tablet than the iPad 10,5 just increase the grid-gap to make it fit on your tablet. (see line 14 and 25 in the code) If you haver a smaller screen you can reduce the grid-gap but it will most likely look ugly if you make it to small. Then you will have to change the width of the grid itself and also change some of the width and margins of the elements/cards. Just ask me if you have any questions!
THANKS
@thomasloven for creating all amazing custom-cards. This design is only possible thanks to many of your cards.
@Mattias_Persson for inspiration. I did steal the code for the tap action animation from your code.
@tben for some inspiration. I borrowed the code for the colured img_cell behind the icons
First off, let me start by saying amazing work on this dashboard. I am currently trying to build my own using your guide. However, my custom:light-popup-card does not seem to pop-up. I literally copied your code and just changed the entity_id:
But is it not possible to install this somehow via the HACS manager? Would be cool if you could provide an installation method which does all the work and is easily to update
I do think that this card was not intended do be used inside the picture element. I experimented a little bit now and found out that when i add this code to a new lovelace view:
Honestly, this is amazing. Thanks for sharing and can’t wait to give it a go. Am new to HA/Lovelace so will be a good learning experience diving into this. Any chance if you think this will scale down ok to an iPad Mini?
Thanks ! I think it will look ok on an iPad mini just need some works to make it look perfect. Do not worry, i started with home Assistant two months ago myself so i think you can make it work
First of all, amazing UI. I want to run this on my iPad Air 2, so it needs a little modification.
I came from far, but there is one thing I can’t figure out.
Somehow, the card for the Calendar and Music seems to be to small in height. I need to push those cards up, so it first the screen. As you can see in the screenshot, the texts falls away. If I push them further, they will disappear.
I’ve pushed both cards up with a -top: -30%
I hope you can help me figure this out. If you need the full code, let me know.
Then you just need to put the Agenda and Music further down. Delete your -30px value and set it to 0px. Move the whole card instead with the parameters in the code above here until you get a result that you like.
thanks for the encouragement, have been working on this since yesterday and am slowly getting there! there really is no better way to learn than by doing. My formatting is still a bit off, but for now i’m just trying to figure out what i want where and how to get various elements in. so far i’ve added a camera feed to where your calendar section is, and a section for dishwasher controls which i’m pretty pleased about.
I have a couple questions though, if you don’t mind?
For the bottom Lighting section, is it possible to add groups of lights to the vertical sliders? I tried this but it keeps breaking the formatting - when i put in a single light entity it works as expected.
Secondly, I have Sonos speakers littered around my house rather than chromecast devices, is there any way you know to send spotify playlists to these? i tried to google it but i just get results for mini-media-player, which is great!, but it only lets you define a master player for each card, rather than let you pick which speaker you want to play on… at least as i understand it.
Thanks again for sharing your code. It’s incredibly impressive that you managed this in just 2 months. i’m honestly in awe.
Yes you can put groups of light to the vertical sliders. Thats how i am using it myself. You just need to add lights as a group in your config.yaml. Like this:
Then you just add light.fasad to the vertical slider.
And for sonos, i rembered reading something about it in the spotifyplayist–card forum and found this GitHub - ChrisK91/sonos-playlist-card Maybe you can use it.
The only downside of the sliders is that it is really hard to control them on a tablet when they are inside a swipe card, have you found a solution for that yet?