fixes
This commit is contained in:
@@ -356,9 +356,9 @@ in
|
||||
{
|
||||
obj = "p1b11"; # Toggle button
|
||||
properties = {
|
||||
val = '''{{ 1 if is_state("light.living_room_lights", "on") else 0 }}'';
|
||||
text = '''{{ "\uE6E8" if is_state("light.living_room_lights", "on") else "\uE335" | e }}'';
|
||||
text_color = '''{{ "#FFD700" if is_state("light.living_room_lights", "on") else "#666666" }}'';
|
||||
val = ''{{ 1 if is_state("light.living_room_lights", "on") else 0 }}'';
|
||||
text = ''{{ "\uE6E8" if is_state("light.living_room_lights", "on") else "\uE335" | e }}'';
|
||||
text_color = ''{{ "#FFD700" if is_state("light.living_room_lights", "on") else "#666666" }}'';
|
||||
};
|
||||
event = {
|
||||
down = {
|
||||
@@ -375,7 +375,7 @@ in
|
||||
val = ''
|
||||
{{ state_attr('light.living_room_lights', 'brightness') | int(default=0)
|
||||
if state_attr('light.living_room_lights', 'brightness') != None else 0 }}'';
|
||||
click = '''{{ 'false' if is_state('light.living_room_lights', 'off') else 'true' }}'';
|
||||
click = ''{{ 'false' if is_state('light.living_room_lights', 'off') else 'true' }}'';
|
||||
};
|
||||
event = {
|
||||
changed = {
|
||||
|
||||
Reference in New Issue
Block a user