iobroker.eos-admin 9.0.18 → 9.0.20

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 (615) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +8 -9
  2. package/README.md +7 -3
  3. package/START_HIER_9.0.19.md +52 -0
  4. package/START_HIER_9.0.20.md +65 -0
  5. package/adminWww/.vite/manifest.json +114 -114
  6. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13762 -13761
  7. package/adminWww/assets/{AdapterUpdateDialog-ByJk9Cxj.js → AdapterUpdateDialog-CRD3XVom.js} +1 -1
  8. package/adminWww/assets/{Adapters-V2JtEPZX.js → Adapters-Cuf0X0CU.js} +1 -1
  9. package/adminWww/assets/{ConfigManager-BKcdyJnN.js → ConfigManager-B8ycQt1C.js} +1 -1
  10. package/adminWww/assets/{Enums-ChbfAWzp.js → Enums-CctVCgZX.js} +1 -1
  11. package/adminWww/assets/{Fields-DzaVXEvg.js → Fields-onm4DfoO.js} +1 -1
  12. package/adminWww/assets/{Files-CRpIXj4X.js → Files-OLP3Rwc7.js} +1 -1
  13. package/adminWww/assets/{Hosts-rOgfd2wo.js → Hosts-C31oqMcW.js} +1 -1
  14. package/adminWww/assets/{Instances-BxLhJ6Pb.js → Instances-DFdvJ9pa.js} +1 -1
  15. package/adminWww/assets/{Intro-BOql527d.js → Intro-DvsFJxU0.js} +1 -1
  16. package/adminWww/assets/{Logs-WUUDY7a4.js → Logs-Zqg2Bqv6.js} +1 -1
  17. package/adminWww/assets/{Objects-DYaZkCK7.js → Objects-CpWZp6yp.js} +1 -1
  18. package/adminWww/assets/{Overview-C6hiiPbm.js → Overview-BsKUo298.js} +1 -1
  19. package/adminWww/assets/{State-AH43l7fG.js → State-D_xwlhhb.js} +1 -1
  20. package/adminWww/assets/{UsedResources-jhsRMH4X.js → UsedResources-C79N6yZx.js} +1 -1
  21. package/adminWww/assets/{Users-D9wyLyJ1.js → Users-WgC0O8P0.js} +1 -1
  22. package/adminWww/assets/{bootstrap-gVLo1K_2.js → bootstrap-BcfBoIoa.js} +3 -3
  23. package/adminWww/assets/{hostInit-Dt_M-NAC.js → hostInit-B7bBV7cH.js} +1 -1
  24. package/adminWww/assets/icons/nexowatt-180.png +0 -0
  25. package/adminWww/assets/{icons-material-DuVW_EUA.js → icons-material-D1JYmRTj.js} +1 -1
  26. package/adminWww/assets/{index-B1cnPkSO.js → index-DbiuoDjo.js} +2 -2
  27. package/adminWww/assets/{installSVGRenderer-GvgHjubR.js → installSVGRenderer-BAY-Pzp-.js} +1 -1
  28. package/adminWww/assets/{mf-entry-bootstrap-0-6b32b635.js → mf-entry-bootstrap-0-33384c20.js} +2 -2
  29. package/adminWww/index.html +24 -24
  30. package/adminWww/mf-manifest.json +1 -1
  31. package/adminWww/mf-stats.json +1 -1
  32. package/adminWww/{remoteEntry-eos-9.0.18.js → remoteEntry-eos-9.0.20.js} +1 -1
  33. package/adminWww/remoteEntry.js +1 -1
  34. package/build/lib/eosCookieNamespace.js +12 -2
  35. package/build/lib/eosCookieNamespace.js.map +1 -1
  36. package/build/lib/eosDeviceEmsPlan.js +449 -28
  37. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  38. package/build/lib/eosDeviceEmsService.js +158 -12
  39. package/build/lib/eosDeviceEmsService.js.map +1 -1
  40. package/build/lib/eosLegacyMigration.js +26 -1
  41. package/build/lib/eosLegacyMigration.js.map +1 -1
  42. package/build/lib/eosModuleHost.js +218 -53
  43. package/build/lib/eosModuleHost.js.map +1 -1
  44. package/build/lib/eosStateSubscriptions.js +59 -2
  45. package/build/lib/eosStateSubscriptions.js.map +1 -1
  46. package/build/lib/web.js +22 -3
  47. package/build/lib/web.js.map +1 -1
  48. package/docs/reports/unified-9.0.19/ALIAS_MESSWERTFRISCHE.md +31 -0
  49. package/docs/reports/unified-9.0.19/COMMISSIONING_PLAN_REVIEW.md +56 -0
  50. package/docs/reports/unified-9.0.19/EMS_ABSCHLUSSREVIEW.md +43 -0
  51. package/docs/reports/unified-9.0.19/EMS_KATEGORIEN_ABDECKUNG.md +66 -0
  52. package/docs/reports/unified-9.0.19/EMS_VERGLEICH_UND_KOPPLUNG.md +25 -0
  53. package/docs/reports/unified-9.0.19/EVCS_STATE_OBJECTS.md +47 -0
  54. package/docs/reports/unified-9.0.19/GERAETE_EMS_EINRICHTUNG.md +100 -0
  55. package/docs/reports/unified-9.0.19/GERAETE_STARTAUSFALL.md +37 -0
  56. package/docs/reports/unified-9.0.19/INSTALLER_LIFECYCLE_REVIEW.md +59 -0
  57. package/docs/reports/unified-9.0.19/LEGACY_REGRESSION_REVIEW.md +42 -0
  58. package/docs/reports/unified-9.0.19/MODBUS_AUTHORIZATION_READS.md +25 -0
  59. package/docs/reports/unified-9.0.19/PRUEFBERICHT.md +56 -0
  60. package/docs/reports/unified-9.0.19/RUNTIME_START_UEBERNAHME.md +33 -0
  61. package/docs/reports/unified-9.0.19/SMA_RECEIVER_LIFECYCLE.md +42 -0
  62. package/docs/reports/unified-9.0.19/STATIC_REVIEW_DE.md +11 -0
  63. package/docs/reports/unified-9.0.19/TARIFF_PRICE_VALUES_REVIEW.md +31 -0
  64. package/docs/reports/unified-9.0.19/TARIF_VIERTELSTUNDEN_RUNTIME.md +17 -0
  65. package/docs/reports/unified-9.0.19/UNABHAENGIGER_REVIEW.md +49 -0
  66. package/docs/reports/unified-9.0.19/raw/INDEX.json +751 -0
  67. package/docs/reports/unified-9.0.19/raw/audit-full.log +345 -0
  68. package/docs/reports/unified-9.0.19/raw/audit-full.result.json +14 -0
  69. package/docs/reports/unified-9.0.19/raw/audit-runtime.log +23 -0
  70. package/docs/reports/unified-9.0.19/raw/audit-runtime.result.json +15 -0
  71. package/docs/reports/unified-9.0.19/raw/backend-final.log +5 -0
  72. package/docs/reports/unified-9.0.19/raw/backend-final.result.json +14 -0
  73. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.log +0 -0
  74. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.result.json +15 -0
  75. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.log +0 -0
  76. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.result.json +15 -0
  77. package/docs/reports/unified-9.0.19/raw/devices-incident-build.log +5 -0
  78. package/docs/reports/unified-9.0.19/raw/devices-incident-host-final.log +70 -0
  79. package/docs/reports/unified-9.0.19/raw/devices-incident-lease-918-before.log +26 -0
  80. package/docs/reports/unified-9.0.19/raw/devices-incident-lease-after.log +9 -0
  81. package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-after.log +11 -0
  82. package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-before.log +28 -0
  83. package/docs/reports/unified-9.0.19/raw/devices-incident-web-pipeline.log +22 -0
  84. package/docs/reports/unified-9.0.19/raw/frontend-build.log +152 -0
  85. package/docs/reports/unified-9.0.19/raw/frontend-build.result.json +14 -0
  86. package/docs/reports/unified-9.0.19/raw/installer-build.log +26 -0
  87. package/docs/reports/unified-9.0.19/raw/installer-build.result.json +14 -0
  88. package/docs/reports/unified-9.0.19/raw/keygen-source.json +6 -0
  89. package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.log +6 -0
  90. package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.result.json +14 -0
  91. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.log +6 -0
  92. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.result.json +14 -0
  93. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.log +6 -0
  94. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.result.json +14 -0
  95. package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.log +539 -0
  96. package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.result.json +14 -0
  97. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.log +6 -0
  98. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.result.json +14 -0
  99. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.log +6 -0
  100. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.result.json +14 -0
  101. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.log +6 -0
  102. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.result.json +14 -0
  103. package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.log +6 -0
  104. package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.result.json +14 -0
  105. package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.log +2 -0
  106. package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.result.json +14 -0
  107. package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.log +6 -0
  108. package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.result.json +14 -0
  109. package/docs/reports/unified-9.0.19/raw/legacy-history-http.log +39 -0
  110. package/docs/reports/unified-9.0.19/raw/legacy-history-http.result.json +15 -0
  111. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.log +30 -0
  112. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.result.json +14 -0
  113. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.log +2 -0
  114. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.result.json +14 -0
  115. package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.log +203 -0
  116. package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.result.json +14 -0
  117. package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.log +6 -0
  118. package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.result.json +14 -0
  119. package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.log +6 -0
  120. package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.result.json +14 -0
  121. package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.log +6 -0
  122. package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.result.json +14 -0
  123. package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.log +18 -0
  124. package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.result.json +14 -0
  125. package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.log +6 -0
  126. package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.result.json +14 -0
  127. package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.log +16 -0
  128. package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.result.json +14 -0
  129. package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.log +6 -0
  130. package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.result.json +14 -0
  131. package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.log +2 -0
  132. package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.result.json +14 -0
  133. package/docs/reports/unified-9.0.19/raw/legacy-test-loader.cjs +47 -0
  134. package/docs/reports/unified-9.0.19/raw/lint-final.log +16 -0
  135. package/docs/reports/unified-9.0.19/raw/lint-final.result.json +14 -0
  136. package/docs/reports/unified-9.0.19/raw/modules-build.log +5 -0
  137. package/docs/reports/unified-9.0.19/raw/modules-build.result.json +14 -0
  138. package/docs/reports/unified-9.0.19/raw/node22-tests-final.log +10719 -0
  139. package/docs/reports/unified-9.0.19/raw/node22-tests-final.result.json +13 -0
  140. package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.log +7 -0
  141. package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.result.json +14 -0
  142. package/docs/reports/unified-9.0.19/raw/node22-version.log +1 -0
  143. package/docs/reports/unified-9.0.19/raw/node24-tests-final.log +1805 -0
  144. package/docs/reports/unified-9.0.19/raw/node24-tests-final.result.json +13 -0
  145. package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.log +5 -0
  146. package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.result.json +14 -0
  147. package/docs/reports/unified-9.0.19/raw/node24-version.log +1 -0
  148. package/docs/reports/unified-9.0.19/raw/sbom-runtime.log +7 -0
  149. package/docs/reports/unified-9.0.19/raw/sbom-runtime.result.json +14 -0
  150. package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.log +1 -0
  151. package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.result.json +14 -0
  152. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.log +11 -0
  153. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.result.json +14 -0
  154. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.log +68 -0
  155. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.result.json +14 -0
  156. package/docs/reports/unified-9.0.19/raw/ui-docs-check.log +6 -0
  157. package/docs/reports/unified-9.0.19/raw/ui-docs-check.result.json +14 -0
  158. package/docs/reports/unified-9.0.19/raw/ui-runtime-final.log +7 -0
  159. package/docs/reports/unified-9.0.19/raw/ui-runtime-final.result.json +14 -0
  160. package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.log +6 -0
  161. package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.result.json +14 -0
  162. package/docs/reports/unified-9.0.19/raw/ui-sbom-check.log +6 -0
  163. package/docs/reports/unified-9.0.19/raw/ui-sbom-check.result.json +14 -0
  164. package/docs/reports/unified-9.0.19/raw/ui-sbom-final.log +6 -0
  165. package/docs/reports/unified-9.0.19/raw/ui-sbom-final.result.json +14 -0
  166. package/docs/reports/unified-9.0.19/raw/ui-secret-final.log +6 -0
  167. package/docs/reports/unified-9.0.19/raw/ui-secret-final.result.json +14 -0
  168. package/docs/reports/unified-9.0.19/raw/ui-security-final.log +8 -0
  169. package/docs/reports/unified-9.0.19/raw/ui-security-final.result.json +14 -0
  170. package/docs/reports/unified-9.0.20/ANFORDERUNGEN_UND_INBETRIEBNAHME.md +159 -0
  171. package/docs/reports/unified-9.0.20/DEVICE_COMMAND_DELIVERY_REVIEW.md +82 -0
  172. package/docs/reports/unified-9.0.20/DEVICE_LIFECYCLE_REVIEW.md +46 -0
  173. package/docs/reports/unified-9.0.20/DEVICE_PLAN_REVIEW.md +33 -0
  174. package/docs/reports/unified-9.0.20/DEVICE_POWER_CAPABILITY_REVIEW.md +25 -0
  175. package/docs/reports/unified-9.0.20/FARM_CONTROLLER_REVIEW.md +27 -0
  176. package/docs/reports/unified-9.0.20/FARM_DIAGNOSE_UI.md +81 -0
  177. package/docs/reports/unified-9.0.20/FARM_DISPATCH_REVIEW.md +47 -0
  178. package/docs/reports/unified-9.0.20/HISTORY_REVIEW.md +68 -0
  179. package/docs/reports/unified-9.0.20/INFLUXDB2_INSTALLER_UI.md +39 -0
  180. package/docs/reports/unified-9.0.20/INFLUX_CREDENTIAL_NETWORK_REVIEW.md +38 -0
  181. package/docs/reports/unified-9.0.20/INFLUX_DIRECT_UNABHAENGIGE_PRUEFUNG.md +64 -0
  182. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_INTEGRATION_REVIEW.md +53 -0
  183. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_UNABHAENGIGE_PRUEFUNG.md +34 -0
  184. package/docs/reports/unified-9.0.20/INFLUX_TRANSPORT_ABSCHLUSSPRUEFUNG.md +55 -0
  185. package/docs/reports/unified-9.0.20/LOGIN_WEBAPP_LOGO.md +29 -0
  186. package/docs/reports/unified-9.0.20/MIGRATION_REVIEW.md +35 -0
  187. package/docs/reports/unified-9.0.20/PRUEFBERICHT.md +54 -0
  188. package/docs/reports/unified-9.0.20/PWA_ANONYMOUS_HTTPS_REVIEW.md +28 -0
  189. package/docs/reports/unified-9.0.20/PWA_ICON_UNABHAENGIGE_PRUEFUNG.md +60 -0
  190. package/docs/reports/unified-9.0.20/SERIAL_LIFECYCLE_REVIEW.md +37 -0
  191. package/docs/reports/unified-9.0.20/SOLAX_READBACK_REVIEW.md +43 -0
  192. package/docs/reports/unified-9.0.20/SOLAX_READBACK_UNABHAENGIGE_PRUEFUNG.md +34 -0
  193. package/docs/reports/unified-9.0.20/STATIC_REVIEW_DE.md +175 -0
  194. package/docs/reports/unified-9.0.20/STORAGE_COMMAND_ACK_REVIEW.md +36 -0
  195. package/docs/reports/unified-9.0.20/TARIFF_REPORT_REVIEW.md +29 -0
  196. package/docs/reports/unified-9.0.20/VISUALISIERUNG.md +64 -0
  197. package/docs/reports/unified-9.0.20/history-setup-navigation-proxy.txt +26 -0
  198. package/docs/reports/unified-9.0.20/history-setup-navigation-ssr.txt +7 -0
  199. package/docs/reports/unified-9.0.20/history-setup-ui-lint.txt +0 -0
  200. package/docs/reports/unified-9.0.20/history-setup-ui-node22.txt +102 -0
  201. package/docs/reports/unified-9.0.20/history-setup-ui-node24.txt +23 -0
  202. package/docs/reports/unified-9.0.20/history-setup-ui-security.txt +0 -0
  203. package/docs/reports/unified-9.0.20/history-setup-ui-typecheck.txt +0 -0
  204. package/docs/reports/unified-9.0.20/login-pwa-branding-hashes.txt +9 -0
  205. package/docs/reports/unified-9.0.20/login-pwa-branding-node22.txt +42 -0
  206. package/docs/reports/unified-9.0.20/login-pwa-branding-node24.txt +13 -0
  207. package/docs/reports/unified-9.0.20/raw/INDEX.json +1913 -0
  208. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node22.log +16 -0
  209. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node24.log +14 -0
  210. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-after.json +1 -0
  211. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-before.json +1 -0
  212. package/docs/reports/unified-9.0.20/raw/additional-audit/device/modbus-stop-backoff.cjs +22 -0
  213. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-control-review.log +29 -0
  214. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.json +18 -0
  215. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.log +325 -0
  216. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-review.log +278 -0
  217. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.json +18 -0
  218. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.log +58 -0
  219. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-review.log +51 -0
  220. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-gaps-before.log +64 -0
  221. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-negative-before.log +46 -0
  222. package/docs/reports/unified-9.0.20/raw/additional-audit/history/chart-gaps-before.log +127 -0
  223. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-after.log +67 -0
  224. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-before.log +61 -0
  225. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-js.log +0 -0
  226. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-ts.log +0 -0
  227. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node22.log +442 -0
  228. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node24.log +78 -0
  229. package/docs/reports/unified-9.0.20/raw/additional-audit/history/fix.py +73 -0
  230. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-eslint-final.json +7 -0
  231. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node22.log +279 -0
  232. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node24.log +52 -0
  233. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node22.log +223 -0
  234. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node24.log +43 -0
  235. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-own-cache.log +17 -0
  236. package/docs/reports/unified-9.0.20/raw/additional-audit/history/negative-pricing-before.log +96 -0
  237. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-after.log +66 -0
  238. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-repro.log +8 -0
  239. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-after.log +17 -0
  240. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-repro.log +8 -0
  241. package/docs/reports/unified-9.0.20/raw/additional-audit/history/repro.cjs +39 -0
  242. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/chromium-probe.log +3 -0
  243. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/patch-live.py +101 -0
  244. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.cjs +26 -0
  245. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.log +36 -0
  246. package/docs/reports/unified-9.0.20/raw/audit-full.log +345 -0
  247. package/docs/reports/unified-9.0.20/raw/audit-full.result.json +14 -0
  248. package/docs/reports/unified-9.0.20/raw/audit-runtime.log +23 -0
  249. package/docs/reports/unified-9.0.20/raw/audit-runtime.result.json +15 -0
  250. package/docs/reports/unified-9.0.20/raw/backend-final.log +5 -0
  251. package/docs/reports/unified-9.0.20/raw/backend-final.result.json +14 -0
  252. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.result.json +20 -0
  253. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.tap +721 -0
  254. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.result.json +20 -0
  255. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.tap +127 -0
  256. package/docs/reports/unified-9.0.20/raw/commissioning-evidence.json +69 -0
  257. package/docs/reports/unified-9.0.20/raw/commissioning-failed-init-drain-919-before.log +14 -0
  258. package/docs/reports/unified-9.0.20/raw/commissioning-final-node22.log +882 -0
  259. package/docs/reports/unified-9.0.20/raw/commissioning-final-node24.log +149 -0
  260. package/docs/reports/unified-9.0.20/raw/commissioning-lint.log +0 -0
  261. package/docs/reports/unified-9.0.20/raw/commissioning-planner-919-before.log +70 -0
  262. package/docs/reports/unified-9.0.20/raw/commissioning-retained-readiness-before.log +34 -0
  263. package/docs/reports/unified-9.0.20/raw/commissioning-runtime-retry-919-before.log +46 -0
  264. package/docs/reports/unified-9.0.20/raw/commissioning-types-node24.log +0 -0
  265. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/DEVICE_FARM_READONLY_REVIEW.md +66 -0
  266. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/run-readback-tests.cjs +13 -0
  267. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/solax-control-chain.test.cjs +58 -0
  268. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node22.log +16 -0
  269. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node24.log +14 -0
  270. package/docs/reports/unified-9.0.20/raw/device-lifecycle-evidence.json +55 -0
  271. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-after.json +1 -0
  272. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-before.json +1 -0
  273. package/docs/reports/unified-9.0.20/raw/device-lifecycle-modbus-stop-backoff.cjs +22 -0
  274. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-control-review.log +29 -0
  275. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.json +18 -0
  276. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.log +325 -0
  277. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-review.log +278 -0
  278. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.json +18 -0
  279. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.log +58 -0
  280. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-review.log +51 -0
  281. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.log +0 -0
  282. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.result.json +15 -0
  283. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.log +0 -0
  284. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.result.json +15 -0
  285. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node22.log +110 -0
  286. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node24.log +24 -0
  287. package/docs/reports/unified-9.0.20/raw/farm-controller/evidence.json +33 -0
  288. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-lint.txt +0 -0
  289. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node22.txt +113 -0
  290. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node24.txt +26 -0
  291. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-security.txt +0 -0
  292. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-typecheck.txt +0 -0
  293. package/docs/reports/unified-9.0.20/raw/farm-dispatch/allocator-baseline.jsonl +6 -0
  294. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-before.log +138 -0
  295. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-delta.patch +77 -0
  296. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-lint.json +7 -0
  297. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.log +64 -0
  298. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.result.json +14 -0
  299. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.log +18 -0
  300. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.result.json +14 -0
  301. package/docs/reports/unified-9.0.20/raw/final-ui-independent-review.json +194 -0
  302. package/docs/reports/unified-9.0.20/raw/frontend-build.log +152 -0
  303. package/docs/reports/unified-9.0.20/raw/frontend-build.result.json +14 -0
  304. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.json +35 -0
  305. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.result.json +17 -0
  306. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.json +31 -0
  307. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.result.json +17 -0
  308. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-before.json +31 -0
  309. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-reproducer.cjs +9 -0
  310. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.result.json +18 -0
  311. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.tap +34 -0
  312. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.result.json +18 -0
  313. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.tap +11 -0
  314. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra.test.cjs +9 -0
  315. package/docs/reports/unified-9.0.20/raw/independent-solax/node22-focused.log +165 -0
  316. package/docs/reports/unified-9.0.20/raw/independent-solax/node24-focused.log +35 -0
  317. package/docs/reports/unified-9.0.20/raw/independent-solax/review-receipt.json +57 -0
  318. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-after.log +1 -0
  319. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-before.log +1 -0
  320. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response.cjs +16 -0
  321. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race-generation-guard.log +1 -0
  322. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race.cjs +13 -0
  323. package/docs/reports/unified-9.0.20/raw/influx-direct/eslint.log +0 -0
  324. package/docs/reports/unified-9.0.20/raw/influx-direct/node22.log +112 -0
  325. package/docs/reports/unified-9.0.20/raw/influx-direct/node24.log +24 -0
  326. package/docs/reports/unified-9.0.20/raw/influx-direct/typecheck.log +0 -0
  327. package/docs/reports/unified-9.0.20/raw/influx-direct-review/hosted-module-history.test.cjs +85 -0
  328. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.json +12 -0
  329. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.log +100 -0
  330. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.json +12 -0
  331. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.log +21 -0
  332. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-after.test.cjs +15 -0
  333. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-loss-before.test.cjs +9 -0
  334. package/docs/reports/unified-9.0.20/raw/influx-direct-review/security-scan.cjs +15 -0
  335. package/docs/reports/unified-9.0.20/raw/influx-direct-review/transport-extra.test.cjs +9 -0
  336. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.log +227 -0
  337. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.result.json +11 -0
  338. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.log +44 -0
  339. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.result.json +11 -0
  340. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.log +112 -0
  341. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.result.json +12 -0
  342. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.log +23 -0
  343. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.result.json +12 -0
  344. package/docs/reports/unified-9.0.20/raw/influx-independent/runtime-after.test.cjs +15 -0
  345. package/docs/reports/unified-9.0.20/raw/influx-independent/transport-extra.test.cjs +9 -0
  346. package/docs/reports/unified-9.0.20/raw/influx-runtime/evidence.json +24 -0
  347. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node22.log +326 -0
  348. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node24.log +59 -0
  349. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node22.log +62 -0
  350. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node24.log +16 -0
  351. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.log +0 -0
  352. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.result.json +17 -0
  353. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.log +112 -0
  354. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.result.json +15 -0
  355. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.log +106 -0
  356. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.result.json +15 -0
  357. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.log +0 -0
  358. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.result.json +15 -0
  359. package/docs/reports/unified-9.0.20/raw/influx-security/source-sha256.json +5 -0
  360. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.log +0 -0
  361. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.result.json +16 -0
  362. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.log +124 -0
  363. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.result.json +14 -0
  364. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.log +26 -0
  365. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.result.json +14 -0
  366. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.log +0 -0
  367. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.result.json +15 -0
  368. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.log +0 -0
  369. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.result.json +15 -0
  370. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-final.json +285 -0
  371. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-intermediate.json +285 -0
  372. package/docs/reports/unified-9.0.20/raw/installer-build.log +26 -0
  373. package/docs/reports/unified-9.0.20/raw/installer-build.result.json +14 -0
  374. package/docs/reports/unified-9.0.20/raw/isolation/INDEX.json +332 -0
  375. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.log +3 -0
  376. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.result.json +13 -0
  377. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.log +6 -0
  378. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.result.json +13 -0
  379. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.log +1 -0
  380. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.result.json +13 -0
  381. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.log +11 -0
  382. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.result.json +13 -0
  383. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.log +3 -0
  384. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.result.json +13 -0
  385. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.log +3 -0
  386. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.result.json +13 -0
  387. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.log +1 -0
  388. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.result.json +13 -0
  389. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.log +11 -0
  390. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.result.json +13 -0
  391. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.log +296 -0
  392. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.result.json +16 -0
  393. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.log +56 -0
  394. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.result.json +16 -0
  395. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.log +54 -0
  396. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.result.json +16 -0
  397. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.log +1 -0
  398. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.result.json +13 -0
  399. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.log +332 -0
  400. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.result.json +16 -0
  401. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.log +62 -0
  402. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.result.json +16 -0
  403. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.log +342 -0
  404. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.result.json +16 -0
  405. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.log +72 -0
  406. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.result.json +16 -0
  407. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.log +482 -0
  408. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.result.json +19 -0
  409. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node24.log +87 -0
  410. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.log +0 -0
  411. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.result.json +16 -0
  412. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.log +330 -0
  413. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.result.json +16 -0
  414. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.log +72 -0
  415. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.result.json +16 -0
  416. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.log +60 -0
  417. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.result.json +16 -0
  418. package/docs/reports/unified-9.0.20/raw/isolation/repro-migration-start-budget.cjs +49 -0
  419. package/docs/reports/unified-9.0.20/raw/isolation/repro-serial-release.cjs +21 -0
  420. package/docs/reports/unified-9.0.20/raw/isolation/repro-sunspec-discovery.cjs +11 -0
  421. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.log +1 -0
  422. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.result.json +13 -0
  423. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.log +32 -0
  424. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.result.json +14 -0
  425. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.log +11 -0
  426. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.result.json +14 -0
  427. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.log +0 -0
  428. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.result.json +28 -0
  429. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.log +2 -0
  430. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.result.json +26 -0
  431. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.log +0 -0
  432. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.result.json +18 -0
  433. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.log +344 -0
  434. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.result.json +17 -0
  435. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.log +62 -0
  436. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.result.json +17 -0
  437. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.log +3 -0
  438. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.result.json +13 -0
  439. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.log +3 -0
  440. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.result.json +15 -0
  441. package/docs/reports/unified-9.0.20/raw/keygen-source.json +6 -0
  442. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-919.log +70 -0
  443. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-920.log +71 -0
  444. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/diff.json +82 -0
  445. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/receipt.json +48 -0
  446. package/docs/reports/unified-9.0.20/raw/lint-final.log +16 -0
  447. package/docs/reports/unified-9.0.20/raw/lint-final.result.json +14 -0
  448. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-cache-boundary-fix.json +112 -0
  449. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-capability-ack.json +103 -0
  450. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-farm-diagnostics.json +102 -0
  451. package/docs/reports/unified-9.0.20/raw/main-individual-review-final.json +103 -0
  452. package/docs/reports/unified-9.0.20/raw/main-individual-review.json +93 -0
  453. package/docs/reports/unified-9.0.20/raw/modules-build.log +5 -0
  454. package/docs/reports/unified-9.0.20/raw/modules-build.result.json +14 -0
  455. package/docs/reports/unified-9.0.20/raw/node22-tests-final.log +12471 -0
  456. package/docs/reports/unified-9.0.20/raw/node22-tests-final.result.json +13 -0
  457. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.log +7 -0
  458. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.result.json +14 -0
  459. package/docs/reports/unified-9.0.20/raw/node22-version.log +1 -0
  460. package/docs/reports/unified-9.0.20/raw/node24-tests-final.log +2093 -0
  461. package/docs/reports/unified-9.0.20/raw/node24-tests-final.result.json +13 -0
  462. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.log +5 -0
  463. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.result.json +14 -0
  464. package/docs/reports/unified-9.0.20/raw/node24-version.log +1 -0
  465. package/docs/reports/unified-9.0.20/raw/power-capability/evidence.json +69 -0
  466. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-existing-regressions-node24.log +94 -0
  467. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-lint.log +0 -0
  468. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node22.log +304 -0
  469. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node24.log +56 -0
  470. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-typecheck.log +0 -0
  471. package/docs/reports/unified-9.0.20/raw/pwa-https/evidence.json +45 -0
  472. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-build.log +21 -0
  473. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-source.log +23 -0
  474. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-build.log +11 -0
  475. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-source.log +11 -0
  476. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-boundaries.test.cjs +45 -0
  477. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-receipt.json +71 -0
  478. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v22.23.4.tap +34 -0
  479. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v24.22.3.tap +11 -0
  480. package/docs/reports/unified-9.0.20/raw/pwa-ui-independent-review-final.json +348 -0
  481. package/docs/reports/unified-9.0.20/raw/repro-failed-init-drain-before.cjs +15 -0
  482. package/docs/reports/unified-9.0.20/raw/repro-profile-replacement-after-unmapped.cjs +15 -0
  483. package/docs/reports/unified-9.0.20/raw/repro-runtime-retry-before.cjs +18 -0
  484. package/docs/reports/unified-9.0.20/raw/sbom-runtime.log +7 -0
  485. package/docs/reports/unified-9.0.20/raw/sbom-runtime.result.json +14 -0
  486. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.log +1 -0
  487. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.result.json +14 -0
  488. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.json +30 -0
  489. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.log +542 -0
  490. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.json +30 -0
  491. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.log +97 -0
  492. package/docs/reports/unified-9.0.20/raw/tariff-report-before.log +147 -0
  493. package/docs/reports/unified-9.0.20/raw/tariff-report-evidence.json +48 -0
  494. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node22.log +151 -0
  495. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node24.log +32 -0
  496. package/docs/reports/unified-9.0.20/raw/ui-docs-check.log +6 -0
  497. package/docs/reports/unified-9.0.20/raw/ui-docs-check.result.json +14 -0
  498. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.log +7 -0
  499. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.result.json +14 -0
  500. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.log +6 -0
  501. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.result.json +14 -0
  502. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.log +6 -0
  503. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.result.json +14 -0
  504. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.log +6 -0
  505. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.result.json +14 -0
  506. package/docs/reports/unified-9.0.20/raw/ui-secret-final.log +6 -0
  507. package/docs/reports/unified-9.0.20/raw/ui-secret-final.result.json +14 -0
  508. package/docs/reports/unified-9.0.20/raw/ui-security-final.log +8 -0
  509. package/docs/reports/unified-9.0.20/raw/ui-security-final.result.json +14 -0
  510. package/docs/reports/unified-9.0.20/raw/visuals-baseline-919.txt +36 -0
  511. package/docs/reports/unified-9.0.20/raw/visuals-browser-limit.txt +3 -0
  512. package/docs/reports/unified-9.0.20/raw/visuals-lint.txt +0 -0
  513. package/docs/reports/unified-9.0.20/raw/visuals-node22.txt +258 -0
  514. package/docs/reports/unified-9.0.20/raw/visuals-node24.txt +51 -0
  515. package/docs/reports/unified-9.0.20/raw/visuals-security.txt +0 -0
  516. package/docs/reports/unified-9.0.20/raw/visuals-typecheck.txt +0 -0
  517. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.log +19 -0
  518. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.result.json +16 -0
  519. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.log +31 -0
  520. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.result.json +14 -0
  521. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.result.json +13 -0
  522. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.tap +10 -0
  523. package/io-package.json +12 -12
  524. package/modules/devices/admin/ems-assignment.d.ts +8 -2
  525. package/modules/devices/admin/ems-assignment.js +192 -30
  526. package/modules/devices/admin/host-bridge.js +36 -11
  527. package/modules/devices/admin/index.html +26 -5
  528. package/modules/devices/admin/index_m.js +87 -3
  529. package/modules/devices/admin/style.css +17 -4
  530. package/modules/devices/checks/emsAssignment.check.js +10 -6
  531. package/modules/devices/contracts.d.ts +1 -1
  532. package/modules/devices/index.js +54 -17
  533. package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
  534. package/modules/devices/lib/deviceAliasFreshness.js +66 -0
  535. package/modules/devices/lib/deviceAliasSemantics.js +13 -3
  536. package/modules/devices/lib/deviceRuntime.js +278 -133
  537. package/modules/devices/lib/drivers/modbus.js +107 -23
  538. package/modules/devices/lib/drivers/modbusAsciiBus.js +47 -31
  539. package/modules/devices/lib/drivers/modbusRtuBus.js +33 -9
  540. package/modules/devices/lib/drivers/modbusSerialLease.js +29 -0
  541. package/modules/devices/lib/drivers/speedwire.js +42 -22
  542. package/modules/devices/lib/modbusReadEvidence.js +29 -0
  543. package/modules/devices/test/deviceAliasFreshness.test.js +154 -0
  544. package/modules/devices/test/emsAssignmentUi.test.js +119 -11
  545. package/modules/devices/test/modbusAuthorizationReads.test.js +112 -0
  546. package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
  547. package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
  548. package/modules/devices/test/runtimeLiveness.test.js +1 -1
  549. package/modules/devices/test/serialOperationGate.test.js +3 -3
  550. package/modules/devices/test/solaxReadbackContext.test.js +472 -0
  551. package/modules/devices/test/speedwireLifecycle.test.js +118 -0
  552. package/modules/devices/tsconfig.alias-semantics.json +1 -1
  553. package/modules/devices/tsconfig.hosted.json +1 -1
  554. package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
  555. package/package.json +11 -7
  556. package/release-manifests/unified/build-environment.cdx.json +1483 -7370
  557. package/release-manifests/unified/files.json +758 -185
  558. package/release-manifests/unified/frontend.cdx.json +2688 -5952
  559. package/release-manifests/unified/installer.cdx.json +2053 -821
  560. package/release-manifests/unified/obsolete-admin-assets.json +170 -6
  561. package/release-manifests/unified/runtime.cdx.json +40 -3283
  562. package/release-manifests/unified/validation.json +15 -15
  563. package/tools/eos-release-check.cjs +2 -2
  564. package/tools/eos-release-manifest.cjs +3 -3
  565. package/ui/admin/react/assets/index-BJO3q7oe.js +13 -0
  566. package/ui/admin/react/assets/{index-CuquHlsY.css → index-ofLP_Y7y.css} +1 -1
  567. package/ui/admin/react/index.html +2 -2
  568. package/ui/docs/security/eslint-reviewed-findings.json +26 -26
  569. package/ui/ems/engine.js +54 -7
  570. package/ui/ems/module-manager.js +44 -21
  571. package/ui/ems/modules/core-limits.js +5 -3
  572. package/ui/ems/modules/energy-wallet.js +38 -33
  573. package/ui/ems/modules/storage-control.js +64 -22
  574. package/ui/ems/modules/tarif-vis.js +36 -24
  575. package/ui/ems/modules/tariff-provider.js +28 -6
  576. package/ui/ems/services/tariff-provider-registry.js +11 -8
  577. package/ui/io-package.json +1 -1
  578. package/ui/lib/customer-tariff.js +5 -1
  579. package/ui/lib/influx-config.js +204 -0
  580. package/ui/lib/influx-direct.js +527 -0
  581. package/ui/lib/influx-history-runtime.js +326 -0
  582. package/ui/lib/influx-network-policy.js +112 -0
  583. package/ui/lib/installer-lifecycle.js +134 -1
  584. package/ui/lib/storage-farm-overview.js +115 -0
  585. package/ui/lib/tariff-price.js +115 -0
  586. package/ui/lib/ui-access-policy.js +2 -2
  587. package/ui/main.js +743 -264
  588. package/ui/package.json +18 -6
  589. package/ui/www/app.js +195 -334
  590. package/ui/www/ems-apps.html +4 -1
  591. package/ui/www/ems-apps.js +21 -2
  592. package/ui/www/energy-ledger.html +1 -1
  593. package/ui/www/evcs.html +1 -1
  594. package/ui/www/history.html +1 -1
  595. package/ui/www/history.js +114 -74
  596. package/ui/www/index.html +4 -1
  597. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  598. package/ui/www/live-display.js +115 -0
  599. package/ui/www/logic.html +1 -1
  600. package/ui/www/login.css +1 -0
  601. package/ui/www/login.html +2 -1
  602. package/ui/www/manifest.webmanifest +2 -2
  603. package/ui/www/power-measurements.js +62 -0
  604. package/ui/www/settings.html +4 -1
  605. package/ui/www/simulation.html +1 -1
  606. package/ui/www/smarthome-config.html +1 -1
  607. package/ui/www/smarthome.html +1 -1
  608. package/ui/www/storagefarm-dispatch.js +287 -0
  609. package/ui/www/storagefarm-summary.css +32 -0
  610. package/ui/www/storagefarm-summary.js +136 -0
  611. package/ui/www/storagefarm.html +31 -2
  612. package/ui/www/storagefarm.js +14 -44
  613. package/ui/www/tariff-display.js +161 -0
  614. package/ui/www/tariff-report.js +43 -25
  615. package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
