mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-25 04:02:14 +01:00
add vac #393
This commit is contained in:
@@ -300,6 +300,13 @@ class LuiPagesGen(object):
|
||||
icon_id = get_icon_id_ha("button", state=entity.state, overwrite=icon)
|
||||
text = entity.state
|
||||
return f"~button~{entityId}~{icon_id}~17299~{name}~{text}"
|
||||
if entityType == "vacuum":
|
||||
icon_id = get_icon_id_ha("robot-vacuum", state=entity.state, overwrite=icon)
|
||||
if entity.state == "docked":
|
||||
text = "Start"
|
||||
else:
|
||||
text = "Return"
|
||||
return f"~button~{entityId}~{icon_id}~17299~{name}~{text}"
|
||||
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~unsupported~"
|
||||
|
||||
def generate_entities_page(self, navigation, heading, items, cardType):
|
||||
|
||||
Reference in New Issue
Block a user