I have made (with help of AI) a card for Home Assistant that gives you the ability to have an actual full width header. I have been looking for something similar but couldn’t really find it so decided to make one that suits my needs.
It is fully configurable via the UI and supports the sections dashboard.
The card does have bugs though, so use with caution .
Why the name HKI? Well in the past I shared a complete dashboard called Homekit Infused. And for the lack of a better name I simply gave it the same abbreviation, so bite me . I hope someone will enjoy this card.
@nikc10 Thanks, well those are just button cards (like in HKI5). The only difference is that they were pre templated for you. However I can share the code.
Just add a grid section on your dashboard, add any card and click on code editor.
Unfortunately button card doesnt support the visual editor, but… you can simply copy each button with the UI copy/paste feature and add buttons to your grid.
BTW, any continuation of the full HKI project has been cancelled. All stuff that HKI had that simply can not be done with current cards will be released (like the header and navigation card). But none of the pre templated core or custom cards will be ported.
However… I will rework the HKI documentation to include examples for stuff like this so that you can recreate what would have been HKI 7 with ease.
BREAKING CHANGES: The weather settings for the card have been reset, if you already set them up they will not be removed, however if you want to edit it you will have to redo the weather again.
New Features:
The weather slot is now renamed to info display
The info display can now be modified to show the day, time, date or combination of them.
The info display can now also have a custom badge. The text and icon support jinja templates.
All info displays support a tap_action.
Changes:
Refactored card to have a lot more functions with less code
Performance optimizations
Time/date automatically translates to the set language in HA
The info display has been removed in favor of a slot based system. You will need to reconfigure anything you had placed into the info display.
Changes:
Info display has been replaced with a top header slot system
You can now populate 3 slots (left, center, right) with the options previously available in the info_display
Fixed a bug whenever the header wasn’t fixed to the top it would overflow the container. When this setting is disabled it will now behave like a normal card.
New Features:
You can now populate the same (info) card into any slot (e.g. you want to show the current date in the left slot and the time in the right)
You can now set global defaults for each slot, as well as individually (e.g. styles, colors, pills, borders etc)
Each slot can also have a separate offset for mobile phones to finetune your setup
3 new content types for each slot are added, you can now select a button, a spacer or notifications to show in one of the slots
The spacer can be used to limit content in the other slots so they will not overflow. When using a spacer it will fill up that slot with an invisible card (this can be handy if you want to populate 2 slots, but not have both slots take 50% of the screen). The spacer can have a tap_action which gives you an invisible tap_action.
The button is simple and can be configured to have any icon, any label and do any tap_action
2 new tap_actions have been added to the list and can be used on any of the cards in the slots, these are back, which will take you back to the previous page (this way it can be used as a replacement for the back gesture on subviews when using e.g. kiosk mode). The other tap_action will open the sidebar, also very usefull when using kiosk mode)
Coming Soon:
The card has been made compatible and ready for the upcoming HKI Notification Card, which will be released very soon. This slot can already be selected, but without the card and custom_component this will not do anything yet. A little patience will be required.
Tip:
You can however… edit this card in the yaml editor (just rename the custom:hki-notification-card) to any card you want and go back to the visual editor. You can now use the visual editor to set that card up inside the header. There is a reason that it isn’t an actual option (but more of an easter egg) because I will not support this officially, but at least you can.
Enjoy this major release and keep an eye out for new HKI cards in the near future!
1.2.1
Changes:
Fixed a bug where tap_action more-info or toggle would not save the entity in the visual editor
Added new background blend options
Background image can now be zoomed
Added extra settings for slots to overflow into other slots
1.2.2
Changes:
Added options for border-radius, box-shadow, border-style, border-color and border-width options to be used with the background/image/color.
I have recently shared my config for the buttons with you. But I have actually decided to make my own instead. Not as powerful as the custom:button-card (as that is the king of buttons). But at least a lot easier to setup and configure.