]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Fixed Luci Sala
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 22 May 2019 19:42:51 +0000 (21:42 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 22 May 2019 19:42:51 +0000 (21:42 +0200)
light/sala.yaml

index 7aa1e05f650b4c61501768915ca141909e4da996..5491d6e5cf9000901a7d074a8c152ca62d71c021 100644 (file)
   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