diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 2e5e8cd5..05e8a0b1 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -326,6 +326,9 @@ class LuiPagesGen(object): elif entityType == "script": entityTypePanel = "button" value = get_translation(self._locale, "frontend.ui.card.script.run") + override = item.entity_input_config.get("action_name") + if override is not None: + value = override elif entityType == "lock": entityTypePanel = "button" value = get_translation(self._locale, "frontend.ui.card.lock.lock") if entity.state == "unlocked" else get_translation(self._locale, "frontend.ui.card.lock.unlock") diff --git a/docs/entities.md b/docs/entities.md index 02c711b4..ea826167 100644 --- a/docs/entities.md +++ b/docs/entities.md @@ -16,6 +16,7 @@ key | optional | type | default | description `state_not` | True | string | `None` | Only displayed if Entity state is unequal to this value `status` | True | string | `None` | Only valid for navigate and service items, adds a entity to track state for the icon `assumed_state` | True | string | `None` | Only for cover items, up, down and stop buttons are always shown +`action_name` | True | string | `None` | Only valid for script; Button label ## Override Icons or Names