iobroker.eos-admin 9.0.19 → 9.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +4 -4
  2. package/README.md +7 -3
  3. package/START_HIER_9.0.20.md +65 -0
  4. package/adminWww/.vite/manifest.json +39 -39
  5. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +110 -109
  6. package/adminWww/assets/{AdapterUpdateDialog-JOf2z4Vg.js → AdapterUpdateDialog-Dxl_b7Op.js} +1 -1
  7. package/adminWww/assets/{Adapters-C9fcSdWm.js → Adapters-CVKKhXmI.js} +1 -1
  8. package/adminWww/assets/{ConfigManager-BeeLlT6D.js → ConfigManager-Bf6nTAkL.js} +1 -1
  9. package/adminWww/assets/{Enums-FqnXWl8U.js → Enums-CJHVJY7t.js} +1 -1
  10. package/adminWww/assets/{Fields-DMgrt5Pi.js → Fields-DWHbZKvm.js} +1 -1
  11. package/adminWww/assets/{Files-CIHtt12g.js → Files-a6owMTXA.js} +1 -1
  12. package/adminWww/assets/{Hosts-fPLBzvTy.js → Hosts-LtEMeXpV.js} +1 -1
  13. package/adminWww/assets/{Instances-4XaVQlrT.js → Instances-DhChziA1.js} +1 -1
  14. package/adminWww/assets/{Intro-5TKriiLO.js → Intro-Cyq9gVDC.js} +1 -1
  15. package/adminWww/assets/{Logs-33zcIds-.js → Logs-wcramXsg.js} +1 -1
  16. package/adminWww/assets/{Objects-CNQPVbNG.js → Objects-DINVHd_e.js} +1 -1
  17. package/adminWww/assets/{Overview-BskXGOc8.js → Overview-DK4R41zR.js} +1 -1
  18. package/adminWww/assets/{State-C8SJ_Iqo.js → State-DcEACXzL.js} +1 -1
  19. package/adminWww/assets/{UsedResources-CgqRa9ei.js → UsedResources-C1LcM0Rb.js} +1 -1
  20. package/adminWww/assets/{Users-0JVYWR9u.js → Users-DvDdSyDY.js} +1 -1
  21. package/adminWww/assets/{bootstrap-D16lu6rd.js → bootstrap-Dbj_GbnP.js} +3 -3
  22. package/adminWww/assets/{hostInit-C8YZJuzi.js → hostInit-BNFIx0-f.js} +1 -1
  23. package/adminWww/assets/icons/nexowatt-180.png +0 -0
  24. package/adminWww/assets/{icons-material-CiNJ_6Ur.js → icons-material-DVbdXNgr.js} +1 -1
  25. package/adminWww/assets/{index-DA9Sphgh.js → index-CoKP1NSA.js} +2 -2
  26. package/adminWww/assets/{installSVGRenderer-DPdkRa_d.js → installSVGRenderer-CMvku1F1.js} +1 -1
  27. package/adminWww/assets/{mf-entry-bootstrap-0-a7ab91de.js → mf-entry-bootstrap-0-ac330bce.js} +2 -2
  28. package/adminWww/index.html +24 -24
  29. package/adminWww/mf-manifest.json +1 -1
  30. package/adminWww/mf-stats.json +1 -1
  31. package/adminWww/{remoteEntry-eos-9.0.19.js → remoteEntry-eos-9.0.21.js} +1 -1
  32. package/adminWww/remoteEntry.js +1 -1
  33. package/build/lib/eosCustomerUpdateHttp.js +203 -0
  34. package/build/lib/eosCustomerUpdateHttp.js.map +1 -0
  35. package/build/lib/eosCustomerUpdateTransport.js +472 -0
  36. package/build/lib/eosCustomerUpdateTransport.js.map +1 -0
  37. package/build/lib/eosCustomerUpdateWorker.js +567 -0
  38. package/build/lib/eosCustomerUpdateWorker.js.map +1 -0
  39. package/build/lib/eosCustomerUpdates.js +631 -0
  40. package/build/lib/eosCustomerUpdates.js.map +1 -0
  41. package/build/lib/eosDeviceEmsPlan.js +18 -5
  42. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  43. package/build/lib/eosDeviceEmsService.js +52 -2
  44. package/build/lib/eosDeviceEmsService.js.map +1 -1
  45. package/build/lib/eosLegacyMigration.js +26 -1
  46. package/build/lib/eosLegacyMigration.js.map +1 -1
  47. package/build/lib/eosModuleConfigStore.js +12 -1
  48. package/build/lib/eosModuleConfigStore.js.map +1 -1
  49. package/build/lib/eosModuleHost.js +81 -26
  50. package/build/lib/eosModuleHost.js.map +1 -1
  51. package/build/lib/eosModuleHttp.js +8 -2
  52. package/build/lib/eosModuleHttp.js.map +1 -1
  53. package/build/lib/eosStateSubscriptions.js +59 -2
  54. package/build/lib/eosStateSubscriptions.js.map +1 -1
  55. package/build/lib/eosUpdateSnapshot.js +290 -0
  56. package/build/lib/eosUpdateSnapshot.js.map +1 -0
  57. package/build/lib/eosUploadGuard.js +124 -81
  58. package/build/lib/eosUploadGuard.js.map +1 -1
  59. package/build/lib/web.js +83 -0
  60. package/build/lib/web.js.map +1 -1
  61. package/docs/reports/unified-9.0.20/ANFORDERUNGEN_UND_INBETRIEBNAHME.md +159 -0
  62. package/docs/reports/unified-9.0.20/DEVICE_COMMAND_DELIVERY_REVIEW.md +82 -0
  63. package/docs/reports/unified-9.0.20/DEVICE_LIFECYCLE_REVIEW.md +46 -0
  64. package/docs/reports/unified-9.0.20/DEVICE_PLAN_REVIEW.md +33 -0
  65. package/docs/reports/unified-9.0.20/DEVICE_POWER_CAPABILITY_REVIEW.md +25 -0
  66. package/docs/reports/unified-9.0.20/FARM_CONTROLLER_REVIEW.md +27 -0
  67. package/docs/reports/unified-9.0.20/FARM_DIAGNOSE_UI.md +81 -0
  68. package/docs/reports/unified-9.0.20/FARM_DISPATCH_REVIEW.md +47 -0
  69. package/docs/reports/unified-9.0.20/HISTORY_REVIEW.md +68 -0
  70. package/docs/reports/unified-9.0.20/INFLUXDB2_INSTALLER_UI.md +39 -0
  71. package/docs/reports/unified-9.0.20/INFLUX_CREDENTIAL_NETWORK_REVIEW.md +38 -0
  72. package/docs/reports/unified-9.0.20/INFLUX_DIRECT_UNABHAENGIGE_PRUEFUNG.md +64 -0
  73. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_INTEGRATION_REVIEW.md +53 -0
  74. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_UNABHAENGIGE_PRUEFUNG.md +34 -0
  75. package/docs/reports/unified-9.0.20/INFLUX_TRANSPORT_ABSCHLUSSPRUEFUNG.md +55 -0
  76. package/docs/reports/unified-9.0.20/LOGIN_WEBAPP_LOGO.md +29 -0
  77. package/docs/reports/unified-9.0.20/MIGRATION_REVIEW.md +35 -0
  78. package/docs/reports/unified-9.0.20/PRUEFBERICHT.md +54 -0
  79. package/docs/reports/unified-9.0.20/PWA_ANONYMOUS_HTTPS_REVIEW.md +28 -0
  80. package/docs/reports/unified-9.0.20/PWA_ICON_UNABHAENGIGE_PRUEFUNG.md +60 -0
  81. package/docs/reports/unified-9.0.20/SERIAL_LIFECYCLE_REVIEW.md +37 -0
  82. package/docs/reports/unified-9.0.20/SOLAX_READBACK_REVIEW.md +43 -0
  83. package/docs/reports/unified-9.0.20/SOLAX_READBACK_UNABHAENGIGE_PRUEFUNG.md +34 -0
  84. package/docs/reports/unified-9.0.20/STATIC_REVIEW_DE.md +175 -0
  85. package/docs/reports/unified-9.0.20/STORAGE_COMMAND_ACK_REVIEW.md +36 -0
  86. package/docs/reports/unified-9.0.20/TARIFF_REPORT_REVIEW.md +29 -0
  87. package/docs/reports/unified-9.0.20/VISUALISIERUNG.md +64 -0
  88. package/docs/reports/unified-9.0.20/history-setup-navigation-proxy.txt +26 -0
  89. package/docs/reports/unified-9.0.20/history-setup-navigation-ssr.txt +7 -0
  90. package/docs/reports/unified-9.0.20/history-setup-ui-lint.txt +0 -0
  91. package/docs/reports/unified-9.0.20/history-setup-ui-node22.txt +102 -0
  92. package/docs/reports/unified-9.0.20/history-setup-ui-node24.txt +23 -0
  93. package/docs/reports/unified-9.0.20/history-setup-ui-security.txt +0 -0
  94. package/docs/reports/unified-9.0.20/history-setup-ui-typecheck.txt +0 -0
  95. package/docs/reports/unified-9.0.20/login-pwa-branding-hashes.txt +9 -0
  96. package/docs/reports/unified-9.0.20/login-pwa-branding-node22.txt +42 -0
  97. package/docs/reports/unified-9.0.20/login-pwa-branding-node24.txt +13 -0
  98. package/docs/reports/unified-9.0.20/raw/INDEX.json +1913 -0
  99. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node22.log +16 -0
  100. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node24.log +14 -0
  101. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-after.json +1 -0
  102. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-before.json +1 -0
  103. package/docs/reports/unified-9.0.20/raw/additional-audit/device/modbus-stop-backoff.cjs +22 -0
  104. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-control-review.log +29 -0
  105. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.json +18 -0
  106. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.log +325 -0
  107. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-review.log +278 -0
  108. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.json +18 -0
  109. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.log +58 -0
  110. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-review.log +51 -0
  111. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-gaps-before.log +64 -0
  112. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-negative-before.log +46 -0
  113. package/docs/reports/unified-9.0.20/raw/additional-audit/history/chart-gaps-before.log +127 -0
  114. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-after.log +67 -0
  115. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-before.log +61 -0
  116. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-js.log +0 -0
  117. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-ts.log +0 -0
  118. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node22.log +442 -0
  119. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node24.log +78 -0
  120. package/docs/reports/unified-9.0.20/raw/additional-audit/history/fix.py +73 -0
  121. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-eslint-final.json +7 -0
  122. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node22.log +279 -0
  123. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node24.log +52 -0
  124. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node22.log +223 -0
  125. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node24.log +43 -0
  126. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-own-cache.log +17 -0
  127. package/docs/reports/unified-9.0.20/raw/additional-audit/history/negative-pricing-before.log +96 -0
  128. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-after.log +66 -0
  129. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-repro.log +8 -0
  130. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-after.log +17 -0
  131. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-repro.log +8 -0
  132. package/docs/reports/unified-9.0.20/raw/additional-audit/history/repro.cjs +39 -0
  133. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/chromium-probe.log +3 -0
  134. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/patch-live.py +101 -0
  135. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.cjs +26 -0
  136. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.log +36 -0
  137. package/docs/reports/unified-9.0.20/raw/audit-full.log +345 -0
  138. package/docs/reports/unified-9.0.20/raw/audit-full.result.json +14 -0
  139. package/docs/reports/unified-9.0.20/raw/audit-runtime.log +23 -0
  140. package/docs/reports/unified-9.0.20/raw/audit-runtime.result.json +15 -0
  141. package/docs/reports/unified-9.0.20/raw/backend-final.log +5 -0
  142. package/docs/reports/unified-9.0.20/raw/backend-final.result.json +14 -0
  143. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.result.json +20 -0
  144. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.tap +721 -0
  145. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.result.json +20 -0
  146. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.tap +127 -0
  147. package/docs/reports/unified-9.0.20/raw/commissioning-evidence.json +69 -0
  148. package/docs/reports/unified-9.0.20/raw/commissioning-failed-init-drain-919-before.log +14 -0
  149. package/docs/reports/unified-9.0.20/raw/commissioning-final-node22.log +882 -0
  150. package/docs/reports/unified-9.0.20/raw/commissioning-final-node24.log +149 -0
  151. package/docs/reports/unified-9.0.20/raw/commissioning-lint.log +0 -0
  152. package/docs/reports/unified-9.0.20/raw/commissioning-planner-919-before.log +70 -0
  153. package/docs/reports/unified-9.0.20/raw/commissioning-retained-readiness-before.log +34 -0
  154. package/docs/reports/unified-9.0.20/raw/commissioning-runtime-retry-919-before.log +46 -0
  155. package/docs/reports/unified-9.0.20/raw/commissioning-types-node24.log +0 -0
  156. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/DEVICE_FARM_READONLY_REVIEW.md +66 -0
  157. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/run-readback-tests.cjs +13 -0
  158. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/solax-control-chain.test.cjs +58 -0
  159. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node22.log +16 -0
  160. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node24.log +14 -0
  161. package/docs/reports/unified-9.0.20/raw/device-lifecycle-evidence.json +55 -0
  162. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-after.json +1 -0
  163. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-before.json +1 -0
  164. package/docs/reports/unified-9.0.20/raw/device-lifecycle-modbus-stop-backoff.cjs +22 -0
  165. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-control-review.log +29 -0
  166. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.json +18 -0
  167. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.log +325 -0
  168. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-review.log +278 -0
  169. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.json +18 -0
  170. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.log +58 -0
  171. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-review.log +51 -0
  172. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.log +0 -0
  173. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.result.json +15 -0
  174. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.log +0 -0
  175. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.result.json +15 -0
  176. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node22.log +110 -0
  177. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node24.log +24 -0
  178. package/docs/reports/unified-9.0.20/raw/farm-controller/evidence.json +33 -0
  179. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-lint.txt +0 -0
  180. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node22.txt +113 -0
  181. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node24.txt +26 -0
  182. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-security.txt +0 -0
  183. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-typecheck.txt +0 -0
  184. package/docs/reports/unified-9.0.20/raw/farm-dispatch/allocator-baseline.jsonl +6 -0
  185. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-before.log +138 -0
  186. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-delta.patch +77 -0
  187. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-lint.json +7 -0
  188. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.log +64 -0
  189. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.result.json +14 -0
  190. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.log +18 -0
  191. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.result.json +14 -0
  192. package/docs/reports/unified-9.0.20/raw/final-ui-independent-review.json +194 -0
  193. package/docs/reports/unified-9.0.20/raw/frontend-build.log +152 -0
  194. package/docs/reports/unified-9.0.20/raw/frontend-build.result.json +14 -0
  195. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.json +35 -0
  196. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.result.json +17 -0
  197. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.json +31 -0
  198. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.result.json +17 -0
  199. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-before.json +31 -0
  200. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-reproducer.cjs +9 -0
  201. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.result.json +18 -0
  202. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.tap +34 -0
  203. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.result.json +18 -0
  204. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.tap +11 -0
  205. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra.test.cjs +9 -0
  206. package/docs/reports/unified-9.0.20/raw/independent-solax/node22-focused.log +165 -0
  207. package/docs/reports/unified-9.0.20/raw/independent-solax/node24-focused.log +35 -0
  208. package/docs/reports/unified-9.0.20/raw/independent-solax/review-receipt.json +57 -0
  209. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-after.log +1 -0
  210. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-before.log +1 -0
  211. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response.cjs +16 -0
  212. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race-generation-guard.log +1 -0
  213. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race.cjs +13 -0
  214. package/docs/reports/unified-9.0.20/raw/influx-direct/eslint.log +0 -0
  215. package/docs/reports/unified-9.0.20/raw/influx-direct/node22.log +112 -0
  216. package/docs/reports/unified-9.0.20/raw/influx-direct/node24.log +24 -0
  217. package/docs/reports/unified-9.0.20/raw/influx-direct/typecheck.log +0 -0
  218. package/docs/reports/unified-9.0.20/raw/influx-direct-review/hosted-module-history.test.cjs +85 -0
  219. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.json +12 -0
  220. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.log +100 -0
  221. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.json +12 -0
  222. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.log +21 -0
  223. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-after.test.cjs +15 -0
  224. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-loss-before.test.cjs +9 -0
  225. package/docs/reports/unified-9.0.20/raw/influx-direct-review/security-scan.cjs +15 -0
  226. package/docs/reports/unified-9.0.20/raw/influx-direct-review/transport-extra.test.cjs +9 -0
  227. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.log +227 -0
  228. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.result.json +11 -0
  229. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.log +44 -0
  230. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.result.json +11 -0
  231. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.log +112 -0
  232. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.result.json +12 -0
  233. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.log +23 -0
  234. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.result.json +12 -0
  235. package/docs/reports/unified-9.0.20/raw/influx-independent/runtime-after.test.cjs +15 -0
  236. package/docs/reports/unified-9.0.20/raw/influx-independent/transport-extra.test.cjs +9 -0
  237. package/docs/reports/unified-9.0.20/raw/influx-runtime/evidence.json +24 -0
  238. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node22.log +326 -0
  239. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node24.log +59 -0
  240. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node22.log +62 -0
  241. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node24.log +16 -0
  242. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.log +0 -0
  243. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.result.json +17 -0
  244. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.log +112 -0
  245. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.result.json +15 -0
  246. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.log +106 -0
  247. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.result.json +15 -0
  248. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.log +0 -0
  249. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.result.json +15 -0
  250. package/docs/reports/unified-9.0.20/raw/influx-security/source-sha256.json +5 -0
  251. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.log +0 -0
  252. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.result.json +16 -0
  253. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.log +124 -0
  254. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.result.json +14 -0
  255. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.log +26 -0
  256. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.result.json +14 -0
  257. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.log +0 -0
  258. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.result.json +15 -0
  259. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.log +0 -0
  260. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.result.json +15 -0
  261. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-final.json +285 -0
  262. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-intermediate.json +285 -0
  263. package/docs/reports/unified-9.0.20/raw/installer-build.log +26 -0
  264. package/docs/reports/unified-9.0.20/raw/installer-build.result.json +14 -0
  265. package/docs/reports/unified-9.0.20/raw/isolation/INDEX.json +332 -0
  266. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.log +3 -0
  267. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.result.json +13 -0
  268. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.log +6 -0
  269. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.result.json +13 -0
  270. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.log +1 -0
  271. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.result.json +13 -0
  272. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.log +11 -0
  273. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.result.json +13 -0
  274. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.log +3 -0
  275. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.result.json +13 -0
  276. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.log +3 -0
  277. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.result.json +13 -0
  278. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.log +1 -0
  279. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.result.json +13 -0
  280. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.log +11 -0
  281. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.result.json +13 -0
  282. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.log +296 -0
  283. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.result.json +16 -0
  284. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.log +56 -0
  285. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.result.json +16 -0
  286. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.log +54 -0
  287. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.result.json +16 -0
  288. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.log +1 -0
  289. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.result.json +13 -0
  290. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.log +332 -0
  291. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.result.json +16 -0
  292. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.log +62 -0
  293. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.result.json +16 -0
  294. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.log +342 -0
  295. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.result.json +16 -0
  296. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.log +72 -0
  297. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.result.json +16 -0
  298. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.log +482 -0
  299. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.result.json +19 -0
  300. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node24.log +87 -0
  301. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.log +0 -0
  302. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.result.json +16 -0
  303. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.log +330 -0
  304. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.result.json +16 -0
  305. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.log +72 -0
  306. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.result.json +16 -0
  307. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.log +60 -0
  308. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.result.json +16 -0
  309. package/docs/reports/unified-9.0.20/raw/isolation/repro-migration-start-budget.cjs +49 -0
  310. package/docs/reports/unified-9.0.20/raw/isolation/repro-serial-release.cjs +21 -0
  311. package/docs/reports/unified-9.0.20/raw/isolation/repro-sunspec-discovery.cjs +11 -0
  312. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.log +1 -0
  313. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.result.json +13 -0
  314. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.log +32 -0
  315. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.result.json +14 -0
  316. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.log +11 -0
  317. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.result.json +14 -0
  318. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.log +0 -0
  319. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.result.json +28 -0
  320. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.log +2 -0
  321. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.result.json +26 -0
  322. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.log +0 -0
  323. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.result.json +18 -0
  324. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.log +344 -0
  325. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.result.json +17 -0
  326. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.log +62 -0
  327. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.result.json +17 -0
  328. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.log +3 -0
  329. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.result.json +13 -0
  330. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.log +3 -0
  331. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.result.json +15 -0
  332. package/docs/reports/unified-9.0.20/raw/keygen-source.json +6 -0
  333. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-919.log +70 -0
  334. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-920.log +71 -0
  335. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/diff.json +82 -0
  336. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/receipt.json +48 -0
  337. package/docs/reports/unified-9.0.20/raw/lint-final.log +16 -0
  338. package/docs/reports/unified-9.0.20/raw/lint-final.result.json +14 -0
  339. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-cache-boundary-fix.json +112 -0
  340. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-capability-ack.json +103 -0
  341. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-farm-diagnostics.json +102 -0
  342. package/docs/reports/unified-9.0.20/raw/main-individual-review-final.json +103 -0
  343. package/docs/reports/unified-9.0.20/raw/main-individual-review.json +93 -0
  344. package/docs/reports/unified-9.0.20/raw/modules-build.log +5 -0
  345. package/docs/reports/unified-9.0.20/raw/modules-build.result.json +14 -0
  346. package/docs/reports/unified-9.0.20/raw/node22-tests-final.log +12471 -0
  347. package/docs/reports/unified-9.0.20/raw/node22-tests-final.result.json +13 -0
  348. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.log +7 -0
  349. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.result.json +14 -0
  350. package/docs/reports/unified-9.0.20/raw/node22-version.log +1 -0
  351. package/docs/reports/unified-9.0.20/raw/node24-tests-final.log +2093 -0
  352. package/docs/reports/unified-9.0.20/raw/node24-tests-final.result.json +13 -0
  353. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.log +5 -0
  354. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.result.json +14 -0
  355. package/docs/reports/unified-9.0.20/raw/node24-version.log +1 -0
  356. package/docs/reports/unified-9.0.20/raw/power-capability/evidence.json +69 -0
  357. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-existing-regressions-node24.log +94 -0
  358. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-lint.log +0 -0
  359. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node22.log +304 -0
  360. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node24.log +56 -0
  361. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-typecheck.log +0 -0
  362. package/docs/reports/unified-9.0.20/raw/pwa-https/evidence.json +45 -0
  363. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-build.log +21 -0
  364. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-source.log +23 -0
  365. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-build.log +11 -0
  366. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-source.log +11 -0
  367. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-boundaries.test.cjs +45 -0
  368. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-receipt.json +71 -0
  369. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v22.23.4.tap +34 -0
  370. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v24.22.3.tap +11 -0
  371. package/docs/reports/unified-9.0.20/raw/pwa-ui-independent-review-final.json +348 -0
  372. package/docs/reports/unified-9.0.20/raw/repro-failed-init-drain-before.cjs +15 -0
  373. package/docs/reports/unified-9.0.20/raw/repro-profile-replacement-after-unmapped.cjs +15 -0
  374. package/docs/reports/unified-9.0.20/raw/repro-runtime-retry-before.cjs +18 -0
  375. package/docs/reports/unified-9.0.20/raw/sbom-runtime.log +7 -0
  376. package/docs/reports/unified-9.0.20/raw/sbom-runtime.result.json +14 -0
  377. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.log +1 -0
  378. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.result.json +14 -0
  379. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.json +30 -0
  380. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.log +542 -0
  381. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.json +30 -0
  382. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.log +97 -0
  383. package/docs/reports/unified-9.0.20/raw/tariff-report-before.log +147 -0
  384. package/docs/reports/unified-9.0.20/raw/tariff-report-evidence.json +48 -0
  385. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node22.log +151 -0
  386. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node24.log +32 -0
  387. package/docs/reports/unified-9.0.20/raw/ui-docs-check.log +6 -0
  388. package/docs/reports/unified-9.0.20/raw/ui-docs-check.result.json +14 -0
  389. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.log +7 -0
  390. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.result.json +14 -0
  391. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.log +6 -0
  392. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.result.json +14 -0
  393. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.log +6 -0
  394. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.result.json +14 -0
  395. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.log +6 -0
  396. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.result.json +14 -0
  397. package/docs/reports/unified-9.0.20/raw/ui-secret-final.log +6 -0
  398. package/docs/reports/unified-9.0.20/raw/ui-secret-final.result.json +14 -0
  399. package/docs/reports/unified-9.0.20/raw/ui-security-final.log +8 -0
  400. package/docs/reports/unified-9.0.20/raw/ui-security-final.result.json +14 -0
  401. package/docs/reports/unified-9.0.20/raw/visuals-baseline-919.txt +36 -0
  402. package/docs/reports/unified-9.0.20/raw/visuals-browser-limit.txt +3 -0
  403. package/docs/reports/unified-9.0.20/raw/visuals-lint.txt +0 -0
  404. package/docs/reports/unified-9.0.20/raw/visuals-node22.txt +258 -0
  405. package/docs/reports/unified-9.0.20/raw/visuals-node24.txt +51 -0
  406. package/docs/reports/unified-9.0.20/raw/visuals-security.txt +0 -0
  407. package/docs/reports/unified-9.0.20/raw/visuals-typecheck.txt +0 -0
  408. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.log +19 -0
  409. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.result.json +16 -0
  410. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.log +31 -0
  411. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.result.json +14 -0
  412. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.result.json +13 -0
  413. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.tap +10 -0
  414. package/io-package.json +12 -12
  415. package/modules/backup/admin/index.js +4 -1
  416. package/modules/devices/admin/host-bridge.js +5 -1
  417. package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
  418. package/modules/devices/lib/deviceAliasFreshness.js +1 -0
  419. package/modules/devices/lib/deviceAliasSemantics.js +13 -3
  420. package/modules/devices/lib/deviceRuntime.js +106 -12
  421. package/modules/devices/lib/drivers/modbus.js +90 -21
  422. package/modules/devices/lib/drivers/modbusAsciiBus.js +47 -31
  423. package/modules/devices/lib/drivers/modbusRtuBus.js +33 -9
  424. package/modules/devices/lib/drivers/modbusSerialLease.js +29 -0
  425. package/modules/devices/lib/drivers/mqtt.js +204 -82
  426. package/modules/devices/lib/drivers/mqttPendingOperations.js +119 -0
  427. package/modules/devices/lib/modbusReadEvidence.js +29 -0
  428. package/modules/devices/test/deviceAliasFreshness.test.js +7 -2
  429. package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
  430. package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
  431. package/modules/devices/test/mqttCommandLifecycle.test.js +255 -0
  432. package/modules/devices/test/mqttResourceBounds.test.js +98 -0
  433. package/modules/devices/test/mqttRuntimeSession.test.js +109 -0
  434. package/modules/devices/test/serialOperationGate.test.js +3 -3
  435. package/modules/devices/test/solaxReadbackContext.test.js +472 -0
  436. package/modules/devices/tsconfig.alias-semantics.json +1 -1
  437. package/modules/devices/tsconfig.mqtt-lifecycle.json +20 -0
  438. package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
  439. package/modules/eebus/admin/index.js +6 -3
  440. package/package.json +9 -7
  441. package/release-manifests/unified/build-environment.cdx.json +6 -6
  442. package/release-manifests/unified/files.json +848 -169
  443. package/release-manifests/unified/frontend.cdx.json +6 -6
  444. package/release-manifests/unified/installer.cdx.json +6 -6
  445. package/release-manifests/unified/obsolete-admin-assets.json +154 -6
  446. package/release-manifests/unified/runtime.cdx.json +25 -25
  447. package/release-manifests/unified/validation.json +15 -15
  448. package/tools/eos-release-check.cjs +2 -2
  449. package/tools/eos-release-manifest.cjs +3 -3
  450. package/ui/admin/react/assets/index-BJO3q7oe.js +13 -0
  451. package/ui/admin/react/assets/{index-CuquHlsY.css → index-ofLP_Y7y.css} +1 -1
  452. package/ui/admin/react/index.html +2 -2
  453. package/ui/docs/security/eslint-reviewed-findings.json +91 -35
  454. package/ui/ems/engine.js +14 -3
  455. package/ui/ems/modules/energy-wallet.js +9 -3
  456. package/ui/ems/modules/storage-control.js +60 -19
  457. package/ui/ems/modules/tariff-provider.js +34 -10
  458. package/ui/ems/services/tariff-provider-registry.js +18 -8
  459. package/ui/io-package.json +1 -1
  460. package/ui/lib/influx-config.js +204 -0
  461. package/ui/lib/influx-direct.js +527 -0
  462. package/ui/lib/influx-history-runtime.js +326 -0
  463. package/ui/lib/influx-network-policy.js +112 -0
  464. package/ui/lib/ui-access-policy.js +2 -2
  465. package/ui/main.js +614 -255
  466. package/ui/package.json +12 -6
  467. package/ui/www/app.js +152 -203
  468. package/ui/www/ems-apps.html +2 -1
  469. package/ui/www/ems-apps.js +8 -1
  470. package/ui/www/energy-ledger.html +1 -1
  471. package/ui/www/eos-updates.css +15 -0
  472. package/ui/www/eos-updates.js +351 -0
  473. package/ui/www/evcs.html +1 -1
  474. package/ui/www/history.html +1 -1
  475. package/ui/www/history.js +114 -74
  476. package/ui/www/index.html +4 -1
  477. package/ui/www/live-display.js +115 -0
  478. package/ui/www/logic.html +1 -1
  479. package/ui/www/login.css +1 -0
  480. package/ui/www/login.html +2 -1
  481. package/ui/www/manifest.webmanifest +3 -3
  482. package/ui/www/settings.html +36 -1
  483. package/ui/www/simulation.html +1 -1
  484. package/ui/www/smarthome-config.html +1 -1
  485. package/ui/www/smarthome.html +1 -1
  486. package/ui/www/storagefarm-dispatch.js +287 -0
  487. package/ui/www/storagefarm-summary.css +15 -0
  488. package/ui/www/storagefarm.html +15 -1
  489. package/ui/www/storagefarm.js +8 -26
  490. package/ui/www/tariff-report.js +43 -25
  491. package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
