Skip to content

Instantly share code, notes, and snippets.

View iantrich's full-sized avatar
🍺
Cheers!

Ian Richardson iantrich

🍺
Cheers!
View GitHub Profile
anchors:
card_base: &card_base
type: custom:button-card
show_name: false
aspect_ratio: 1/1
notification_count_style: &notification_count_style
background-color: >
[[[
function activeCount(entities, active, operator) {
var count = 0;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
function t(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}const e=new WeakMap,s=t=>"function"==typeof t&&e.has(t),i=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,n=(t,e,s=null)=>{let i=e;for(;i!==s;){const e=i.nextSibling;t.removeChild(i),i=e}},r={},o={},a=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${a}--\x3e`,h=new RegExp(`${a}|${l}`),c="$lit$";class d{constructor(t,e){this.parts=[],this.element=e;let s=-1,i=0;const n=[],r=e=>{const o=e.content,l=document.createTreeWalker(o,133,null,!1);let d=0;for(;l.nextNode();){s++;const e=l.currentNode;if(1===e.nodeType){if(e.hasAttributes()){const n=e.attributes;let r=0;for(let t=0;t<n.length;t++)n[t].value.indexOf(a)>=0&&r++;for(;r-- >0;){const n=t.strin
transparent:
# Main colors
primary-color: '#5294E2' # Header
accent-color: '#E45E65' # Accent color
dark-primary-color: 'var(--accent-color)' # Hyperlinks
light-primary-color: 'var(--accent-color)' # Horizontal line in about
ha-card-border-radius: '20px'
ha-card-background: 'rgba(150, 150, 150, 0.1)'
# Text colors
const LitElement = Object.getPrototypeOf(
customElements.get("hui-view")
);
const html = LitElement.prototype.html;
class RokuCard extends LitElement {
static get properties() {
return {
hass: {},
_config: {},
const LitElement = Object.getPrototypeOf(
customElements.get("hui-view")
);
const html = LitElement.prototype.html;
class RokuCard extends LitElement {
static get properties() {
return {
hass: {},
_config: {},
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
type: picture-elements
image: https://i.scdn.co/image/1ee2055a078d87a5a55366189409b9e1d820972a
elements:
- type: icon
icon: mdi:play
tap_action:
action: call-service
service: spotcast.start
service_data:
device_name: Office Display
type: picture-elements
image: https://i.scdn.co/image/1ee2055a078d87a5a55366189409b9e1d820972a
elements:
- type: icon
icon: mdi:play
tap_action:
action: call-service
service: spotcast.start
service_data:
device_name: Office Display
{
"data": {
"172733314": {
"authors": [
"@ludeeus"
],
"category": "integration",
"description": "Manage (Install, track, upgrade) and discover custom elements for Home Assistant.",
"full_name": "custom-components/hacs",
"hide": false,