From 3cf424241607569f50f2530bc08aa7d180abf1e5 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 4 Apr 2020 11:57:40 +0300 Subject: [PATCH] Add light popup card for ceiling lights in tablet view --- config/configuration.yaml | 2 ++ config/lovelace/resources.yaml | 2 ++ config/packages/modules/system.yaml | 3 +++ config/tablet-lovelace.yaml | 19 +++++++++++++++++++ 4 files changed, 26 insertions(+) diff --git a/config/configuration.yaml b/config/configuration.yaml index a6ded9e..1d5b2c6 100644 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -132,6 +132,8 @@ zeroconf: # ─── PLUGINS ──────────────────────────────────────────────────────────────────── # +browser_mod: + spotcast: username: !secret spotify_spotcast_username password: !secret spotify_spotcast_password diff --git a/config/lovelace/resources.yaml b/config/lovelace/resources.yaml index bdfd063..d134053 100644 --- a/config/lovelace/resources.yaml +++ b/config/lovelace/resources.yaml @@ -40,3 +40,5 @@ url: /hacsfiles/weather-card/weather-card.js - type: module url: /hacsfiles/lovelace-folder-card/folder-card.js +- type: module + url: /hacsfiles/light-popup-card/light-popup-card.js diff --git a/config/packages/modules/system.yaml b/config/packages/modules/system.yaml index 4de1015..808f1d9 100644 --- a/config/packages/modules/system.yaml +++ b/config/packages/modules/system.yaml @@ -20,6 +20,9 @@ sensor: friendly_name: "SARAH's URL" value_template: !secret sarah_url +shell_command: + clear_logs: truncate -s 0 /config/home-assistant.log + script: sarah_restart: alias: System · Restart SARAH diff --git a/config/tablet-lovelace.yaml b/config/tablet-lovelace.yaml index 4e3152f..8c8f6b8 100644 --- a/config/tablet-lovelace.yaml +++ b/config/tablet-lovelace.yaml @@ -4,6 +4,25 @@ custom_header: decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates button_card_templates: !include_dir_merge_named lovelace/button_card_templates +popup_cards: + light.ceiling_lights: + title: Ceiling lights + style: + padding-bottom: 30px + card: + type: custom:mod-card + card: + type: custom:light-popup-card + entity: light.ceiling_lights + fullscreen: false + actionsInARow: 2 + actions: + - service: light.toggle + service_data: + entity_id: light.ceiling_lights + color: "#ffffcc" + name: Toggle + title: Tablet views: - title: Home