package/ui/www/app.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/www/app.ts
10
- * Quell-Hash: sha256:2076f8c427c8f0c7fdbfacd67fce79eec650ce4e888130a66cb1c48b52459eb2
10
+ * Quell-Hash: sha256:d5eb4cd56ae843c0fada1f08e218447907600b2ba32413ae275ceb3595302282
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -489,7 +489,7 @@ function scheduleRender(force = false){
489
489
  }, wait);
490
490
  }
491
491
 
492
- // Kundenanzeige: Messwerte des Energieflussmonitors werden bewusst nur alle 15 Sekunden
492
+ // Kundenanzeige: Messwerte des Energieflussmonitors werden bewusst nur alle 5 Sekunden
493
493
  // neu gerendert. Die Backend-Messung und sämtliche EMS-Regelkreise bleiben unverändert
494
494
  // schnell; gedrosselt wird ausschließlich die sichtbare LIVE-Darstellung, damit kurze
495
495
  // NVP-/Speicher-Messversätze nicht als hektisches Springen erscheinen.
@@ -499,7 +499,7 @@ let _lastLiveTelemetryRenderTs = 0;
499
499
 
500
500
  /**
501
501
  * Code-Teil: scheduleLiveTelemetryRender
502
- * Zweck: Bündelt häufige SSE-Messwertupdates auf einen festen 15-Sekunden-Anzeigetakt.
502
+ * Zweck: Bündelt häufige SSE-Messwertupdates auf einen festen 5-Sekunden-Anzeigetakt.
503
503
  * Zusammenhang: Verändert keine Statewerte und keine Regelung; nur render() im LIVE-Frontend
504
504
  * wird verzögert. Initialdaten, Konfigurationsänderungen und bewusste UI-Aktionen dürfen
505
505
  * weiterhin sofort gerendert werden.
@@ -531,6 +531,17 @@ function scheduleLiveTelemetryRender(force = false){
531
531
  document.addEventListener('visibilitychange', () => {
532
532
  if (document.visibilityState === 'visible') scheduleLiveTelemetryRender(true);
533
533
  });
534
+ // Auch bei einer offenen, aber stillstehenden SSE-Verbindung müssen Messungen
535
+ // sichtbar altern. Nur die sichtbare LIVE-Seite neu projizieren, ohne Datenabruf.
536
+ function refreshLiveMeasurementAge() {
537
+ if (document.visibilityState === 'visible' && document.getElementById('energyWebSvg')) scheduleLiveTelemetryRender(false);
538
+ }
539
+ let liveMeasurementAgeTimer = setInterval(refreshLiveMeasurementAge, LIVE_TELEMETRY_RENDER_INTERVAL_MS);
540
+ window.addEventListener('pagehide', () => { clearInterval(liveMeasurementAgeTimer); liveMeasurementAgeTimer = null; });
541
+ window.addEventListener('pageshow', () => {
542
+ if (liveMeasurementAgeTimer === null) liveMeasurementAgeTimer = setInterval(refreshLiveMeasurementAge, LIVE_TELEMETRY_RENDER_INTERVAL_MS);
543
+ refreshLiveMeasurementAge();
544
+ });
534
545
  /**
535
546
  * Code-Teil: formatPower
536
547
  * Zweck: Formatiert Daten für Anzeige oder Logs.
@@ -1864,9 +1875,14 @@ function nwSetLiveOnline(isOnline) {
1864
1875
  window.__nwTariffLiveOnline = online;
1865
1876
  if (tariffConnectionChanged) updateEmsControlUi();
1866
1877
  setText('sideConnection', online ? 'Online' : 'Offline');
1867
- setText('sideStatusText', online ? 'Alle Systeme normal' : 'Verbindung wird aufgebaut');
1878
+ setText('sideStatusText', online ? 'Verbindung hergestellt · Betriebsstatus wird geprüft' : 'Verbindung unterbrochen');
1868
1879
  const dot = document.getElementById('sideLiveDot');
1869
1880
  if (dot) dot.classList.toggle('is-offline', !online);
1881
+ if (!online) {
1882
+ for (const id of ['pvPower', 'gridBuyPower', 'gridSellPower', 'storagePower', 'consumptionTotal', 'sidePvPower', 'sideBuildingPower', 'sideBatteryPower', 'sideGridBuyPower', 'sideGridSellPower', 'pvVal', 'gridVal', 'restVal', 'centerPower']) setText(id, '--');
1883
+ setText('batterySocIn', '-- %'); setText('sideStorage', '-- %'); setText('sideBatterySoc', '-- %');
1884
+ setText('sideEms', 'Verbindung unterbrochen'); setText('sideGridStatus', 'Messstatus unbekannt');
1885
+ }
1870
1886
  }
1871
1887
  /**
1872
1888
  * Code-Teil: updateDashboardShellUi
@@ -1893,38 +1909,35 @@ function updateDashboardShellUi(data) {
1893
1909
  const liveDot = document.getElementById('liveDot');
1894
1910
  nwSetLiveOnline(!liveDot || liveDot.classList.contains('live'));
1895
1911
 
1896
- const pv = Number(snap.pv ?? d('pvPower') ?? d('productionTotal') ?? 0) || 0;
1897
- const buy = Number(snap.buy ?? 0) || 0;
1898
- const sell = Number(snap.sell ?? 0) || 0;
1899
- const load = Number(snap.load ?? d('consumptionTotal') ?? 0) || 0;
1900
- const charge = Math.max(0, Number(snap.charge ?? 0) || 0);
1901
- const discharge = Math.max(0, Number(snap.discharge ?? 0) || 0);
1902
- const batterySigned = discharge - charge;
1912
+ const { pv, buy, sell, load, charge, discharge } = getLiveMeasurementView();
1913
+ const batterySigned = charge === null || discharge === null ? null : discharge - charge;
1903
1914
  const evcsAvailable = nwEvcsFeatureFromConfig();
1904
1915
  const evcsPower = evcsAvailable ? getEvcsPowerW(d) : null;
1905
1916
  try { nwApplyCustomerFeatureVisibility(window.__nwCfg || {}, window.latestState || state || {}); } catch (_e) {}
1906
1917
 
1907
- const soc = (snap.socN !== undefined && snap.socN !== null) ? Number(snap.socN) : coerceNumber(d('storageSoc'));
1908
- const autarky = (snap.autarkyN !== undefined && snap.autarkyN !== null) ? Number(snap.autarkyN) : coerceNumber(d('autarky'));
1909
- const selfc = (snap.selfcN !== undefined && snap.selfcN !== null) ? Number(snap.selfcN) : coerceNumber(d('selfConsumption'));
1918
+ const soc = getLiveMeasurementView().soc;
1919
+ const autarky = (snap.autarkyN !== undefined && snap.autarkyN !== null) ? Number(snap.autarkyN) : getFreshFlowNumber('autarky');
1920
+ const selfc = (snap.selfcN !== undefined && snap.selfcN !== null) ? Number(snap.selfcN) : getFreshFlowNumber('selfConsumption');
1910
1921
 
1911
1922
  setText('sideStorage', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
1912
1923
  setText('sideBatterySoc', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
1913
1924
  const p14 = !!d('ems.core.para14aActive') || !!d('para14a.active'), peak = String(d('peakShaving.control.status') || '').trim(), safety = String(d('chargingManagement.audit.safetyStage') || '').trim(), p14Fallback = d('para14a.communicationFallbackActive') === true;
1914
- setText('sideEms', safety === 'EOS-SAFETY-STOP' ? 'Safety aktiv' : 'Aktiv');
1915
- setText('sideGridStatus', p14Fallback ? '§14a Fallback' : (p14 ? '§14a aktiv' : (peak === 'active' ? 'Peak aktiv' : 'Stabil')));
1925
+ const health = window.NexoWattLiveDisplay?.status(window.latestState || state || {}, window.__nwTariffLiveOnline !== false, Date.now());
1926
+ setText('sideEms', safety === 'EOS-SAFETY-STOP' ? 'Safety aktiv' : health?.ems || 'Status unbekannt');
1927
+ setText('sideGridStatus', p14Fallback ? '§14a Fallback' : (p14 ? '§14a aktiv' : (peak === 'active' ? 'Peak aktiv' : health?.grid || 'Messstatus unbekannt')));
1928
+ setText('sideStatusText', health?.summary || 'Betriebsstatus unbekannt');
1916
1929
  try { window.NexoWattLpStatusPresenter?.render(d, evcsAvailable); } catch (_eChargingStatus) {}
1917
1930
 
1918
- setText('sideConsumptionTotal', formatFlowPower(Math.max(0, load)));
1931
+ setText('sideConsumptionTotal', load === null ? '--' : formatFlowPower(Math.max(0, load)));
1919
1932
  setText('sideSelfConsumption', Number.isFinite(selfc) ? `${Math.round(selfc)} %` : '-- %');
1920
1933
  setText('sideAutarky', Number.isFinite(autarky) ? `${Math.round(autarky)} %` : '-- %');
1921
1934
  setText('sideCo2Savings', snap.co2Text || '--');
1922
1935
 
1923
- setText('sidePvPower', formatFlowPower(Math.abs(pv)));
1924
- setText('sideBuildingPower', formatFlowPower(Math.max(0, load)));
1925
- setText('sideGridBuyPower', formatFlowPower(Math.max(0, buy)));
1926
- setText('sideGridSellPower', formatFlowPower(Math.max(0, sell)));
1927
- setText('sideBatteryPower', (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
1936
+ setText('sidePvPower', pv === null ? '--' : formatFlowPower(Math.abs(pv)));
1937
+ setText('sideBuildingPower', load === null ? '--' : formatFlowPower(Math.max(0, load)));
1938
+ setText('sideGridBuyPower', buy === null ? '--' : formatFlowPower(Math.max(0, buy)));
1939
+ setText('sideGridSellPower', sell === null ? '--' : formatFlowPower(Math.max(0, sell)));
1940
+ setText('sideBatteryPower', batterySigned === null ? '--' : (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
1928
1941
  if (evcsAvailable) setText('sideEvcsPower', evcsPower === null ? '--' : formatFlowPower(Math.abs(evcsPower)));
1929
1942
 
1930
1943
  const ts = nwLatestStateTimestamp([
@@ -2628,13 +2641,12 @@ function resolveHeatingRodFlowPower(it, d, fallbackRaw){
2628
2641
  */
