While the relative positioning of entities on picture-maps is fine for a floor, it doesn’t suit a panel. If I resize the browser window, the background image of the floor scales and all icons move, effectively “staying in the same place” - that is fine and as it should be. But with
top: 50%
left: 10%
the badges slide around and change their positions and distances. No go! But since this is CSS, you can use absolute positioning. I didn’t find any documentation in the HA-docs about that, but it worked alright:
I’m looking to create similar views in Lovelace as I have in legacy frontend using CustomUI, is that at all possible? Different colors if family members are home or not, and diffrent colors depending on temperature and humidity etc.
I used binary_sensor/input_boolean state to do color change in type: state-icon, those are relatively easy, under style, --paper-item-icon-color is the off state color, --paper-item-icon-active-color is the on state color.
To use this method for sensor entities, like temperature and humidity, you’ll have to create template binary_sensor for each of them, that may not be what you want.
You may also want to look at this discussion about icon-template and customization.
I am trying to get this to work but I’m stuck. What I want is exactly shown at the beginning of this post. I want the first card full width and the following cards normal width.
What I understood is that I start with a vertical stack card where the banner is placed. What I do not get is where the rest of the cards come. If I place them in the vertical stack, all the cards are the full width. When I place them under the cards: from the view (first row) I only see the background image.
After the vertical-stack/banner, I’ve used 1 horizontal-stack that contains 4 vertical-stacks (4 columns).
Each vertical-stack (column) can have as many cards as you want.
Currently, I use custom:layout-card to replace the horizontal/vertical-stack combo.
Can you please post your updated ui-lovelace.yaml with the custom laycard added. I’ve been going nuts trying to convert this from old way (vertical-stack) to the new way.
Here is what I did with 4 columns in one of my views.
Just a reminder, the layout-card does not work exactly the same as just horizontal-stack/vertical-stack combos.
Hope this helps.
views:
- title: Main
id: Main
icon: mdi:home-assistant
panel: true
cards:
- type: vertical-stack
cards:
- type: custom:layout-card
layout: auto
max_columns: 4
max_width: [30%, 30%, 25%, 15%]
cards:
- type: vertical-stack
cards:
### this is a set of 2x3 camera cards in 1st column
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- < camera card 1>
- < camera card 2>
- < camera card 3>
- type: vertical-stack
cards:
- < camera card 4>
- < camera card 5>
- < camera card 6>
- < other cards in 1st column>
- break
- type: vertical-stack
cards:
- <cards in 2nd column>
- break
- type: vertical-stack
cards:
- <cards in 3rd column>
- break
- type: vertical-stack
cards:
- <cards in 4th column>
I know this article is quite old - you may not even be doing anything with HA any longer - in the off chance that you are, I wanted to say first off this is a fantastic dashboard. Sort of something that I would like to do.
I tried re-creating your .yaml files (or adding to the ones already in HA) and getting all sorts of strangeness.
Was your dashboard done with HACS implementation? (as I have not gotten that far in my setup yet - brand new to HA, moving over from HomeSeer).
@bearhntr, it’s been a while since I updated my banner but it is still working
Not sure how far you’ve got, this banner does not require anything from HACS at its simplest form, just basic lovelace UI in yaml. Once the banner/picture-elements is ready, all kinds of badge and customization can be added.
Thanks for the reply. Where specifically would your ‘script’ above go? I am trying to put everything into separate .yaml files as I build…keeping the configuration.yaml “clean”.
I was basically trying to figure out where the images went. I also tried my hand at creating a banner.png file - and was not sure on the dimensions to use for it - and then again, where to put it on the system. I am running Debian 11 and the HA Supervised installation
I am still learning and once I get a better grasp on some more of the basics, and I get everything integrated (looking at SmartThings stuff now for my Samsung Smart Appliances) – I would at some point love to have an LCARS interface on tablets mounted around the house. (LCARS is from Star Trek - The Next Generation…all of the screens on the ship)
Regarding the size of the banner image, it really depends on your display.
I created mine as 809x66. You can start with any size and adjust to fit your screen using any graphic app. It can be any image to your liking, even the LCARS image
I put my banner image file under the www folder. Just make sure you specify your folder under the allowlist_external_dirs in the configuration.yaml like: