iobroker.eos-admin 9.0.17 → 9.0.19

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 (291) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +11 -14
  2. package/README.md +7 -3
  3. package/START_HIER_9.0.18.md +47 -0
  4. package/START_HIER_9.0.19.md +52 -0
  5. package/adminWww/.vite/manifest.json +114 -114
  6. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13759 -13759
  7. package/adminWww/assets/{AdapterUpdateDialog-Cpo3dAfY.js → AdapterUpdateDialog-JOf2z4Vg.js} +1 -1
  8. package/adminWww/assets/{Adapters-n2ukPDdC.js → Adapters-C9fcSdWm.js} +1 -1
  9. package/adminWww/assets/{ConfigManager-BVZ6_Ebo.js → ConfigManager-BeeLlT6D.js} +1 -1
  10. package/adminWww/assets/{Enums-CQ6yHG2W.js → Enums-FqnXWl8U.js} +1 -1
  11. package/adminWww/assets/{Fields-CaJqzoW-.js → Fields-DMgrt5Pi.js} +1 -1
  12. package/adminWww/assets/{Files-DfvpKGa3.js → Files-CIHtt12g.js} +1 -1
  13. package/adminWww/assets/{Hosts-3xLBsdG6.js → Hosts-fPLBzvTy.js} +1 -1
  14. package/adminWww/assets/{Instances-B7hKEhyw.js → Instances-4XaVQlrT.js} +1 -1
  15. package/adminWww/assets/{Intro-BV4kYZdT.js → Intro-5TKriiLO.js} +1 -1
  16. package/adminWww/assets/{Logs-DpL9eY69.js → Logs-33zcIds-.js} +1 -1
  17. package/adminWww/assets/{Objects-dN06jhQk.js → Objects-CNQPVbNG.js} +1 -1
  18. package/adminWww/assets/{Overview-Lip63_ej.js → Overview-BskXGOc8.js} +1 -1
  19. package/adminWww/assets/{State-BSO2X_xN.js → State-C8SJ_Iqo.js} +1 -1
  20. package/adminWww/assets/{UsedResources-DvqzszKI.js → UsedResources-CgqRa9ei.js} +1 -1
  21. package/adminWww/assets/{Users-Csqd1xA-.js → Users-0JVYWR9u.js} +1 -1
  22. package/adminWww/assets/{bootstrap-C3HM8kNL.js → bootstrap-D16lu6rd.js} +3 -3
  23. package/adminWww/assets/{hostInit-DdxBUeXQ.js → hostInit-C8YZJuzi.js} +1 -1
  24. package/adminWww/assets/{icons-material-D1Tb_725.js → icons-material-CiNJ_6Ur.js} +1 -1
  25. package/adminWww/assets/{index-BOujTMyH.js → index-DA9Sphgh.js} +2 -2
  26. package/adminWww/assets/{installSVGRenderer-BZyrUVAo.js → installSVGRenderer-DPdkRa_d.js} +1 -1
  27. package/adminWww/assets/{mf-entry-bootstrap-0-3418586b.js → mf-entry-bootstrap-0-a7ab91de.js} +2 -2
  28. package/adminWww/index.html +23 -23
  29. package/adminWww/mf-manifest.json +1 -1
  30. package/adminWww/mf-stats.json +1 -1
  31. package/adminWww/{remoteEntry-eos-9.0.17.js → remoteEntry-eos-9.0.19.js} +1 -1
  32. package/adminWww/remoteEntry.js +1 -1
  33. package/build/lib/eosCookieNamespace.js +12 -2
  34. package/build/lib/eosCookieNamespace.js.map +1 -1
  35. package/build/lib/eosDeviceEmsPlan.js +1147 -0
  36. package/build/lib/eosDeviceEmsPlan.js.map +1 -0
  37. package/build/lib/eosDeviceEmsService.js +473 -0
  38. package/build/lib/eosDeviceEmsService.js.map +1 -0
  39. package/build/lib/eosModuleHost.js +227 -51
  40. package/build/lib/eosModuleHost.js.map +1 -1
  41. package/build/lib/eosModuleHttp.js +1 -1
  42. package/build/lib/eosModuleHttp.js.map +1 -1
  43. package/build/lib/web.js +31 -0
  44. package/build/lib/web.js.map +1 -1
  45. package/docs/reports/unified-9.0.18/ALIAS_V1_COVERAGE.json +5056 -0
  46. package/docs/reports/unified-9.0.18/ALIAS_V1_VERTRAG.md +257 -0
  47. package/docs/reports/unified-9.0.18/ANFORDERUNGEN.md +55 -0
  48. package/docs/reports/unified-9.0.18/CUSTOMER_TARIFF_REVIEW.md +33 -0
  49. package/docs/reports/unified-9.0.18/GERAETE_EMS_EINRICHTUNG.md +86 -0
  50. package/docs/reports/unified-9.0.18/INSTALLER_LIFECYCLE_REVIEW.md +29 -0
  51. package/docs/reports/unified-9.0.18/KUNDENTARIF_EINRICHTUNG.md +27 -0
  52. package/docs/reports/unified-9.0.18/PRUEFBERICHT.md +87 -0
  53. package/docs/reports/unified-9.0.18/UNABHAENGIGER_REVIEW.md +63 -0
  54. package/docs/reports/unified-9.0.18/raw/INDEX.json +331 -0
  55. package/docs/reports/unified-9.0.18/raw/audit-full.log +345 -0
  56. package/docs/reports/unified-9.0.18/raw/audit-full.result.json +14 -0
  57. package/docs/reports/unified-9.0.18/raw/audit-runtime.log +23 -0
  58. package/docs/reports/unified-9.0.18/raw/audit-runtime.result.json +15 -0
  59. package/docs/reports/unified-9.0.18/raw/backend-final.log +5 -0
  60. package/docs/reports/unified-9.0.18/raw/backend-final.result.json +14 -0
  61. package/docs/reports/unified-9.0.18/raw/frontend-build.log +152 -0
  62. package/docs/reports/unified-9.0.18/raw/frontend-build.result.json +14 -0
  63. package/docs/reports/unified-9.0.18/raw/installer-build.log +26 -0
  64. package/docs/reports/unified-9.0.18/raw/installer-build.result.json +14 -0
  65. package/docs/reports/unified-9.0.18/raw/keygen-source.json +6 -0
  66. package/docs/reports/unified-9.0.18/raw/lint-final.log +5 -0
  67. package/docs/reports/unified-9.0.18/raw/lint-final.result.json +14 -0
  68. package/docs/reports/unified-9.0.18/raw/modules-build.log +5 -0
  69. package/docs/reports/unified-9.0.18/raw/modules-build.result.json +14 -0
  70. package/docs/reports/unified-9.0.18/raw/node22-tests-final.log +9859 -0
  71. package/docs/reports/unified-9.0.18/raw/node22-tests-final.result.json +13 -0
  72. package/docs/reports/unified-9.0.18/raw/node22-typecheck-final.log +7 -0
  73. package/docs/reports/unified-9.0.18/raw/node22-typecheck-final.result.json +14 -0
  74. package/docs/reports/unified-9.0.18/raw/node22-version.log +1 -0
  75. package/docs/reports/unified-9.0.18/raw/node24-tests-final.log +1663 -0
  76. package/docs/reports/unified-9.0.18/raw/node24-tests-final.result.json +13 -0
  77. package/docs/reports/unified-9.0.18/raw/node24-typecheck-final.log +5 -0
  78. package/docs/reports/unified-9.0.18/raw/node24-typecheck-final.result.json +14 -0
  79. package/docs/reports/unified-9.0.18/raw/node24-version.log +1 -0
  80. package/docs/reports/unified-9.0.18/raw/sbom-runtime.log +7 -0
  81. package/docs/reports/unified-9.0.18/raw/sbom-runtime.result.json +14 -0
  82. package/docs/reports/unified-9.0.18/raw/sbom-vendor-check.log +1 -0
  83. package/docs/reports/unified-9.0.18/raw/sbom-vendor-check.result.json +14 -0
  84. package/docs/reports/unified-9.0.18/raw/ui-docs-check.log +6 -0
  85. package/docs/reports/unified-9.0.18/raw/ui-docs-check.result.json +14 -0
  86. package/docs/reports/unified-9.0.18/raw/ui-runtime-final.log +7 -0
  87. package/docs/reports/unified-9.0.18/raw/ui-runtime-final.result.json +14 -0
  88. package/docs/reports/unified-9.0.18/raw/ui-runtime-sync.log +6 -0
  89. package/docs/reports/unified-9.0.18/raw/ui-runtime-sync.result.json +14 -0
  90. package/docs/reports/unified-9.0.18/raw/ui-sbom-check.log +6 -0
  91. package/docs/reports/unified-9.0.18/raw/ui-sbom-check.result.json +14 -0
  92. package/docs/reports/unified-9.0.18/raw/ui-sbom-final.log +14 -0
  93. package/docs/reports/unified-9.0.18/raw/ui-sbom-final.result.json +14 -0
  94. package/docs/reports/unified-9.0.18/raw/ui-secret-final.log +6 -0
  95. package/docs/reports/unified-9.0.18/raw/ui-secret-final.result.json +14 -0
  96. package/docs/reports/unified-9.0.18/raw/ui-security-final.log +8 -0
  97. package/docs/reports/unified-9.0.18/raw/ui-security-final.result.json +14 -0
  98. package/docs/reports/unified-9.0.19/ALIAS_MESSWERTFRISCHE.md +31 -0
  99. package/docs/reports/unified-9.0.19/COMMISSIONING_PLAN_REVIEW.md +56 -0
  100. package/docs/reports/unified-9.0.19/EMS_ABSCHLUSSREVIEW.md +43 -0
  101. package/docs/reports/unified-9.0.19/EMS_KATEGORIEN_ABDECKUNG.md +66 -0
  102. package/docs/reports/unified-9.0.19/EMS_VERGLEICH_UND_KOPPLUNG.md +25 -0
  103. package/docs/reports/unified-9.0.19/EVCS_STATE_OBJECTS.md +47 -0
  104. package/docs/reports/unified-9.0.19/GERAETE_EMS_EINRICHTUNG.md +100 -0
  105. package/docs/reports/unified-9.0.19/GERAETE_STARTAUSFALL.md +37 -0
  106. package/docs/reports/unified-9.0.19/INSTALLER_LIFECYCLE_REVIEW.md +59 -0
  107. package/docs/reports/unified-9.0.19/LEGACY_REGRESSION_REVIEW.md +42 -0
  108. package/docs/reports/unified-9.0.19/MODBUS_AUTHORIZATION_READS.md +25 -0
  109. package/docs/reports/unified-9.0.19/PRUEFBERICHT.md +56 -0
  110. package/docs/reports/unified-9.0.19/RUNTIME_START_UEBERNAHME.md +33 -0
  111. package/docs/reports/unified-9.0.19/SMA_RECEIVER_LIFECYCLE.md +42 -0
  112. package/docs/reports/unified-9.0.19/STATIC_REVIEW_DE.md +11 -0
  113. package/docs/reports/unified-9.0.19/TARIFF_PRICE_VALUES_REVIEW.md +31 -0
  114. package/docs/reports/unified-9.0.19/TARIF_VIERTELSTUNDEN_RUNTIME.md +17 -0
  115. package/docs/reports/unified-9.0.19/UNABHAENGIGER_REVIEW.md +49 -0
  116. package/docs/reports/unified-9.0.19/raw/INDEX.json +751 -0
  117. package/docs/reports/unified-9.0.19/raw/audit-full.log +345 -0
  118. package/docs/reports/unified-9.0.19/raw/audit-full.result.json +14 -0
  119. package/docs/reports/unified-9.0.19/raw/audit-runtime.log +23 -0
  120. package/docs/reports/unified-9.0.19/raw/audit-runtime.result.json +15 -0
  121. package/docs/reports/unified-9.0.19/raw/backend-final.log +5 -0
  122. package/docs/reports/unified-9.0.19/raw/backend-final.result.json +14 -0
  123. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.log +0 -0
  124. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.result.json +15 -0
  125. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.log +0 -0
  126. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.result.json +15 -0
  127. package/docs/reports/unified-9.0.19/raw/devices-incident-build.log +5 -0
  128. package/docs/reports/unified-9.0.19/raw/devices-incident-host-final.log +70 -0
  129. package/docs/reports/unified-9.0.19/raw/devices-incident-lease-918-before.log +26 -0
  130. package/docs/reports/unified-9.0.19/raw/devices-incident-lease-after.log +9 -0
  131. package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-after.log +11 -0
  132. package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-before.log +28 -0
  133. package/docs/reports/unified-9.0.19/raw/devices-incident-web-pipeline.log +22 -0
  134. package/docs/reports/unified-9.0.19/raw/frontend-build.log +152 -0
  135. package/docs/reports/unified-9.0.19/raw/frontend-build.result.json +14 -0
  136. package/docs/reports/unified-9.0.19/raw/installer-build.log +26 -0
  137. package/docs/reports/unified-9.0.19/raw/installer-build.result.json +14 -0
  138. package/docs/reports/unified-9.0.19/raw/keygen-source.json +6 -0
  139. package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.log +6 -0
  140. package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.result.json +14 -0
  141. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.log +6 -0
  142. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.result.json +14 -0
  143. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.log +6 -0
  144. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.result.json +14 -0
  145. package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.log +539 -0
  146. package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.result.json +14 -0
  147. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.log +6 -0
  148. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.result.json +14 -0
  149. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.log +6 -0
  150. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.result.json +14 -0
  151. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.log +6 -0
  152. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.result.json +14 -0
  153. package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.log +6 -0
  154. package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.result.json +14 -0
  155. package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.log +2 -0
  156. package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.result.json +14 -0
  157. package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.log +6 -0
  158. package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.result.json +14 -0
  159. package/docs/reports/unified-9.0.19/raw/legacy-history-http.log +39 -0
  160. package/docs/reports/unified-9.0.19/raw/legacy-history-http.result.json +15 -0
  161. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.log +30 -0
  162. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.result.json +14 -0
  163. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.log +2 -0
  164. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.result.json +14 -0
  165. package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.log +203 -0
  166. package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.result.json +14 -0
  167. package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.log +6 -0
  168. package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.result.json +14 -0
  169. package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.log +6 -0
  170. package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.result.json +14 -0
  171. package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.log +6 -0
  172. package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.result.json +14 -0
  173. package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.log +18 -0
  174. package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.result.json +14 -0
  175. package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.log +6 -0
  176. package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.result.json +14 -0
  177. package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.log +16 -0
  178. package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.result.json +14 -0
  179. package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.log +6 -0
  180. package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.result.json +14 -0
  181. package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.log +2 -0
  182. package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.result.json +14 -0
  183. package/docs/reports/unified-9.0.19/raw/legacy-test-loader.cjs +47 -0
  184. package/docs/reports/unified-9.0.19/raw/lint-final.log +16 -0
  185. package/docs/reports/unified-9.0.19/raw/lint-final.result.json +14 -0
  186. package/docs/reports/unified-9.0.19/raw/modules-build.log +5 -0
  187. package/docs/reports/unified-9.0.19/raw/modules-build.result.json +14 -0
  188. package/docs/reports/unified-9.0.19/raw/node22-tests-final.log +10719 -0
  189. package/docs/reports/unified-9.0.19/raw/node22-tests-final.result.json +13 -0
  190. package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.log +7 -0
  191. package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.result.json +14 -0
  192. package/docs/reports/unified-9.0.19/raw/node22-version.log +1 -0
  193. package/docs/reports/unified-9.0.19/raw/node24-tests-final.log +1805 -0
  194. package/docs/reports/unified-9.0.19/raw/node24-tests-final.result.json +13 -0
  195. package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.log +5 -0
  196. package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.result.json +14 -0
  197. package/docs/reports/unified-9.0.19/raw/node24-version.log +1 -0
  198. package/docs/reports/unified-9.0.19/raw/sbom-runtime.log +7 -0
  199. package/docs/reports/unified-9.0.19/raw/sbom-runtime.result.json +14 -0
  200. package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.log +1 -0
  201. package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.result.json +14 -0
  202. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.log +11 -0
  203. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.result.json +14 -0
  204. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.log +68 -0
  205. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.result.json +14 -0
  206. package/docs/reports/unified-9.0.19/raw/ui-docs-check.log +6 -0
  207. package/docs/reports/unified-9.0.19/raw/ui-docs-check.result.json +14 -0
  208. package/docs/reports/unified-9.0.19/raw/ui-runtime-final.log +7 -0
  209. package/docs/reports/unified-9.0.19/raw/ui-runtime-final.result.json +14 -0
  210. package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.log +6 -0
  211. package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.result.json +14 -0
  212. package/docs/reports/unified-9.0.19/raw/ui-sbom-check.log +6 -0
  213. package/docs/reports/unified-9.0.19/raw/ui-sbom-check.result.json +14 -0
  214. package/docs/reports/unified-9.0.19/raw/ui-sbom-final.log +6 -0
  215. package/docs/reports/unified-9.0.19/raw/ui-sbom-final.result.json +14 -0
  216. package/docs/reports/unified-9.0.19/raw/ui-secret-final.log +6 -0
  217. package/docs/reports/unified-9.0.19/raw/ui-secret-final.result.json +14 -0
  218. package/docs/reports/unified-9.0.19/raw/ui-security-final.log +8 -0
  219. package/docs/reports/unified-9.0.19/raw/ui-security-final.result.json +14 -0
  220. package/io-package.json +12 -12
  221. package/modules/devices/admin/alias-contract-v1.json +189 -0
  222. package/modules/devices/admin/ems-assignment.d.ts +16 -0
  223. package/modules/devices/admin/ems-assignment.js +356 -0
  224. package/modules/devices/admin/host-bridge.js +76 -4
  225. package/modules/devices/admin/index.html +40 -1
  226. package/modules/devices/admin/index_m.js +158 -2
  227. package/modules/devices/admin/style.css +32 -4
  228. package/modules/devices/checks/emsAssignment.check.js +132 -0
  229. package/modules/devices/contracts.d.ts +1 -1
  230. package/modules/devices/eslint.hosted.config.mjs +1 -1
  231. package/modules/devices/index.js +64 -16
  232. package/modules/devices/lib/alias-contract-v1.json +189 -0
  233. package/modules/devices/lib/aliasContract.js +7 -1
  234. package/modules/devices/lib/device-alias-semantics-v1.json +1605 -0
  235. package/modules/devices/lib/deviceAliasFreshness.js +65 -0
  236. package/modules/devices/lib/deviceAliasSemantics.js +109 -0
  237. package/modules/devices/lib/deviceRuntime.js +204 -127
  238. package/modules/devices/lib/drivers/modbus.js +18 -3
  239. package/modules/devices/lib/drivers/speedwire.js +42 -22
  240. package/modules/devices/test/aliasContractV1.test.js +1 -1
  241. package/modules/devices/test/deviceAliasFreshness.test.js +149 -0
  242. package/modules/devices/test/deviceAliasSemantics.test.js +163 -0
  243. package/modules/devices/test/emsAssignmentUi.test.js +298 -0
  244. package/modules/devices/test/modbusAuthorizationReads.test.js +112 -0
  245. package/modules/devices/test/runtimeLiveness.test.js +1 -1
  246. package/modules/devices/test/speedwireLifecycle.test.js +118 -0
  247. package/modules/devices/tsconfig.alias-semantics.json +17 -0
  248. package/modules/devices/tsconfig.ems-ui.json +9 -0
  249. package/modules/devices/tsconfig.hosted.json +1 -1
  250. package/package.json +11 -7
  251. package/release-manifests/unified/build-environment.cdx.json +1483 -7370
  252. package/release-manifests/unified/files.json +392 -121
  253. package/release-manifests/unified/frontend.cdx.json +2688 -5952
  254. package/release-manifests/unified/installer.cdx.json +2053 -821
  255. package/release-manifests/unified/obsolete-admin-assets.json +172 -6
  256. package/release-manifests/unified/runtime.cdx.json +40 -3283
  257. package/release-manifests/unified/validation.json +15 -15
  258. package/tools/eos-release-check.cjs +1 -1
  259. package/tools/eos-release-manifest.cjs +5 -5
  260. package/ui/docs/security/eslint-reviewed-findings.json +32 -18
  261. package/ui/ems/datapoints.js +22 -1
  262. package/ui/ems/engine.js +54 -7
  263. package/ui/ems/module-manager.js +44 -21
  264. package/ui/ems/modules/core-limits.js +5 -3
  265. package/ui/ems/modules/energy-wallet.js +31 -32
  266. package/ui/ems/modules/storage-control.js +5 -4
  267. package/ui/ems/modules/tarif-vis.js +36 -24
  268. package/ui/ems/modules/tariff-provider.js +259 -59
  269. package/ui/ems/services/tariff-provider-registry.js +11 -8
  270. package/ui/io-package.json +5 -1
  271. package/ui/lib/customer-tariff.js +245 -0
  272. package/ui/lib/installer-lifecycle.js +220 -0
  273. package/ui/lib/storage-farm-overview.js +115 -0
  274. package/ui/lib/tariff-price.js +115 -0
  275. package/ui/main.js +400 -163
  276. package/ui/package.json +14 -4
  277. package/ui/www/app.js +47 -134
  278. package/ui/www/customer-tariff.css +21 -0
  279. package/ui/www/customer-tariff.js +333 -0
  280. package/ui/www/ems-apps.html +2 -0
  281. package/ui/www/ems-apps.js +29 -7
  282. package/ui/www/index.html +2 -0
  283. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  284. package/ui/www/manifest.webmanifest +2 -2
  285. package/ui/www/power-measurements.js +62 -0
  286. package/ui/www/settings.html +47 -0
  287. package/ui/www/storagefarm-summary.css +17 -0
  288. package/ui/www/storagefarm-summary.js +136 -0
  289. package/ui/www/storagefarm.html +16 -1
  290. package/ui/www/storagefarm.js +10 -22
  291. package/ui/www/tariff-display.js +161 -0
