mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 15:34:26 +01:00
add arming and triggered for #5414
This commit is contained in:
@@ -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 == "arming":
|
||||||
|
return "shield"
|
||||||
|
if state == "triggered":
|
||||||
|
return "shield-home"
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user