@@ -9,14 +9,15 @@
9
9
  */
10
10
  /**
11
11
  * Deterministic commissioning plan for verified device inventories. This module
12
- * never accesses the controller, writes states, enables an app, or creates a
13
- * device command. Its output must pass the normal versioned configuration save.
12
+ * never accesses the controller or writes device states. Explicit one-shot
13
+ * commissioning intents may enable validated rows/apps in the returned plan.
14
+ * Its output must pass the normal versioned configuration save.
14
15
  * Existing non-empty installer assignments are authoritative.
15
16
  * @typedef {import('./eosDeviceEmsPlan').Json} Json
16
17
  * @typedef {{[key: string]: Json}} Dict
17
- * @typedef {{id: string, type: string, unit: string, read: boolean, write: boolean, targetId: string}} Alias
18
- * @typedef {{baseId: string, devId: string, name: string, templateId: string, deviceClass: string, enabled: boolean, aliases: Map<string, Alias>, ems: Dict, discoveryCode: string}} Device
19
- * @typedef {{baseId: string, devId: string, status: string, code: string, target: string, mappedFields: string[], missing: string[], optionalMissing: string[]}} Status
18
+ * @typedef {{id: string, type: string, unit: string, read: boolean, write: boolean, targetId: string, powerCapabilityValidated: boolean}} Alias
19
+ * @typedef {{baseId: string, devId: string, name: string, templateId: string, protocol: string, deviceClass: string, enabled: boolean, aliases: Map<string, Alias>, ems: Dict, discoveryCode: string}} Device
20
+ * @typedef {{baseId: string, devId: string, status: string, code: string, target: string, mappedFields: string[], missing: string[], optionalMissing: string[], activationRequestId: string, activationApplied: boolean, corrections:string[]}} Status
20
21
  */