2629
2642
  const readN = (key) => {
2630
2643
  try {
2631
- const n = Number(d(key));
2644
+ const raw = d(key);
2645
+ const n = raw === null || raw === undefined || typeof raw === 'boolean' || raw === '' ? NaN : Number(raw);
2632
2646
  return Number.isFinite(n) ? n : NaN;
2633
2647
  } catch(_e) { return NaN; }
2634
2648
  };
2635
2649
  const measured = readN(`heatingRod.devices.c${idx}.measuredW`);
2636
- const applied = readN(`heatingRod.devices.c${idx}.appliedW`);
2637
- const target = readN(`heatingRod.devices.c${idx}.targetW`);
2638
2650
  const maxPower = readN(`heatingRod.devices.c${idx}.maxPowerW`);
2639
2651
  let valueW = NaN;
2640
2652
 
@@ -2643,9 +2655,7 @@ function resolveHeatingRodFlowPower(it, d, fallbackRaw){
2643
2655
  // Messung und darf nicht durch nominale Stufen-/Sollleistungen ersetzt werden.
2644
2656
  if (Number.isFinite(fallbackRaw)) valueW = Math.abs(fallbackRaw);
2645
2657
  else if (Number.isFinite(measured)) valueW = Math.abs(measured);
2646
- else if (Number.isFinite(applied) && applied > 0) valueW = applied;
2647
- else if (Number.isFinite(target) && target > 0) valueW = target;
2648
- else valueW = 0;
2658
+ // Eine Vorgabe bzw. geschaltete Nennleistung ist keine bestätigte Messung.
2649
2659
 
2650
2660
  return {
2651
2661
  valueW: Math.max(0, valueW),
@@ -2660,6 +2670,7 @@ function resolveHeatingRodFlowPower(it, d, fallbackRaw){
2660
2670
  */
2661
2671
  function updateEnergyWebExtras(d){
2662
2672
  let consumersSum = 0;
2673
+ let consumersComplete = true;
2663
2674
  /**
2664
2675
  * Code-Teil: show
2665
2676
  * Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
@@ -2706,9 +2717,9 @@ function updateEnergyWebExtras(d){
2706
2717
  // Produzenten
2707
2718
  if (flowExtras && Array.isArray(flowExtras.producers)) {
2708
2719
  for (const it of flowExtras.producers) {
2709
- const raw = Number(d(it.stateKey)) || 0;
2710
- const abs = stabilizeFlowAbs(`extra:producer:${it.stateKey || it.lineId || it.nodeId}`, Math.abs(raw));
2711
- setText(it.valId, formatFlowPower(abs));
2720
+ const raw = coerceNumber(d(it.stateKey));
2721
+ const abs = stabilizeFlowAbs(`extra:producer:${it.stateKey || it.lineId || it.nodeId}`, raw === null ? 0 : Math.abs(raw));
2722
+ setText(it.valId, raw === null ? '--' : formatFlowPower(abs));
2712
2723
  show(it.lineId, abs);
2713
2724
  // Erzeugung soll optisch immer "zum Gebäude" laufen (keine Richtungsumschaltung).
2714
2725
  // Das verhindert Flackern durch Vorzeichen-Schwankungen um 0W oder uneinheitliche Vorzeichenkonventionen.
@@ -2735,13 +2746,14 @@ function updateEnergyWebExtras(d){
2735
2746
  const sumSpecialPower = (role, devices) => {
2736
2747
  const r = String(role || '').toLowerCase();
2737
2748
  const pre = (r === 'bhkw') ? 'bhkw.devices.b' : (r === 'generator') ? 'generator.devices.g' : '';
2738
- if (!pre || !Array.isArray(devices)) return 0;
2749
+ if (!pre || !Array.isArray(devices) || !devices.length) return null;
2739
2750
  let sum = 0;
2740
2751
  for (const dev of devices) {
2741
2752
  const idx = Number(dev && dev.idx);
2742
- if (!idx) continue;
2743
- const v0 = Number(d(`${pre}${idx}.powerW`));
2744
- if (Number.isFinite(v0)) sum += v0;
2753
+ if (!idx) return null;
2754
+ const v0 = coerceNumber(d(`${pre}${idx}.powerW`));
2755
+ if (v0 === null) return null;
2756
+ sum += v0;
2745
2757
  }
2746
2758
  return sum;
2747
2759
  };
@@ -2749,8 +2761,8 @@ const sumSpecialPower = (role, devices) => {
2749
2761
  if (flowExtras && Array.isArray(flowExtras.special)) {
2750
2762
  for (const it of flowExtras.special) {
2751
2763
  const raw = sumSpecialPower(it.role, it.devices);
2752
- const abs = stabilizeFlowAbs(`extra:special:${it.role}:${it.lineId || it.nodeId}`, Math.abs(raw));
2753
- setText(it.valId, formatFlowPower(abs));
2764
+ const abs = stabilizeFlowAbs(`extra:special:${it.role}:${it.lineId || it.nodeId}`, raw === null ? 0 : Math.abs(raw));
2765
+ setText(it.valId, raw === null ? '--' : formatFlowPower(abs));
2754
2766
  show(it.lineId, abs);
2755
2767
  // BHKW/Generator: Erzeugung immer zum Gebäude (keine Richtungsumschaltung)
2756
2768
  setRev(it.lineId, false);
@@ -2767,9 +2779,11 @@ if (flowExtras && Array.isArray(flowExtras.special)) {
2767
2779
  : Number(rawCandidate);
2768
2780
  if (isHeatingRodFlowItem(it)) {
2769
2781
  const rodPower = resolveHeatingRodFlowPower(it, d, rawBase);
2770
- const abs = stabilizeFlowAbs(`extra:consumer:heatingRod:c${it.idx || it.stateKey || it.lineId || it.nodeId}`, Math.abs(rodPower.valueW));
2782
+ const valid = Number.isFinite(rodPower.valueW);
2783
+ const abs = stabilizeFlowAbs(`extra:consumer:heatingRod:c${it.idx || it.stateKey || it.lineId || it.nodeId}`, valid ? Math.abs(rodPower.valueW) : 0);
2784
+ if (!valid) consumersComplete = false;
2771
2785
  consumersSum += abs;
2772
- setText(it.valId, formatFlowPower(abs));
2786
+ setText(it.valId, valid ? formatFlowPower(abs) : '--');
2773
2787
  show(it.lineId, abs);
2774
2788
  // Heizstab ist immer Verbraucher: Richtung stabil Gebäude -> Heizstab.
2775
2789
  setRev(it.lineId, false);
@@ -2778,17 +2792,19 @@ if (flowExtras && Array.isArray(flowExtras.special)) {
2778
2792
  }
2779
2793
 
2780
2794
  const raw = rawBase;
2781
- const val = stabilizeFlowSigned(`extra:consumer:${it.stateKey || it.lineId || it.nodeId}`, raw);
2795
+ const valid = Number.isFinite(raw);
2796
+ if (!valid) consumersComplete = false;
2797
+ const val = stabilizeFlowSigned(`extra:consumer:${it.stateKey || it.lineId || it.nodeId}`, valid ? raw : 0);
2782
2798
  const abs = Math.abs(val);
2783
2799
  consumersSum += abs;
2784
- setText(it.valId, formatFlowPower(abs));
2800
+ setText(it.valId, valid ? formatFlowPower(abs) : '--');
2785
2801
  show(it.lineId, abs);
2786
2802
  setRev(it.lineId, val < 0);
2787
2803
  setNodeActive(it.nodeId, abs > 0);
2788
2804
  }
2789
2805
  }
2790
2806
 
2791
- return consumersSum;
2807
+ return consumersComplete ? consumersSum : null;
2792
2808
  }
2793
2809
  /**
2794
2810
  * Code-Teil: setRingSegment
@@ -2813,65 +2829,15 @@ function setRingSegment(cls, pct) {
2813
2829
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
2814
2830
  */
2815
2831
  function computeDerived() {
2816
- // derive some percentages if not provided
2817
- const pv = pick('pvPower', 'productionTotal');
2818
- const load = pick('consumptionTotal');
2819
- const batteryFlow = getNormalizedBatteryFlow();
2820
- const charge = Number(batteryFlow.chargeW) || 0;
2821
- const discharge = Number(batteryFlow.dischargeW) || 0;
2822
- const gridMeta = getGridImportExport((k) => get(k));
2823
- const rawBuy = gridMeta.rawBuy;
2824
- const rawSell = gridMeta.rawSell;
2825
- const rawNet = gridMeta.rawNet;
2826
- const haveGridInfo = !!gridMeta.hasGridInfo;
2827
- const { buy, sell } = gridMeta;
2828
-
2829
-
2832
+ const { pv, load, buy, sell } = getLiveMeasurementView();
2830
2833
  const res = {};
2831
- if (load != null) {
2832
- let pct = null;
2833
- if (haveGridInfo) {
2834
- // Live-Autarkie physikalisch aus Verbrauch vs. Netzbezug ableiten.
2835
- // Dadurch läuft die Kachel korrekt mit, wenn Batterie oder PV den
2836
- // Verbrauch decken und am Netzanschlusspunkt 0 W Bezug anliegt.
2837
- const localSupply = Math.max(0, load - Math.max(0, buy || 0));
2838
- pct = load > 0 ? (localSupply / load) * 100 : 0;
2839
- } else {
2840
- // Fallback nur dann verwenden, wenn noch kein Netz-DP eingetroffen ist.
2841
- const localPv = pv != null ? Math.max(0, pv - Math.max(0, sell || 0)) : 0;
2842
- const batterySupport = Math.max(0, (discharge || 0) - (charge || 0));
2843
- const localSupply = Math.max(0, Math.min(load, localPv + batterySupport));
2844
- pct = load > 0 ? (localSupply / load) * 100 : 0;
2845
- }
2846
- res.autarky = Math.max(0, Math.min(100, pct || 0));
2834
+ if (load !== null && buy !== null) {
2835
+ res.autarky = load > 0 ? Math.max(0, Math.min(100, (load - buy) / load * 100)) : 0;
2847
2836
  }
2848
- if (pv != null) {
2849
- // share of production used locally (pv - sell)/pv
2850
- const local = Math.max(0, pv - (sell || 0));
2851
- const pct = pv > 0 ? (local / pv) * 100 : 0;
2852
- res.selfConsumption = Math.max(0, Math.min(100, pct));
2837
+ if (pv !== null && sell !== null) {
2838
+ res.selfConsumption = pv > 0 ? Math.max(0, Math.min(100, (pv - sell) / pv * 100)) : 0;
2853
2839
  }
2854
2840
  return res;
2855
- /**
2856
- * Code-Teil: get
2857
- * Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
2858
- * Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
2859
- * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
2860
- */
2861
- function get(k){ return state[k]?.value; }
2862
- /**
2863
- * Code-Teil: pick
2864
- * Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
2865
- * Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
2866
- * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
2867
- */
2868
- function pick(...keys){
2869
- for (const k of keys) {
2870
- const n = coerceNumber(get(k));
2871
- if (n != null) return n;
2872
- }
2873
- return null;
2874
- }
2875
2841
  }
2876
2842
  /**
2877
2843
  * Code-Teil: coerceNumber
@@ -2965,7 +2931,7 @@ function getStateAgeMs(key) {
2965
2931
  try {
2966
2932
  const rec = state && state[key];
2967
2933
  const ts = Number(rec && rec.ts);
2968
- if (!Number.isFinite(ts) || ts <= 0) return null;
2934
+ if (!Number.isFinite(ts) || ts <= 0 || ts > Date.now() + 5000) return null;
2969
2935
  return Math.max(0, Date.now() - ts);
2970
2936
  } catch (_e) {
2971
2937
  return null;
@@ -2995,14 +2961,7 @@ function getFlowFreshMaxAgeMs() {
2995
2961
  */
2996
2962
  function getFreshFlowNumber(key, opts = {}) {
2997
2963
  if (opts.onlyIfMapped && !isMappedDatapoint(key)) return null;
2998
- const rec = state && state[key];
2999
- if (!rec) return null;
3000
- const n = coerceNumber(rec.value);
3001
- if (n === null) return null;
3002
- const maxAgeMs = opts.maxAgeMs === undefined ? getFlowFreshMaxAgeMs() : opts.maxAgeMs;
3003
- const age = getStateAgeMs(key);
3004
- if (Number.isFinite(Number(maxAgeMs)) && Number(maxAgeMs) > 0 && age !== null && age > Number(maxAgeMs)) return null;
3005
- return n;
2964
+ return window.NexoWattLiveDisplay?.read(state, key, Date.now(), getFlowFreshMaxAgeMs(), window.__nwTariffLiveOnline !== false) ?? null;
3006
2965
  }
3007
2966
  /**
3008
2967
  * Code-Teil: getStableFlowNumber
@@ -3011,9 +2970,9 @@ function getFreshFlowNumber(key, opts = {}) {
3011
2970
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
3012
2971
  */
3013
2972
  function getStableFlowNumber(key, opts = {}) {
3014
- // Kern-Energiefluss-DPs dürfen nicht als fehlend gelten, nur weil ein konstanter
3015
- // Wert (typisch 0 W bei Speicher Laden/Entladen) lange nicht geändert wurde.
3016
- return getFreshFlowNumber(key, Object.assign({}, opts, { maxAgeMs: null }));
2973
+ // Aktualität folgt dem Messzeitstempel (ts), nicht dem Änderungszeitpunkt (lc).
2974
+ // Auch unveränderte echte Messungen werden vom Gerät regelmäßig bestätigt.
2975
+ return getFreshFlowNumber(key, opts);
3017
2976
  }
3018
2977
  /**
3019
2978
  * Code-Teil: getConfiguredDatapointId
@@ -3046,7 +3005,7 @@ function getBalanceDerivedBatteryFlow(opts = {}) {
3046
3005
  * Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
3047
3006
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
3048
3007
  */
3049
- const read = (k) => st && st[k] ? st[k].value : undefined;
3008
+ const read = (k) => getFreshFlowNumber(k);
3050
3009
 
3051
3010
  // In Speicherfarm-Anlagen sind die Farm-Summen die Quelle der Wahrheit.
3052
3011
  if (nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, st)) return null;
@@ -3063,7 +3022,9 @@ function getBalanceDerivedBatteryFlow(opts = {}) {
3063
3022
  if (load === null) return null;
3064
3023
 
3065
3024
  const grid = getGridImportExport(read);
3066
- if (!grid || !grid.hasGridInfo) return null;
3025
+ if (!grid || grid.rawBuy === null || grid.rawSell === null) return null;
3026
+ const nvp = st['ems.gridMeasurementFresh'];
3027
+ if (nvp && (nvp.value !== true || getStateAgeMs('ems.gridMeasurementFresh') === null || getStateAgeMs('ems.gridMeasurementFresh') > getFlowFreshMaxAgeMs())) return null;
3067
3028
 
3068
3029
  let pv = coerceNumber(read('pvPower'));
3069
3030
  if (pv === null && isMappedDatapoint('productionTotal')) pv = coerceNumber(read('productionTotal'));
@@ -3197,12 +3158,11 @@ function getNormalizedBatteryFlow() {
3197
3158
  let d = Math.max(0, Math.abs(Number(fd || 0)));
3198
3159
  if (c <= deadbandW) c = 0;
3199
3160
  if (d <= deadbandW) d = 0;
3200
- return { chargeW: c, dischargeW: d, signedW: d - c, src: 'storageFarmGross', inverted: false, fromSigned: false, derived: false };
3161
+ return { chargeW: c, dischargeW: d, signedW: d - c, src: 'storageFarmGross', inverted: false, fromSigned: false, derived: false, incomplete: fc === null || fd === null };
3201
3162
  }
3202
3163
  }
3203
3164
 
3204
- // Gemappte Speicher-DPs stabil lesen: ein unveränderter 0-Wert darf nicht wegen
3205
- // seines Alters verworfen und durch eine Bilanzrechnung ersetzt werden.
3165
+ // Unverändert, aber regelmäßig bestätigte Messungen (ts) bleiben gültig.
3206
3166
  const signedBattery = batteryMapped ? getStableFlowNumber('batteryPower') : null;
3207
3167
  const charge = chargeMapped ? getStableFlowNumber('storageChargePower') : null;
3208
3168
  const discharge = dischargeMapped ? getStableFlowNumber('storageDischargePower') : null;
@@ -3215,7 +3175,9 @@ function getNormalizedBatteryFlow() {
3215
3175
  if (c <= deadbandW) c = 0;
3216
3176
  if (d <= deadbandW) d = 0;
3217
3177
  if (inv) { const t = c; c = d; d = t; }
3218
- return { chargeW: c, dischargeW: d, signedW: d - c, src: inv ? 'chargeDischarge(inv)' : 'chargeDischarge', inverted: inv, fromSigned: false, derived: false };
3178
+ const incomplete = (chargeMapped && charge === null) || (dischargeMapped && discharge === null);
3179
+ if (incomplete && signedBattery !== null) return fromSigned(signedBattery, 'batterySigned');
3180
+ return { chargeW: c, dischargeW: d, signedW: d - c, src: inv ? 'chargeDischarge(inv)' : 'chargeDischarge', inverted: inv, fromSigned: false, derived: false, incomplete };
3219
3181
  }
3220
3182
 
3221
3183
  if (signedBattery !== null) return fromSigned(signedBattery, 'batterySigned');
@@ -3238,20 +3200,21 @@ function getNormalizedBatteryFlow() {
3238
3200
  */
3239
3201
  function getCanonicalPvPowerW(readValue) {
3240
3202
  const d = typeof readValue === 'function' ? readValue : ((key) => state[key]?.value);
3241
- const derived = Number(d('derived.core.pv.totalW'));
3242
- if (Number.isFinite(derived) && derived >= 0) return derived;
3203
+ const derived = coerceNumber(d('derived.core.pv.totalW'));
3204
+ if (derived !== null && derived >= 0) return derived;
3243
3205
 
3244
- let base = Number(d('pvPower') ?? d('productionTotal') ?? 0);
3245
- if (!Number.isFinite(base)) base = 0;
3246
- const baseAbs = Math.abs(base);
3206
+ const base = coerceNumber(d('pvPower') ?? d('productionTotal'));
3207
+ const baseAbs = base === null ? null : Math.abs(base);
3247
3208
  if (!nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, state || window.latestState || {})) return baseAbs;
3248
3209
 
3249
- const farmTotal = Math.max(0, Math.abs(Number(d('storageFarm.totalPvPowerW')) || 0));
3210
+ const farmTotalRaw = coerceNumber(d('storageFarm.totalPvPowerW'));
3211
+ const farmTotal = farmTotalRaw === null ? 0 : Math.abs(farmTotalRaw);
3250
3212
  const farmAc = Math.max(0, Math.abs(Number(d('storageFarm.totalPvAcPowerW')) || 0));
3251
3213
  const farmDc = Math.max(0, Math.abs(Number(d('storageFarm.totalPvDcPowerW')) || 0));
3252
3214
  const farmUnknown = Math.max(0, Math.abs(Number(d('storageFarm.totalPvUnknownPowerW')) || 0));
3253
3215
  const farmAcLike = farmAc + farmUnknown;
3254
- if (baseAbs <= 0) return farmTotal;
3216
+ if (baseAbs === null) return farmTotalRaw === null ? null : farmTotal;
3217
+ if (baseAbs <= 0) return farmTotal > 0 ? farmTotal : baseAbs;
3255
3218
  if (farmTotal <= 0) return baseAbs;
3256
3219
 
3257
3220
  // Kompatibilitätsfallback für alte Backends: AC-/WR-Summen und Anlagen-PV sind
@@ -3261,6 +3224,27 @@ function getCanonicalPvPowerW(readValue) {
3261
3224
  const relDiff = Math.abs(baseAbs - farmDc) / Math.max(1, farmDc);
3262
3225
  return (baseAbs >= farmDc || relDiff < 0.05) ? baseAbs : (baseAbs + farmDc);
3263
3226
  }
3227
+ /** Anzeigeprojektion: Fehlend/veraltet/offline bleibt null, echte 0 bleibt erhalten.
3228
+ * Keine Regelung, keine Ersatzmessung und keine Änderung der Kundenzuordnung. */
3229
+ function getLiveMeasurementView() {
3230
+ const fresh = key => getFreshFlowNumber(key);
3231
+ const grid = getGridImportExport(fresh);
3232
+ const nvp = state?.['ems.gridMeasurementFresh'];
3233
+ const nvpUsable = !nvp || (nvp.value === true && getStateAgeMs('ems.gridMeasurementFresh') !== null && getStateAgeMs('ems.gridMeasurementFresh') <= getFlowFreshMaxAgeMs());
3234
+ const gridAvailable = nvpUsable && grid.rawBuy !== null && grid.rawSell !== null;
3235
+ const battery = getNormalizedBatteryFlow();
3236
+ const batteryAvailable = !['missing', 'mapped-missing', 'storageFarm-missing-power', 'storageFarm-unavailable', 'stale-or-missing'].includes(String(battery.src)) && battery.incomplete !== true;
3237
+ const farm = nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, state || {});
3238
+ const farmView = farm ? window.NexoWattLiveDisplay?.farm(state, Date.now(), window.__nwTariffLiveOnline !== false) : null;
3239
+ return {
3240
+ pv: getCanonicalPvPowerW(fresh), load: fresh('consumptionTotal'),
3241
+ buy: gridAvailable ? grid.buy : null, sell: gridAvailable ? grid.sell : null,
3242
+ charge: farmView ? farmView.charge : batteryAvailable ? battery.chargeW : null,
3243
+ discharge: farmView ? farmView.discharge : batteryAvailable ? battery.dischargeW : null,
3244
+ soc: farmView ? farmView.soc : farm ? fresh('storageFarm.totalSoc') ?? fresh('storageFarm.medianSoc') : fresh('storageSoc'),
3245
+ };
3246
+ }
3247
+
3264
3248
  // Abschnitt: Haupt-Renderlauf des LIVE-Dashboards. Alle DOM-Werte für Energiefluss, KPIs, KI-Berater und Schnellzugriffe werden hier aktualisiert.
3265
3249
  /**
3266
3250
  * Code-Teil: render
@@ -3281,24 +3265,8 @@ function render() {
3281
3265
  // Top ring values: map PV, Grid, Load, Bat flows to percent of max for visualization
3282
3266
  const sfEnabled = nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, s || state || {});
3283
3267
 
3284
- // Der sichtbare PV-Wert kommt aus dem zentralen Backend-Energiefluss. Damit zeigen
3285
- // LIVE, Historie und EMS dieselbe Farm-/Wechselrichter-Gesamtleistung.
3286
- let pv = getCanonicalPvPowerW(d);
3287
-
3288
- const load = d('consumptionTotal');
3289
- const { buy, sell } = getGridImportExport(d);
3290
- const batteryFlow = getNormalizedBatteryFlow();
3291
- let charge = Number(batteryFlow.chargeW) || 0;
3292
- let discharge = Number(batteryFlow.dischargeW) || 0;
3293
- let soc = d('storageSoc');
3294
-
3295
- if (sfEnabled) {
3296
- const socAvg = d('storageFarm.totalSoc');
3297
- const socMedian = d('storageFarm.medianSoc');
3298
- // Im Farm‑Modus bevorzugen wir den Durchschnitt (Ø), Median bleibt als Fallback.
3299
- if (socAvg != null && !isNaN(Number(socAvg))) soc = socAvg;
3300
- else if (socMedian != null && !isNaN(Number(socMedian))) soc = socMedian;
3301
- }
3268
+ const measurements = getLiveMeasurementView();
3269
+ const { pv, load, buy, sell, charge, discharge, soc } = measurements;
3302
3270
  const maxVal = Math.max(1, ...[pv, load, buy, sell, charge, discharge].filter(x => typeof x === 'number').map(Math.abs));
3303
3271
  /**
3304
3272
  * Code-Teil: Arrow-Funktion `pct`
@@ -3319,17 +3287,17 @@ function render() {
3319
3287
  setRingSegment('load', pct(load));
3320
3288
  setRingSegment('bat', pct((charge||0)+(discharge||0)));
3321
3289
 
3322
- setText('pvPower', formatPower(pv ?? 0));
3323
- setText('gridBuyPower', formatPower(buy ?? 0));
3324
- setText('gridSellPower', formatPower(sell ?? 0));
3290
+ setText('pvPower', (pv === null ? '--' : formatPower(pv)));
3291
+ setText('gridBuyPower', (buy === null ? '--' : formatPower(buy)));
3292
+ setText('gridSellPower', (sell === null ? '--' : formatPower(sell)));
3325
3293
  const batPower = (charge||0) - (discharge||0);
3326
- setText('storagePower', formatPower(batPower));
3327
- setText('consumptionTotal', formatPower(load ?? 0));
3294
+ setText('storagePower', charge === null || discharge === null ? '--' : formatPower(batPower));
3295
+ setText('consumptionTotal', (load === null ? '--' : formatPower(load)));
3328
3296
 
3329
3297
  // Cards
3330
3298
  const derived = computeDerived();
3331
- const autarky = derived.autarky ?? d('autarky');
3332
- const selfc = derived.selfConsumption ?? d('selfConsumption');
3299
+ const autarky = derived.autarky ?? getFreshFlowNumber('autarky');
3300
+ const selfc = derived.selfConsumption ?? getFreshFlowNumber('selfConsumption');
3333
3301
 
3334
3302
  const autarkyN = clamp01(coerceNumber(autarky), 0, 100);
3335
3303
  const selfcN = clamp01(coerceNumber(selfc), 0, 100);
@@ -3346,13 +3314,13 @@ function render() {
3346
3314
  setWidth('storageSocBar', socN ?? 0);
3347
3315
  setText('storageSocValue', (socN != null ? socN.toFixed(0) : '--') + ' %');
3348
3316
 
3349
- setText('storageChargePower', formatPower(charge ?? 0));
3350
- setText('storageLadenPower', formatPower(charge ?? 0));
3351
- setText('storageDischargePower', formatPower(discharge ?? 0));
3352
- setText('storageEntladenPower', formatPower(discharge ?? 0));
3317
+ setText('storageChargePower', (charge === null ? '--' : formatPower(charge)));
3318
+ setText('storageLadenPower', (charge === null ? '--' : formatPower(charge)));
3319
+ setText('storageDischargePower', (discharge === null ? '--' : formatPower(discharge)));
3320
+ setText('storageEntladenPower', (discharge === null ? '--' : formatPower(discharge)));
3353
3321
 
3354
- setText('gridBuyPowerCard', formatPower(buy ?? 0));
3355
- setText('gridSellPowerCard', formatPower(sell ?? 0));
3322
+ setText('gridBuyPowerCard', (buy === null ? '--' : formatPower(buy)));
3323
+ setText('gridSellPowerCard', (sell === null ? '--' : formatPower(sell)));
3356
3324
  setText('gridEnergyKwh', formatEnergyKwh(d('gridEnergyKwh')));
3357
3325
  setText('productionEnergyKwh', formatEnergyKwh(d('productionEnergyKwh')));
3358
3326
  const pvEnergyKwh = coerceNumber(d('productionEnergyKwh'));
@@ -3361,7 +3329,7 @@ function render() {
3361
3329
  setText('co2Savings', (co2Dp != null ? (isNaN(Number(co2Dp)) ? String(co2Dp) : Number(co2Dp).toFixed(1) + ' t') : (co2FromPvT != null ? co2FromPvT.toFixed(1) + ' t' : '--')));
3362
3330
 
3363
3331
 
3364
- setText('productionTotal', formatPower(d('productionTotal') ?? pv ?? 0));
3332
+ setText('productionTotal', (pv === null ? '--' : formatPower(pv)));
3365
3333
  const gfN = coerceNumber(d('gridFrequency'));
3366
3334
  setText('gridFrequency', gfN != null ? gfN.toFixed(2) + ' Hz' : '--');
3367
3335
 
@@ -3372,7 +3340,7 @@ function render() {
3372
3340
  const evcsPowerNow = getEvcsPowerW(d);
3373
3341
  setText('consumptionEvcs', evcsAvailableNow ? (evcsPowerNow === null ? '--' : formatPower(evcsPowerNow)) : '');
3374
3342
  setText('consumptionEnergyKwh', formatEnergyKwh(d('consumptionEnergyKwh')));
3375
- setText('consumptionBuilding', formatPower(d('consumptionTotal') ?? 0));
3343
+ setText('consumptionBuilding', (load === null ? '--' : formatPower(load)));
3376
3344
 
3377
3345
  // EVCS status: prefer per-connector status (single wallbox) and fall back to legacy dp
3378
3346
  if (evcsAvailableNow) {
@@ -4813,7 +4781,8 @@ function initSettingsPageTabs(){
4813
4781
  });
4814
4782
 
4815
4783
  try { window.__nwActivateSettingsPage = activatePage; } catch (_e) {}
4816
- activatePage(wrap.dataset.settingsPage || (() => {
4784
+ window.addEventListener('hashchange', () => { if (window.location.hash === '#updates') activatePage('updates'); });
4785
+ activatePage(window.location.hash === '#updates' ? 'updates' : wrap.dataset.settingsPage || (() => {
4817
4786
  try { return sessionStorage.getItem('nexowatt.settings.page') || 'general'; } catch (_e) { return 'general'; }
4818
4787
  })());
4819
4788
  }
@@ -8595,29 +8564,14 @@ function updateEnergyWeb() {
8595
8564
  // Raw datapoints (1:1)
8596
8565
  const sfEnabled = nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, s || state || {});
8597
8566
 
8598
- // Backend-konsolidierte Anlagen-/Farm-PV verwenden; lokaler Fallback nur für
8599
- // ältere Adapterstände ohne derived.core.pv.totalW.
8600
- let pv = getCanonicalPvPowerW(d);
8601
- let { buy, sell } = getGridImportExport(d);
8602
- let load = +(d('consumptionTotal') ?? 0);
8567
+ const measurements = getLiveMeasurementView();
8568
+ let pv = measurements.pv ?? 0;
8569
+ let buy = measurements.buy ?? 0, sell = measurements.sell ?? 0;
8570
+ const load = measurements.load ?? 0;
8603
8571
  const evcsPowerW = getEvcsPowerW(d);
8604
- let c2 = evcsPowerW ?? 0; // Unknown is used as zero only for drawing geometry, never as a displayed measurement.
8605
-
8606
- // Batterie: zentral normalisieren wie den NVP.
8607
- // Signed batteryPower-Konvention: -W = Laden, +W = Entladen;
8608
- // die Option "Batterie-Vorzeichen invertieren" wird vor dem Split angewendet.
8609
- const batteryFlow = getNormalizedBatteryFlow();
8610
- let batCharge = Number(batteryFlow.chargeW) || 0;
8611
- let batDischarge = Number(batteryFlow.dischargeW) || 0;
8612
- let soc = d('storageSoc');
8613
-
8614
- if (sfEnabled) {
8615
- const socAvg = d('storageFarm.totalSoc');
8616
- const socMedian = d('storageFarm.medianSoc');
8617
- // Im Farm‑Modus bevorzugen wir den Durchschnitt (Ø), Median bleibt als Fallback.
8618
- if (socAvg != null && !isNaN(Number(socAvg))) soc = socAvg;
8619
- else if (socMedian != null && !isNaN(Number(socMedian))) soc = socMedian;
8620
- }
8572
+ let c2 = evcsPowerW ?? 0; // Nur Geometrie, niemals Ersatzmessung.
8573
+ const batCharge = measurements.charge ?? 0, batDischarge = measurements.discharge ?? 0;
8574
+ const soc = measurements.soc;
8621
8575
 
8622
8576
  // Invert toggles (Batterie ist bereits im Normalizer enthalten)
8623
8577
  const invPv = !!(s['settings.flowInvertPv']?.value);
@@ -8632,31 +8586,15 @@ function updateEnergyWeb() {
8632
8586
  if (invGrid) { const t=buy; buy = sell; sell = t; } // swap semantics if inverted grid
8633
8587
 
8634
8588
  // Optionale Extra-Kreise aktualisieren (Rückgabe = Summe der optionalen Verbraucher)
8635
- const extrasConsumersSum = updateEnergyWebExtras(d);
8589
+ const extrasConsumersSum = updateEnergyWebExtras(key => getFreshFlowNumber(key));
8636
8590
 
8637
8591
  // Gebäudeanzeige: EV (optional) + optionale Verbraucher abziehen, damit der Energiefluss optisch sauber aufgeht
8638
8592
  const evAbs = Math.max(0, Math.abs(c2));
8639
8593
  const loadDisplayBase = Math.max(0, subEvFromLoad ? (load - evAbs) : load);
8640
- let loadDisplay = Math.max(0, loadDisplayBase - extrasConsumersSum);
8594
+ let loadDisplay = Math.max(0, loadDisplayBase - (extrasConsumersSum ?? 0));
8641
8595
 
8642
- // Anti-glitch: if the building load temporarily drops to 0 W while there is clear activity,
8643
- // hold the last plausible value for a short time to avoid confusing UI spikes.
8644
- try {
8645
- const sysActivityW = Math.abs(pv) + Math.abs(buy) + Math.abs(sell) + Math.abs(batCharge) + Math.abs(batDischarge) + Math.abs(c2) + Math.abs(extrasConsumersSum);
8646
- if (sysActivityW > 300 && loadDisplay === 0) {
8647
- const lastW = Number(window.__nwLastGoodLoadDisplayW);
8648
- const lastTs = Number(window.__nwLastGoodLoadDisplayTs);
8649
- if (Number.isFinite(lastW) && Number.isFinite(lastTs) && (Date.now() - lastTs) < 60 * 1000 && lastW > 0) {
8650
- loadDisplay = lastW;
8651
- } else {
8652
- loadDisplay = 100;
8653
- }
8654
- }
8655
- if (loadDisplay > 0) {
8656
- window.__nwLastGoodLoadDisplayW = loadDisplay;
8657
- window.__nwLastGoodLoadDisplayTs = Date.now();
8658
- }
8659
- } catch (_e) {}
8596
+ // Echte 0 W bleiben 0 W. Fehlende Messung wird unten als unbekannt gezeigt;
8597
+ // Anzeige-Glättung darf keinen Ersatzverbrauch erfinden oder Zeitstempel erneuern.
8660
8598
 
8661
8599
  // -------- Anzeige-Werte & Richtungen (ohne Netto-Berechnung) --------
8662
8600
  // PV: immer Richtung Gebäude (keine Richtungsumschaltung); Wert = |pv|
@@ -8730,14 +8668,25 @@ function updateEnergyWeb() {
8730
8668
  */
8731
8669
  const T = (id, t) => { const el=document.getElementById(id); if (el) el.textContent=t; };
8732
8670
 
8733
- T('pvVal', formatFlowPower(pvValNum));
8671
+ T('pvVal', measurements.pv === null ? '--' : formatFlowPower(pvValNum));
8734
8672
  // grid text: +Bezug, -Einspeisung
8735
- T('gridVal', gridShowVal ? (gridSellMode ? ('-'+formatFlowPower(gridShowVal)) : formatFlowPower(gridShowVal)) : formatFlowPower(0));
8673
+ T('gridVal', measurements.buy === null ? '--' : gridShowVal ? (gridSellMode ? ('-'+formatFlowPower(gridShowVal)) : formatFlowPower(gridShowVal)) : formatFlowPower(0));
8736
8674
  // EV & Batterie Texte
8737
8675
  T('c2Val', evcsPowerW === null ? '--' : formatFlowPower(evShowVal));
8738
- T('restVal', batShowVal ? (batRev ? ('-'+formatFlowPower(batShowVal)) : formatFlowPower(batShowVal)) : formatFlowPower(0));
8739
- T('centerPower', formatFlowPower(Math.max(0, loadDisplay)));
8740
- if (soc===undefined || isNaN(Number(soc))) { T('batterySocIn','-- %'); } else { T('batterySocIn', Number(soc).toFixed(0)+' %'); }
8676
+ T('restVal', measurements.charge === null || measurements.discharge === null ? '--' : batShowVal ? (batRev ? ('-'+formatFlowPower(batShowVal)) : formatFlowPower(batShowVal)) : formatFlowPower(0));
8677
+ T('centerPower', measurements.load === null || extrasConsumersSum === null || (evAvail && subEvFromLoad && evcsPowerW === null) ? '--' : formatFlowPower(Math.max(0, loadDisplay)));
8678
+ if (soc===undefined || soc===null || typeof soc === 'boolean' || !Number.isFinite(Number(soc))) { T('batterySocIn','-- %'); } else { T('batterySocIn', Number(soc).toFixed(0)+' %'); }
8679
+
8680
+ for (const id of ['pvLbl', 'pvPowerBig']) T(id, measurements.pv === null ? '--' : formatPower(measurements.pv));
8681
+ for (const id of ['loadLbl', 'centerLoad', 'consumptionTotalBig']) T(id, measurements.load === null ? '--' : formatPower(measurements.load));
8682
+ for (const id of ['gridLbl', 'gridBuyVal']) T(id, measurements.buy === null ? '--' : formatPower(measurements.buy));
8683
+ T('gridSellVal', measurements.sell === null ? '--' : formatPower(measurements.sell));
8684
+ T('chargeVal', measurements.charge === null ? '--' : formatPower(measurements.charge));
8685
+ T('dischargeVal', measurements.discharge === null ? '--' : formatPower(measurements.discharge));
8686
+ T('socLbl', soc === null ? '-- %' : `${soc.toFixed(0)} %`);
8687
+ T('socText', soc === null ? 'SoC -- %' : `SoC ${soc.toFixed(0)} %`);
8688
+ if (soc === null || measurements.charge === null) T('tFull', 'Voll --');
8689
+ if (soc === null || measurements.discharge === null) T('tEmpty', 'Leer --');
8741
8690
 
8742
8691
  // Sichtbarkeit
8743
8692
  /**