From c65f1935e5ea95187e7819465142a1f671095c97 Mon Sep 17 00:00:00 2001 From: Johannes <29555657+joBr99@users.noreply.github.com> Date: Sat, 21 Feb 2026 14:38:37 +0100 Subject: [PATCH] Enhance button press logging with resolved entity ID Log the resolved entity ID along with the button press event details. --- apps/nspanel-lovelace-ui/luibackend/controller.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/controller.py b/apps/nspanel-lovelace-ui/luibackend/controller.py index 03e48efb..7f483830 100644 --- a/apps/nspanel-lovelace-ui/luibackend/controller.py +++ b/apps/nspanel-lovelace-ui/luibackend/controller.py @@ -206,11 +206,15 @@ class LuiController(object): self._pages_gen.generate_timer_detail_page(entity_id, True) def button_press(self, entity_id, button_type, value): - apis.ha_api.log(f"Button Press Event; entity_id: {entity_id}; button_type: {button_type}; value: {value} ") + #apis.ha_api.log(f"Button Press Event; entity_id: {entity_id}; button_type: {button_type}; value: {value} ") + entity_id_new = entity_id if entity_id.startswith('uuid'): entity_config = self._config._config_entites_table.get(entity_id) if entity_config is not None: - entity_id = entity_config.entityId + entity_id_new = entity_config.entityId + apis.ha_api.log(f"Button Press Event; entity_id: {entity_id}; entity_id_resolved: {entity_id_new}; button_type: {button_type}; value: {value} ") + entity_id = entity_id_new + # internal buttons if entity_id == "screensaver" and button_type == "bExit": # get default card if there is one