21
22
  const MODES = new Set(['auto', 'monitor', 'manual', 'singleStorage', 'storageFarm', 'gridMeter', 'generationMeter', 'consumptionMeter', 'pvInverter']);
22
23
  const STORAGE_CLASSES = new Set(['storageSystem', 'battery', 'batteryInverter']);
@@ -24,6 +25,7 @@ const MAX_DEVICES = 256;
24
25
  const MAX_CONFIG_BYTES = 2 * 1024 * 1024;
25
26
  const MAX_ROWS = 100;
26
27
  const { Buffer } = require('node:buffer');
28
+ const { createHash } = require('node:crypto');
27
29
  /** @param {unknown} value @returns {value is Dict} */
28
30
  function isRecord(value) {
29
31
  return value !== null && typeof value === 'object' && !Array.isArray(value) &&
@@ -102,6 +104,31 @@ function device(raw) {
102
104
  if (ems.flowSlot !== undefined && (!Number.isInteger(ems.flowSlot) || Number(ems.flowSlot) < 0 || Number(ems.flowSlot) > 10)) {
103
105
  throw fail('EOS_EMS_PLAN_INTENT_INVALID');
104
106
  }
107
+ if (ems.activation !== undefined) {
108
+ const activation = record(ems.activation);
109
+ if (typeof activation.requested !== 'boolean' || !/^[A-Za-z0-9][A-Za-z0-9_-]{15,127}$/.test(text(activation.requestId))) {
110
+ throw fail('EOS_EMS_PLAN_ACTIVATION_INVALID');
111
+ }
112
+ if (activation.limits !== undefined && !isRecord(activation.limits))
113
+ throw fail('EOS_EMS_PLAN_ACTIVATION_INVALID');
114
+ const numericLimits = new Set(['maxChargeW', 'maxDischargeW', 'capacityKWh', 'minCurrentA', 'maxCurrentA', 'minPowerW', 'maxPowerW']);
115
+ for (const [key, value] of Object.entries(record(activation.limits))) {
116
+ if (numericLimits.has(key)) {
117
+ if (typeof value !== 'number' || !Number.isFinite(value) || value <= 0 || value > 1000000000)
118
+ throw fail('EOS_EMS_PLAN_ACTIVATION_INVALID');
119
+ }
120
+ else if (key === 'coupling' || key === 'chargerType') {
121
+ if (value !== 'ac' && value !== 'dc')
122
+ throw fail('EOS_EMS_PLAN_ACTIVATION_INVALID');
123
+ }
124
+ else if (key === 'phases') {
125
+ if (value !== 1 && value !== 3)
126
+ throw fail('EOS_EMS_PLAN_ACTIVATION_INVALID');
127
+ }
128
+ else
129
+ throw fail('EOS_EMS_PLAN_ACTIVATION_INVALID');
130
+ }
131
+ }
105
132
  const aliases = new Map();
106
133
  const metadata = record(row.aliasMeta);
107
134
  if (Object.keys(metadata).length > 512)
@@ -117,9 +144,9 @@ function device(raw) {
117
144
  if (target.length > 512 || [...target].some(character => character.charCodeAt(0) < 32 || character.charCodeAt(0) === 127))
118
145
  continue;
119
146
  aliases.set(key, { id, type: text(meta.type), unit: text(meta.unit), read: meta.read !== false,
120
- write: meta.write === true, targetId: target || id });
147
+ write: meta.write === true, targetId: target || id, powerCapabilityValidated: meta.powerCapabilityValidated === true });
121
148
  }
