From 87813ee80fe581c5a1b3c24739d53aae738d29df Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Wed, 22 May 2019 21:42:51 +0200 Subject: [PATCH] Fixed Luci Sala --- light/sala.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/light/sala.yaml b/light/sala.yaml index 7aa1e05f..5491d6e5 100644 --- a/light/sala.yaml +++ b/light/sala.yaml @@ -124,3 +124,25 @@ retain: false qos: 0 optimistic: false + +###################################################################### +# Living Room Global +###################################################################### + +- platform: template + lights: + luci_sala: + friendly_name: "Luci Sala" + turn_on: + service: light.turn_on + entity_id: "light.luce_divano" + turn_off: + service: light.turn_off + entity_id: "light.luce_divano" + value_template: >- + {% if is_state('light.luce_divano', 'on') or is_state('light.luce_divano_bianca', 'on') %} + on + {% else %} + off + {% endif %} + icon_template: mdi:lightbulb -- 2.47.3