iobroker.eos-admin 9.0.27 → 9.0.29

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 (180) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +10 -12
  2. package/README.md +17 -227
  3. package/adminWww/.vite/manifest.json +224 -233
  4. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13887 -13897
  5. package/adminWww/assets/{AdapterUpdateDialog-L3aqW3ID.js → AdapterUpdateDialog-DXp4Dgkx.js} +5 -5
  6. package/adminWww/assets/{Adapters-Db3kbmAj.js → Adapters-1AOp__74.js} +5 -5
  7. package/adminWww/assets/AddLink-0L0E-LsA.js +1 -0
  8. package/adminWww/assets/ColorLens-DA51K29x.js +1 -0
  9. package/adminWww/assets/ConfigManager-CGGXU4Jp.js +1 -0
  10. package/adminWww/assets/Enums-Bl4EngJF.js +92 -0
  11. package/adminWww/assets/Fields-zSEjRWOB.js +1 -0
  12. package/adminWww/assets/FileCopy-B16lEuur.js +1 -0
  13. package/adminWww/assets/Files-CnYmjEbu.js +1 -0
  14. package/adminWww/assets/{Hosts-DimiJ78g.js → Hosts-zFJyiuvd.js} +6 -6
  15. package/adminWww/assets/Instances-D10dnQY4.js +4 -0
  16. package/adminWww/assets/Intro-DxLBfGZ8.js +2 -0
  17. package/adminWww/assets/Lens-9lkeoWGk.js +1 -0
  18. package/adminWww/assets/LinearScale-Be5h2beh.js +1 -0
  19. package/adminWww/assets/{Logs-D9dqF5Ag.js → Logs-CAc6o-d_.js} +2 -2
  20. package/adminWww/assets/North-C2whbHM-.js +1 -0
  21. package/adminWww/assets/{Objects-oliB7_Se.js → Objects-I64lF3ZS.js} +4 -4
  22. package/adminWww/assets/Overview-BQ7HBH-7.js +3 -0
  23. package/adminWww/assets/PersonOff-DqBq0Fho.js +1 -0
  24. package/adminWww/assets/PlaylistAdd-O8k92YBd.js +1 -0
  25. package/adminWww/assets/State-DHLL8gAc.js +1 -0
  26. package/adminWww/assets/UsedResources-DlQ_XqoR.js +2 -0
  27. package/adminWww/assets/Users-CKHDvxG5.js +1 -0
  28. package/adminWww/assets/{bootstrap-BVw0diuj.js → bootstrap-CIDT4MeX.js} +25 -25
  29. package/adminWww/assets/date-fns-C1dqkno9.js +1 -0
  30. package/adminWww/assets/{hostInit-C_7OBoza.js → hostInit-Cvl4lPGh.js} +1 -1
  31. package/adminWww/assets/icons-material-ngdwOXrt.js +1 -0
  32. package/adminWww/assets/{index-DwDSxDMx.js → index-B9Tfj1YG.js} +2 -2
  33. package/adminWww/assets/{installSVGRenderer--VTzKbml.js → installSVGRenderer-COP6GC9p.js} +1 -1
  34. package/adminWww/assets/isSameWeek-Crh37s7U.js +1 -0
  35. package/adminWww/assets/isWithinInterval-Bo1WiDfq.js +1 -0
  36. package/adminWww/assets/locale-hLcz_Xh2.js +1 -0
  37. package/adminWww/assets/{mf-entry-bootstrap-0-6f3e4c6b.js → mf-entry-bootstrap-0-31191d2e.js} +2 -2
  38. package/adminWww/assets/sentry-DwQQLI7N.js +1 -0
  39. package/adminWww/assets/startOfWeek-DJph8SIW.js +1 -0
  40. package/adminWww/index.html +23 -23
  41. package/adminWww/mf-manifest.json +1 -1
  42. package/adminWww/mf-stats.json +1 -1
  43. package/adminWww/remoteEntry-eos-9.0.29.js +12 -0
  44. package/adminWww/remoteEntry.js +1 -1
  45. package/build/lib/eosTlsHttp.js +25 -0
  46. package/build/lib/eosTlsHttp.js.map +1 -1
  47. package/build/lib/eosTlsManager.js +317 -67
  48. package/build/lib/eosTlsManager.js.map +1 -1
  49. package/docs/DOKUMENTATION_9.0.27.md +7 -0
  50. package/docs/README.md +14 -0
  51. package/docs/UMSORTIERTE_DATEIEN.tsv +153 -0
  52. package/docs/reports/unified-9.0.14/PRUEFBERICHT.md +1 -1
  53. package/docs/reports/unified-9.0.16/PRUEFBERICHT.md +1 -1
  54. package/docs/reports/unified-9.0.17/PRUEFBERICHT.md +1 -1
  55. package/docs/reports/unified-9.0.18/PRUEFBERICHT.md +1 -1
  56. package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +1 -1
  57. package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +1 -1
  58. package/docs/reports/unified-9.0.28/PRUEFBERICHT.md +40 -0
  59. package/docs/reports/unified-9.0.28/PRUEFERGEBNISSE.json +112 -0
  60. package/docs/reports/unified-9.0.28/raw/INDEX.json +87 -0
  61. package/docs/reports/unified-9.0.28/raw/backend.log +5 -0
  62. package/docs/reports/unified-9.0.28/raw/frontend.log +151 -0
  63. package/docs/reports/unified-9.0.28/raw/installer.log +26 -0
  64. package/docs/reports/unified-9.0.28/raw/lint.log +5 -0
  65. package/docs/reports/unified-9.0.28/raw/modules.log +5 -0
  66. package/docs/reports/unified-9.0.28/raw/node22-tests-final.log +17060 -0
  67. package/docs/reports/unified-9.0.28/raw/node22-version.log +1 -0
  68. package/docs/reports/unified-9.0.28/raw/node24-tests-final.log +2845 -0
  69. package/docs/reports/unified-9.0.28/raw/node24-version.log +1 -0
  70. package/docs/reports/unified-9.0.28/raw/npm-audit-runtime.json +77 -0
  71. package/docs/reports/unified-9.0.28/raw/runtime-mirror-check.log +1 -0
  72. package/docs/reports/unified-9.0.28/raw/typecheck.log +5 -0
  73. package/docs/reports/unified-9.0.28/raw/ui-runtime.log +7 -0
  74. package/docs/reports/unified-9.0.29/PRUEFBERICHT.md +30 -0
  75. package/docs/reports/unified-9.0.29/PRUEFERGEBNISSE.json +112 -0
  76. package/docs/reports/unified-9.0.29/raw/INDEX.json +97 -0
  77. package/docs/reports/unified-9.0.29/raw/backend.log +5 -0
  78. package/docs/reports/unified-9.0.29/raw/frontend.log +151 -0
  79. package/docs/reports/unified-9.0.29/raw/installer.log +26 -0
  80. package/docs/reports/unified-9.0.29/raw/lint.log +5 -0
  81. package/docs/reports/unified-9.0.29/raw/modules.log +5 -0
  82. package/docs/reports/unified-9.0.29/raw/node22-tests-final.log +17104 -0
  83. package/docs/reports/unified-9.0.29/raw/node22-version.log +1 -0
  84. package/docs/reports/unified-9.0.29/raw/node24-tests-final.log +2852 -0
  85. package/docs/reports/unified-9.0.29/raw/node24-version.log +1 -0
  86. package/docs/reports/unified-9.0.29/raw/npm-audit-runtime.json +77 -0
  87. package/docs/reports/unified-9.0.29/raw/tls-lint.log +0 -0
  88. package/docs/reports/unified-9.0.29/raw/tls-targeted-build-node22.log +139 -0
  89. package/docs/reports/unified-9.0.29/raw/tls-targeted-node24.log +132 -0
  90. package/docs/reports/unified-9.0.29/raw/typecheck.log +5 -0
  91. package/docs/reports/unified-9.0.29/raw/ui-runtime.log +7 -0
  92. package/docs/reports/unified-9.0.4/PRUEFBERICHT.md +1 -1
  93. package/docs/reports/unified-9.0.5/PRUEFBERICHT.md +1 -1
  94. package/docs/reports/unified-9.0.6/PRUEFBERICHT.md +1 -1
  95. package/docs/reports/unified-9.0.7/PRUEFBERICHT.md +1 -1
  96. package/docs/reports/unified-9.0.8/PRUEFBERICHT.md +1 -1
  97. package/docs/reports/unified-9.0.9/PRUEFBERICHT.md +1 -1
  98. package/{START_HIER_9.0.1.md → docs/start/START_HIER_9.0.1.md} +5 -5
  99. package/{START_HIER_9.0.10.md → docs/start/START_HIER_9.0.10.md} +1 -1
  100. package/{START_HIER_9.0.11.md → docs/start/START_HIER_9.0.11.md} +1 -1
  101. package/{START_HIER_9.0.12.md → docs/start/START_HIER_9.0.12.md} +1 -1
  102. package/{START_HIER_9.0.13.md → docs/start/START_HIER_9.0.13.md} +2 -2
  103. package/{START_HIER_9.0.14.md → docs/start/START_HIER_9.0.14.md} +1 -1
  104. package/{START_HIER_9.0.15.md → docs/start/START_HIER_9.0.15.md} +2 -2
  105. package/{START_HIER_9.0.16.md → docs/start/START_HIER_9.0.16.md} +1 -1
  106. package/{START_HIER_9.0.17.md → docs/start/START_HIER_9.0.17.md} +2 -2
  107. package/{START_HIER_9.0.18.md → docs/start/START_HIER_9.0.18.md} +4 -4
  108. package/{START_HIER_9.0.19.md → docs/start/START_HIER_9.0.19.md} +2 -2
  109. package/{START_HIER_9.0.2.md → docs/start/START_HIER_9.0.2.md} +2 -2
  110. package/{START_HIER_9.0.20.md → docs/start/START_HIER_9.0.20.md} +1 -1
  111. package/{START_HIER_9.0.21.md → docs/start/START_HIER_9.0.21.md} +1 -1
  112. package/{START_HIER_9.0.22.md → docs/start/START_HIER_9.0.22.md} +4 -4
  113. package/{START_HIER_9.0.24.md → docs/start/START_HIER_9.0.24.md} +1 -1
  114. package/{START_HIER_9.0.25.md → docs/start/START_HIER_9.0.25.md} +1 -1
  115. package/{START_HIER_9.0.26.md → docs/start/START_HIER_9.0.26.md} +1 -1
  116. package/{START_HIER_9.0.27.md → docs/start/START_HIER_9.0.27.md} +3 -3
  117. package/docs/start/START_HIER_9.0.28.md +20 -0
  118. package/docs/start/START_HIER_9.0.29.md +22 -0
  119. package/{START_HIER_9.0.3.md → docs/start/START_HIER_9.0.3.md} +3 -3
  120. package/{START_HIER_9.0.4.md → docs/start/START_HIER_9.0.4.md} +3 -3
  121. package/{START_HIER_9.0.5.md → docs/start/START_HIER_9.0.5.md} +2 -2
  122. package/{START_HIER_9.0.6.md → docs/start/START_HIER_9.0.6.md} +3 -3
  123. package/{START_HIER_9.0.7.md → docs/start/START_HIER_9.0.7.md} +4 -4
  124. package/{START_HIER_9.0.8.md → docs/start/START_HIER_9.0.8.md} +3 -3
  125. package/{START_HIER_9.0.9.md → docs/start/START_HIER_9.0.9.md} +1 -1
  126. package/docs/unified/ARCHITECTURE.md +37 -1
  127. package/docs/unified/BESTANDSUEBERNAHME_9_0_7.md +1 -1
  128. package/docs/unified/INSTALL_PUBLISH.md +2 -2
  129. package/docs/unified/NEXOWATT_TLS_DE.md +18 -4
  130. package/io-package.json +12 -12
  131. package/package.json +38 -31
  132. package/public/eos-tls/index.html +96 -8
  133. package/public/eos-tls/index.js +194 -41
  134. package/release-manifests/unified/build-environment.cdx.json +6 -6
  135. package/release-manifests/unified/files.json +300 -136
  136. package/release-manifests/unified/frontend.cdx.json +6 -6
  137. package/release-manifests/unified/installer.cdx.json +6 -6
  138. package/release-manifests/unified/obsolete-admin-assets.json +214 -6
  139. package/release-manifests/unified/runtime.cdx.json +26 -26
  140. package/release-manifests/unified/validation.json +15 -15
  141. package/tools/eos-release-manifest.cjs +2 -2
  142. package/ui/io-package.json +9 -1
  143. package/ui/lib/smarthome-device-detection.js +177 -4
  144. package/ui/main.js +69 -5
  145. package/ui/package.json +1 -1
  146. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  147. package/ui/www/manifest.webmanifest +2 -2
  148. package/ui/www/smarthome-config-workspace.css +7 -0
  149. package/ui/www/smarthome-config.html +4 -4
  150. package/ui/www/smarthome-config.js +178 -163
  151. package/ui/www/smarthome-device-config.js +131 -6
  152. package/ui/www/smarthome-setup.js +252 -59
  153. package/adminWww/assets/AccessTime-CuR73YC3.js +0 -1
  154. package/adminWww/assets/ConfigManager-D33l1qlC.js +0 -1
  155. package/adminWww/assets/Enums-HlPEZ4AF.js +0 -92
  156. package/adminWww/assets/Fields-BWBgNDOp.js +0 -1
  157. package/adminWww/assets/Files-BYaJp3AG.js +0 -1
  158. package/adminWww/assets/Instances-C5kAjcqw.js +0 -4
  159. package/adminWww/assets/Intro-B8keS0Ph.js +0 -2
  160. package/adminWww/assets/KeyboardArrowRight-ifvmV1ZL.js +0 -1
  161. package/adminWww/assets/MoreHoriz-CS7nODK8.js +0 -1
  162. package/adminWww/assets/Overview-BmjcCFve.js +0 -3
  163. package/adminWww/assets/Pageview-wzrLQZ-j.js +0 -1
  164. package/adminWww/assets/PersonOff-YtHcY0sV.js +0 -1
  165. package/adminWww/assets/Star-D8VNXawT.js +0 -1
  166. package/adminWww/assets/State-DQz1O54D.js +0 -1
  167. package/adminWww/assets/UsedResources-DOAuH0-U.js +0 -2
  168. package/adminWww/assets/Users-Dv1iXiRk.js +0 -1
  169. package/adminWww/assets/ViewCompact-D7bHgn99.js +0 -1
  170. package/adminWww/assets/ViewSidebar-CjClbCI5.js +0 -1
  171. package/adminWww/assets/WifiTethering-DJ9VO12W.js +0 -1
  172. package/adminWww/assets/date-fns-BtR4dG_j.js +0 -1
  173. package/adminWww/assets/en-US-BjjaEI6N.js +0 -1
  174. package/adminWww/assets/icons-material-Apny8Mbp.js +0 -1
  175. package/adminWww/assets/isSameWeek-WMSJR5Qs.js +0 -1
  176. package/adminWww/assets/locale-DN6Bdkdt.js +0 -1
  177. package/adminWww/assets/sentry-CPzCHrwe.js +0 -1
  178. package/adminWww/assets/setYear-DDSuW45e.js +0 -1
  179. package/adminWww/remoteEntry-eos-9.0.27.js +0 -12
  180. /package/{START_HIER_9.0.23.md → docs/start/START_HIER_9.0.23.md} +0 -0
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:b8e01de1-8d0e-48aa-949e-fcfb91340d97",
5
+ "serialNumber": "urn:uuid:984fca16-c5d6-4dd6-8ac9-241b085d8165",
6
6
  "version": 2,
