From b7b8fa80e1e520e6a66bb22140b2d3c2b99a8250 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Mon, 16 Mar 2020 22:28:22 +0200 Subject: [PATCH] Use glance for lights on home screen --- lovelace/00_home.yaml | 49 +++++++++++++++++-------------------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/lovelace/00_home.yaml b/lovelace/00_home.yaml index b646ae5..951ab67 100644 --- a/lovelace/00_home.yaml +++ b/lovelace/00_home.yaml @@ -6,39 +6,28 @@ cards: # Column 1: Active Controls - type: vertical-stack cards: - - type: entities + - type: glance title: Lights show_header_toggle: false entities: - - type: custom:fold-entity-row - head: - entity: light.living_room_main_lights - name: Living room main lights - toggle: true - entities: - - type: custom:slider-entity-row - entity: light.living_room_main_lights - name: Brightness - hide_state: true - step: 5 - - type: custom:slider-entity-row - entity: light.living_room_main_lights - name: Temperature - attribute: color_temp - hide_state: true - step: 5 - - light.living_room_1 - - light.living_room_2 - - light.living_room_3 - - light.living_room_4 - - type: custom:slider-entity-row - entity: light.pc - toggle: true - step: 5 - - type: custom:slider-entity-row - entity: light.bedside_light - toggle: true - step: 5 + - entity: light.living_room_main_lights + tap_action: + action: call-service + service: light.toggle + service_data: + entity_id: light.living_room_main_lights + - entity: light.pc + tap_action: + action: call-service + service: light.toggle + service_data: + entity_id: light.pc + - entity: light.bedside_light + tap_action: + action: call-service + service: light.bedside_light + service_data: + entity_id: light.pc - type: entities title: Devices