From: Giorgio Ravera Date: Wed, 22 May 2019 19:42:51 +0000 (+0200) Subject: Fixed Luci Sala X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=87813ee80fe581c5a1b3c24739d53aae738d29df;p=homeassistant.git Fixed Luci Sala --- 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