122
- return { baseId, devId, name: text(row.name).slice(0, 128) || devId, templateId: text(row.templateId), deviceClass: text(row.deviceClass),
149
+ return { baseId, devId, name: text(row.name).slice(0, 128) || devId, templateId: text(row.templateId), protocol: text(row.protocol), deviceClass: text(row.deviceClass),
123
150
  enabled: row.enabled !== false, aliases, ems, discoveryCode: text(row.discoveryCode) };
124
151
  }
125
152
  /** @param {Device} dev @param {string[]} keys @param {boolean} [write] @param {string[]} [types] @param {string[]} [units] @returns {string} */
@@ -139,8 +166,8 @@ function identity(dev, mode) { return { v: 1, baseId: dev.baseId, devId: dev.dev
139
166
  /** @param {Dict} row @param {Device} dev @returns {boolean} */
140
167
  function belongs(row, dev) {
141
168
  const owner = record(row._eosDevice);
142
- if (owner.v === 1 && owner.baseId === dev.baseId)
143
- return true;
169
+ if (owner.v === 1)
170
+ return owner.baseId === dev.baseId;
144
171
  return Object.entries(row).some(([key, value]) => /(?:Id|ObjectId)$/.test(key) &&
145
172
  typeof value === 'string' && value.startsWith(`${dev.baseId}.`));
146
173
  }
@@ -152,7 +179,7 @@ function fill(row, key, value, result) {
152
179
  result.mappedFields.push(key);
153
180
  }
154
181
  /** @param {Device} dev @returns {Status} */
155
- function status(dev) { return { baseId: dev.baseId, devId: dev.devId, status: 'pending', code: 'ALIASES_PENDING', target: '', mappedFields: [], missing: [], optionalMissing: [] }; }
182
+ function status(dev) { return { baseId: dev.baseId, devId: dev.devId, status: 'pending', code: 'ALIASES_PENDING', target: '', mappedFields: [], missing: [], optionalMissing: [], activationRequestId: text(record(dev.ems.activation).requestId), activationApplied: false, corrections: [] }; }
156
183
  /** An entered power value is not an object ID. Keep it for correction, never resolve it as a DP. @param {unknown} value */
157
184
  function numericReference(value) { return typeof value === 'number' || (typeof value === 'string' && /^[+-]?\d+(?:[.,]\d+)?$/.test(value.trim())); }
158
185
  /** Only bounded configuration reference strings, never secrets or values, enter conflict detection. @param {unknown} value @returns {string[]} */
@@ -186,7 +213,7 @@ function getDeviceEmsReferences(value) {
186
213
  const config = copyConfig(value);
187
214
  const read = new Set();
188
215
  const write = new Set();
189
- const writeKey = /(?:write|^set|^target|^runObjectId$|^maxChargeObjectId$|^maxDischargeObjectId$|^phaseSwitchId$|^chargeEnableObjectId$|^dischargeEnableObjectId$|^feneconGridSetpoint|^e3dcSetPower|^enableId$)/i;
216
+ const writeKey = /(?:write|^set|^target|^output(?:Object)?Id$|^(?:pv)?feedInLimit|^pvLimit|^runObjectId$|^maxChargeObjectId$|^maxDischargeObjectId$|^phaseSwitchId$|^chargeEnableObjectId$|^dischargeEnableObjectId$|^feneconGridSetpoint|^e3dcSetPower|^enableId$)/i;
190
217
  /** @param {unknown} item @param {number} depth */
191
218
  const walk = (item, depth) => {
192
219
  if (!item || typeof item !== 'object' || depth > 12)
@@ -202,10 +229,11 @@ function getDeviceEmsReferences(value) {
202
229
  }
203
230
  };
204
231
  for (const item of [record(config.settingsConfig).evcsList, config.storage, config.storageFarm,
205
- config.gridConstraints, config.thermalControl, config.dynamicGridConnection])
232
+ config.gridConstraints, config.thermalControl, config.thermal, config.vis, config.heatingRod, config.threshold,
233
+ config.generator, config.bhkw, config.dynamicGridConnection])
206
234
  walk(item, 0);
207
235
  for (const [key, id] of Object.entries(record(config.datapoints))) {
208
- if (/^(?:pvPower|producer\d+Power|consumer\d+Power|gridPointPower)$/.test(key) && typeof id === 'string' && id.length <= 512 && id)
236
+ if (/^(?:pvPower|producer\d+Power|consumer\d+Power|gridPointPower|consumptionEvcs|batteryPower|storageSoc)$/.test(key) && typeof id === 'string' && id.length <= 512 && id)
209
237
  read.add(id);
210
238
  }
211
239
  if (read.size + write.size > 1024)
@@ -213,7 +241,7 @@ function getDeviceEmsReferences(value) {
213
241
  return { read: [...read].sort(), write: [...write].sort() };
214
242
  }
215
243
  /**
216
- * @param {{config: unknown, devices: unknown, limits?: {chargePoints?: unknown, batteries?: unknown}, writeTargets?: Record<string,string>, readTargets?: Record<string,string>}} input
244
+ * @param {{config: unknown, devices: unknown, limits?: {chargePoints?: unknown, batteries?: unknown}, writeTargets?: Record<string,string>, readTargets?: Record<string,string>, referenceMeta?: Record<string,{type?:unknown,unit?:unknown,read?:unknown,write?:unknown}>, allowedApps?:string[]}} input
217
245
  * @returns {{config: Dict, patch: Dict, changed: boolean, statuses: Status[]}}
218
246
  */
219
247
  function planDeviceEms(input) {
@@ -243,6 +271,35 @@ function planDeviceEms(input) {
243
271
  const storageLimit = limit(input.limits?.batteries, MAX_ROWS);
244
272
  /** @type {Status[]} */
245
273
  const statuses = [];
274
+ /** Existing live rows are restored if explicit commissioning cannot complete. @type {Map<string, Dict>} */
275
+ const activeOriginals = new Map();
276
+ /** @param {Device} dev @returns {Dict} */
277
+ const binding = dev => record(record(record(config.eosDeviceEms).bindings)[dev.baseId]);
278
+ /** @param {Device} dev */
279
+ const explicitApply = dev => record(dev.ems.activation).requested === true &&
280
+ text(record(dev.ems.activation).requestId) !== text(binding(dev).activationRequestId);
281
+ /** @param {Device} dev */
282
+ const requestFingerprint = dev => {
283
+ const activation = record(dev.ems.activation);
284
+ const bounds = record(activation.limits);
285
+ return createHash('sha256').update(JSON.stringify({ requested: activation.requested, mode: dev.ems.mode || 'auto',
286
+ scope: dev.ems.scope || '', flowSlot: dev.ems.flowSlot ?? null, templateId: dev.templateId, protocol: dev.protocol, deviceClass: dev.deviceClass,
287
+ limits: Object.fromEntries(Object.keys(bounds).sort().map(key => [key, bounds[key]])) })).digest('hex');
288
+ };
289
+ /** @param {string} id @param {Device} dev */
290
+ const belongsReference = (id, dev) => id.startsWith(`${dev.baseId}.`) || [...dev.aliases.values()].some(meta => meta.read && readTargetOf(id) === readTargetOf(meta.id) || meta.write && targetOf(id) === targetOf(meta.id));
291
+ /** Only identity-bearing measurement/command fields may adopt a legacy row. @param {Dict} row @returns {string[]} */
292
+ const primaryIds = row => Object.entries(row).flatMap(([key, value]) => {
293
+ if (key === 'datapoints' && isRecord(value))
294
+ return primaryIds(value);
295
+ return /^(?:socId|socObjectId|signedPowerId|batteryPowerObjectId|powerId|energyTotalId|chargePowerId|dischargePowerId|setSignedPowerId|setChargePowerId|setDischargePowerId|targetPowerObjectId|targetChargePowerObjectId|targetDischargePowerObjectId|setCurrentAId|setPowerWId|feneconEssActualPowerId|feneconEssActualPowerObjectId)$/.test(key)
296
+ && typeof value === 'string' && value && !numericReference(value) ? [value] : [];
297
+ });
298
+ /** @param {Dict} row @param {Device} dev */
299
+ const belongsDevice = (row, dev) => record(row._eosDevice).v === 1 ? record(row._eosDevice).baseId === dev.baseId
300
+ : belongs(row, dev) || explicitApply(dev) && primaryIds(row).some(id => belongsReference(id, dev));
301
+ /** @param {Dict} row @param {Device} dev */
302
+ const mixedIdentity = (row, dev) => primaryIds(row).some(id => !belongsReference(id, dev));
246
303
  /** @param {Dict} row @param {Device} dev @param {string} mode @param {string} target */
247
304
  const remember = (row, dev, mode, target) => {
248
305
  if (!row._eosDevice)
@@ -254,7 +311,7 @@ function planDeviceEms(input) {
254
311
  const bindings = section(registry, 'bindings');
255
312
  const next = { target, mode, ...(dev.ems.scope ? { scope: dev.ems.scope } : {}),
256
313
  ...(dev.ems.flowSlot !== undefined ? { flowSlot: dev.ems.flowSlot } : {}) };
257
- bindings[dev.baseId] = next;
314
+ bindings[dev.baseId] = { ...record(bindings[dev.baseId]), ...next };
258
315
  };
259
316
  /** @param {Device} dev @param {Dict} candidate @param {unknown[]} competing @returns {boolean} */
260
317
  const conflict = (dev, candidate, competing) => {
@@ -266,13 +323,13 @@ function planDeviceEms(input) {
266
323
  const ev = (dev, result) => {
267
324
  const settings = section(config, 'settingsConfig');
268
325
  const list = rows(settings, 'evcsList', 50);
269
- const found = list.filter(row => belongs(row, dev));
326
+ const found = list.filter(row => belongsDevice(row, dev));
270
327
  if (found.length > 1) {
271
328
  result.status = 'conflict';
272
329
  result.code = 'DUPLICATE_DEVICE_MAPPING';
273
330
  return;
274
331
  }
275
- if (found.length && mappedIds(found[0]).some(id => !id.startsWith(`${dev.baseId}.`))) {
332
+ if (found.length && mixedIdentity(found[0], dev)) {
276
333
  result.status = 'conflict';
277
334
  result.code = 'MIXED_MANUAL_MAPPING';
278
335
  return;
@@ -283,6 +340,8 @@ function planDeviceEms(input) {
283
340
  return;
284
341
  }
285
342
  const row = found[0] || { enabled: false };
343
+ if (found.length && row.enabled !== false && explicitApply(dev))
344
+ activeOriginals.set(dev.baseId, copyConfig(row));
286
345
  const next = copyConfig(row);
287
346
  fill(next, 'name', dev.name, result);
288
347
  const fields = {
@@ -307,7 +366,8 @@ function planDeviceEms(input) {
307
366
  const meta = [...dev.aliases.values()].find(item => item.id === fields.energyTotalId);
308
367
  fill(next, 'energyTotalInputIsWh', meta?.unit === 'Wh', result);
309
368
  }
310
- if (conflict(dev, next, [list.filter(item => item !== row), config.storage, config.storageFarm, config.gridConstraints, config.thermalControl])) {
369
+ if (conflict(dev, next, [list.filter(item => item !== row), config.storage, config.storageFarm, config.gridConstraints,
370
+ config.thermalControl, config.thermal, config.vis, config.heatingRod, config.threshold, config.generator, config.bhkw])) {
311
371
  result.status = 'conflict';
312
372
  result.code = 'CONTROL_TARGET_ALREADY_ASSIGNED';
313
373
  result.mappedFields = [];
@@ -343,8 +403,8 @@ function planDeviceEms(input) {
343
403
  const farmConfig = record(config.storageFarm);
344
404
  const farmRows = Array.isArray(farmConfig.storages) ? farmConfig.storages.filter(isRecord) : [];
345
405
  const singleAssigned = mappedIds(single).some(Boolean);
346
- const existingSameSingle = belongs(record(single.datapoints), dev) || belongs(single, dev);
347
- const existingSameFarm = farmRows.filter(row => belongs(row, dev));
406
+ const existingSameSingle = belongsDevice(single, dev);
407
+ const existingSameFarm = farmRows.filter(row => belongsDevice(row, dev));
348
408
  if ((farm && existingSameSingle) || (!farm && existingSameFarm.length) || existingSameFarm.length > 1) {
349
409
  result.status = 'conflict';
350
410
  result.code = 'STORAGE_CONTROLLER_ALREADY_ASSIGNED';
@@ -356,7 +416,7 @@ function planDeviceEms(input) {
356
416
  return;
357
417
  }
358
418
  const existing = farm ? existingSameFarm[0] : existingSameSingle ? single : undefined;
359
- if (existing && mappedIds(existing).some(id => !id.startsWith(`${dev.baseId}.`))) {
419
+ if (existing && mixedIdentity(existing, dev)) {
360
420
  result.status = 'conflict';
361
421
  result.code = 'MIXED_MANUAL_MAPPING';
362
422
  return;
@@ -371,6 +431,10 @@ function planDeviceEms(input) {
371
431
  // A new assignment still needs commissioning even if its empty section
372
432
  // had enabled=true from an earlier installer selection.
373
433
  const row = existing ? copyConfig(existing) : farm ? { enabled: false } : { ...copyConfig(single), enabled: false };
434
+ if (existing && existing.enabled !== false && explicitApply(dev))
435
+ activeOriginals.set(dev.baseId, copyConfig(existing));
436
+ if (existing && !existing._eosDevice && explicitApply(dev))
437
+ result.corrections.push('LEGACY_ROW_ADOPTED');
374
438
  const destination = farm ? row : section(row, 'datapoints');
375
439
  fill(row, 'name', dev.name, result);
376
440
  const feneconHome = dev.templateId === 'ess.fenecon.FeneconHomeEssImpl';
@@ -384,6 +448,22 @@ function planDeviceEms(input) {
384
448
  return '';
385
449
  };
386
450
  const homeFeedback = feneconHome ? homePower(['r.essActivePower'], 'eSS0_ACTIVE_POWER') : '';
451
+ if (feneconHome && homeFeedback && explicitApply(dev)) {
452
+ const old = text(destination[farm ? 'signedPowerId' : 'batteryPowerObjectId']);
453
+ const oldActor = text(destination[farm ? 'feneconEssActualPowerId' : 'feneconEssActualPowerObjectId']);
454
+ /** @param {string} value */
455
+ const isWrongFeedback = value => value && (['r.power', 'r.powerAc', 'r.powerBalance'].some(key => value === `${dev.baseId}.aliases.${key}` || value === `${dev.baseId}.aliases.v1.${key}`) ||
456
+ [`${dev.baseId}.bATTERY_AC_POWER`, `${dev.baseId}.bATTERY_POWER`].includes(readTargetOf(value)));
457
+ if (isWrongFeedback(old)) {
458
+ destination[farm ? 'signedPowerId' : 'batteryPowerObjectId'] = homeFeedback;
459
+ result.corrections.push('FENECON_ACTOR_FEEDBACK_CORRECTED');
460
+ }
461
+ if (isWrongFeedback(oldActor)) {
462
+ destination[farm ? 'feneconEssActualPowerId' : 'feneconEssActualPowerObjectId'] = homeFeedback;
463
+ if (!result.corrections.includes('FENECON_ACTOR_FEEDBACK_CORRECTED'))
464
+ result.corrections.push('FENECON_ACTOR_FEEDBACK_CORRECTED');
465
+ }
466
+ }
387
467
  const keys = farm ? {
388
468
  socId: ['r.soc'], signedPowerId: feneconHome ? [] : ['r.essActivePower', 'r.powerAc', 'r.power'],
389
469
  chargePowerId: ['r.powerCharge'], dischargePowerId: ['r.powerDischarge'],
@@ -396,6 +476,16 @@ function planDeviceEms(input) {
396
476
  const booleanField = ['availableId', 'faultId', 'chargeAllowedId', 'dischargeAllowedId'].includes(key);
397
477
  fill(destination, key, alias(dev, names, false, booleanField ? ['boolean'] : ['number'], key.startsWith('soc') ? ['%'] : booleanField ? [] : ['W']), result);
398
478
  }
479
+ // Optional registers may have alias objects even when the hardware does
480
+ // not support them. Only a verified measurement establishes this new
481
+ // binding; never overwrite a commissioned/manual capability mapping.
482
+ if (farm) {
483
+ for (const [key, name] of [['allowedChargePowerId', 'r.allowedChargePower'], ['allowedDischargePowerId', 'r.allowedDischargePower']]) {
484
+ if (dev.aliases.get(name)?.powerCapabilityValidated === true) {
485
+ fill(destination, key, alias(dev, [name], false, ['number'], ['W']), result);
486
+ }
487
+ }
488
+ }
399
489
  const signed = feneconHome ? homePower(['ctrl.powerSetpointW'], 'sET_ACTIVE_POWER', true)
400
490
  : alias(dev, ['ctrl.powerSetpointW'], true, ['number'], ['W']);
401
491
  const charge = alias(dev, ['ctrl.chargePowerW'], true, ['number'], ['W']);
@@ -432,13 +522,24 @@ function planDeviceEms(input) {
432
522
  }
433
523
  const gridKey = farm ? 'feneconGridSetpointId' : 'feneconGridSetpointObjectId';
434
524
  const nativeGrid = homePower(['ctrl.gridSetpointW', 'ctrl.napSetpointW'], 'sET_GRID_ACTIVE_POWER', true);
525
+ const oldGrid = text(destination[gridKey]);
526
+ if (explicitApply(dev) && oldGrid && (oldGrid === `${dev.baseId}.aliases.ctrl.powerSetpointW` ||
527
+ oldGrid === `${dev.baseId}.aliases.v1.ctrl.powerSetpointW` || targetOf(oldGrid) === `${dev.baseId}.sET_ACTIVE_POWER`)) {
528
+ destination[gridKey] = nativeGrid;
529
+ result.corrections.push('FENECON_NATIVE_TARGET_CORRECTED');
530
+ }
531
+ const multipleFarm = farm && devices.filter(item => item.enabled && item.ems.mode === 'storageFarm').length > 1;
532
+ if (explicitApply(dev) && signed && homeFeedback && multipleFarm && row.feneconControlMode !== 'direct-ess') {
533
+ row.feneconControlMode = 'direct-ess';
534
+ result.corrections.push('FENECON_DIRECT_ESS_SELECTED');
535
+ }
435
536
  // Populate both real target references without changing an existing
436
537
  // mode: direct-ess uses 706; fems-grid uses its guarded controller.
437
538
  const directMode = row.feneconControlMode === 'direct-ess';
438
539
  if (directMode && !commandKeys.slice(0, 3).some(key => !empty(destination[key])) && signed) {
439
540
  fill(destination, commandKeys[0], signed, result);
440
541
  }
441
- const preserveAutoDirect = existing && row.enabled !== false && empty(destination[gridKey]) &&
542
+ const preserveAutoDirect = !explicitApply(dev) && existing && row.enabled !== false && empty(destination[gridKey]) &&
442
543
  !['direct-ess', 'fems-grid'].includes(text(row.feneconControlMode)) &&
443
544
  commandKeys.slice(0, 3).some(key => !empty(destination[key]));
444
545
  if (preserveAutoDirect && nativeGrid)
@@ -487,13 +588,33 @@ function planDeviceEms(input) {
487
588
  fill(destination, farm ? 'pvPowerId' : 'dcPvPowerObjectId', dcPv, result);
488
589
  else if (farm && row.coupling === 'ac')
489
590
  fill(destination, 'pvPowerId', acPv, result);
591
+ const pvKey = farm ? 'pvPowerId' : 'dcPvPowerObjectId';
592
+ if (explicitApply(dev) && numericReference(destination[pvKey]) && row.coupling === 'dc' && dcPv) {
593
+ destination[pvKey] = dcPv;
594
+ result.corrections.push('PV_POWER_REFERENCE_CORRECTED');
595
+ }
596
+ // The Home ESS actuator channel 604 is deliberately separate from the
597
+ // physical battery/display channel 415. Never feed its DC-PV component
598
+ // into the home's displayed battery discharge a second time.
599
+ const batteryFlow = feneconHome ? alias(dev, ['r.powerAc', 'r.power'], false, ['number'], ['W']) : '';
600
+ if (farm && batteryFlow)
601
+ fill(row, 'batteryFlowPowerId', batteryFlow, result);
602
+ if (!farm && batteryFlow) {
603
+ const globalDp = section(config, 'datapoints');
604
+ if (empty(globalDp.batteryPower)) {
605
+ fill(globalDp, 'batteryPower', batteryFlow, result);
606
+ section(section(config, 'settings'), 'flowPowerDpIsW').batteryPower = true;
607
+ }
608
+ fill(globalDp, 'storageSoc', alias(dev, ['r.soc'], false, ['number'], ['%']), result);
609
+ }
490
610
  if (!mappedIds(destination).length) {
491
611
  result.code = 'ALIASES_PENDING';
492
612
  result.mappedFields = [];
493
613
  return;
494
614
  }
495
615
  const competing = [farm ? [single, ...farmRows.filter(item => item !== existing)] : farmRows,
496
- record(config.settingsConfig).evcsList, config.gridConstraints, config.thermalControl];
616
+ record(config.settingsConfig).evcsList, config.gridConstraints, config.thermalControl, config.thermal, config.vis,
617
+ config.heatingRod, config.threshold, config.generator, config.bhkw];
497
618
  if (conflict(dev, row, competing)) {
498
619
  result.status = 'conflict';
499
620
  result.code = 'CONTROL_TARGET_ALREADY_ASSIGNED';
@@ -518,7 +639,7 @@ function planDeviceEms(input) {
518
639
  if (farm) {
519
640
  const list = rows(section(config, 'storageFarm'), 'storages');
520
641
  if (existing)
521
- list[list.findIndex(item => belongs(item, dev))] = row;
642
+ list[list.findIndex(item => belongsDevice(item, dev))] = row;
522
643
  else
523
644
  list.push(row);
524
645
  }
@@ -648,7 +769,12 @@ function planDeviceEms(input) {
648
769
  else if (key === 'pvPower')
649
770
  fill(owner, 'pvName', dev.name, result);
650
771
  if (mode === 'gridMeter') {
651
- fill(dp, 'gridPointConnected', alias(dev, ['r.online', 'comm.connected'], false, ['boolean']), result);
772
+ const connected = alias(dev, ['comm.connected', 'r.online'], false, ['boolean']);
773
+ if (explicitApply(dev) && connected && [`${dev.baseId}.aliases.r.online`, `${dev.baseId}.aliases.v1.r.online`].includes(text(dp.gridPointConnected)) && dp.gridPointConnected !== connected) {
774
+ dp.gridPointConnected = connected;
775
+ result.corrections.push('NVP_TRANSPORT_STATUS_SELECTED');
776
+ }
777
+ fill(dp, 'gridPointConnected', connected, result);
652
778
  fill(dp, 'gridPointWatchdog', alias(dev, ['r.heartbeat', 'r.lastSeenMs']), result);
653
779
  }
654
780
  remember(owner, dev, mode, key);
@@ -659,21 +785,59 @@ function planDeviceEms(input) {
659
785
  // Existing auto-created control rows survive missing/deactivated devices, but
660
786
  // are held inactive. Re-adding a device never grants activation by itself.
661
787
  const activeBases = new Set(devices.filter(dev => dev.enabled && dev.ems.mode !== 'monitor').map(dev => dev.baseId));
662
- const controlRows = [
788
+ const disableSingleApp = () => {
789
+ const root = section(config, 'emsApps');
790
+ if (root.schemaVersion === undefined)
791
+ root.schemaVersion = 1;
792
+ section(section(root, 'apps'), 'storage').enabled = false;
793
+ };
794
+ // A rejected earlier device restores a cloned checkpoint. Resolve row
795
+ // references from the current config each time; retained references would
796
+ // disable abandoned objects instead of the rows in the returned plan.
797
+ const controlRows = () => [
663
798
  ...(Array.isArray(record(config.settingsConfig).evcsList) ? /** @type {Json[]} */ (record(config.settingsConfig).evcsList) : []),
664
799
  ...(Array.isArray(record(config.storageFarm).storages) ? /** @type {Json[]} */ (record(config.storageFarm).storages) : []),
665
800
  record(config.storage),
666
801
  ];
667
- for (const item of controlRows) {
802
+ for (const item of controlRows()) {
668
803
  const row = record(item);
669
804
  const owner = record(row._eosDevice);
670
- if (owner.v === 1 && typeof owner.baseId === 'string' && !activeBases.has(owner.baseId))
805
+ if (owner.v === 1 && typeof owner.baseId === 'string' && !activeBases.has(owner.baseId)) {
671
806
  row.enabled = false;
807
+ if (row === config.storage)
808
+ disableSingleApp();
809
+ }
672
810
  }
673
811
  for (const dev of devices) {
674
812
  const result = status(dev);
675
813
  statuses.push(result);
676
814
  const mode = text(dev.ems.mode) || 'auto';
815
+ const previousBinding = binding(dev);
816
+ const profileChanged = typeof previousBinding.deviceTemplateId === 'string' &&
817
+ (previousBinding.deviceTemplateId !== dev.templateId || typeof previousBinding.deviceProtocol === 'string' && previousBinding.deviceProtocol !== dev.protocol ||
818
+ !dev.discoveryCode && previousBinding.deviceClass !== dev.deviceClass);
819
+ if (profileChanged) {
820
+ // Reusing a device ID is not permission to transfer a commissioned
821
+ // controller to another hardware profile. Preserve the assignment
822
+ // for review, but never restore an active old-profile row on a
823
+ // failed attempt to commission its replacement.
824
+ let incompatibleVendor = false;
825
+ for (const item of controlRows()) {
826
+ const row = record(item);
827
+ const owner = record(row._eosDevice);
828
+ if (owner.v === 1 && owner.baseId === dev.baseId) {
829
+ row.enabled = false;
830
+ if (row === config.storage)
831
+ disableSingleApp();
832
+ if (row.vendorProfile === 'fenecon-openems' && dev.templateId !== 'ess.fenecon.FeneconHomeEssImpl')
833
+ incompatibleVendor = true;
834
+ }
835
+ }
836
+ if (!explicitApply(dev) || incompatibleVendor) {
837
+ result.code = 'ACTIVATION_PROFILE_CHANGED';
838
+ continue;
839
+ }
840
+ }
677
841
  if (!dev.enabled) {
678
842
  result.status = 'disabled';
679
843
  result.code = 'DEVICE_DISABLED';
@@ -688,6 +852,12 @@ function planDeviceEms(input) {
688
852
  result.code = dev.discoveryCode || 'ALIASES_PENDING';
689
853
  continue;
690
854
  }
855
+ if (result.activationRequestId && binding(dev).activationRequestId === result.activationRequestId &&
856
+ binding(dev).activationFingerprint !== requestFingerprint(dev)) {
857
+ result.status = 'conflict';
858
+ result.code = 'ACTIVATION_REQUEST_CHANGED';
859
+ continue;
860
+ }
691
861
  const checkpoint = copyConfig(config);
692
862
  try {
693
863
  if (dev.deviceClass === 'evCharger' && mode === 'auto') {
@@ -728,6 +898,257 @@ function planDeviceEms(input) {
728
898
  }
729
899
  }
730
900
  }
901
+ // Commission only explicit, unconsumed installer requests. These records are
902
+ // persisted with the exact same versioned patch as the row/app changes, so a
903
+ // restart or a later background inventory refresh cannot replay activation.
904
+ const grantedApps = new Set(Array.isArray(input.allowedApps) ? input.allowedApps : []);
905
+ const references = new Map(Object.entries(input.referenceMeta || {}));
906
+ for (const dev of devices)
907
+ for (const meta of dev.aliases.values())
908
+ references.set(meta.id, meta);
909
+ /** @param {unknown} value @returns {number|null} */
910
+ const number = value => typeof value === 'number' && Number.isFinite(value) ? value
911
+ : typeof value === 'string' && /^[+-]?\d+(?:\.\d+)?$/.test(value.trim()) ? Number(value) : null;
912
+ /** @param {unknown} id @param {boolean} write @param {string} type @param {string[]} units */
913
+ const validReference = (id, write, type, units) => {
914
+ if (typeof id !== 'string' || !id || numericReference(id))
915
+ return false;
916
+ const meta = references.get(id);
917
+ return !!meta && meta.type === type && (write ? meta.write === true : meta.read === true) &&
918
+ (!units.length || units.includes(text(meta.unit)));
919
+ };
920
+ /** @param {Device} dev @returns {Dict|undefined} */
921
+ const managedRow = dev => {
922
+ const target = text(binding(dev).target);
923
+ if (target === 'storage')
924
+ return isRecord(config.storage) ? config.storage : undefined;
925
+ const list = target === 'storageFarm' ? record(config.storageFarm).storages : target === 'evcs' ? record(config.settingsConfig).evcsList : undefined;
926
+ return Array.isArray(list) ? list.filter(isRecord).find(row => record(row._eosDevice).baseId === dev.baseId) : undefined;
927
+ };
928
+ for (let index = 0; index < devices.length; index++) {
929
+ const dev = devices[index];
930
+ const result = statuses[index];
931
+ const activation = record(dev.ems.activation);
932
+ const requestId = text(activation.requestId);
933
+ if (!requestId || !dev.enabled || result.status === 'conflict' || result.code === 'ACTIVATION_PROFILE_CHANGED')
934
+ continue;
935
+ const mode = text(dev.ems.mode) || 'auto';
936
+ const appId = dev.deviceClass === 'evCharger' && mode === 'auto' ? 'charging'
937
+ : mode === 'singleStorage' ? 'storage' : mode === 'storageFarm' ? 'storagefarm' : '';
938
+ const row = managedRow(dev);
939
+ if (binding(dev).activationRequestId === requestId) {
940
+ // A consumed request records a previous successful save, not proof
941
+ // that today's device metadata is available and still usable.
942
+ if (result.status !== 'mapped')
943
+ continue;
944
+ result.activationApplied = true;
945
+ const app = record(record(record(config.emsApps).apps)[appId]);
946
+ if (activation.requested === false)
947
+ result.code = 'ACTIVATION_DISABLED';
948
+ else if (appId && (row?.enabled === false || app.enabled !== true || app.installed !== true))
949
+ result.code = 'APP_DISABLED';
950
+ else if (!result.missing.length)
951
+ result.code = 'ACTIVATION_APPLIED';
952
+ continue;
953
+ }
954
+ if (result.status !== 'mapped')
955
+ continue;
956
+ /** @type {Dict} */
957
+ const proposedBounds = {};
958
+ const limits = record(activation.limits);
959
+ /** Keep existing valid customer limits authoritative; populate missing finite bounds. @param {string} key @param {number} max @param {boolean} [zeroAllowed] */
960
+ const requireBound = (key, max, zeroAllowed = false) => {
961
+ const current = number(row?.[key]);
962
+ const supplied = number(limits[key]);
963
+ const value = current !== null && (zeroAllowed ? current >= 0 : current > 0) && current <= max ? current : supplied;
964
+ if (value === null || !Number.isFinite(value) || (zeroAllowed ? value < 0 : value <= 0) || value > max) {
965
+ result.missing.push(`limit:${key}`);
966
+ return null;
967
+ }
968
+ if (current !== value)
969
+ proposedBounds[key] = value;
970
+ return value;
971
+ };
972
+ /** @param {string} key @param {boolean} write @param {string} type @param {string[]} units */
973
+ const requireReference = (key, write, type, units) => {
974
+ const target = mode === 'singleStorage' ? record(row?.datapoints) : record(row);
975
+ if (!validReference(target[key], write, type, units))
976
+ result.missing.push(`reference:${key}`);
977
+ };
978
+ if (activation.requested === true && appId) {
979
+ if (!row)
980
+ result.missing.push('deviceRow');
981
+ if (!grantedApps.has(appId))
982
+ result.missing.push(`license:${appId}`);
983
+ const gridId = record(config.datapoints).gridPointPower;
984
+ const gridMeta = typeof gridId === 'string' ? references.get(gridId) : undefined;
985
+ const perDpW = record(record(config.settings).flowPowerDpIsW).gridPointPower;
986
+ const gridUnit = text(gridMeta?.unit);
987
+ if (!validReference(gridId, false, 'number', ['W', 'kW']) || gridUnit === 'W' && perDpW === false || gridUnit === 'kW' && perDpW !== false) {
988
+ result.missing.push('gridPointPower');
989
+ }
990
+ if (appId === 'charging') {
991
+ requireReference('powerId', false, 'number', ['W']);
992
+ const chargerType = text(row?.chargerType) || text(limits.chargerType);
993
+ if (!['ac', 'dc'].includes(chargerType))
994
+ result.missing.push('limit:chargerType');
995
+ else if (empty(row?.chargerType))
996
+ proposedBounds.chargerType = chargerType;
997
+ if (chargerType === 'ac') {
998
+ const phases = number(row?.phases) ?? number(limits.phases);
999
+ if (phases !== 1 && phases !== 3)
1000
+ result.missing.push('limit:phases');
1001
+ else if (number(row?.phases) !== phases)
1002
+ proposedBounds.phases = phases;
1003
+ const min = requireBound('minCurrentA', 1000);
1004
+ const max = requireBound('maxCurrentA', 1000);
1005
+ if (min !== null && max !== null && min > max)
1006
+ result.missing.push('limit:minCurrentA|maxCurrentA');
1007
+ if (empty(row?.setCurrentAId))
1008
+ requireReference('setPowerWId', true, 'number', ['W']);
1009
+ else
1010
+ requireReference('setCurrentAId', true, 'number', ['A']);
1011
+ }
1012
+ else if (chargerType === 'dc') {
1013
+ const min = requireBound('minPowerW', 1000000000);
1014
+ const max = requireBound('maxPowerW', 1000000000);
1015
+ if (min !== null && max !== null && min > max)
1016
+ result.missing.push('limit:minPowerW|maxPowerW');
1017
+ requireReference('setPowerWId', true, 'number', ['W']);
1018
+ }
1019
+ if (!empty(row?.enableWriteId))
1020
+ requireReference('enableWriteId', true, 'boolean', []);
1021
+ }
1022
+ else {
1023
+ const farm = appId === 'storagefarm';
1024
+ requireReference(farm ? 'socId' : 'socObjectId', false, 'number', ['%']);
1025
+ requireReference(farm ? 'signedPowerId' : 'batteryPowerObjectId', false, 'number', ['W']);
1026
+ const destination = farm ? record(row) : record(row?.datapoints);
1027
+ const native = row?.vendorProfile === 'fenecon-openems' && row?.feneconControlMode === 'fems-grid';
1028
+ if (native)
1029
+ requireReference(farm ? 'feneconGridSetpointId' : 'feneconGridSetpointObjectId', true, 'number', ['W']);
1030
+ else if (!empty(destination[farm ? 'setSignedPowerId' : 'targetPowerObjectId']))
1031
+ requireReference(farm ? 'setSignedPowerId' : 'targetPowerObjectId', true, 'number', ['W']);
1032
+ else {
1033
+ requireReference(farm ? 'setChargePowerId' : 'targetChargePowerObjectId', true, 'number', ['W']);
1034
+ requireReference(farm ? 'setDischargePowerId' : 'targetDischargePowerObjectId', true, 'number', ['W']);
1035
+ }
1036
+ const charge = requireBound('maxChargeW', 1000000000, farm);
1037
+ const discharge = requireBound('maxDischargeW', 1000000000, farm);
1038
+ if (charge === 0 && discharge === 0)
1039
+ result.missing.push('limit:storagePower');
1040
+ const coupling = text(row?.coupling) || text(limits.coupling);
1041
+ if (!['ac', 'dc'].includes(coupling))
1042
+ result.missing.push('limit:coupling');
1043
+ else if (empty(row?.coupling))
1044
+ proposedBounds.coupling = coupling;
1045
+ if (!empty(limits.capacityKWh) && empty(row?.capacityKWh))
1046
+ requireBound('capacityKWh', 10000000);
1047
+ const otherApp = record(record(record(config.emsApps).apps)[farm ? 'storage' : 'storagefarm']);
1048
+ const otherRows = farm ? [record(config.storage)] : (Array.isArray(record(config.storageFarm).storages) ? /** @type {Json[]} */ (record(config.storageFarm).storages) : []);
1049
+ if (otherApp.enabled === true && otherRows.some(item => record(item).enabled !== false && mappedIds(item).length))
1050
+ result.missing.push('otherStorageController');
1051
+ }
1052
+ }
1053
+ if (activation.requested === true && result.missing.length) {
1054
+ result.missing = [...new Set(result.missing)];
1055
+ result.status = 'pending';
1056
+ result.code = 'ACTIVATION_PENDING';
1057
+ const original = activeOriginals.get(dev.baseId);
1058
+ if (row && original) {
1059
+ for (const key of Object.keys(row))
1060
+ delete row[key];
1061
+ Object.assign(row, original);
1062
+ result.corrections = [];
1063
+ result.mappedFields = [];
1064
+ }
1065
+ continue;
1066
+ }
1067
+ if (row && appId) {
1068
+ Object.assign(row, proposedBounds);
1069
+ row.enabled = activation.requested === true;
1070
+ if (appId === 'storage' && activation.requested === false)
1071
+ disableSingleApp();
1072
+ }
1073
+ if (activation.requested === true && appId) {
1074
+ const registry = section(config, 'emsApps');
1075
+ fill(registry, 'schemaVersion', 1, result);
1076
+ const app = section(section(registry, 'apps'), appId);
1077
+ app.installed = true;
1078
+ app.enabled = true;
1079
+ if (appId === 'charging') {
1080
+ const dp = record(config.datapoints);
1081
+ const oldEv = text(dp.consumptionEvcs);
1082
+ if (oldEv && references.get(oldEv)?.type === 'boolean') {
1083
+ dp.consumptionEvcs = '';
1084
+ result.corrections.push('EV_FLOW_BOOLEAN_OVERRIDE_REMOVED');
1085
+ }
1086
+ }
1087
+ }
1088
+ const registry = section(config, 'eosDeviceEms');
1089
+ registry.v = 1;
1090
+ const bindings = section(registry, 'bindings');
1091
+ bindings[dev.baseId] = { ...record(bindings[dev.baseId]), activationRequestId: requestId,
1092
+ activationFingerprint: requestFingerprint(dev), activationRequested: activation.requested === true,
1093
+ deviceTemplateId: dev.templateId, deviceProtocol: dev.protocol, deviceClass: dev.deviceClass };
1094
+ result.activationApplied = true;
1095
+ result.code = activation.requested === true ? 'ACTIVATION_APPLIED' : 'ACTIVATION_DISABLED';
1096
+ }
1097
+ // Switching on a shared app also switches on every enabled controller row.
1098
+ // Do not implicitly start a dormant manual row or a row whose commissioning
1099
+ // is still incomplete just because another device was added successfully.
1100
+ for (const appId of ['charging', 'storagefarm']) {
1101
+ const oldApp = record(record(record(before.emsApps).apps)[appId]);
1102
+ const app = record(record(record(config.emsApps).apps)[appId]);
1103
+ if (oldApp.installed === true && oldApp.enabled === true || app.enabled !== true)
1104
+ continue;
1105
+ const list = appId === 'charging' ? record(config.settingsConfig).evcsList : record(config.storageFarm).storages;
1106
+ if (!Array.isArray(list))
1107
+ continue;
1108
+ const controllingFields = appId === 'charging' ? ['setCurrentAId', 'setPowerWId', 'enableWriteId']
1109
+ : ['setSignedPowerId', 'setChargePowerId', 'setDischargePowerId', 'feneconGridSetpointId'];
1110
+ const relevant = devices.filter(dev => appId === 'charging' ? dev.deviceClass === 'evCharger' && (dev.ems.mode || 'auto') === 'auto' : dev.ems.mode === 'storageFarm');
1111
+ const approved = new Set(relevant.filter(dev => {
1112
+ const result = statuses.find(item => item.baseId === dev.baseId);
1113
+ return record(dev.ems.activation).requested === true && result?.activationApplied === true && result.code === 'ACTIVATION_APPLIED' &&
1114
+ text(record(record(record(before.eosDeviceEms).bindings)[dev.baseId]).activationRequestId) !== result.activationRequestId;
1115
+ }).map(dev => dev.baseId));
1116
+ const hasDormantController = list.filter(isRecord).some(row => row.enabled !== false && controllingFields.some(key => !empty(row[key])) &&
1117
+ !approved.has(text(record(row._eosDevice).baseId)));
1118
+ if (!hasDormantController)
1119
+ continue;
1120
+ app.enabled = false;
1121
+ for (const dev of relevant) {
1122
+ if (!approved.has(dev.baseId))
1123
+ continue;
1124
+ const result = /** @type {Status} */ (statuses.find(item => item.baseId === dev.baseId));
1125
+ const row = managedRow(dev);
1126
+ const original = activeOriginals.get(dev.baseId);
1127
+ if (row) {
1128
+ if (original) {
1129
+ for (const key of Object.keys(row))
1130
+ delete row[key];
1131
+ Object.assign(row, original);
1132
+ result.corrections = [];
1133
+ result.mappedFields = [];
1134
+ }
1135
+ else
1136
+ row.enabled = false;
1137
+ }
1138
+ const previous = record(record(record(before.eosDeviceEms).bindings)[dev.baseId]);
1139
+ const current = binding(dev);
1140
+ for (const key of ['activationRequestId', 'activationFingerprint', 'activationRequested', 'deviceTemplateId', 'deviceProtocol', 'deviceClass']) {
1141
+ if (previous[key] === undefined)
1142
+ delete current[key];
1143
+ else
1144
+ current[key] = previous[key];
1145
+ }
1146
+ result.activationApplied = false;
1147
+ result.status = 'pending';
1148
+ result.code = 'ACTIVATION_PENDING';
1149
+ result.missing.push('otherUncommissionedController');
1150
+ }
1151
+ }
731
1152
  /** @type {Dict} */
732
1153
  const patch = {};
733
1154
  for (const [key, value] of Object.entries(config))