โจ A different take on designing a Lovelace UI (Dashboard)
Workarounds for known issues:
Conditional Media Blur Fix the issue where the blurred part of the image didn't update properly.
browser_mod Popups If you've previously applied the 2023.7 patch, please reinstall browser_mod and clear cache.
Workarounds for known issues:
https://github.com/matt8707/hass-config/commit/7df57eae427bbdf8e1e0397dcc43f4321b9d547c add state translations, issue https://github.com/custom-cards/button-card/issues/646
patch browser_mod - replace /custom_components/browser_mod/browser_mod.js
with (unzipped)
browser_mod.js.zip and clear cache, PR here https://github.com/thomasloven/hass-browser_mod/pull/588/commits/c418f821698dbf47ff6a1ce372caab7552414720
https://github.com/matt8707/hass-config/commit/860a0463604385a350b9aa7d1ad3e6bef7d137aa update header styles popup patch, issue https://github.com/thomasloven/hass-browser_mod/issues/587
https://github.com/matt8707/hass-config/commit/34011e1f37e4b1e98c6e2bc66316e180c17bdafb disable tilt if text appears over popup, issue https://community.home-assistant.io/.../162594/5016
https://github.com/matt8707/hass-config/commit/2699776ef688c9d3358b23a25bf1da28e088dab2 - Card borders were introduced in Home Assistant 2022.11. This dashboard hides all card borders but if you add additional cards you'll have to hide the borders yourself. Closes https://github.com/matt8707/hass-config/issues/118
Examples
- type: custom:button-card
styles:
card:
- border-width: 0
- type: entities
entities:
- sun.sun
card_mod:
style: >
:host {
--ha-card-border-width: 0;
}
https://github.com/matt8707/hass-config/commit/30fc6cb7a89df47ea3f26f36dbf98cbbdb0a79a9 - Long-standing issue with wiggling icons on small screens has been resolved. When tapping, the animated icons moved back and forth a couple of pixels. Closes https://github.com/matt8707/hass-config/issues/137
https://github.com/matt8707/hass-config/commit/63aacb8f50ae907862e5456c02f8e2d874a39f9d - Brings back the previous look with vertically centered popups when using browser_mod 2.2.0
https://github.com/matt8707/hass-config/commit/d8f8f97c81b856cc4373bbafea33657ac810ad95 - Found a way to escape a card and access parent cards. This example tracks swipe-card and sets the grid title from conditional_media
https://github.com/matt8707/hass-config/commit/ad624e0da9520a2b304f82a57b92c2b6f289a4ad - "youtube-watching" is now faster and works without a container. matt8707/youtube-watching for more info
No new features but pushing this because of the new browser_mod 2 update
style
in data
is reserved for --css variables and card_mod
will not work. However, what does work really well now is to use card_mod
(and where needed mod-card
) inside content
.themes.yaml
is dead, use theme variables. That said, I couldn't get --popup-header-background-color
to work at all.browser_mod.toast
is completely gonehttps://github.com/thomasloven/hass-browser_mod
A quick way to adjust brightness. Bypasses default tap_action. Only implemented for lights.
๐ Mushroom. Popups are still auto-generated. If you're using light groups all lights within the group will also populate. This change removes DBuit/light-popup-card and ljmerza/light-entity-card.
themes.yaml
and sidebar.yaml
are now located in the root folder and manually included in configuration.yaml
All templates in a single file โ Folder with each template in separate files
button_card_templates.yaml button_card_templates/
... โโโ base.yaml
โโโ circle.yaml
โโโ climate.yaml
โโโ ...
Folder "include" merged by domain โ Folder "packages" merged by device or area
include/ packages/
โโโ automation.yaml โโโ balcony_lights.yaml
โโโ binary_sensor.yaml โโโ climate_electrolux.yaml
โโโ camera.yaml โโโ computer_imac.yaml
โโโ ... โโโ ...
Popups in subfolder called "footer" โ Popups are prefixed with "footer_"
popup/ popup/
โโโ footer/ โโโ footer_history.yaml
โย ย โโโ history.yaml โโโ footer_nas.yaml
โย ย โโโ nas.yaml โโโ footer_router.yaml
โย ย โโโ router.yaml โโโ ...
โย ย โโโ ...
Modernize dashboard with (slightly) more distinct colors and text. A lot of css variables in button-cards-templates are moved to themes.yaml.
All hold_action
's are replaced with double_tap_action
Note: On touch devices, pressing two buttons in quick succession will fail to toggle! The last pressed button will register as a double tap and open the popup for that card. This bug is also present in stardard type button.
Removed the sidebar footer to make space for additional sidebar content. The new footer is placed at the bottom of the main layout and collapses on mobile.
Using the notify variable you can add notifications to the footer. More examples here ui-lovelace.yaml#L476-L605
Default (false) | Exclamation (true) | Number (int) |
---|---|---|
return 1 !== 1; |
return 1 === 1; |
return 1 + 1; |
Scrolls the text if the title is longer than the width of the card
Adds a 3D effect to any button-card using https://micku7zu.github.io/vanilla-tilt.js/
this._config.template
)All releases - matt8707/hass-config/releases All changes - matt8707/hass-config/commits/master
If you want, you can buy me a beer :blush:
This is now the top thread of all time ๐ฎ
Buttons custom:button-card
Theme custom:card-mod
Sidebar
Database
๐ก SQL command to list worst offenders. I managed to decrease my db size by โ 80%
docker exec -it mariadb \
mysql homeassistant -u"root" -p"password" \
-e"SELECT entity_id, COUNT(*) AS count FROM states GROUP BY entity_id ORDER BY COUNT(*) DESC LIMIT 10;" \
-e"SELECT JSON_VALUE(event_data, '$.entity_id') AS entity_id, COUNT(*) AS count FROM events WHERE JSON_VALUE(event_data, '$.entity_id') IS NOT NULL GROUP BY JSON_VALUE(event_data, '$.entity_id') ORDER BY COUNT(*) DESC LIMIT 10;"
Other
If you want, you can buy me a beer :blush:
vertical-stack
, easier to add various cardsmarkdown
โ custom:button-card
, faster and easier to stylemarkdown
โ custom:button-card
horizontal-stack
and margin: 0
If you want, you can buy me a beer :blush:
Retroactive release
While picture elements is still a valid card for layouts that doesn't follow a specific grid, this dashboard does. Instead of placing button cards using coordinates, it's now placed onto a grid that is responsive.
Layout custom:layout-card
Buttons custom:button-card
input_boolean
helpers anymoreTheme custom:card-mod
Deprecated If you're looking for picture elements, browse this repository before March 2021 https://github.com/matt8707/hass-config/tree/c9dd19e04bd4fde2322e610a42f4e246b58ee19a
Includes Since this configuration is split into several yaml files, I'm using lovelace-gulp-watch, which auto updates lovelace if an included file is changed.
Known issues
Support If you want, you can buy me a beer :blush:
Retroactive release