mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-10 15:26:36 +01:00
Now handles opening/ closing
This commit is contained in:
@@ -169,6 +169,8 @@ class LuiPagesGen(object):
|
|||||||
status = f"enable|enable|disable"
|
status = f"enable|enable|disable"
|
||||||
else:
|
else:
|
||||||
status = f"enable|enable|enable"
|
status = f"enable|enable|enable"
|
||||||
|
else:
|
||||||
|
status = f"enable|enable|enable"
|
||||||
return f"~shutter~{entityId}~{icon_id}~17299~{name}~{icon_up}|{icon_stop}|{icon_down}|{status}"
|
return f"~shutter~{entityId}~{icon_id}~17299~{name}~{icon_up}|{icon_stop}|{icon_down}|{status}"
|
||||||
if entityType in "light":
|
if entityType in "light":
|
||||||
switch_val = 1 if entity.state == "on" else 0
|
switch_val = 1 if entity.state == "on" else 0
|
||||||
|
|||||||
Reference in New Issue
Block a user