7
7
  "metadata": {
8
- "timestamp": "2026-11-26T05:52:27.364Z",
8
+ "timestamp": "2026-11-26T09:06:38.751Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "pre-build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "iobroker.eos-admin@9.0.27",
22
+ "bom-ref": "iobroker.eos-admin@9.0.29",
23
23
  "type": "library",
24
24
  "name": "iobroker.eos-admin",
25
- "version": "9.0.27",
25
+ "version": "9.0.29",
26
26
  "scope": "required",
27
27
  "author": "NexoWatt",
28
28
  "description": "NexoWatt EOS: licensed local energy management, dashboard and ioBroker system administration in one adapter.",
29
- "purl": "pkg:npm/iobroker.eos-admin@9.0.27",
29
+ "purl": "pkg:npm/iobroker.eos-admin@9.0.29",
30
30
  "properties": [],
31
31
  "externalReferences": []
32
32
  }
@@ -11922,10 +11922,10 @@
11922
11922
  ]
11923
11923
  },
11924
11924
  {
11925
- "bom-ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.27",
11925
+ "bom-ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.29",
11926
11926
  "type": "library",
11927
11927
  "name": "@iobroker/webserver",
11928
- "version": "3.4.0+nexowatt.9.0.27",
11928
+ "version": "3.4.0+nexowatt.9.0.29",
11929
11929
  "scope": "required",
11930
11930
  "description": "Locally vendored @iobroker/webserver 3.4.0 with two reviewed certificate-material logging replacements; not an unmodified registry release.",
11931
11931
  "licenses": [
@@ -12002,9 +12002,9 @@
12002
12002
  },
12003
12003
  {
12004
12004
  "type": "library",
12005
- "bom-ref": "nexowatt:integrated:devices@9.0.27",
12005
+ "bom-ref": "nexowatt:integrated:devices@9.0.29",
12006
12006
  "name": "NexoWatt EOS integrated devices",
12007
- "version": "9.0.27",
12007
+ "version": "9.0.29",
12008
12008
  "scope": "required",
12009
12009
  "licenses": [
12010
12010
  {
@@ -12046,9 +12046,9 @@
12046
12046
  },
12047
12047
  {
12048
12048
  "type": "library",
12049
- "bom-ref": "nexowatt:integrated:eebus@9.0.27",
12049
+ "bom-ref": "nexowatt:integrated:eebus@9.0.29",
12050
12050
  "name": "NexoWatt EOS integrated eebus",
12051
- "version": "9.0.27",
12051
+ "version": "9.0.29",
12052
12052
  "scope": "required",
12053
12053
  "licenses": [
12054
12054
  {
@@ -12090,9 +12090,9 @@
12090
12090
  },
12091
12091
  {
12092
12092
  "type": "library",
12093
- "bom-ref": "nexowatt:integrated:backup@9.0.27",
12093
+ "bom-ref": "nexowatt:integrated:backup@9.0.29",
12094
12094
  "name": "NexoWatt EOS integrated backup",
12095
- "version": "9.0.27",
12095
+ "version": "9.0.29",
12096
12096
  "scope": "required",
12097
12097
  "licenses": [
12098
12098
  {
@@ -12141,9 +12141,9 @@
12141
12141
  },
12142
12142
  {
12143
12143
  "type": "library",
12144
- "bom-ref": "nexowatt:integrated:ocpp@9.0.27",
12144
+ "bom-ref": "nexowatt:integrated:ocpp@9.0.29",
12145
12145
  "name": "NexoWatt EOS integrated ocpp",
12146
- "version": "9.0.27",
12146
+ "version": "9.0.29",
12147
12147
  "scope": "required",
12148
12148
  "licenses": [
12149
12149
  {
@@ -12193,7 +12193,7 @@
12193
12193
  ],
12194
12194
  "dependencies": [
12195
12195
  {
12196
- "ref": "iobroker.eos-admin@9.0.27",
12196
+ "ref": "iobroker.eos-admin@9.0.29",
12197
12197
  "dependsOn": [
12198
12198
  "@iobroker/adapter-core@3.4.3",
12199
12199
  "@iobroker/plugin-docker@1.2.1",
@@ -12230,11 +12230,11 @@
12230
12230
  "tar-fs@3.1.3",
12231
12231
  "ws@8.22.0",
12232
12232
  "ocpp-rpc@2.2.1",
12233
- "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.27",
12234
- "nexowatt:integrated:devices@9.0.27",
12235
- "nexowatt:integrated:eebus@9.0.27",
12236
- "nexowatt:integrated:backup@9.0.27",
12237
- "nexowatt:integrated:ocpp@9.0.27"
12233
+ "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.29",
12234
+ "nexowatt:integrated:devices@9.0.29",
12235
+ "nexowatt:integrated:eebus@9.0.29",
12236
+ "nexowatt:integrated:backup@9.0.29",
12237
+ "nexowatt:integrated:ocpp@9.0.29"
12238
12238
  ]
12239
12239
  },
12240
12240
  {
@@ -14815,7 +14815,7 @@
14815
14815
  "dependsOn": []
14816
14816
  },
14817
14817
  {
14818
- "ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.27",
14818
+ "ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.29",
14819
14819
  "dependsOn": [
14820
14820
  "@node-oauth/oauth2-server@5.3.1",
14821
14821
  "jsonwebtoken@9.0.3",
@@ -14823,7 +14823,7 @@
14823
14823
  ]
14824
14824
  },
14825
14825
  {
14826
- "ref": "nexowatt:integrated:devices@9.0.27",
14826
+ "ref": "nexowatt:integrated:devices@9.0.29",
14827
14827
  "dependsOn": [
14828
14828
  "axios@1.20.0",
14829
14829
  "modbus-serial@8.0.25",
@@ -14832,14 +14832,14 @@
14832
14832
  ]
14833
14833
  },
14834
14834
  {
14835
- "ref": "nexowatt:integrated:eebus@9.0.27",
14835
+ "ref": "nexowatt:integrated:eebus@9.0.29",
14836
14836
  "dependsOn": [
14837
14837
  "ws@8.22.0",
14838
14838
  "bonjour-service@1.4.4"
14839
14839
  ]
14840
14840
  },
14841
14841
  {
14842
- "ref": "nexowatt:integrated:backup@9.0.27",
14842
+ "ref": "nexowatt:integrated:backup@9.0.29",
14843
14843
  "dependsOn": [
14844
14844
  "tar-fs@3.1.3",
14845
14845
  "cron-parser@5.10.6",
@@ -14851,7 +14851,7 @@
14851
14851
  ]
14852
14852
  },
14853
14853
  {
14854
- "ref": "nexowatt:integrated:ocpp@9.0.27",
14854
+ "ref": "nexowatt:integrated:ocpp@9.0.29",
14855
14855
  "dependsOn": [
14856
14856
  "ocpp-rpc@2.2.1"
14857
14857
  ]
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "9.0.27",
3
+ "version": "9.0.29",
4
4
  "snapshot": {
5
5
  "algorithm": "SHA-256",
6
- "files": 5850,
7
- "sha256": "66e169874d199bf6316f32823a98b1bdd506b88681675ccbe3db5b756c8b1894"
6
+ "files": 6014,
7
+ "sha256": "274e4a921238a4302ff86e854dd1d1d8f8c5340e4c524bb0cd6076c8d234c1df"
8
8
  },
9
9
  "evidence": {
10
10
  "index": {
11
- "path": "docs/reports/unified-9.0.27/raw/INDEX.json",
12
- "sha256": "8d4d471d336a606bc816ccb2061a4618d3e9494cf24a880dc9107689902715c5"
11
+ "path": "docs/reports/unified-9.0.29/raw/INDEX.json",
12
+ "sha256": "74acc6bde8a1bb44d8d1f6945d75fcfbe322aba9d7fbb978fc378c3dcbd45e50"
13
13
  },
14
14
  "runs": [
15
15
  {
@@ -17,18 +17,18 @@
17
17
  "nodeVersion": "v22.23.4",
18
18
  "command": "npm test",
19
19
  "result": {
20
- "tests": 2709,
21
- "pass": 2707,
20
+ "tests": 2730,
21
+ "pass": 2728,
22
22
  "fail": 0,
23
23
  "skipped": 2,
24
24
  "cancelled": 0
25
25
  },
26
26
  "log": {
27
- "path": "docs/reports/unified-9.0.27/raw/node22-tests-final.log",
28
- "sha256": "420a3548d3c14b1c10eef8f7c654b4d6119dcb34e8de7a3e7383fdf92c2330e0"
27
+ "path": "docs/reports/unified-9.0.29/raw/node22-tests-final.log",
28
+ "sha256": "dac6cb909e9892d582bc04f424f3de64b888b53803c90ab760d3fd374626ae08"
29
29
  },
30
30
  "runtime": {
31
- "path": "docs/reports/unified-9.0.27/raw/node22-version.log",
31
+ "path": "docs/reports/unified-9.0.29/raw/node22-version.log",
32
32
  "sha256": "2266957ed9a639bd7264d714bfa798a961510bf2e50695c668ab8fc0c3f4e906"
33
33
  }
34
34
  },
@@ -37,18 +37,18 @@
37
37
  "nodeVersion": "v24.22.3",
38
38
  "command": "npm test",
39
39
  "result": {
40
- "tests": 2709,
41
- "pass": 2707,
40
+ "tests": 2730,
41
+ "pass": 2728,
42
42
  "fail": 0,
43
43
  "skipped": 2,
44
44
  "cancelled": 0
45
45
  },
46
46
  "log": {
47
- "path": "docs/reports/unified-9.0.27/raw/node24-tests-final.log",
48
- "sha256": "1f6f5d9b29cb477d4167c1aeeac833911315ec992a776e896648be283483317b"
47
+ "path": "docs/reports/unified-9.0.29/raw/node24-tests-final.log",
48
+ "sha256": "73fe9d83319fa998db21d93518bfdd83a54e8e3a8a7c889c23b6d3fccb028c40"
49
49
  },
50
50
  "runtime": {
51
- "path": "docs/reports/unified-9.0.27/raw/node24-version.log",
51
+ "path": "docs/reports/unified-9.0.29/raw/node24-version.log",
52
52
  "sha256": "4409d3bfa08b82f385bd424eeda65fc63b756129f0e89e82df77f1fecafccc14"
53
53
  }
54
54
  }
@@ -5,8 +5,8 @@ const path = require('node:path');
5
5
  const crypto = require('node:crypto');
6
6
  const root = path.resolve(__dirname, '..');
7
7
  const manifestPath = path.join(root, 'release-manifests/unified/files.json');
8
- const roots = ['START_HIER_9.0.27.md', 'docs/reports/unified-9.0.27', 'nexowatt-eos-admin-repository-entry-v9-0-27.json', 'tsconfig.eos-repository-tools.json', 'tools/nexowatt-generate-eos-admin-repo-entry.cjs', 'tools/nexowatt-patch-repo.cjs', 'tools/nexowatt-repair-eos-admin-update.cjs', 'docs/NEXOWATT_EOS_UI_V28_UPDATE_FIX_DE.md', 'tsconfig.eos-backup-admin.json', 'eslint.backup-admin.config.mjs', 'tools/eos-lifecycle-benchmark.cjs', 'START_HIER_9.0.26.md', 'docs/reports/unified-9.0.26', 'nexowatt-eos-admin-repository-entry-v9-0-26.json', 'tsconfig.eos-runtime-control.json', 'START_HIER_9.0.25.md', 'docs/reports/unified-9.0.25', 'nexowatt-eos-admin-repository-entry-v9-0-25.json', 'reports/security/KIOSK_BACKEND_924.md', 'tsconfig.eos-ocpp-admin.json', 'eslint.ocpp-admin.config.mjs', 'START_HIER_9.0.24.md', 'docs/reports/unified-9.0.24', 'nexowatt-eos-admin-repository-entry-v9-0-24.json', 'docs/MODULE_PROCESS_RUNTIME.md', 'tsconfig.eos-module-process.json', 'tsconfig.ui-process.json', 'START_HIER_9.0.23.md', 'docs/reports/unified-9.0.23', 'nexowatt-eos-admin-repository-entry-v9-0-23.json', 'ui/tsconfig.ocpp-limit-feedback.json', 'ui/eslint.ocpp-limit-feedback.config.mjs', 'ui/tsconfig.ocpp-auto-discovery.json', 'ui/eslint.ocpp-auto-discovery.config.mjs', 'tsconfig.eos-runtime-health.json', 'eslint.runtime-health.config.mjs', 'ui/tsconfig.flow-measurement.json', 'ui/eslint.flow-measurement.config.mjs', 'ui/tsconfig.postgres-history.json', 'ui/eslint.postgres-history.config.mjs', 'ui/tsconfig.ems-control-values.json', 'ui/eslint.ems-control-values.config.mjs', 'docs/QA-9.0.22-INDEPENDENT.md', 'docs/9.0.22', 'nexowatt-eos-admin-repository-entry-v9-0-22.json', 'package.json', 'package-lock.json', 'io-package.json', '.npmrc', '.gitignore', '.gitattributes', 'LICENSE', 'LICENSE-NEXOWATT.md',
9
- 'START_HIER_9.0.1.md', 'START_HIER_9.0.2.md', 'START_HIER_9.0.3.md', 'START_HIER_9.0.4.md', 'START_HIER_9.0.5.md', 'START_HIER_9.0.6.md', 'START_HIER_9.0.7.md', 'START_HIER_9.0.8.md', 'START_HIER_9.0.9.md', 'START_HIER_9.0.10.md', 'START_HIER_9.0.11.md', 'START_HIER_9.0.12.md', 'START_HIER_9.0.13.md', 'START_HIER_9.0.14.md', 'START_HIER_9.0.15.md', 'START_HIER_9.0.16.md', 'START_HIER_9.0.17.md', 'START_HIER_9.0.18.md', 'START_HIER_9.0.19.md', 'START_HIER_9.0.20.md','START_HIER_9.0.21.md', 'START_HIER_9.0.22.md', 'THIRD-PARTY-NOTICES.md', 'THIRD_PARTY_NOTICES.md', 'NEXOWATT_PROPRIETARY_LICENSE.md', 'README.md', 'NEXOWATT_EOS_BUILD_INFO.json',
8
+ const roots = ['docs/start/START_HIER_9.0.29.md', 'docs/reports/unified-9.0.29', 'nexowatt-eos-admin-repository-entry-v9-0-29.json', 'docs/changelog-archive.json', 'docs/start/START_HIER_9.0.28.md', 'docs/reports/unified-9.0.28', 'nexowatt-eos-admin-repository-entry-v9-0-28.json', 'docs/README.md', 'docs/DOKUMENTATION_9.0.27.md', 'docs/UMSORTIERTE_DATEIEN.tsv', 'docs/archive', 'docs/start', 'docs/start/START_HIER_9.0.27.md', 'docs/reports/unified-9.0.27', 'nexowatt-eos-admin-repository-entry-v9-0-27.json', 'tsconfig.eos-repository-tools.json', 'tools/nexowatt-generate-eos-admin-repo-entry.cjs', 'tools/nexowatt-patch-repo.cjs', 'tools/nexowatt-repair-eos-admin-update.cjs', 'docs/NEXOWATT_EOS_UI_V28_UPDATE_FIX_DE.md', 'tsconfig.eos-backup-admin.json', 'eslint.backup-admin.config.mjs', 'tools/eos-lifecycle-benchmark.cjs', 'docs/start/START_HIER_9.0.26.md', 'docs/reports/unified-9.0.26', 'nexowatt-eos-admin-repository-entry-v9-0-26.json', 'tsconfig.eos-runtime-control.json', 'docs/start/START_HIER_9.0.25.md', 'docs/reports/unified-9.0.25', 'nexowatt-eos-admin-repository-entry-v9-0-25.json', 'reports/security/KIOSK_BACKEND_924.md', 'tsconfig.eos-ocpp-admin.json', 'eslint.ocpp-admin.config.mjs', 'docs/start/START_HIER_9.0.24.md', 'docs/reports/unified-9.0.24', 'nexowatt-eos-admin-repository-entry-v9-0-24.json', 'docs/MODULE_PROCESS_RUNTIME.md', 'tsconfig.eos-module-process.json', 'tsconfig.ui-process.json', 'docs/start/START_HIER_9.0.23.md', 'docs/reports/unified-9.0.23', 'nexowatt-eos-admin-repository-entry-v9-0-23.json', 'ui/tsconfig.ocpp-limit-feedback.json', 'ui/eslint.ocpp-limit-feedback.config.mjs', 'ui/tsconfig.ocpp-auto-discovery.json', 'ui/eslint.ocpp-auto-discovery.config.mjs', 'tsconfig.eos-runtime-health.json', 'eslint.runtime-health.config.mjs', 'ui/tsconfig.flow-measurement.json', 'ui/eslint.flow-measurement.config.mjs', 'ui/tsconfig.postgres-history.json', 'ui/eslint.postgres-history.config.mjs', 'ui/tsconfig.ems-control-values.json', 'ui/eslint.ems-control-values.config.mjs', 'docs/QA-9.0.22-INDEPENDENT.md', 'docs/9.0.22', 'nexowatt-eos-admin-repository-entry-v9-0-22.json', 'package.json', 'package-lock.json', 'io-package.json', '.npmrc', '.gitignore', '.gitattributes', 'LICENSE', 'LICENSE-NEXOWATT.md',
9
+ 'docs/start/START_HIER_9.0.1.md', 'docs/start/START_HIER_9.0.2.md', 'docs/start/START_HIER_9.0.3.md', 'docs/start/START_HIER_9.0.4.md', 'docs/start/START_HIER_9.0.5.md', 'docs/start/START_HIER_9.0.6.md', 'docs/start/START_HIER_9.0.7.md', 'docs/start/START_HIER_9.0.8.md', 'docs/start/START_HIER_9.0.9.md', 'docs/start/START_HIER_9.0.10.md', 'docs/start/START_HIER_9.0.11.md', 'docs/start/START_HIER_9.0.12.md', 'docs/start/START_HIER_9.0.13.md', 'docs/start/START_HIER_9.0.14.md', 'docs/start/START_HIER_9.0.15.md', 'docs/start/START_HIER_9.0.16.md', 'docs/start/START_HIER_9.0.17.md', 'docs/start/START_HIER_9.0.18.md', 'docs/start/START_HIER_9.0.19.md', 'docs/start/START_HIER_9.0.20.md','docs/start/START_HIER_9.0.21.md', 'docs/start/START_HIER_9.0.22.md', 'THIRD-PARTY-NOTICES.md', 'THIRD_PARTY_NOTICES.md', 'NEXOWATT_PROPRIETARY_LICENSE.md', 'README.md', 'NEXOWATT_EOS_BUILD_INFO.json',
10
10
  'tasks.mts', 'tsconfig.eos-customer-updates.json', 'ui/tsconfig.eos-updates-ui.json', 'ui/eslint.eos-updates-ui.config.mjs', 'ui/eslint.influx-history-runtime.config.mjs', 'ui/eslint.history-setup-ui.config.mjs', 'ui/tsconfig.influx-history-runtime.json', 'ui/eslint.influx-security.config.mjs', 'ui/tsconfig.influx-security.json', 'ui/eslint.influx-direct.config.mjs', 'ui/tsconfig.influx-direct.json', 'tsconfig.eos-device-ems.json', 'ui/tsconfig.customer-tariff.json', 'ui/tsconfig.customer-tariff-ui.json', 'ui/eslint.customer-tariff.config.mjs', 'ui/eslint.customer-tariff-ui.config.mjs', 'ui/tsconfig.installer-lifecycle.json', 'ui/tsconfig.live-display-ui.json', 'ui/eslint.live-display-ui.config.mjs', 'ui/tsconfig.tariff-display-ui.json', 'ui/eslint.tariff-display-ui.config.mjs', 'ui/tsconfig.storagefarm-dispatch-ui.json', 'ui/eslint.storagefarm-dispatch-ui.config.mjs', 'ui/tsconfig.storagefarm-summary-ui.json', 'ui/eslint.storagefarm-summary-ui.config.mjs', 'ui/tsconfig.power-measurements.json', 'ui/eslint.power-measurements.config.mjs', 'ui/eslint.installer-lifecycle.config.mjs', 'tsconfig.build.json', 'eslint.config.mjs', 'eslint.unified.config.mjs', '.github/workflows/test-and-release.yml',
11
11
  'AGENTS.md', 'modules', 'test', 'src-admin/test', 'src', 'build', 'admin', 'adminWww', 'public', 'packages/eos-license-client', 'deploy',
12
12
  'ui/release-manifests', 'ui/main.js', 'ui/lib', 'ui/ems', 'ui/backend', 'ui/build-ts', 'ui/www', 'ui/admin',
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "nexowatt-ui",
4
- "version": "9.0.27",
4
+ "version": "9.0.29",
5
5
  "news": {
6
+ "9.0.29": {
7
+ "de": "HTTPS-Gerätezertifikat und öffentliches Stammzertifikat in der EOS-Administration lokal erstellen. Beide PEM-Dateien und der SHA-256-Fingerabdruck stehen direkt bereit. Das erzeugte Zertifikat wird erst durch eine bestätigte Übernahme verwendet.",
8
+ "en": "Generate an HTTPS device certificate and public root certificate in EOS Administration. Both PEM downloads and the SHA-256 fingerprint are available immediately, with a separate activation step."
9
+ },
10
+ "9.0.28": {
11
+ "de": "SmartHome-Geräteerkennung mit Funktionsordnern, deutschen und englischen Suchbegriffen sowie passender Datenpunktauswahl für Befehle und Rückmeldungen.",
12
+ "en": "SmartHome discovery with function folders, German and English search terms, and targeted datapoint selection for commands and feedback."
13
+ },
6
14
  "9.0.24": {
7
15
  "en": "Integrated OCPP, EEBUS and Devices in independent processes within one EOS adapter; dashboard kiosk with protected Admin login; verified cleanup of obsolete npm publish assets.",
8
16
  "de": "OCPP, EEBUS und Devices in eigenen Prozessen innerhalb eines EOS-Adapters; Dashboard-Kioskmodus mit geschütztem Admin-Zugang; geprüfte Bereinigung alter Dateien vor npm-Publish."
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/lib/smarthome-device-detection.ts
10
- * Quell-Hash: sha256:7e40e5d6393e3f570dbe4f7ca457ea3bd9b77d0aceff209b19fe206fa36d2463
10
+ * Quell-Hash: sha256:92d53f29ccafb2605558d752bc440d388a19175907159a9d45c72c5557d9a6f4
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -25,6 +25,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.DetectionScan = exports.DetectionError = exports.DETECTION_LIMITS = void 0;
26
26
  exports.detectionNow = detectionNow;
27
27
  exports.detectionSnapshot = detectionSnapshot;
28
+ exports.collectKeywordDetectionCandidates = collectKeywordDetectionCandidates;
29
+ exports.keywordReviewSuggestion = keywordReviewSuggestion;
28
30
  exports.cleanControls = cleanControls;
29
31
  exports.getControlIdentity = getControlIdentity;
30
32
  exports.extendSuggestion = extendSuggestion;
@@ -127,6 +129,29 @@ const LEGACY_TYPES = new Set(['switch', 'dimmer', 'color', 'blind', 'rtr', 'scen
127
129
  const SAFE_KEY = /^[A-Z][A-Z0-9_]{0,63}$/;
128
130
  const DIAGNOSTIC_KEYS = new Set(['BATTERY', 'RSSI', 'LOWBAT', 'UNREACH', 'UNREACH_STICKY', 'MAINTAIN', 'ERROR', 'CONNECTED', 'WORKING', 'DIRECTION', 'DIRECTION_ENUM']);
129
131
  const PROFILE_FIELDS = new Map((0, smarthome_device_controls_1.getControlProfiles)().map(profile => [profile.id, profile.fields.map(row)]));
132
+ const FUNCTION_PROFILES = Object.freeze({
133
+ switch: 'switch', socket: 'switch', light: 'switch', switchPower: 'switch',
134
+ dimmer: 'dimmer', rgb: 'dimmer', rgbSingle: 'dimmer', rgbwSingle: 'dimmer', hue: 'dimmer', cie: 'dimmer', ct: 'dimmer',
135
+ blind: 'blind', blinds: 'blind', blindButtons: 'blind', gate: 'blind',
136
+ temperature: 'climate', humidity: 'climate', thermostat: 'climate', airCondition: 'climate', airQuality: 'climate',
137
+ info: 'status', contact: 'status', door: 'status', window: 'status', windowTilt: 'status', motion: 'status',
138
+ illuminance: 'status', pressure: 'status', flow: 'status', fillLevel: 'status', electricity: 'status',
139
+ buttonSensor: 'status', fireAlarm: 'status', coAlarm: 'status', floodAlarm: 'status', warning: 'status',
140
+ });
141
+ // Use complete tokens and known compounds. Generic words such as LEVEL, SET,
142
+ // Position, Status or Power on their own cannot prove a device family.
143
+ const SWITCH_WORDS = /\b(?:schalt(?:en|er|befehl|status|zustand|r(?:u|ue)ckmeldung)?|switch(?:ing)?|toggle|on off|ein aus)\b/u;
144
+ const DIMMER_WORDS = /\b(?:dim|dimm(?:er|en|ing|wert|status|r(?:u|ue)ckmeldung)?|brightness|helligkeit(?:swert|sr(?:u|ue)ckmeldung|sstatus)?)\b/u;
145
+ const BLIND_WORDS = /\b(?:jalousie(?:n|position|status|steuerung)?|rolll?ad(?:en|enposition|enstatus)|rolllaeden|raffstoren?|rollo(?:s|position|status)?|shutters?|roller blinds?|blinds?|awnings?|markisen?|behang(?:hohe|position)|lamellen?|slats?)\b/u;
146
+ const CLIMATE_WORDS = /\b(?:temperatur(?:en|wert)?|temperature[s]?|(?:ist|soll|raum|aussen|innen)temperatur|thermometer|thermostat|luftfeuchte|luftfeuchtigkeit|humidity)\b/u;
147
+ const HUMIDITY_WORDS = /\b(?:luftfeuchte|luftfeuchtigkeit|humidity)\b/u;
148
+ const CONTACT_WORDS = /\b(?:fensterkontakt|turkontakt|tuerkontakt|window contact|door contact|reed contact)\b/u;
149
+ const STATUS_WORDS = /\b(?:status|zustand|r(?:u|ue)ckmeldung|feedback|actual|ist|istwert|istposition|isttemperatur|position status|schaltstatus|schaltzustand|dimmstatus|(?:schalt|dimm|helligkeits)r(?:u|ue)ckmeldung|jalousiestatus|rollladenstatus|battery|batterie|erreichbarkeit|unreachable)\b/u;
150
+ const COMMAND_WORDS = /\b(?:set|setpoint|soll|sollwert|solltemperatur|sollposition|target|command|befehl|fahrbefehl|schaltbefehl|write|stopp?|open|close|auf|ab)\b/u;
151
+ const POSITION_WORDS = /\b(?:position|istposition|positioning|stellung|level|behanghohe|behangposition|jalousieposition|rollladenposition|rolloposition)\b/u;
152
+ const GENERIC_ROLES = new Set(['', 'state', 'level', 'value']);
153
+ const STANDARD_PERCENT = '%';
154
+ const TEMPERATURE_UNITS = new Set(['°c', '°f', 'k', '℃', '℉']);
130
155
  function row(value) { return value !== null && typeof value === 'object' && !Array.isArray(value) ? value : {}; }
131
156
  function text(value) { return typeof value === 'string' ? value.trim() : ''; }
132
157
  function list(value) { return Array.isArray(value) ? value : []; }
@@ -146,6 +171,146 @@ function fieldDefinition(fields, key) {
146
171
  return fields.find(item => item.key === key || (typeof item.key === 'string' && item.key.includes('%d')
147
172
  && new RegExp('^' + item.key.replace(/[.*+?^${}()|[\]\\]/g, '\\$&').replace('%d', '[0-9]{1,3}') + '$').test(key)));
148
173
  }
174
+ /** Localized ioBroker names can be objects. Keep both languages so the same
175
+ * channel is detectable regardless of the browser or controller language. */
176
+ function keywordText(value) {
177
+ return value.slice(0, 512).normalize('NFKD').replace(/\p{M}/gu, '').replace(/ß/gu, 'ss')
178
+ .replace(/([a-z\d])([A-Z])/gu, '$1 $2').toLowerCase().replace(/[^a-z0-9]+/gu, ' ').trim();
179
+ }
180
+ function keywordName(value) {
181
+ const localized = row(value);
182
+ return [text(value), text(localized.de), text(localized.en)].map(keywordText).filter(Boolean).join(' ');
183
+ }
184
+ function keywordLabel(name, id) {
185
+ const localized = row(name);
186
+ return (text(name) || text(localized.de) || text(localized.en) || id).slice(0, 160);
187
+ }
188
+ /** Names and direct channel context narrow generic metadata. They never grant
189
+ * a command mapping or join separately addressed states into one device. */
190
+ function keywordMatch(common, id, objects) {
191
+ const role = text(common.role).toLowerCase();
192
+ if (!GENERIC_ROLES.has(role) || (common.read !== true && common.write !== true))
193
+ return undefined;
194
+ const label = `${keywordName(common.name)} ${keywordText(id.slice(id.lastIndexOf('.') + 1))}`;
195
+ const home = row(objects[parent(id)]);
196
+ const context = home.type === 'channel' || home.type === 'device' ? keywordName(row(home.common).name) : '';
197
+ const status = STATUS_WORDS.test(label);
198
+ const command = COMMAND_WORDS.test(label);
199
+ const bool = common.type === 'boolean';
200
+ const unit = text(common.unit).toLowerCase();
201
+ const percent = common.type === 'number' && unit === STANDARD_PERCENT;
202
+ const temperature = common.type === 'number' && TEMPERATURE_UNITS.has(unit);
203
+ const families = [];
204
+ if (bool && SWITCH_WORDS.test(label))
205
+ families.push('switch');
206
+ if (percent && DIMMER_WORDS.test(label))
207
+ families.push('dimmer');
208
+ const knownBlind = BLIND_WORDS.test(`${label} ${context}`);
209
+ const blindPosition = percent && knownBlind && (BLIND_WORDS.test(label) || POSITION_WORDS.test(label));
210
+ if (blindPosition || (bool && knownBlind && (command || status)))
211
+ families.push('blind');
212
+ const humidity = percent && HUMIDITY_WORDS.test(label);
213
+ if (humidity || (temperature && CLIMATE_WORDS.test(label)))
214
+ families.push('climate');
215
+ const contact = bool && CONTACT_WORDS.test(label);
216
+ if (contact || (status && (bool || families.length > 0)))
217
+ families.push('status');
218
+ if (!families.length)
219
+ return undefined;
220
+ // An exact unit and explicit read-only direction make direct measurements
221
+ // useful independently from any actuator. Setpoints, guessed positions and
222
+ // unknown write flags remain candidates for manual review.
223
+ const competing = families.filter(family => family !== 'status').length > 1;
224
+ if (competing || command || common.write !== false || common.read !== true)
225
+ return { families, review: true };
226
+ if (families.includes('climate'))
227
+ return { families, review: false, readProfile: humidity ? 'humidity' : 'temperature' };
228
+ if (families.includes('dimmer') && status && common.min === 0 && common.max === 100) {
229
+ return { families, review: false, readProfile: 'dimmer' };
230
+ }
231
+ if (families.length === 1 && families[0] === 'status' && !contact)
232
+ return { families, review: false, readProfile: 'info' };
233
+ return { families, review: true };
234
+ }
235
+ /** Bound extra work by the original validated snapshot. Direct channel leaves
236
+ * and flat state roots are inspected individually after structured detection. */
237
+ async function* collectKeywordDetectionCandidates(objects, keys, allowedRoots, coveredStateIds, scan) {
238
+ scan.check();
239
+ let inspected = 0;
240
+ for (const stateId of keys) {
241
+ if (++inspected % 250 === 0) {
242
+ await new Promise(resolve => setImmediate(resolve));
243
+ scan.check();
244
+ }
245
+ if (coveredStateIds.has(stateId) || /^(?:alias|system|admin)\./iu.test(stateId)
246
+ || (!allowedRoots.has(stateId) && !allowedRoots.has(parent(stateId))))
247
+ continue;
248
+ const common = stateObject(objects, stateId);
249
+ if (!common || common.alias || common.password === true || common.encrypted === true)
250
+ continue;
251
+ const match = keywordMatch(common, stateId, objects);
252
+ if (!match)
253
+ continue;
254
+ const profile = match.readProfile ?? 'info';
255
+ // The existing profile validator also checks forbidden ID paths. For a
256
+ // review item this is validation only; there is no stored binding.
257
+ try {
258
+ (0, smarthome_device_controls_1.normalizeDeviceControls)({ profile, fields: [{ key: 'ACTUAL', readId: stateId }] });
259
+ }
260
+ catch {
261
+ continue;
262
+ }
263
+ scan.check();
264
+ const label = keywordLabel(common.name, stateId);
265
+ const state = { id: stateId, label, key: 'ACTUAL', type: text(common.type), role: text(common.role).slice(0, 96),
266
+ unit: text(common.unit).slice(0, 32), read: common.read === true, write: common.write === true };
267
+ yield { sourceId: stateId, stateId, label, state, functionCategories: match.families,
268
+ ...(match.readProfile ? { control: { type: match.readProfile, states: [{ name: 'ACTUAL', id: stateId, required: true }] } } : {}) };
269
+ }
270
+ }
271
+ function keywordReviewSuggestion(candidate) {
272
+ return { id: `td_review_${digest(candidate.stateId).slice(0, 24)}`, sourceId: candidate.sourceId, sourceType: 'state',
273
+ displayName: candidate.label, sourceName: candidate.label, importable: false, discoveryReview: true,
274
+ functionCategories: [...new Set([...candidate.functionCategories, 'review'])], matchCount: 0,
275
+ states: [candidate.state], notes: ['Datenpunkt anhand von Name und Eigenschaften gefunden. Funktion und Rückmeldung bitte manuell zuordnen.'] };
276
+ }
277
+ function suggestionCategories(profile, states, objects, importable) {
278
+ const family = Object.hasOwn(FUNCTION_PROFILES, profile) ? FUNCTION_PROFILES[profile] : undefined;
279
+ const categories = new Set([family ?? 'other']);
280
+ let discoveryReview = !importable;
281
+ let conflictingControl = false;
282
+ for (const state of states) {
283
+ const key = text(state.key);
284
+ if (state.type === 'boolean' && ['ON', 'ON_SET', 'ON_ACTUAL', 'POWER'].includes(key))
285
+ categories.add('switch');
286
+ if (state.read === true && (state.indicator === true || DIAGNOSTIC_KEYS.has(key)
287
+ || key === 'ON_ACTUAL' || (key === 'ACTUAL' && (family === 'switch' || family === 'blind' || family === 'dimmer'))))
288
+ categories.add('status');
289
+ if (profile !== 'info' && family !== 'switch')
290
+ continue;
291
+ const id = text(state.id);
292
+ const common = stateObject(objects, id);
293
+ if (!common)
294
+ continue;
295
+ const match = keywordMatch(common, id, objects);
296
+ if (!match)
297
+ continue;
298
+ if (profile === 'info') {
299
+ match.families.forEach(category => categories.add(category));
300
+ discoveryReview || (discoveryReview = match.review);
301
+ }
302
+ else if (match.families.includes('blind')) {
303
+ // A generic boolean can be matched by the upstream switch profile.
304
+ // Surface the inconclusive category; never invent up/down actions.
305
+ categories.add('blind');
306
+ discoveryReview = true;
307
+ conflictingControl || (conflictingControl = state.write === true);
308
+ }
309
+ }
310
+ if (discoveryReview)
311
+ categories.add('review');
312
+ return { functionCategories: [...categories], discoveryReview, conflictingControl };
313
+ }
149
314
  function managedIdentity(sourceId, control, objects) {
150
315
  if (!sourceId.startsWith('alias.0.nexowatt_eos.'))
151
316
  return null;
@@ -227,7 +392,7 @@ function extendSuggestion(input, controlInput, objects) {
227
392
  const original = row(input);
228
393
  const control = cleanControls([controlInput], objects)[0];
229
394
  if (!control)
230
- return { ...original, importable: false };
395
+ return { ...original, importable: false, functionCategories: ['review'], discoveryReview: true };
231
396
  const profileFields = definitions(control.type);
232
397
  const mappings = new Map();
233
398
  const states = [];
@@ -276,11 +441,19 @@ function extendSuggestion(input, controlInput, objects) {
276
441
  catch {
277
442
  controlsValid = false;
278
443
  }
444
+ const importable = fields.length > 0 && hasCore && controlsValid;
445
+ const { functionCategories, discoveryReview, conflictingControl } = suggestionCategories(control.type, states, objects, importable);
446
+ const notes = list(original.notes).slice();
447
+ if (!controlsValid)
448
+ notes.push('Die erkannte Bedienzuordnung enthält nicht zulässige Datenpunkte oder zu viele Felder. Bitte manuell prüfen.');
449
+ else if (conflictingControl)
450
+ notes.push('Die Beschreibung deutet auf Beschattung hin. Ein allgemeiner Schaltbefehl wird dafür nicht automatisch übernommen.');
451
+ else if (discoveryReview && importable)
452
+ notes.push('Die Beschreibung lässt mehrere Funktionen zu. Prüfe den Datenpunkt vor der Übernahme.');
279
453
  const proposal = { ...previous, type, io: { ...row(previous.io), deviceControls: { profile: control.type, fields } },
280
454
  behavior: { ...row(previous.behavior), readOnly: !writable } };
281
455
  return { ...original, id: `td_${controlId.slice(0, 24)}`, controlId,
282
456
  ...(managed ? { sourceId: managed.sourceId, displaySourceId, managedAlias: true } : {}), detectorType: control.type, targetType: type,
283
457
  signature: `${control.type}|${fields.map(field => `${field.key}:${field.readId || ''}:${field.writeId || ''}`).join('|')}`,
284
- states, matchCount: fields.length, proposal, importable: fields.length > 0 && hasCore && controlsValid,
285
- notes: [...list(original.notes), ...(!controlsValid ? ['Die erkannte Bedienzuordnung enthält nicht zulässige Datenpunkte oder zu viele Felder. Bitte manuell prüfen.'] : [])] };
458
+ states, matchCount: fields.length, proposal, importable: importable && !discoveryReview, functionCategories, discoveryReview, notes };
286
459
  }