From d1264828ebfa114b06261fda0fa930b77cac709b Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 24 Feb 2025 22:18:24 +0100 Subject: [PATCH 1/2] add comment --- interface/src/app/main/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/app/main/types.ts b/interface/src/app/main/types.ts index b1ec9ffb3..f9cd06c7c 100644 --- a/interface/src/app/main/types.ts +++ b/interface/src/app/main/types.ts @@ -72,7 +72,7 @@ export interface Device { d: number; // deviceid p: number; // productid v: string; // version - e: number; // entities + e: number; // total number of entities url?: string; // lowercase type name used in API URL } From ab7cbe8eadfda810e10c167f464a276dd32e0679 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 24 Feb 2025 22:18:41 +0100 Subject: [PATCH 2/2] show all entities, even if they are marked hidden --- src/core/emsdevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/emsdevice.cpp b/src/core/emsdevice.cpp index 89eefb479..ffba6f91e 100644 --- a/src/core/emsdevice.cpp +++ b/src/core/emsdevice.cpp @@ -21,12 +21,13 @@ namespace emsesp { -// returns number of visible device values (entries) for this device +// returns number of visible device values (entities) for this device, for the Devices page // this includes commands since they can also be entities and visible in the web UI uint8_t EMSdevice::count_entities() { uint8_t count = 0; for (const auto & dv : devicevalues_) { - if (!dv.has_state(DeviceValueState::DV_WEB_EXCLUDE) && dv.hasValue()) { + // if (!dv.has_state(DeviceValueState::DV_WEB_EXCLUDE) && dv.hasValue()) { + if (dv.hasValue()) { count++; } }