From 27eb5b94ebc4b2e5839350b98a1266a5dd93de00 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Fri, 17 Apr 2020 18:07:14 +0300 Subject: [PATCH] Add new lights to floorplan --- config/floorplan-lovelace.yaml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/config/floorplan-lovelace.yaml b/config/floorplan-lovelace.yaml index c9c0432..4570802 100644 --- a/config/floorplan-lovelace.yaml +++ b/config/floorplan-lovelace.yaml @@ -159,6 +159,8 @@ views: state: "on" - entity: light.tuya_kitchen_main_lights state: "on" + - entity: light.tuya_kitchen_secondary_lights + state: "off" elements: - type: image image: /local/images/floorplan/kitchen_main_lights_on.png @@ -170,6 +172,44 @@ views: width: 23.6% cursor: default + - type: conditional + conditions: + - entity: binary_sensor.floorplan_night_mode + state: "on" + - entity: light.tuya_kitchen_main_lights + state: "off" + - entity: light.tuya_kitchen_secondary_lights + state: "on" + elements: + - type: image + image: /local/images/floorplan/kitchen_secondary_lights_on.png + tap_action: none + hold_action: none + style: + top: 29% + left: 18.4% + width: 23.6% + cursor: default + + - type: conditional + conditions: + - entity: binary_sensor.floorplan_night_mode + state: "on" + - entity: light.tuya_kitchen_main_lights + state: "on" + - entity: light.tuya_kitchen_secondary_lights + state: "on" + elements: + - type: image + image: /local/images/floorplan/kitchen_all_lights_on.png + tap_action: none + hold_action: none + style: + top: 29% + left: 18.4% + width: 23.6% + cursor: default + # Hallway - type: conditional conditions: @@ -271,6 +311,16 @@ views: left: 61.6% width: 1.5% + - type: image + entity: light.tuya_kitchen_secondary_lights + tap_action: + action: toggle + image: /local/images/floorplan/transparent.png + style: + top: 28% + left: 12.9% + width: 2% + - type: image entity: light.tuya_kitchen_main_lights tap_action: