HKI Framework 3.4.0
Homekit Infused 3.4.0
*A very large update this time, please take your time for this one!
Changes:
- Fixed color on the home assistant update card (in the HA Settings view), this would not be readable on light themes
- Fixed warnings in the Orange Darkness theme
- Fixed colors in sensor auto-filling addons (this would show colors meant for the battery addon, update your addons!)
- Fixed battery autofill addon, the code for this has changed update your addons!
- Added new variables to all themes, you are now able to set a customised shadow for the header, a button-on color and a button-on box-shadow (see breaking changes)
- Added option to show all views as a layout-view (which is the way views are currently handled in HKI) or a standard panel view (how lovelace would handle a panel view) (see instructions below)
- Added custom version of layout-card (this is v16, but modified which fixes some sizing issues on v16 thanks to @giuliandenicola) (see breaking changes)
- ALL gap cards have been removed from both the Framework as well as from the addons.
- ALL addons have been updated since gap-card is no longer used, update your addons! (see breaking changes)
- Added mini-graph-card in a popup (as seen in HKI v2), the auto-fill addon has extra options for this (see auto-fill sensor documentation)
- Added light-entity-card (this is working again and is now a requirement for the auto-filling light addon) (see breaking changes)
- The map is now a default card of the HKI Framework, this means you can no longer edit the location view (and can safely remove the folder from the user views), please comment if you like this change or if it should be reverted in the next update!
- Restyled the HKI Settings view, this should look slightly better now
- Tweaked some themes slightly (you will probably not even notice :P)
- Added loads of new smartthings icons to the images folder for you to use
- A lot of small bugfixes
BREAKING CHANGES WARNING BIG UPDATE WARNING BREAKING CHANGES
Layout-card: (This change will not break your current setup, though it is advised to update all code for the future)
Remove this from HACS and make sure you remove the /www/community/lovelace-layout-card/
folder! Restart Home Assistant and copy layout-card from the update package. You might need to re-add resources since HACS tends to remove them when uninstalling an addon.
/hacsfiles/lovelace-layout-card/layout-card.js
. When done restart again!!
For this to have any effect it can take a while before you see it. Clearing cache would be the fastest way (ctrl+f5 is not enough!) or running an incognito window. Running an incognito window after installing this is advised to be sure if it is working or not. If it doesn't work it will give you a big red error!
You can still use layout-card v13, though v16 fixes a few issues regarding window sizing on the desktop and it also fixes the horizontal slide on mobile phones. Press F12 in your browser to see the version number of layout-card. You should have 1.3.1 (clear cache to be sure!).
If this still doesn't work, download layout-card 16 from HACS, and then replace the file with the one from the update. (you might need to restart before any change can be seen). This can be a frustrating process!! (ultimately you can stay on layout-card 13 if all else fails)
Themes: (This change will not entirely break your current setup, though it is advised to update all code for the future)
Copy the entire themes folder from my repo (this will overwrite the theme user settings, and is the fastest and easiest way. If you had any custom settings setup you will have to do this again!
Light Entity Card: (This change will not entirely break your current setup, though it is advised to update all code for the future)
The color wheel is back and this time it is going to be the light-entity-card making it's return from a long time no see (HKI used the more-info-card for quite a while now). This card will complement the light-popup card and is now a requirement to show the color-wheel inside of the popup.
Make sure to install light-entity-card from HACS and add the resources (or check again here https://github.com/jimz011/homekit-infused/blob/master/docs/addons/auto-fill-lights-card.md)
Gap Cards: (This change will not break your current setup, though it is advised to update all code for the future)
Gap Cards have been removed entirely from the Framework and all addons. By default no gaps will be displayed except for the hardcoded stuff inside the framework. No gaps is the default lovelace behavior.
There is a better way to display gaps then to create a stack and 2 gap cards for each card or group of cards by doing it through CSS. Please read the documentation https://github.com/jimz011/homekit-infused/blob/master/docs/addons/gap-card.md
Extra Info:
One of the requested features was to be able to dynamically change the views depending on window size and such, I love the idea but it would make the setup unnecessary complicated for people that don't need these features and would add clutter to the current structure of HKI. I do however want to cater to those who seek more freedom on how views are created and as such I have added options to disable the standard hardcoded layout-cards on a per view basis.
This will allow people to add their own layout-card config and/or use panel views.
All views have an advanced mode added to them, turning on advanced mode will switch the default layout-view to a standard HA panel view, you could then rearrange the view entirely how you'd want with layout-cards or state-switches (e.g. have a different cards show up when accessing on a phone, tablet or desktop).
Since these features are advanced and will be best catered by the experienced HA users I won't make documentation on this.
People that do not need this but do use the auto fill addons on either the light or devices view should set these two views to 'advanced' in the HKI settings.
For the people that do want the advanced features you can enable this per view in the HKI settings menu. For great reference to do some advanced stuff you should take a look here https://github.com/thomasloven/lovelace-layout-card and here https://github.com/thomasloven/lovelace-state-switch
How to update:
I will first stress out that you will have to make a backup of your current setup (as you should always do).
You can find update paths for each version here https://github.com/jimz011/homekit-infused/tree/updates/