This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! ***************************************************************************** | |
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LitElement = Object.getPrototypeOf( | |
| customElements.get("hui-view") | |
| ); | |
| const html = LitElement.prototype.html; | |
| class RokuCard extends LitElement { | |
| static get properties() { | |
| return { | |
| hass: {}, | |
| _config: {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LitElement = Object.getPrototypeOf( | |
| customElements.get("hui-view") | |
| ); | |
| const html = LitElement.prototype.html; | |
| class RokuCard extends LitElement { | |
| static get properties() { | |
| return { | |
| hass: {}, | |
| _config: {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| anchors: | |
| card_base: &card_base | |
| type: custom:button-card | |
| show_name: false | |
| aspect_ratio: 1/1 | |
| notification_count_style: ¬ification_count_style | |
| background-color: > | |
| [[[ | |
| function activeCount(entities, active, operator) { | |
| var count = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { html, LitElement, TemplateResult, customElement, property, CSSResult, css } from 'lit-element'; | |
| import { HomeAssistant, applyThemesOnElement } from 'custom-card-helpers'; | |
| import { ListCardConfig, DataTableColumnContainer } from './types'; | |
| import { CARD_VERSION } from './const'; | |
| /* eslint no-console: 0 */ | |
| console.info( | |
| `%c LIST-CARD \n%c Version ${CARD_VERSION} `, | |
| 'color: orange; font-weight: bold; background: black', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - id: '1576081655328' | |
| alias: Grandfather Clock | |
| trigger: | |
| - minutes: '0' | |
| platform: time_pattern | |
| seconds: '0' | |
| condition: | |
| - after: 09:00:00 | |
| before: '23:00:00' | |
| condition: time |