iobroker.eos-admin 9.0.26 → 9.0.28

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 (235) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +9 -15
  2. package/README.md +17 -227
  3. package/adminWww/.vite/manifest.json +194 -203
  4. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13887 -13897
  5. package/adminWww/assets/{AdapterUpdateDialog-DIjnNZ5k.js → AdapterUpdateDialog-DBLX7GoO.js} +5 -5
  6. package/adminWww/assets/{Adapters-D8UOQg1q.js → Adapters-c250DTTU.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-BBUXk8hZ.js +1 -0
  10. package/adminWww/assets/Enums-CWJJ2zNF.js +92 -0
  11. package/adminWww/assets/Fields-CNefAzNH.js +1 -0
  12. package/adminWww/assets/FileCopy-B16lEuur.js +1 -0
  13. package/adminWww/assets/Files-Bf8oZSk6.js +1 -0
  14. package/adminWww/assets/{Hosts-BToJLy61.js → Hosts-8gg41ODb.js} +6 -6
  15. package/adminWww/assets/Instances-PPTEPJQN.js +4 -0
  16. package/adminWww/assets/Intro-9c_ynpJu.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-xdFVJ6fZ.js → Logs-Brgb9kR_.js} +2 -2
  20. package/adminWww/assets/North-C2whbHM-.js +1 -0
  21. package/adminWww/assets/{Objects-DhyJ5eAY.js → Objects-DHVNfs_x.js} +4 -4
  22. package/adminWww/assets/Overview-CgnpH8e8.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-vVobamei.js +1 -0
  26. package/adminWww/assets/UsedResources-1fEUqiQ6.js +2 -0
  27. package/adminWww/assets/Users-oRpvFtQR.js +1 -0
  28. package/adminWww/assets/{bootstrap-BU7j1Fe_.js → bootstrap-st8VxLDc.js} +25 -25
  29. package/adminWww/assets/date-fns-C1dqkno9.js +1 -0
  30. package/adminWww/assets/{hostInit-Cgee6juw.js → hostInit-OQMl4yOT.js} +1 -1
  31. package/adminWww/assets/icons-material-DeF0gQyK.js +1 -0
  32. package/adminWww/assets/{index-BUZf1ftI.js → index-D4lV2S7J.js} +2 -2
  33. package/adminWww/assets/{installSVGRenderer-CcjgaxiA.js → installSVGRenderer-1WdbDz-H.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-96d40e57.js → mf-entry-bootstrap-0-3b253ab0.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.28.js +12 -0
  44. package/adminWww/remoteEntry.js +1 -1
  45. package/build/lib/eosDeviceEmsPlan.js +24 -1
  46. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  47. package/build/lib/eosModuleHost.js +66 -3
  48. package/build/lib/eosModuleHost.js.map +1 -1
  49. package/docs/DOKUMENTATION_9.0.27.md +7 -0
  50. package/docs/README.md +13 -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.27/ABHAENGIGKEITEN.md +27 -0
  59. package/docs/reports/unified-9.0.27/PRUEFBERICHT.md +68 -0
  60. package/docs/reports/unified-9.0.27/PRUEFERGEBNISSE.json +292 -0
  61. package/docs/reports/unified-9.0.27/SICHERHEITSBETRACHTUNG.md +26 -0
  62. package/docs/reports/unified-9.0.27/TIBBER_NEUSTART.md +23 -0
  63. package/docs/reports/unified-9.0.27/UPDATE_WIEDERANLAUF.md +46 -0
  64. package/docs/reports/unified-9.0.27/raw/INDEX.json +347 -0
  65. package/docs/reports/unified-9.0.27/raw/admin-build-mirror-review.json +75 -0
  66. package/docs/reports/unified-9.0.27/raw/ajv-production-reachability.json +35 -0
  67. package/docs/reports/unified-9.0.27/raw/backend-build.log +5 -0
  68. package/docs/reports/unified-9.0.27/raw/baseline-devices.log +138 -0
  69. package/docs/reports/unified-9.0.27/raw/baseline-module-startup.log +82 -0
  70. package/docs/reports/unified-9.0.27/raw/baseline-ocpp-contract.log +93 -0
  71. package/docs/reports/unified-9.0.27/raw/baseline-ocpp-frontend.log +255 -0
  72. package/docs/reports/unified-9.0.27/raw/baseline-repository-tools.log +84 -0
  73. package/docs/reports/unified-9.0.27/raw/browser-blocked.log +38 -0
  74. package/docs/reports/unified-9.0.27/raw/controller-725-reproduction-node24.log +4 -0
  75. package/docs/reports/unified-9.0.27/raw/devices-child-rpc-diagnostic.log +34 -0
  76. package/docs/reports/unified-9.0.27/raw/devices-filter-without-readiness.log +15 -0
  77. package/docs/reports/unified-9.0.27/raw/devices-final-web-filtered-node22.log +107 -0
  78. package/docs/reports/unified-9.0.27/raw/devices-final-web-filtered-node24.log +26 -0
  79. package/docs/reports/unified-9.0.27/raw/eos-update-path-node24.log +52 -0
  80. package/docs/reports/unified-9.0.27/raw/frontend-build.log +152 -0
  81. package/docs/reports/unified-9.0.27/raw/influx/provenance.json +42 -0
  82. package/docs/reports/unified-9.0.27/raw/installer-build.log +26 -0
  83. package/docs/reports/unified-9.0.27/raw/lint.log +5 -0
  84. package/docs/reports/unified-9.0.27/raw/modules-build.log +5 -0
  85. package/docs/reports/unified-9.0.27/raw/node22-tests-final.log +16976 -0
  86. package/docs/reports/unified-9.0.27/raw/node22-version.log +1 -0
  87. package/docs/reports/unified-9.0.27/raw/node24-tests-final.log +2831 -0
  88. package/docs/reports/unified-9.0.27/raw/node24-version.log +1 -0
  89. package/docs/reports/unified-9.0.27/raw/npm-audit-development.json +398 -0
  90. package/docs/reports/unified-9.0.27/raw/npm-audit-production.json +77 -0
  91. package/docs/reports/unified-9.0.27/raw/npm-production-ajv-tree.json +33 -0
  92. package/docs/reports/unified-9.0.27/raw/npm-production-ajv-tree.stderr +1 -0
  93. package/docs/reports/unified-9.0.27/raw/npm926-dateivergleich.json +6 -0
  94. package/docs/reports/unified-9.0.27/raw/production-audit-review.json +30 -0
  95. package/docs/reports/unified-9.0.27/raw/release-targeted.log +118 -0
  96. package/docs/reports/unified-9.0.27/raw/restart-regressions-node22.log +361 -0
  97. package/docs/reports/unified-9.0.27/raw/sbom-generation.json +11 -0
  98. package/docs/reports/unified-9.0.27/raw/source-fixtures.json +30 -0
  99. package/docs/reports/unified-9.0.27/raw/targeted-ocpp-frontend.log +26 -0
  100. package/docs/reports/unified-9.0.27/raw/test-environment.json +24 -0
  101. package/docs/reports/unified-9.0.27/raw/tibber/backend/REVIEW.md +40 -0
  102. package/docs/reports/unified-9.0.27/raw/tibber/backend/appcenter-overwrite-patched-scratch.log +11 -0
  103. package/docs/reports/unified-9.0.27/raw/tibber/backend/appcenter-overwrite-repro.log +33 -0
  104. package/docs/reports/unified-9.0.27/raw/tibber/backend/customer-tariff-lint.log +0 -0
  105. package/docs/reports/unified-9.0.27/raw/tibber/backend/customer-tariff-typecheck.log +0 -0
  106. package/docs/reports/unified-9.0.27/raw/tibber/backend/process-disk-restart-node24.log +10 -0
  107. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-diagnostic.log +58 -0
  108. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-ipc-counts.log +45 -0
  109. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-node24.log +42 -0
  110. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-final-node22.log +134 -0
  111. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-final-node24.log +28 -0
  112. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-source-node22-diagnostic.log +220 -0
  113. package/docs/reports/unified-9.0.27/raw/tibber/independent/tariff-background-hydration-review.log +1 -0
  114. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-header-object-mask-review.log +1 -0
  115. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-independent-frontend-review.log +14 -0
  116. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-independent-scope-review.log +1 -0
  117. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-mapping-targeted-node24.log +2184 -0
  118. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-parent-persistence-review.log +20 -0
  119. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/appcenter-tariff-roundtrip-baseline.log +57 -0
  120. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/customer-editor-final.log +24 -0
  121. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/frontend-guard-baseline.log +303 -0
  122. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/frontend-guard-final.log +14 -0
  123. package/docs/reports/unified-9.0.27/raw/tibber-appcenter-baseline.log +33 -0
  124. package/docs/reports/unified-9.0.27/raw/tibber-background-hydration-baseline.log +1 -0
  125. package/docs/reports/unified-9.0.27/raw/tibber-form-baseline.log +57 -0
  126. package/docs/reports/unified-9.0.27/raw/tibber-mapping-targeted-node24.log +2184 -0
  127. package/docs/reports/unified-9.0.27/raw/tibber-minimal-fix-isolation.log +11 -0
  128. package/docs/reports/unified-9.0.27/raw/typecheck.log +5 -0
  129. package/docs/reports/unified-9.0.27/raw/ui-build.log +7 -0
  130. package/docs/reports/unified-9.0.28/PRUEFBERICHT.md +40 -0
  131. package/docs/reports/unified-9.0.28/PRUEFERGEBNISSE.json +112 -0
  132. package/docs/reports/unified-9.0.28/raw/INDEX.json +87 -0
  133. package/docs/reports/unified-9.0.28/raw/backend.log +5 -0
  134. package/docs/reports/unified-9.0.28/raw/frontend.log +151 -0
  135. package/docs/reports/unified-9.0.28/raw/installer.log +26 -0
  136. package/docs/reports/unified-9.0.28/raw/lint.log +5 -0
  137. package/docs/reports/unified-9.0.28/raw/modules.log +5 -0
  138. package/docs/reports/unified-9.0.28/raw/node22-tests-final.log +17060 -0
  139. package/docs/reports/unified-9.0.28/raw/node22-version.log +1 -0
  140. package/docs/reports/unified-9.0.28/raw/node24-tests-final.log +2845 -0
  141. package/docs/reports/unified-9.0.28/raw/node24-version.log +1 -0
  142. package/docs/reports/unified-9.0.28/raw/npm-audit-runtime.json +77 -0
  143. package/docs/reports/unified-9.0.28/raw/runtime-mirror-check.log +1 -0
  144. package/docs/reports/unified-9.0.28/raw/typecheck.log +5 -0
  145. package/docs/reports/unified-9.0.28/raw/ui-runtime.log +7 -0
  146. package/docs/reports/unified-9.0.4/PRUEFBERICHT.md +1 -1
  147. package/docs/reports/unified-9.0.5/PRUEFBERICHT.md +1 -1
  148. package/docs/reports/unified-9.0.6/PRUEFBERICHT.md +1 -1
  149. package/docs/reports/unified-9.0.7/PRUEFBERICHT.md +1 -1
  150. package/docs/reports/unified-9.0.8/PRUEFBERICHT.md +1 -1
  151. package/docs/reports/unified-9.0.9/PRUEFBERICHT.md +1 -1
  152. package/{START_HIER_9.0.1.md → docs/start/START_HIER_9.0.1.md} +5 -5
  153. package/{START_HIER_9.0.10.md → docs/start/START_HIER_9.0.10.md} +1 -1
  154. package/{START_HIER_9.0.11.md → docs/start/START_HIER_9.0.11.md} +1 -1
  155. package/{START_HIER_9.0.12.md → docs/start/START_HIER_9.0.12.md} +1 -1
  156. package/{START_HIER_9.0.13.md → docs/start/START_HIER_9.0.13.md} +2 -2
  157. package/{START_HIER_9.0.14.md → docs/start/START_HIER_9.0.14.md} +1 -1
  158. package/{START_HIER_9.0.15.md → docs/start/START_HIER_9.0.15.md} +2 -2
  159. package/{START_HIER_9.0.16.md → docs/start/START_HIER_9.0.16.md} +1 -1
  160. package/{START_HIER_9.0.17.md → docs/start/START_HIER_9.0.17.md} +2 -2
  161. package/{START_HIER_9.0.18.md → docs/start/START_HIER_9.0.18.md} +4 -4
  162. package/{START_HIER_9.0.19.md → docs/start/START_HIER_9.0.19.md} +2 -2
  163. package/{START_HIER_9.0.2.md → docs/start/START_HIER_9.0.2.md} +2 -2
  164. package/{START_HIER_9.0.20.md → docs/start/START_HIER_9.0.20.md} +1 -1
  165. package/{START_HIER_9.0.21.md → docs/start/START_HIER_9.0.21.md} +1 -1
  166. package/{START_HIER_9.0.22.md → docs/start/START_HIER_9.0.22.md} +4 -4
  167. package/{START_HIER_9.0.24.md → docs/start/START_HIER_9.0.24.md} +1 -1
  168. package/{START_HIER_9.0.25.md → docs/start/START_HIER_9.0.25.md} +1 -1
  169. package/{START_HIER_9.0.26.md → docs/start/START_HIER_9.0.26.md} +1 -1
  170. package/docs/start/START_HIER_9.0.27.md +33 -0
  171. package/docs/start/START_HIER_9.0.28.md +20 -0
  172. package/{START_HIER_9.0.3.md → docs/start/START_HIER_9.0.3.md} +3 -3
  173. package/{START_HIER_9.0.4.md → docs/start/START_HIER_9.0.4.md} +3 -3
  174. package/{START_HIER_9.0.5.md → docs/start/START_HIER_9.0.5.md} +2 -2
  175. package/{START_HIER_9.0.6.md → docs/start/START_HIER_9.0.6.md} +3 -3
  176. package/{START_HIER_9.0.7.md → docs/start/START_HIER_9.0.7.md} +4 -4
  177. package/{START_HIER_9.0.8.md → docs/start/START_HIER_9.0.8.md} +3 -3
  178. package/{START_HIER_9.0.9.md → docs/start/START_HIER_9.0.9.md} +1 -1
  179. package/docs/unified/ARCHITECTURE.md +37 -1
  180. package/docs/unified/BESTANDSUEBERNAHME_9_0_7.md +1 -1
  181. package/docs/unified/INSTALL_PUBLISH.md +2 -2
  182. package/io-package.json +12 -12
  183. package/modules/devices/admin/ems-assignment.js +1 -0
  184. package/package.json +38 -34
  185. package/release-manifests/unified/build-environment.cdx.json +6 -6
  186. package/release-manifests/unified/files.json +378 -146
  187. package/release-manifests/unified/frontend.cdx.json +6 -6
  188. package/release-manifests/unified/installer.cdx.json +6 -6
  189. package/release-manifests/unified/obsolete-admin-assets.json +171 -6
  190. package/release-manifests/unified/runtime.cdx.json +28 -28
  191. package/release-manifests/unified/validation.json +15 -15
  192. package/tools/eos-release-manifest.cjs +2 -2
  193. package/ui/io-package.json +5 -1
  194. package/ui/lib/customer-tariff.js +73 -1
  195. package/ui/lib/installer-lifecycle.js +5 -3
  196. package/ui/lib/ocpp-auto-discovery.js +53 -6
  197. package/ui/lib/smarthome-device-detection.js +177 -4
  198. package/ui/main.js +171 -95
  199. package/ui/package.json +1 -1
  200. package/ui/www/ems-apps.js +188 -130
  201. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  202. package/ui/www/manifest.webmanifest +2 -2
  203. package/ui/www/smarthome-config-workspace.css +7 -0
  204. package/ui/www/smarthome-config.html +4 -4
  205. package/ui/www/smarthome-config.js +178 -163
  206. package/ui/www/smarthome-device-config.js +131 -6
  207. package/ui/www/smarthome-setup.js +252 -59
  208. package/adminWww/assets/AccessTime-CuR73YC3.js +0 -1
  209. package/adminWww/assets/ConfigManager-CAvT_4-g.js +0 -1
  210. package/adminWww/assets/Enums-CrNUOX0d.js +0 -92
  211. package/adminWww/assets/Fields-D-0qFiqr.js +0 -1
  212. package/adminWww/assets/Files-BL8kvaeC.js +0 -1
  213. package/adminWww/assets/Instances-Dlrp1KGP.js +0 -4
  214. package/adminWww/assets/Intro-5EbxvP4X.js +0 -2
  215. package/adminWww/assets/KeyboardArrowRight-ifvmV1ZL.js +0 -1
  216. package/adminWww/assets/MoreHoriz-CS7nODK8.js +0 -1
  217. package/adminWww/assets/Overview-BspgcFB7.js +0 -3
  218. package/adminWww/assets/Pageview-wzrLQZ-j.js +0 -1
  219. package/adminWww/assets/PersonOff-YtHcY0sV.js +0 -1
  220. package/adminWww/assets/Star-D8VNXawT.js +0 -1
  221. package/adminWww/assets/State-CJ1mKH_U.js +0 -1
  222. package/adminWww/assets/UsedResources-BMiCxqWH.js +0 -2
  223. package/adminWww/assets/Users-DrlJHRa5.js +0 -1
  224. package/adminWww/assets/ViewCompact-D7bHgn99.js +0 -1
  225. package/adminWww/assets/ViewSidebar-CjClbCI5.js +0 -1
  226. package/adminWww/assets/WifiTethering-DJ9VO12W.js +0 -1
  227. package/adminWww/assets/date-fns-BtR4dG_j.js +0 -1
  228. package/adminWww/assets/en-US-BjjaEI6N.js +0 -1
  229. package/adminWww/assets/icons-material-C0U9EKON.js +0 -1
  230. package/adminWww/assets/isSameWeek-WMSJR5Qs.js +0 -1
  231. package/adminWww/assets/locale-DN6Bdkdt.js +0 -1
  232. package/adminWww/assets/sentry-CPzCHrwe.js +0 -1
  233. package/adminWww/assets/setYear-DDSuW45e.js +0 -1
  234. package/adminWww/remoteEntry-eos-9.0.26.js +0 -12
  235. /package/{START_HIER_9.0.23.md → docs/start/START_HIER_9.0.23.md} +0 -0
@@ -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
  }