Skip to content

Instantly share code, notes, and snippets.

View Mariusthvdb's full-sized avatar

Marius Mariusthvdb

View GitHub Profile
@Mariusthvdb
Mariusthvdb / fold-entity-row.js
Last active July 12, 2025 21:02
Edited fold-entity-row
var t,e,n,i,r,o,a,s,u;function l(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=N(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e,n,i){var r=v(O(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof r?function(t){return r.apply(n,t)}:r}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Ref
##########################################################################################
# My themes file, using some anchors to set generic parts for all themes, and dedicated
# sections for dark and light themes.
#
# NOT using the light/dark_mode functionality, which doesnt fit my needs.
#
# config:
#
# frontend:
# themes: !include_dir_merge_named /config/frontend_themes
@Mariusthvdb
Mariusthvdb / card-mod-themes.yaml
Last active July 11, 2025 13:43
card-mod-themes
##########################################################################################
# https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/419
# My 'Custom header' card-mod theme, allowing to color individual view icons and have an
# optional replacement for the three-dots option menu
# Set left menu icons, animations and colors, and add a notification badge next to it
# set backgrounds to override the default background set in theme
# https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/1236
# most interface elements are now set using the new Kiosk-mode on
# https://github.com/NemesisRE/kiosk-mode
@Mariusthvdb
Mariusthvdb / sidebar-config.yaml
Last active July 17, 2025 17:26
sidebar-config
##########################################################################################
# Global settings Custom sidebar https://github.com/elchininet/custom-sidebar
# version https://github.com/elchininet/custom-sidebar/releases/tag/v10.4.0
# introducing state_translated function
# @mariusthvdb 16-07-2025
# https://community.home-assistant.io/u/mariusthvdb/summary
#
# still in card_mod theme: conditional animations and the notification badge on collapsed menu icon
##########################################################################################
# default_path: /ui-overzicht/welkom
@Mariusthvdb
Mariusthvdb / pre-2025.5-sidebar-config.yaml
Last active May 6, 2025 12:08
Configuration file for custom-sidebar
##########################################################################################
# Global settings Custom sidebar https://github.com/elchininet/custom-sidebar
# version https://github.com/elchininet/custom-sidebar/releases/tag/v7.0.0
# @mariusthvdb 25-11-24
# https://community.home-assistant.io/u/mariusthvdb/summary
#
# still in card_mod theme: conditional animations and the notification badge on collapsed menu icon
##########################################################################################
# keep colors even when selected (and not change to the default HA styling in that case)
@Mariusthvdb
Mariusthvdb / themes-card-view
Created September 28, 2024 08:42
themes-card-view
meteoalarm:
card-background-color: rgb(16,55,115)
primary-text-color: rgb(254,255,244)
secondary-text-color: rgb(101,158,198)
plex:
card-background-color: black
##########################################################################################
# https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/419
# My 'Custom header' card-mod theme, allowing to color individual view icons and have an
# optional replacement for the three-dots option menu
# Set left menu icons, animations and colors, and add a notification badge next to it
# set backgrounds to override the default background set in theme
# https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/1236
# most interface elements are now set using the new Kiosk-mode on
# https://github.com/NemesisRE/kiosk-mode
# using Custom sidebar https://github.com/elchininet/custom-sidebar/discussions/163
@Mariusthvdb
Mariusthvdb / text-input-full-row.js
Last active May 1, 2023 07:57
experimental rebuild of text-input-row to use Lit in stead of Polymer
const Name = "Text-input-full-row";
const Version = "2023.5.01";
const Description = "adapted to use local Lit";
const Url = "https://github.com/Mariusthvdb/text-input-full-row";
console.info(
`%c ${Name} \n%c Version ${Version} ${Description}`,
"color: gold; font-weight: bold; background: black",
"color: white; font-weight: bold; background: steelblue"
);
@Mariusthvdb
Mariusthvdb / buttons_dashboard_menu.yaml
Last active March 31, 2023 14:25
Buttons for dashboard menu
type: horizontal-stack
cards:
- type: custom:button-card
template: button_dashboard_menu
variables:
path: home
board: ui-overzicht
# view: >
# [[[ return window.location.pathname.split('/')[2]; ]]]
# dash: >
##########################################################################################
# My themes file, using some anchors to set generic parts for all themes, and dedicated
# sections for dark and light themes. NOT using the dark_mode functionality, which doesnt
# fit my needs.
# config:
#
# frontend:
# themes: !include_dir_merge_named /config/frontend_themes
#
# @mariusthvdb