mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 07:24:24 +01:00
Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,6 @@
|
||||
__pycache__/
|
||||
# don't add nextion2text
|
||||
HMI/Nextion2Text.py
|
||||
|
||||
# don't add Webstorm project stuff
|
||||
.idea
|
||||
@@ -187,6 +187,10 @@ def map_to_mdi_name(ha_type, state=None, device_class="_", cardType=None):
|
||||
return "weather-night"
|
||||
if state == "armed_vacation":
|
||||
return "shield-airplane"
|
||||
if state in ["arming", "pending"]:
|
||||
return "shield"
|
||||
if state == "triggered":
|
||||
return "bell-ring"
|
||||
elif ha_type == "climate":
|
||||
if state in ["auto", "heat_cool"]:
|
||||
return "calendar-sync"
|
||||
|
||||
@@ -41,13 +41,9 @@ class LuiPagesGen(object):
|
||||
if ha_type == "alarm_control_panel":
|
||||
if entity.state == "disarmed":
|
||||
icon_color = rgb_dec565([13,160,53])
|
||||
if entity.state == "armed_home":
|
||||
icon_color = rgb_dec565([223,76,30])
|
||||
if entity.state == "armed_away":
|
||||
icon_color = rgb_dec565([223,76,30])
|
||||
if entity.state == "armed_night":
|
||||
icon_color = rgb_dec565([223,76,30])
|
||||
if entity.state == "armed_vacation":
|
||||
if entity.state == "arming":
|
||||
icon_color = rgb_dec565([244,180,0])
|
||||
if entity.state in ["armed_home", "armed_away", "armed_night", "armed_vacation", "pending", "triggered"]:
|
||||
icon_color = rgb_dec565([223,76,30])
|
||||
|
||||
if ha_type == "climate":
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
4399
ioBroker/NsPanelTs_without_Examples.ts
Normal file
4399
ioBroker/NsPanelTs_without_Examples.ts
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user