mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 23:44:25 +01:00
added some more alarm states #81
This commit is contained in:
@@ -275,18 +275,24 @@ class LuiPagesGen(object):
|
||||
supported_modes.append("ARM NIGHT")
|
||||
if bits & 0b100000:
|
||||
supported_modes.append("ARM VACATION")
|
||||
else:
|
||||
supported_modes.append("DISARM")
|
||||
|
||||
if entity.state == "armed_home":
|
||||
color = rgb_dec565([223,76,30])
|
||||
icon = get_icon_id("shield-home")
|
||||
supported_modes.append("DISARM")
|
||||
if entity.state == "arming":
|
||||
color = rgb_dec565([243,179,0])
|
||||
icon = get_icon_id("shield")
|
||||
supported_modes.append("DISARM")
|
||||
if entity.state == "armed_away":
|
||||
color = rgb_dec565([223,76,30])
|
||||
icon = get_icon_id("shield-lock")
|
||||
supported_modes.append("DISARM")
|
||||
if entity.state == "armed_night":
|
||||
color = rgb_dec565([223,76,30])
|
||||
icon = get_icon_id("weather-night")
|
||||
if entity.state == "armed_vacation":
|
||||
color = rgb_dec565([223,76,30])
|
||||
icon = get_icon_id("shield-airplane")
|
||||
|
||||
# add padding to arm buttons
|
||||
arm_buttons = ""
|
||||
|
||||
Reference in New Issue
Block a user