This commit is contained in:
joBr99
2022-10-29 21:08:18 +02:00
5 changed files with 5211 additions and 447 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
__pycache__/ __pycache__/
# don't add nextion2text # don't add nextion2text
HMI/Nextion2Text.py HMI/Nextion2Text.py
# don't add Webstorm project stuff
.idea

View File

@@ -187,6 +187,10 @@ def map_to_mdi_name(ha_type, state=None, device_class="_", cardType=None):
return "weather-night" return "weather-night"
if state == "armed_vacation": if state == "armed_vacation":
return "shield-airplane" return "shield-airplane"
if state in ["arming", "pending"]:
return "shield"
if state == "triggered":
return "bell-ring"
elif ha_type == "climate": elif ha_type == "climate":
if state in ["auto", "heat_cool"]: if state in ["auto", "heat_cool"]:
return "calendar-sync" return "calendar-sync"

View File

@@ -41,13 +41,9 @@ class LuiPagesGen(object):
if ha_type == "alarm_control_panel": if ha_type == "alarm_control_panel":
if entity.state == "disarmed": if entity.state == "disarmed":
icon_color = rgb_dec565([13,160,53]) icon_color = rgb_dec565([13,160,53])
if entity.state == "armed_home": if entity.state == "arming":
icon_color = rgb_dec565([223,76,30]) icon_color = rgb_dec565([244,180,0])
if entity.state == "armed_away": if entity.state in ["armed_home", "armed_away", "armed_night", "armed_vacation", "pending", "triggered"]:
icon_color = rgb_dec565([223,76,30])
if entity.state == "armed_night":
icon_color = rgb_dec565([223,76,30])
if entity.state == "armed_vacation":
icon_color = rgb_dec565([223,76,30]) icon_color = rgb_dec565([223,76,30])
if ha_type == "climate": if ha_type == "climate":

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff