From 6505c7891283045a9eef55674eae861f14ca85ac Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 5 Jun 2022 23:18:33 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f6b83d45..b680f7fa 100644 --- a/README.md +++ b/README.md @@ -459,6 +459,7 @@ key | optional | type | default | description `icon` | True | string | `None` | Used to override icons `state` | True | string | `None` | Only displayed if Entity state is equal to this value `state_not` | True | string | `None` | Only displayed if Entity state is unequal to this value +`status` | True | string | `None` | Only valid for navigate items, adds a entity to track state for the color of the icon ##### Override Icons or Names From ecf3d776f4fc4595c800ae84dc251e979323fed4 Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 6 Jun 2022 00:31:30 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b680f7fa..c9ec87c2 100644 --- a/README.md +++ b/README.md @@ -448,7 +448,7 @@ key | optional | type | default | description `entity` | False | string | `None` | contains the entity of the current card, valid for cardThermo, cardAlarm and cardMedia `key` | True | string | `None` | Used by navigate items `mediaControl` | True | string | `None` | Only valid on cardMedia, contains the action executed on pressing the top left media icon. (useful to navigate to a hidden card or start a script) -`alarmControl` | True | string | `None` | Only valid on cardAlarm, contains the action executed on pressing the left bottom icon, by default this button is used to show a list of open sensors on a failed attempt to arm. +`alarmControl` | True | complex | `None` | Only valid on cardAlarm, contains the action executed on pressing the left bottom icon, by default this button is used to show a list of open sensors on a failed attempt to arm. #### Possible configuration values for entities key From a22cf00774f997e6d36fc03bd3fe2c9ecbe90fef Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 6 Jun 2022 11:42:17 +0200 Subject: [PATCH 3/3] Update pages.py --- apps/nspanel-lovelace-ui/luibackend/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 24689ee7..9fa9214c 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -557,7 +557,7 @@ class LuiPagesGen(object): elif pos_status == "closed": icon_down_status = "disable" - pos_translation = get_translation(self._locale, "frontend.ui.card.light.position") + pos_translation = get_translation(self._locale, "frontend.ui.card.cover.position") self._send_mqtt_msg(f"entityUpdateDetail~{pos}~{pos_translation}: {pos_status}~{pos_translation}~{icon_id}~{icon_up}~{icon_stop}~{icon_down}~{icon_up_status}~{icon_stop_status}~{icon_down_status}") def send_message_page(self, ident, heading, msg, b1, b2):