package/ui/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexowatt-eos-ui-internal",
3
- "version": "9.0.17",
3
+ "version": "9.0.19",
4
4
  "description": "Internal UI and EMS module hosted by iobroker.eos-admin; not an ioBroker adapter entry point.",
5
5
  "author": "NexoWatt",
6
6
  "license": "UNLICENSED",
@@ -1094,8 +1094,6 @@
1094
1094
  "docs/reports/smarthome-import-2026-11-19/runtime-evidence.json",
1095
1095
  "docs/reports/smarthome-import-2026-11-19/helper-eslint.json",
1096
1096
  "docs/reports/auth-profiles-2026-11-19/ui-contract-evidence.json",
1097
- "admin/react/assets/nexowatt-192-43ZwQ44y.png",
1098
- "admin/react/index.html",
1099
1097
  "docs/reports/smarthome-auth-2026-11-19/BESTANDSKOMPATIBILITAET_DE.md",
1100
1098
  "integrations/eos-admin-dev9/README.txt",
1101
1099
  "integrations/eos-admin-dev9/apply-ui-login.cjs",
@@ -1119,8 +1117,20 @@
1119
1117
  "tsconfig.ui-pwa.json",
1120
1118
  "scripts/verify-ui-pwa.cjs",
1121
1119
  "docs/security/UI_PWA_BOOTSTRAP_DE.md",
