#Add a dropdown view in the view section
1 messages · Page 1 of 1 (latest)
TL;DR: There's nothing really available to do what you want. Could you put something that could do what you want? Maybe.
It probably wouldn't be easy to put together but it would not be impossible. Here's the steps that I would probably take to try to make that design.
First, you probably would not be able to use Sections view.
Next, you would have to design your own header. A horizontal-stack card could hold all your buttons. I would use custom:button-cards for the flexibility the card offers.
For the actual "drop-down", I would cheat and use browser_mod to create a popup and style to look like your layout. The popup would be the tap_action of the custom:button-card (or a custom_field that can handle the tap_action.) The popup would hold a horizontal-stack card with similar buttons as your custom header. card_mod would probably be needed to help with the styling and placement on the screen.
To hide HA's header, I would use Kiosk Mode (but, IIRC, browser_mod can also do it, too.)
Now, here's the problem: This bit of code for your custom header would have to replicated on each view in order to function effectively. This could potentially be very tedious and time consuming especially when it comes to updating. An easy approach to "replicate" code easily is to use the Decluttering Card. You could define the code for the header once and easily call/display it with a couple of lines on each view. Another option would be to write the entire dashboard in YAML. This is a way more advanced option but it would allow you to use YAML anchors and !includes. If you're new to HA, I would hold off on this option for now (but it would not be hard to try later.)
@sweet nymph from Smart Home Solver recently released a video about the rules that he recommends when it comes to dashboard design. He shows using an input_select as a method of changing the rooms. Perhaps this might be an option even though it wouldn't be part of the header like you want. At the very least, it would be way easier to set up. https://youtu.be/pC-VBly1Y00?si=tPRShiK9leAnPPC0&t=652 (timestamp: 10:52)
If you want the PERFECT smart home dashboard, I created 7 rules that apply to any dashboard, in any house!
Links (affiliate)
Home Assistant Beginner's Guide: https://youtu.be/Z4gvkmJ8q48?si=GMwaBEdVMDxgRIuM
Home Assistant Green (AmeriDroid): https://ameridroid.com/products/home-assistant-green?ref=jpvafmyq
Home Assistant Green (Amazon): https...
thank you for your reply, i am now currently making a new dashboard in kiosk mode to see how it is.
i ran into a werid problem where im trying to use a picture "fold4.png" in my card but the image wont load. i can access it via http://ip:8123/local/fold4.png but not from https://homeassistant.domain.com/local/fold4.png
i even copied another image and it works fine netflix.png, its not the image because on my other house server the image shows up.
on the working server
on the broken server: