minor fixes

This commit is contained in:
Mahasri Kalavala
2021-01-10 18:15:03 -05:00
parent dab0d91303
commit b9b9f14ead
12 changed files with 145 additions and 111 deletions

View File

@@ -94,7 +94,7 @@
"switch.kids_bedroom",
"switch.kitchen",
"switch.office_room",
"switch.wemobackyardlightswitch"] %}
"switch.backyard_light"] %}
{% for item in lights_switches -%}
{%- if states[item.split('.')[0]][item.split('.')[1]].state == "on" -%}
{%- set friendly_name = states[item.split('.')[0]][item.split('.')[1]].attributes.friendly_name -%}

View File

@@ -28,7 +28,7 @@
"switch.kids_bedroom",
"switch.kitchen",
"switch.office_room",
"switch.wemobackyardlightswitch"] %}
"switch.backyard_light"] %}
{%- for item in lights_switches -%}
{%- if states[item.split('.')[0]][item.split('.')[1]].state == "on" -%}
{%- set friendly_name = states[item.split('.')[0]][item.split('.')[1]].attributes.friendly_name %}