1120
+ "admin/react/assets/index-Bq5IupDw.js",
1122
1121
  "admin/react/assets/index-CuquHlsY.css",
1123
- "admin/react/assets/index-CVXL9Oj2.js"
1122
+ "admin/react/assets/nexowatt-192-43ZwQ44y.png",
1123
+ "admin/react/index.html",
1124
+ "lib/installer-lifecycle.js",
1125
+ "lib/customer-tariff.js",
1126
+ "www/customer-tariff.js",
1127
+ "www/customer-tariff.css",
1128
+ "www/power-measurements.js",
1129
+ "lib/storage-farm-overview.js",
1130
+ "www/storagefarm-summary.js",
1131
+ "www/storagefarm-summary.css",
1132
+ "www/tariff-display.js",
1133
+ "lib/tariff-price.js"
1124
1134
  ],
1125
1135
  "devDependencies": {
1126
1136
  "@iobroker/adapter-dev": "^1.5.0",
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:1f5b105bd613d8e263458350ebbbf5db4b6420f16ceb0f62c101a0ea2a50fa97
10
+ * Quell-Hash: sha256:2076f8c427c8f0c7fdbfacd67fce79eec650ce4e888130a66cb1c48b52459eb2
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -639,11 +639,7 @@ function formatNum(v, suffix='') {
639
639
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
640
640
  */
641
641
  function formatPricePerKwh(v){
642
- if (v===undefined || v===null || isNaN(v)) return '--';
643
- const n = Number(v);
644
- // assume €/kWh if v < 10, else probably ct/kWh
645
- if (n < 10) return n.toFixed(3) + ' €/kWh';
646
- return (n/100).toFixed(2) + ' €/kWh'; // if provided in ct
642
+ return window.NexoWattTariffDisplay.format(v);
647
643
  }
648
644
 
649
645
  // ------------------------------
@@ -661,99 +657,9 @@ function formatPricePerKwh(v){
661
657
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
662
658
  */
663
659
  function nwParsePriceCurve(raw) {
664
- if (raw === null || raw === undefined) return [];
665
-
666
- let data = raw;
667
- if (typeof raw === 'string') {
668
- const s = raw.trim();
669
- if (!s) return [];
670
- try { data = JSON.parse(s); } catch (_e) { return []; }
671
- }
672
-
673
- // Some adapters wrap the array
674
- if (data && typeof data === 'object' && !Array.isArray(data)) {
675
- const arr = data.prices || data.data || data.items || data.values || null;
676
- if (Array.isArray(arr)) data = arr;
677
- else return [];
678
- }
679
-
680
- if (!Array.isArray(data)) return [];
681
- /**
682
- * Code-Teil: normalizePriceEurPerKwh
683
- * Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
684
- * Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
685
- * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
686
- */
687
- function normalizePriceEurPerKwh(v){
688
- if (v === null || v === undefined) return null;
689
- let n = Number(v);
690
- if (!Number.isFinite(n)) return null;
691
- // auto convert ct/kWh -> €/kWh (same heuristic as backend: values >=10 are assumed to be ct)
692
- if (Math.abs(n) >= 10) n = n / 100;
693
- if (!Number.isFinite(n)) return null;
694
- return n;
695
- }
696
-
697
- const out = [];
698
- for (const it of data) {
699
- if (!it || typeof it !== 'object') continue;
700
-
701
- // price heuristics
702
- let pRaw = null;
703
- if (it.total !== undefined) pRaw = it.total;
704
- else if (it.price !== undefined) pRaw = it.price;
705
- else if (it.value !== undefined) pRaw = it.value;
706
- else if (it.marketprice !== undefined) pRaw = it.marketprice;
707
- else if (it.marketPrice !== undefined) pRaw = it.marketPrice;
708
- else if (it.energyPrice !== undefined) pRaw = it.energyPrice;
709
- if (pRaw === null && it.price && typeof it.price === 'object') {
710
- if (it.price.total !== undefined) pRaw = it.price.total;
711
- else if (it.price.value !== undefined) pRaw = it.price.value;
712
- }
713
- const priceEurKwh = normalizePriceEurPerKwh(pRaw);
714
- if (!Number.isFinite(priceEurKwh)) continue;
715
-
716
- // time heuristics
717
- const startRaw = (it.startsAt !== undefined) ? it.startsAt
718
- : (it.start !== undefined) ? it.start
719
- : (it.startTime !== undefined) ? it.startTime
720
- : (it.from !== undefined) ? it.from
721
- : (it.begin !== undefined) ? it.begin
722
- : (it.timestamp !== undefined) ? it.timestamp
723
- : (it.time !== undefined) ? it.time
724
- : null;
725
-
726
- let startMs = null;
727
- if (typeof startRaw === 'number' && Number.isFinite(startRaw)) {
728
- startMs = (startRaw < 1e12) ? startRaw * 1000 : startRaw;
729
- } else if (typeof startRaw === 'string') {
730
- const t = Date.parse(startRaw);
731
- if (Number.isFinite(t)) startMs = t;
732
- }
733
- if (!startMs) continue;
734
-
735
- const endRaw = (it.endsAt !== undefined) ? it.endsAt
736
- : (it.end !== undefined) ? it.end
737
- : (it.endTime !== undefined) ? it.endTime
738
- : (it.to !== undefined) ? it.to
739
- : (it.until !== undefined) ? it.until
740
- : null;
741
-
742
- let endMs = null;
743
- if (typeof endRaw === 'number' && Number.isFinite(endRaw)) {
744
- endMs = (endRaw < 1e12) ? endRaw * 1000 : endRaw;
745
- } else if (typeof endRaw === 'string') {
746
- const t = Date.parse(endRaw);
747
- if (Number.isFinite(t)) endMs = t;
748
- }
749
- if (!endMs) endMs = startMs + 60 * 60 * 1000;
750
- if (endMs <= startMs) endMs = startMs + 60 * 60 * 1000;
751
-
752
- out.push({ startMs, endMs, priceEurKwh });
753
- }
754
- out.sort((a,b)=> a.startMs - b.startMs);
755
- return out;
660
+ return window.NexoWattTariffDisplay.parseCurve(raw);
756
661
  }
662
+
757
663
  /**
758
664
  * Code-Teil: nwNiceStep
759
665
  * Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
@@ -1059,7 +965,9 @@ function nwDrawTariffForecastChart(canvas, curve, opts){
1059
965
  ctx.textBaseline = 'top';
1060
966
  const xHours = [0, 6, 12, 18];
1061
967
  xHours.forEach(h => {
1062
- const t = dayStartMs + h * 60 * 60 * 1000;
968
+ const localTick = new Date(dayStartMs);
969
+ localTick.setHours(h, 0, 0, 0);
970
+ const t = localTick.getTime();
1063
971
  const x = xOf(t);
1064
972
  const lab = String(h).padStart(2,'0') + ':00';
1065
973
  ctx.fillText(lab, x, H - m.B + 6);
@@ -1186,10 +1094,7 @@ function initTariffForecastTooltip(){
1186
1094
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
1187
1095
  */
1188
1096
  function getTodayRange(){
1189
- const d0 = new Date();
1190
- d0.setHours(0,0,0,0);
1191
- const d1 = new Date(d0.getTime() + 24*60*60*1000);
1192
- return { startMs: d0.getTime(), endMs: d1.getTime() };
1097
+ return window.NexoWattTariffDisplay.dayRange(Date.now());
1193
1098
  }
1194
1099
  /**
1195
1100
  * Code-Teil: update
@@ -1220,21 +1125,15 @@ function initTariffForecastTooltip(){
1220
1125
  const ts = tsOf('priceTodayJson') || tsOf('tarif.preisAktuellEurProKwh') || tsOf('priceCurrent');
1221
1126
  const tsTxt = ts ? ('aktualisiert ' + _fmtTimeHHmm(ts)) : '';
1222
1127
  // Current price
1223
- const pNow = v('priceCurrent') ?? v('tarif.preisAktuellEurProKwh');
1128
+ const pNow = window.NexoWattTariffDisplay.display(window.latestState, window.__nwCfg?.tariffDisplay, Date.now(), window.__nwTariffLiveOnline !== false).current;
1224
1129
  const pNowTxt = (pNow !== null && pNow !== undefined && Number.isFinite(Number(pNow))) ? nwFormatCt(Number(pNow)) : '';
1225
- const meta = [pNowTxt ? ('Aktuell ' + pNowTxt) : '', tsTxt].filter(Boolean).join(' • ');
1130
+ const meta = [window.NexoWattTariffDisplay.resolution(curveToday), pNowTxt ? ('Aktuell ' + pNowTxt) : '', tsTxt].filter(Boolean).join(' • ');
1226
1131
  if (metaEl) metaEl.textContent = meta || '—';
1227
1132
 
1228
1133
  // min/avg/max
1229
1134
  const ps = curveToday.map(x => x.priceEurKwh).filter(n => Number.isFinite(Number(n)));
1230
- // Downsample very fine-grained curves (e.g. 15-min) to keep the chart visually clean.
1231
- // Many providers deliver 15-minute slots; aggregating to 60 minutes makes the forecast easier to read.
1232
- let curvePlot = curveToday;
1233
- const intMs = curveToday.map(x => (Number(x.endMs) - Number(x.startMs))).filter(n => Number.isFinite(n) && n > 0);
1234
- const medMs = nwMedian(intMs);
1235
- if (Number.isFinite(medMs) && medMs < 30 * 60 * 1000) {
1236
- curvePlot = nwAggregateCurve(curveToday, startMs, endMs, 60 * 60 * 1000);
1237
- }
1135
+ // Originalintervalle bleiben erhalten: echte Viertelstunden werden nicht zu Stunden gemittelt.
1136
+ const curvePlot = curveToday;
1238
1137
 
1239
1138
  if (ps.length > 0) {
1240
1139
  const min = Math.min(...ps);
@@ -1961,6 +1860,9 @@ function nwLatestStateTimestamp(keys) {
1961
1860
  */
1962
1861
  function nwSetLiveOnline(isOnline) {
1963
1862
  const online = !!isOnline;
1863
+ const tariffConnectionChanged = window.__nwTariffLiveOnline !== online;
1864
+ window.__nwTariffLiveOnline = online;
1865
+ if (tariffConnectionChanged) updateEmsControlUi();
1964
1866
  setText('sideConnection', online ? 'Online' : 'Offline');
1965
1867
  setText('sideStatusText', online ? 'Alle Systeme normal' : 'Verbindung wird aufgebaut');
1966
1868
  const dot = document.getElementById('sideLiveDot');
@@ -1972,6 +1874,18 @@ function nwSetLiveOnline(isOnline) {
1972
1874
  * Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
1973
1875
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
1974
1876
  */
1877
+ function getEvcsPowerW(readValue) {
1878
+ const d = typeof readValue === 'function' ? readValue : (key => {
1879
+ const snapshot = window.latestState || state || {};
1880
+ return typeof snapshot === 'object' && Object.hasOwn(snapshot, key) ? Reflect.get(snapshot, key)?.value : undefined;
1881
+ });
1882
+ const mapped = window.__nwCfg?.datapoints?.consumptionEvcs;
1883
+ return window.NexoWattPowerMeasurements?.resolveEvcsPower({
1884
+ overrideConfigured: typeof mapped === 'string' && mapped.trim().length > 0,
1885
+ override: d('consumptionEvcs'), aggregate: d('evcs.totalPowerW'), legacy: d('evcsPower'),
1886
+ }) ?? null;
1887
+ }
1888
+
1975
1889
  function updateDashboardShellUi(data) {
1976
1890
  const snap = data || {};
1977
1891
  const d = typeof snap.d === 'function' ? snap.d : ((k) => (window.latestState || state || {})[k]?.value);
@@ -1987,7 +1901,7 @@ function updateDashboardShellUi(data) {
1987
1901
  const discharge = Math.max(0, Number(snap.discharge ?? 0) || 0);
1988
1902
  const batterySigned = discharge - charge;
1989
1903
  const evcsAvailable = nwEvcsFeatureFromConfig();
1990
- const evcsPower = evcsAvailable ? (Number(snap.evcsPower ?? d('consumptionEvcs') ?? d('evcsPower') ?? 0) || 0) : 0;
1904
+ const evcsPower = evcsAvailable ? getEvcsPowerW(d) : null;
1991
1905
  try { nwApplyCustomerFeatureVisibility(window.__nwCfg || {}, window.latestState || state || {}); } catch (_e) {}
1992
1906
 
1993
1907
  const soc = (snap.socN !== undefined && snap.socN !== null) ? Number(snap.socN) : coerceNumber(d('storageSoc'));
@@ -2011,7 +1925,7 @@ function updateDashboardShellUi(data) {
2011
1925
  setText('sideGridBuyPower', formatFlowPower(Math.max(0, buy)));
2012
1926
  setText('sideGridSellPower', formatFlowPower(Math.max(0, sell)));
2013
1927
  setText('sideBatteryPower', (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
2014
- if (evcsAvailable) setText('sideEvcsPower', formatFlowPower(Math.abs(evcsPower)));
1928
+ if (evcsAvailable) setText('sideEvcsPower', evcsPower === null ? '--' : formatFlowPower(Math.abs(evcsPower)));
2015
1929
 
2016
1930
  const ts = nwLatestStateTimestamp([
2017
1931
  'pvPower', 'productionTotal', 'consumptionTotal', 'gridPower', 'gridBuyPower',
@@ -3455,7 +3369,8 @@ function render() {
3455
3369
 
3456
3370
 
3457
3371
  const evcsAvailableNow = nwEvcsFeatureFromConfig();
3458
- setText('consumptionEvcs', evcsAvailableNow ? formatPower(d('consumptionEvcs') ?? 0) : '');
3372
+ const evcsPowerNow = getEvcsPowerW(d);
3373
+ setText('consumptionEvcs', evcsAvailableNow ? (evcsPowerNow === null ? '--' : formatPower(evcsPowerNow)) : '');
3459
3374
  setText('consumptionEnergyKwh', formatEnergyKwh(d('consumptionEnergyKwh')));
3460
3375
  setText('consumptionBuilding', formatPower(d('consumptionTotal') ?? 0));
3461
3376
 
@@ -3588,7 +3503,7 @@ function render() {
3588
3503
  socN,
3589
3504
  autarkyN,
3590
3505
  selfcN,
3591
- evcsPower: nwEvcsFeatureFromConfig() ? (d('consumptionEvcs') ?? 0) : 0,
3506
+ evcsPower: nwEvcsFeatureFromConfig() ? getEvcsPowerW(d) : null,
3592
3507
  co2Text: co2TextDash
3593
3508
  });
3594
3509
  } catch (_e) {}
@@ -6469,8 +6384,9 @@ function updateEmsControlUi() {
6469
6384
  const card = document.getElementById('tariffCard');
6470
6385
  if (card) card.classList.toggle('hidden', !showCard);
6471
6386
 
6472
- const priceNow = v('priceCurrent');
6473
- const priceAvg = v('priceAverage');
6387
+ const tariffDisplay = window.NexoWattTariffDisplay.display(st, window.__nwCfg?.tariffDisplay, Date.now(), window.__nwTariffLiveOnline !== false);
6388
+ const priceNow = tariffDisplay.current;
6389
+ const priceAvg = tariffDisplay.average;
6474
6390
 
6475
6391
  /**
6476
6392
  * Code-Teil: Arrow-Funktion `setText`
@@ -6486,14 +6402,10 @@ function updateEmsControlUi() {
6486
6402
  */
6487
6403
  const setText = (id, txt) => { const el = document.getElementById(id); if (el) el.textContent = txt; };
6488
6404
 
6489
- // Price display
6490
- if (!tariffOn) {
6491
- setText('priceCurrent', 'Aus');
6492
- setText('priceAverage', '--');
6493
- } else {
6494
- setText('priceCurrent', formatPricePerKwh(priceNow));
6495
- setText('priceAverage', formatPricePerKwh(priceAvg));
6496
- }
6405
+ // Der Preisabruf ist unabhängig von der bewussten Freigabe der Tarifoptimierung.
6406
+ setText('priceCurrent', formatPricePerKwh(priceNow));
6407
+ setText('priceAverage', formatPricePerKwh(priceAvg));
6408
+ if (card) card.title = tariffDisplay.status;
6497
6409
 
6498
6410
  // Peak short status (Netzschutz – nur Installateur konfigurierbar)
6499
6411
  const peakStatus = String(v('peakShaving.control.status') || '').trim();
@@ -6577,8 +6489,8 @@ function updateEmsControlUi() {
6577
6489
  }
6578
6490
  }
6579
6491
 
6580
- setText('emsPriceCurrent', tariffOn ? formatPricePerKwh(priceNow) : '--');
6581
- setText('emsPriceAvg', tariffOn ? formatPricePerKwh(priceAvg) : '--');
6492
+ setText('emsPriceCurrent', formatPricePerKwh(priceNow));
6493
+ setText('emsPriceAvg', formatPricePerKwh(priceAvg));
6582
6494
 
6583
6495
  // Priority buttons
6584
6496
  const prioWrap = document.getElementById('emsTariffPriorityButtons');
@@ -8688,7 +8600,8 @@ function updateEnergyWeb() {
8688
8600
  let pv = getCanonicalPvPowerW(d);
8689
8601
  let { buy, sell } = getGridImportExport(d);
8690
8602
  let load = +(d('consumptionTotal') ?? 0);
8691
- let c2 = +(d('evcs.totalPowerW') ?? d('consumptionEvcs') ?? 0); // Wallbox (sum)
8603
+ const evcsPowerW = getEvcsPowerW(d);
8604
+ let c2 = evcsPowerW ?? 0; // Unknown is used as zero only for drawing geometry, never as a displayed measurement.
8692
8605
 
8693
8606
  // Batterie: zentral normalisieren wie den NVP.
8694
8607
  // Signed batteryPower-Konvention: -W = Laden, +W = Entladen;
@@ -8821,7 +8734,7 @@ function updateEnergyWeb() {
8821
8734
  // grid text: +Bezug, -Einspeisung
8822
8735
  T('gridVal', gridShowVal ? (gridSellMode ? ('-'+formatFlowPower(gridShowVal)) : formatFlowPower(gridShowVal)) : formatFlowPower(0));
8823
8736
  // EV & Batterie Texte
8824
- T('c2Val', formatFlowPower(evShowVal));
8737
+ T('c2Val', evcsPowerW === null ? '--' : formatFlowPower(evShowVal));
8825
8738
  T('restVal', batShowVal ? (batRev ? ('-'+formatFlowPower(batShowVal)) : formatFlowPower(batShowVal)) : formatFlowPower(0));
8826
8739
  T('centerPower', formatFlowPower(Math.max(0, loadDisplay)));
8827
8740
  if (soc===undefined || isNaN(Number(soc))) { T('batterySocIn','-- %'); } else { T('batterySocIn', Number(soc).toFixed(0)+' %'); }
@@ -8846,7 +8759,7 @@ function updateEnergyWeb() {
8846
8759
  if (evcsLine) evcsLine.style.display = evAvail ? '' : 'none';
8847
8760
  show('linePV', pvValNum>0);
8848
8761
  show('lineGrid', gridShowVal>0);
8849
- show('lineC2', evAvail && evShowVal>0);
8762
+ show('lineC2', evAvail && evcsPowerW !== null && evShowVal>0);
8850
8763
  show('lineRest', batShowVal>0);
8851
8764
 
8852
8765
  // Richtung
@@ -10021,7 +9934,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
10021
9934
 
10022
9935
  // Update values from state inside global render()
10023
9936
  window.__evcsApply = function(d, s){
10024
- const p = d('evcs.totalPowerW') ?? d('consumptionEvcs') ?? 0;
9937
+ const p = getEvcsPowerW(d);
10025
9938
  const st = d('evcs.1.status') ?? d('evcsStatus') ?? '--';
10026
9939
 
10027
9940
  // EMS available?
@@ -10085,7 +9998,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
10085
9998
  'conic-gradient(#6c5ce7 0% ' + deg + ', #2a2f35 ' + deg + ' 100%)';
10086
9999
  }
10087
10000
 
10088
- const pb = qs('evcsPowerBig'); if (pb) pb.textContent = fmtP(p);
10001
+ const pb = qs('evcsPowerBig'); if (pb) pb.textContent = p === null ? '--' : fmtP(p);
10089
10002
  const sm = qs('evcsStatusModal'); if (sm) sm.textContent = st;
10090
10003
 
10091
10004
  // Optional: Fahrzeug-SoC anzeigen, falls vorhanden
@@ -0,0 +1,21 @@
1
+ /* Copyright (c) 2026 NexoWatt. Confidential and proprietary. */
2
+ .nw-customer-tariff { margin: 16px 0 24px; padding: 18px; border: 1px solid #235363; border-radius: 14px; background: #09212c; }
3
+ .nw-customer-tariff > summary { cursor: pointer; font-weight: 700; color: #dff8ef; }
4
+ .nw-customer-tariff > summary span { display: block; font-size: .8rem; color: #a4bdca; margin: 6px 0 0 18px; font-weight: 400; }
5
+ .nw-customer-tariff p, .nw-customer-tariff small { color: #acc5d2; line-height: 1.55; }
6
+ .nw-customer-tariff fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
7
+ .nw-customer-tariff legend { font-size: 1rem; font-weight: 700; padding: 10px 0; }
8
+ .nw-customer-tariff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
9
+ .nw-customer-tariff label { display: flex; flex-direction: column; min-width: 0; gap: 8px; font-size: .85rem; color: #d5e5ed; }
10
+ .nw-customer-tariff input:not([type="checkbox"]), .nw-customer-tariff select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid #426879; border-radius: 8px; background: #05131d; color: #e4f5f1; min-height: 44px; font: inherit; }
11
+ .nw-customer-tariff .nw-customer-tariff-check { flex-direction: row; align-items: center; gap: 10px; }
12
+ .nw-customer-tariff input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #00d69a; }
13
+ .nw-customer-tariff :is(input, select, button, summary):focus-visible { outline: 2px solid #47e7bc; outline-offset: 3px; }
14
+ .nw-customer-tariff [hidden] { display: none !important; }
15
+ .nw-customer-tariff details { margin: 16px 0; padding: 14px; border: 1px solid #254755; border-radius: 10px; }
16
+ .nw-customer-tariff details summary { cursor: pointer; font-weight: 650; }
17
+ .nw-customer-tariff-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
18
+ .nw-customer-tariff-actions button { white-space: normal; min-height: 44px; }
19
+ #customerTariffStatus[data-error="true"] { color: #ffb2a7; }
20
+ #customerTariffStatus[data-error="false"] { color: #86e5c1; }
21
+ .nw-customer-tariff-hint { border-left: 2px solid #31b99b; padding-left: 12px; }