@camstack/server 1.2.927 → 1.2.929
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.
- package/CHANGELOG.md +12 -0
- package/package.json +11 -14
- package/system/dist/addon-id-CVg1_r5E.mjs +39 -0
- package/system/dist/addon-id-Di0lNJ89.js +50 -0
- package/system/dist/addon-pages.cap-Df9FQwN1.js +49 -0
- package/system/dist/addon-pages.cap-DksUlE8j.mjs +44 -0
- package/system/dist/addon-settings.cap-3-TIIMq_.mjs +592 -0
- package/system/dist/addon-settings.cap-DAiE0Nb0.js +651 -0
- package/system/dist/addon-widgets.cap-C4jxflbF.js +200 -0
- package/system/dist/addon-widgets.cap-D9m48X78.mjs +183 -0
- package/system/dist/base-addon-DD5dIfcZ.js +4624 -0
- package/system/dist/base-addon-Md14i7pe.mjs +4505 -0
- package/system/dist/base-device-2sL1DMm1.js +1103 -0
- package/system/dist/base-device-IuM1AwXZ.mjs +1098 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +8 -6
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +3 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +8 -6
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +3 -1
- package/system/dist/builtins/alerts/alerts.addon.js +113 -56
- package/system/dist/builtins/alerts/alerts.addon.mjs +58 -1
- package/system/dist/builtins/autotrack/index.js +21 -17
- package/system/dist/builtins/autotrack/index.mjs +5 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +14 -11
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -2
- package/system/dist/builtins/calendars/calendars.addon.js +8 -6
- package/system/dist/builtins/calendars/calendars.addon.mjs +3 -1
- package/system/dist/builtins/camera-grid/index.js +615 -58
- package/system/dist/builtins/camera-grid/index.mjs +558 -1
- package/system/dist/builtins/composer/composer.addon.js +788 -209
- package/system/dist/builtins/composer/composer.addon.mjs +583 -4
- package/system/dist/builtins/console-logging/index.js +4 -3
- package/system/dist/builtins/console-logging/index.mjs +2 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +7887 -381
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +7511 -5
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +731 -21
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +711 -1
- package/system/dist/builtins/device-history/device-history.addon.js +110 -31
- package/system/dist/builtins/device-history/device-history.addon.mjs +81 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +12806 -227
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +12583 -5
- package/system/dist/builtins/hub-forwarder/index.js +4 -3
- package/system/dist/builtins/hub-forwarder/index.mjs +2 -1
- package/system/dist/builtins/keychain/index.js +31 -28
- package/system/dist/builtins/keychain/index.mjs +7 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +15 -12
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +4 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +140 -39
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +103 -3
- package/system/dist/builtins/local-network/local-network.addon.js +43 -39
- package/system/dist/builtins/local-network/local-network.addon.mjs +7 -3
- package/system/dist/builtins/loki-logging/index.js +23 -17
- package/system/dist/builtins/loki-logging/index.mjs +7 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +156 -15
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +142 -1
- package/system/dist/builtins/platform-probe/index.js +25 -23
- package/system/dist/builtins/platform-probe/index.mjs +4 -2
- package/system/dist/builtins/record-entries/index.js +9 -7
- package/system/dist/builtins/record-entries/index.mjs +3 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +4 -4
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +97 -44
- package/system/dist/builtins/snapshot/index.mjs +54 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +5 -4
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +2 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +87 -61
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +29 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +81 -72
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +10 -1
- package/system/dist/builtins/system-config/system-config.addon.js +17 -14
- package/system/dist/builtins/system-config/system-config.addon.mjs +6 -3
- package/system/dist/builtins/winston-logging/index.js +7 -5
- package/system/dist/builtins/winston-logging/index.mjs +3 -1
- package/system/dist/calendars.cap-CaFlShS9.js +155 -0
- package/system/dist/calendars.cap-_C4eD4fi.mjs +138 -0
- package/system/dist/camstack-error-DJ-TUAi1.js +23 -0
- package/system/dist/camstack-error-viZYfcj9.mjs +18 -0
- package/system/dist/cap-call-context-Bd76CbOW.js +95 -0
- package/system/dist/cap-call-context-DNwdgGSQ.mjs +78 -0
- package/system/dist/capability-definition-C2rJdVeX.mjs +177 -0
- package/system/dist/capability-definition-HCmTem8c.js +242 -0
- package/system/dist/{capture-engine-BcuwOSXv.js → capture-engine-DZ0LIUqA.js} +5 -4
- package/system/dist/{capture-engine-Bz7eXFjT.mjs → capture-engine-DiwbjoWp.mjs} +2 -1
- package/system/dist/command-origin-claim-Cief660O.js +35 -0
- package/system/dist/command-origin-claim-D1Wy7Qld.mjs +24 -0
- package/system/dist/composition-sources-Caqv7O7z.mjs +391 -0
- package/system/dist/composition-sources-CgnHjm8Q.js +408 -0
- package/system/dist/{constants-D2etJ02O.js → constants-Ba3FTIHl.js} +1 -1
- package/system/dist/constants-C860Y6U4.js +26 -0
- package/system/dist/{constants-BcUTQd1M.mjs → constants-DB4piTD5.mjs} +1 -1
- package/system/dist/constants-DCLpoF4L.mjs +21 -0
- package/system/dist/coral-accelerators-7o8hqvcN.js +564 -0
- package/system/dist/coral-accelerators-BKcXP59c.mjs +521 -0
- package/system/dist/core-blocks.cap-C6iKAZ-x.mjs +17986 -0
- package/system/dist/core-blocks.cap-LEMqVwxO.js +18705 -0
- package/system/dist/custom-actions-BFUSalC9.mjs +25 -0
- package/system/dist/custom-actions-D92NRi2c.js +36 -0
- package/system/dist/database-snapshot.cap-DF38e-0P.js +162 -0
- package/system/dist/database-snapshot.cap-dhrc9xnY.mjs +133 -0
- package/system/dist/declared-device-BWphj9WE.js +303 -0
- package/system/dist/declared-device-CKERA1Hi.mjs +286 -0
- package/system/dist/{device-ca-ExMN3xW3.mjs → device-ca-BLM6fccc.mjs} +2 -1
- package/system/dist/{device-ca-CU8zh9Pi.js → device-ca-C5kJE6mL.js} +7 -6
- package/system/dist/device-certificate-Cddm4Idn.mjs +91 -0
- package/system/dist/device-certificate-CguVACQO.js +162 -0
- package/system/dist/device-identifiers-BQg9EQi1.js +600 -0
- package/system/dist/device-identifiers-iSuQCKmK.mjs +529 -0
- package/system/dist/device-kind-BJ2pfsjw.mjs +78 -0
- package/system/dist/device-kind-CsSiv_YF.js +101 -0
- package/system/dist/device-manager.cap-2abwVLCM.js +2874 -0
- package/system/dist/device-manager.cap-CFZSPfUh.mjs +2749 -0
- package/system/dist/device-provider.cap-3Uvk6f5-.mjs +331 -0
- package/system/dist/device-provider.cap-D7TV2kVH.js +366 -0
- package/system/dist/{device-row-store-CeW_GWh9.mjs → device-row-store-YF3jtmkk.mjs} +4 -1
- package/system/dist/{device-row-store-BMIR-n3m.js → device-row-store-doTfMOqn.js} +12 -9
- package/system/dist/device-transitions.cap-B5w5PYU_.js +860 -0
- package/system/dist/device-transitions.cap-DojcwEuX.mjs +819 -0
- package/system/dist/device-type-CbQsnFdC.js +477 -0
- package/system/dist/device-type-DgEvK3ch.mjs +454 -0
- package/system/dist/entry-kind-D9MuVJCK.mjs +44 -0
- package/system/dist/entry-kind-cq90c--V.js +55 -0
- package/system/dist/error.cap-CSM_SRfR.mjs +3423 -0
- package/system/dist/error.cap-DBhgPeWK.js +3848 -0
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/history-catalog-BKRarIL_.js +831 -0
- package/system/dist/history-catalog-BwTeQ4Mr.mjs +802 -0
- package/system/dist/{hub-identity-Csxx2Q8k.js → hub-identity-BMdR3Mw9.js} +2 -2
- package/system/dist/{hub-identity-BBXzP6Ve.mjs → hub-identity-DjMN9Ac2.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-By5577HM.js → hub-mdns-ciao--0v1TKME.js} +5 -5
- package/system/dist/{hub-mdns-ciao-DG17NbGU.mjs → hub-mdns-ciao-DBrtHOcc.mjs} +2 -2
- package/system/dist/index.js +763 -151
- package/system/dist/index.mjs +624 -12
- package/system/dist/integration-instances.cap-Cl9O-k4h.mjs +538 -0
- package/system/dist/integration-instances.cap-dJIxg2_s.js +549 -0
- package/system/dist/keychain-admin.cap-Db_oFX4H.js +425 -0
- package/system/dist/keychain-admin.cap-GtM7gVGG.mjs +396 -0
- package/system/dist/l10n-Bu6aUvSY.mjs +10 -0
- package/system/dist/l10n-CGMvp7NF.js +15 -0
- package/system/dist/labels-DX5S8deC.js +81 -0
- package/system/dist/labels-DsBcU7md.mjs +64 -0
- package/system/dist/{legacy-integration-rows-door-CVwOo5aq.js → legacy-integration-rows-door-B1nzxxr5.js} +2 -2
- package/system/dist/{legacy-integration-rows-door-D9tQOUzh.mjs → legacy-integration-rows-door-nTvo_6jQ.mjs} +1 -1
- package/system/dist/log-destination.cap-CxZzAVaR.mjs +143 -0
- package/system/dist/log-destination.cap-DELPJkZ0.js +148 -0
- package/system/dist/low-power-sleep.cap-7lfVU41N.js +103 -0
- package/system/dist/low-power-sleep.cap-tGPmaZ_V.mjs +92 -0
- package/system/dist/mask-shape-Ci8Co9w0.mjs +57 -0
- package/system/dist/mask-shape-CmPA2fst.js +92 -0
- package/system/dist/metrics-provider.cap-BNmcHDkQ.mjs +405 -0
- package/system/dist/metrics-provider.cap-BcmQUt6l.js +410 -0
- package/system/dist/migration-BMjgkyG2.js +380 -0
- package/system/dist/migration-DRJAtdy7.mjs +321 -0
- package/system/dist/network-access.cap-B5TWLDCC.js +1099 -0
- package/system/dist/network-access.cap-BJnGbE6n.mjs +1004 -0
- package/system/dist/notification-rules.cap-B__YBgnG.js +3422 -0
- package/system/dist/notification-rules.cap-D9ArZlwx.mjs +3357 -0
- package/system/dist/ops-log-CB4pIdqi.mjs +64 -0
- package/system/dist/ops-log-pxt9176Z.js +81 -0
- package/system/dist/pinned-binary-BOhOSNff.js +28 -0
- package/system/dist/pinned-binary-CrIRAi4G.mjs +23 -0
- package/system/dist/platform-probe.cap-1WrMhWHx.js +250 -0
- package/system/dist/platform-probe.cap-BFeqFLtQ.mjs +233 -0
- package/system/dist/prefix-walk-B4b2-9aK.mjs +790 -0
- package/system/dist/prefix-walk-DC0ljmbB.js +843 -0
- package/system/dist/ptz-autotrack.cap-BW7w0zHD.js +229 -0
- package/system/dist/ptz-autotrack.cap-DT2GypXw.mjs +224 -0
- package/system/dist/quantity-D3g5SxsZ.mjs +114 -0
- package/system/dist/quantity-lY1KiTSZ.js +143 -0
- package/system/dist/raw-secret-migration-DxuBFtvi.js +50 -0
- package/system/dist/raw-secret-migration-iv88mLoc.mjs +39 -0
- package/system/dist/record-entries.cap-sMUhTvTU.mjs +75 -0
- package/system/dist/record-entries.cap-ti1C046R.js +80 -0
- package/system/dist/record-kind-DoBfYHCs.js +203 -0
- package/system/dist/record-kind-ub6NXqfh.mjs +162 -0
- package/system/dist/recording-archive.cap-7OrIn9e5.mjs +1299 -0
- package/system/dist/recording-archive.cap-D7bo-QSM.js +1328 -0
- package/system/dist/records.cap-ClcWV64i.js +329 -0
- package/system/dist/records.cap-CwLT2ByG.mjs +294 -0
- package/system/dist/relocate-CdVQAk-w.js +804 -0
- package/system/dist/relocate-CoZZTui1.mjs +661 -0
- package/system/dist/rename-composition-block-7WIICIDq.mjs +33525 -0
- package/system/dist/rename-composition-block-CcWLwVhG.js +34692 -0
- package/system/dist/{restore-archive-kwtBd00M.mjs → restore-archive-CjAyKpgX.mjs} +3 -1
- package/system/dist/{restore-archive-CIFvqOze.js → restore-archive-CkTkv3Ss.js} +6 -4
- package/system/dist/scoped-settings-CylSSq_8.js +955 -0
- package/system/dist/scoped-settings-DVWUIP7Z.mjs +650 -0
- package/system/dist/server-name-BIhLuHvX.mjs +35 -0
- package/system/dist/server-name-OALNvpqC.js +52 -0
- package/system/dist/settings-store.cap-Ci4F2zul.mjs +569 -0
- package/system/dist/settings-store.cap-wlJhCspr.js +640 -0
- package/system/dist/snapshot.cap-3suPdBHV.js +250 -0
- package/system/dist/snapshot.cap-Bs8Oyaqh.mjs +245 -0
- package/system/dist/source-info-DGB7SdB_.mjs +190 -0
- package/system/dist/source-info-DtWf4k2j.js +225 -0
- package/system/dist/storage-admin.cap-BSv1NjKJ.mjs +883 -0
- package/system/dist/storage-admin.cap-he0OqvVM.js +906 -0
- package/system/dist/storage-location-CBT8GCD6.mjs +163 -0
- package/system/dist/storage-location-CTweDMZf.js +198 -0
- package/system/dist/storage-location-mode-B21UVRRX.mjs +167 -0
- package/system/dist/storage-location-mode-CS4sMzo-.js +232 -0
- package/system/dist/storage-migration.cap-CyyATY_p.js +330 -0
- package/system/dist/storage-migration.cap-D7QqGobp.mjs +313 -0
- package/system/dist/storage-occupancy.cap-2rmnS58Z.js +622 -0
- package/system/dist/storage-occupancy.cap-CqBztTl9.mjs +611 -0
- package/system/dist/storage-provider.cap-Bw0CfxVc.js +213 -0
- package/system/dist/storage-provider.cap-CMeck2w4.mjs +202 -0
- package/system/dist/stream-catalog.cap-Bp7SkgIf.mjs +6560 -0
- package/system/dist/stream-catalog.cap-D3uwePiA.js +6763 -0
- package/system/dist/streaming-shared-B8cXatuU.mjs +431 -0
- package/system/dist/streaming-shared-DQwFZOSi.js +526 -0
- package/system/dist/system-reasons-Be_k1W8g.js +25 -0
- package/system/dist/system-reasons-CYj4qwyS.mjs +20 -0
- package/system/dist/tag-BxLazvVb.js +2138 -0
- package/system/dist/tag-uZBAq6ox.mjs +2073 -0
- package/system/dist/user-management.cap-B9QDu8NE.js +825 -0
- package/system/dist/user-management.cap-DBIi77sB.mjs +766 -0
- package/system/dist/vector-store.cap-DnyfrYDn.js +330 -0
- package/system/dist/vector-store.cap-h2GHWQ1t.mjs +319 -0
- package/system/dist/{wal-maintenance-CTrCPzds.mjs → wal-maintenance-BG01rOn9.mjs} +0 -0
- package/system/dist/{wal-maintenance-dq7T3quB.js → wal-maintenance-DyrebYKF.js} +0 -0
- package/system/dist/zod-secret-DS7mj1bk.js +78 -0
- package/system/dist/zod-secret-zY4nM61M.mjs +73 -0
- package/system/package.json +1 -1
- package/system/dist/composition-sources-BI614LJx.mjs +0 -141
- package/system/dist/composition-sources-v_kkb8A9.js +0 -152
- package/system/dist/coral-accelerators-BSVsBVzt.js +0 -250
- package/system/dist/coral-accelerators-DBlgWB8k.mjs +0 -231
- package/system/dist/dist-BCHMSqzc.mjs +0 -143467
- package/system/dist/dist-BZfvhfS1.js +0 -146970
- package/system/dist/prefix-walk-DAOBSyH1.mjs +0 -88
- package/system/dist/prefix-walk-Dv6MLZlM.js +0 -99
- package/system/dist/rename-composition-block-C9HuBrKS.js +0 -112
- package/system/dist/rename-composition-block-DtaYmYAR.mjs +0 -101
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
//#region ../types/dist/esm/device/device-type.mjs
|
|
2
|
+
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
3
|
+
DeviceType["Camera"] = "camera";
|
|
4
|
+
DeviceType["Light"] = "light";
|
|
5
|
+
DeviceType["Siren"] = "siren";
|
|
6
|
+
DeviceType["Switch"] = "switch";
|
|
7
|
+
DeviceType["Sensor"] = "sensor";
|
|
8
|
+
/** Every climate device: an air conditioner, a room thermostat, a radiator
|
|
9
|
+
* valve, a floor-heating zone, a heat-pump circuit. They share one set of
|
|
10
|
+
* controls (`climate-control`), so they are one type; WHICH kind of climate
|
|
11
|
+
* device it is is its {@link DeviceRole} (`climate-*`), which the UI and the
|
|
12
|
+
* exports branch on. The retired `thermostat` type is read as this one
|
|
13
|
+
* (`canonicalStoredDeviceType`). */
|
|
14
|
+
DeviceType["Climate"] = "climate";
|
|
15
|
+
DeviceType["Button"] = "button";
|
|
16
|
+
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
17
|
+
* event vocabulary verbatim (no normalization). Installed with the
|
|
18
|
+
* `event-emitter` cap. Sources: HA `event.*` entities (structured) and
|
|
19
|
+
* HA bus events (e.g. `zha_event`, generic). */
|
|
20
|
+
DeviceType["EventEmitter"] = "event-emitter";
|
|
21
|
+
/** Firmware/software update entity — current vs available version,
|
|
22
|
+
* updatable flag, update state, and an install action. Installed with
|
|
23
|
+
* the `update` cap. Sources: Homematic firmware-update channels (and
|
|
24
|
+
* reusable by other providers, e.g. HA `update.*` entities). */
|
|
25
|
+
DeviceType["Update"] = "update";
|
|
26
|
+
DeviceType["Generic"] = "generic";
|
|
27
|
+
/** Generic notification delivery target (HA `notify.<service>`, future
|
|
28
|
+
* Telegram / Discord / ntfy / SMTP, …). One device per delivery
|
|
29
|
+
* endpoint; the `notifier` cap defines the send surface. */
|
|
30
|
+
DeviceType["Notifier"] = "notifier";
|
|
31
|
+
/** Pre-recorded action sequence with optional parameters
|
|
32
|
+
* (HA `script.*`). Runnable via `script-runner` cap. */
|
|
33
|
+
DeviceType["Script"] = "script";
|
|
34
|
+
/** Automation rule (HA `automation.*`) — enable/disable + manual
|
|
35
|
+
* trigger surface exposed via `automation-control` cap. */
|
|
36
|
+
DeviceType["Automation"] = "automation";
|
|
37
|
+
/** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
|
|
38
|
+
DeviceType["Lock"] = "lock";
|
|
39
|
+
/** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
|
|
40
|
+
* `valve.*`). `cover` cap with sub-roles for variant. */
|
|
41
|
+
DeviceType["Cover"] = "cover";
|
|
42
|
+
/** Pipe / water / gas valve with open/close/stop and optional
|
|
43
|
+
* position (HA `valve.*`). `valve` cap — a cover-sibling actuator
|
|
44
|
+
* modelled on the same open/closed lifecycle. */
|
|
45
|
+
DeviceType["Valve"] = "valve";
|
|
46
|
+
/** Humidifier / dehumidifier with on/off + target humidity + mode
|
|
47
|
+
* (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
|
|
48
|
+
* modelled on the same target / mode lifecycle. */
|
|
49
|
+
DeviceType["Humidifier"] = "humidifier";
|
|
50
|
+
/** Water heater / boiler with target temperature + operation mode +
|
|
51
|
+
* away mode (HA `water_heater.*`). `water-heater` cap — a
|
|
52
|
+
* climate-family actuator. */
|
|
53
|
+
DeviceType["WaterHeater"] = "water-heater";
|
|
54
|
+
/** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
|
|
55
|
+
DeviceType["Fan"] = "fan";
|
|
56
|
+
/** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
|
|
57
|
+
* the camera surface — those use `Camera`. `media-player` cap. */
|
|
58
|
+
DeviceType["MediaPlayer"] = "media-player";
|
|
59
|
+
/** Security panel / alarm system (HA `alarm_control_panel.*`).
|
|
60
|
+
* `alarm-panel` cap. */
|
|
61
|
+
DeviceType["AlarmPanel"] = "alarm-panel";
|
|
62
|
+
/** Generic user-settable input (HA `number` / `input_number` / `select`
|
|
63
|
+
* / `input_select` / `text` / `input_text` / `input_datetime`).
|
|
64
|
+
* Sub-type via `DeviceRole`: NumericControl / SelectControl /
|
|
65
|
+
* TextControl / DateTimeControl. */
|
|
66
|
+
DeviceType["Control"] = "control";
|
|
67
|
+
/** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
|
|
68
|
+
* `presence` cap. */
|
|
69
|
+
DeviceType["Presence"] = "presence";
|
|
70
|
+
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
71
|
+
* `weather` cap. */
|
|
72
|
+
DeviceType["Weather"] = "weather";
|
|
73
|
+
/** A physical weather station (Ecowitt outdoor array). `weather-station`
|
|
74
|
+
* cap. Distinct from {@link Weather}, which is a forecast provider. */
|
|
75
|
+
DeviceType["WeatherStation"] = "weather-station";
|
|
76
|
+
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
77
|
+
DeviceType["Vacuum"] = "vacuum";
|
|
78
|
+
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
79
|
+
* `lawn-mower-control` cap. */
|
|
80
|
+
DeviceType["LawnMower"] = "lawn-mower";
|
|
81
|
+
/** Physical HA device group — parent container for entity-children
|
|
82
|
+
* adopted from a single HA device entry. Not renderable as a
|
|
83
|
+
* standalone device; exists only to anchor child entities. */
|
|
84
|
+
DeviceType["Container"] = "container";
|
|
85
|
+
/** Single still-image entity (HA `image.*`). Read-only display of an
|
|
86
|
+
* `entity_picture` signed URL the browser loads directly. `image` cap. */
|
|
87
|
+
DeviceType["Image"] = "image";
|
|
88
|
+
/** Smart pet feeder — cloud-connected food dispenser with a bowl food
|
|
89
|
+
* level, battery, desiccant life, feeding state and manual-feed /
|
|
90
|
+
* call-pet / maintenance actions. Installed with the `pet-feeder` cap;
|
|
91
|
+
* dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
|
|
92
|
+
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
93
|
+
* integrations sharing the same food/desiccant/hopper surface. */
|
|
94
|
+
DeviceType["PetFeeder"] = "pet-feeder";
|
|
95
|
+
/** Pet water fountain — tank level, water drunk, pump and its duty cycle.
|
|
96
|
+
* Installed with the `pet-fountain` cap. Reaches CamStack as loose entities
|
|
97
|
+
* of a container and is BUILT as a composed device (D967). */
|
|
98
|
+
DeviceType["PetFountain"] = "pet-fountain";
|
|
99
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
100
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
101
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
102
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
103
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
104
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
105
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
106
|
+
DeviceType["Washer"] = "washer";
|
|
107
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
108
|
+
DeviceType["Dryer"] = "dryer";
|
|
109
|
+
/** The physical bridge box of a vendor ecosystem (Velux KLF-200, and later
|
|
110
|
+
* other radio-to-IP bridges). It carries the box's own facts (firmware,
|
|
111
|
+
* address, connection state) and the actions the box really supports
|
|
112
|
+
* (`reboot`, `device-admin-link`). Products are NOT its children — they are
|
|
113
|
+
* adopted beside it — and its connection settings stay on the integration. */
|
|
114
|
+
DeviceType["Gateway"] = "gateway";
|
|
115
|
+
/** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
|
|
116
|
+
* water, cooling, solar), its system modes and its power. One main read-only
|
|
117
|
+
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
118
|
+
DeviceType["HeatPump"] = "heat-pump";
|
|
119
|
+
/** A home energy installation (any vendor): solar, grid, house, a metered heat pump
|
|
120
|
+
* and the storage as branches of one bus. One read-only `energy-system` cap carries
|
|
121
|
+
* every value; the storage is a field of it, never the `battery` cap (#513, #522). */
|
|
122
|
+
DeviceType["EnergySystem"] = "energy-system";
|
|
123
|
+
/** Something that RUNS on a machine, or the machine itself (#585): a VM, an app
|
|
124
|
+
* container, an LXC, an app, or a host. The kind is the ROLE (D1033, D1056), never
|
|
125
|
+
* a field; one `workload` cap carries the state, the controls and the resources. */
|
|
126
|
+
DeviceType["Workload"] = "workload";
|
|
127
|
+
return DeviceType;
|
|
128
|
+
}({});
|
|
129
|
+
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
130
|
+
/** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
|
|
131
|
+
DeviceFeature["BatteryOperated"] = "battery-operated";
|
|
132
|
+
/**
|
|
133
|
+
* The device goes into low-power sleep and must be WOKEN before it streams
|
|
134
|
+
* (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
|
|
135
|
+
* not this: a battery sensor reports charge and never sleeps (#459, Q2).
|
|
136
|
+
*/
|
|
137
|
+
DeviceFeature["Sleeps"] = "sleeps";
|
|
138
|
+
DeviceFeature["Rebootable"] = "rebootable";
|
|
139
|
+
/**
|
|
140
|
+
* Device supports an on-demand re-sync of its derived spec with its
|
|
141
|
+
* upstream source — drives the generic Re-sync button. Present when the
|
|
142
|
+
* device has the `resync` cap bound (#459, Q6).
|
|
143
|
+
*/
|
|
144
|
+
DeviceFeature["Resyncable"] = "resyncable";
|
|
145
|
+
DeviceFeature["NativeSnapshot"] = "native-snapshot";
|
|
146
|
+
DeviceFeature["DoorbellButton"] = "doorbell-button";
|
|
147
|
+
DeviceFeature["TwoWayAudio"] = "two-way-audio";
|
|
148
|
+
DeviceFeature["PanTiltZoom"] = "pan-tilt-zoom";
|
|
149
|
+
/**
|
|
150
|
+
* Camera supports the on-firmware autotrack subsystem (subject-
|
|
151
|
+
* following). Distinct from `PanTiltZoom` because not every PTZ
|
|
152
|
+
* camera ships autotrack — the admin UI uses this flag to gate
|
|
153
|
+
* the autotrack toggle / settings card without re-deriving from
|
|
154
|
+
* the cap registry. Mirrors `ptz-autotrack` cap registration:
|
|
155
|
+
* driver sets this feature when probe confirms the firmware
|
|
156
|
+
* surface, and registers the cap in the same code path.
|
|
157
|
+
*/
|
|
158
|
+
DeviceFeature["PtzAutotrack"] = "ptz-autotrack";
|
|
159
|
+
/**
|
|
160
|
+
* Accessory exposes a "trigger on motion" toggle — the parent camera's
|
|
161
|
+
* motion detection automatically activates this device. Mirrors
|
|
162
|
+
* `motion-trigger` cap registration: drivers set this feature in the
|
|
163
|
+
* same code path that calls `ctx.registerNativeCap(motionTriggerCapability, ...)`.
|
|
164
|
+
*
|
|
165
|
+
* Used by admin UI (gate the in-hero `MotionTriggerToggle` against a
|
|
166
|
+
* fast scalar without binding fetch), notifier rules, and `listAll`
|
|
167
|
+
* filters that want "all devices with on-motion behaviour".
|
|
168
|
+
*/
|
|
169
|
+
DeviceFeature["MotionTrigger"] = "motion-trigger";
|
|
170
|
+
/**
|
|
171
|
+
* Device can be run for a chosen time and then stopped. Mirrors the
|
|
172
|
+
* `timed-run` wrapper cap — the cap is bound by the core-blocks addon, not by
|
|
173
|
+
* a driver, so the flag is derived from the device's bindings
|
|
174
|
+
* (`featuresOfBoundCaps`). Gates the quick-run control in the viewer.
|
|
175
|
+
*/
|
|
176
|
+
DeviceFeature["TimedRun"] = "timed-run";
|
|
177
|
+
/**
|
|
178
|
+
* Device binds a plain `switch` cap. Derived from the bindings
|
|
179
|
+
* (`featuresOfBoundCaps`) for a composed device, whose switch is bound by the
|
|
180
|
+
* composition and not by a driver: an appliance (a heater behind a smart
|
|
181
|
+
* plug) has no control of its own, so a surface reads this as its on/off.
|
|
182
|
+
*/
|
|
183
|
+
DeviceFeature["Switch"] = "switch";
|
|
184
|
+
/** Light supports rgb-triplet color via `color` cap. */
|
|
185
|
+
DeviceFeature["LightColorRgb"] = "light-color-rgb";
|
|
186
|
+
/** Light supports HSV color via `color` cap. */
|
|
187
|
+
DeviceFeature["LightColorHsv"] = "light-color-hsv";
|
|
188
|
+
/** Light supports color-temperature (mired) via `color` cap. */
|
|
189
|
+
DeviceFeature["LightColorMired"] = "light-color-mired";
|
|
190
|
+
/** Thermostat supports a `heat_cool` dual setpoint (targetLow +
|
|
191
|
+
* targetHigh). Gates the range slider UI. */
|
|
192
|
+
DeviceFeature["ClimateDualSetpoint"] = "climate-dual-setpoint";
|
|
193
|
+
/** Thermostat exposes target humidity and/or current humidity
|
|
194
|
+
* readings. Gates the humidity controls. */
|
|
195
|
+
DeviceFeature["ClimateHumidity"] = "climate-humidity";
|
|
196
|
+
/** Thermostat exposes a fan-mode selector. */
|
|
197
|
+
DeviceFeature["ClimateFanMode"] = "climate-fan-mode";
|
|
198
|
+
/** Thermostat exposes preset modes (eco / away / sleep / vendor). */
|
|
199
|
+
DeviceFeature["ClimatePreset"] = "climate-preset";
|
|
200
|
+
/** Thermostat exposes a vertical louver swing toggle. Gates the
|
|
201
|
+
* vertical-swing switch in the climate UI. Independent of horizontal. */
|
|
202
|
+
DeviceFeature["ClimateSwingVertical"] = "climate-swing-vertical";
|
|
203
|
+
/** Thermostat exposes a horizontal louver swing toggle. Gates the
|
|
204
|
+
* horizontal-swing switch in the climate UI. Independent of vertical. */
|
|
205
|
+
DeviceFeature["ClimateSwingHorizontal"] = "climate-swing-horizontal";
|
|
206
|
+
/** Cover exposes intermediate position control (0..100). Gates the
|
|
207
|
+
* position slider UI. */
|
|
208
|
+
DeviceFeature["CoverPositionable"] = "cover-positionable";
|
|
209
|
+
/** Cover exposes slat-tilt control. Gates the tilt slider UI. */
|
|
210
|
+
DeviceFeature["CoverTilt"] = "cover-tilt";
|
|
211
|
+
/** Cover has a real stop: `stop` halts the travel in place. Gates the stop
|
|
212
|
+
* control in exporters; a provider whose `stop` is a no-op never declares it. */
|
|
213
|
+
DeviceFeature["CoverStoppable"] = "cover-stoppable";
|
|
214
|
+
/** Valve exposes intermediate position control (0..100). Gates the
|
|
215
|
+
* position slider / drag surface UI. */
|
|
216
|
+
DeviceFeature["ValvePositionable"] = "valve-positionable";
|
|
217
|
+
/** Fan exposes a speed-percentage setter. Gates the speed slider UI. */
|
|
218
|
+
DeviceFeature["FanSpeed"] = "fan-speed";
|
|
219
|
+
/** Fan exposes a preset mode selector. */
|
|
220
|
+
DeviceFeature["FanPreset"] = "fan-preset";
|
|
221
|
+
/** Fan exposes blade direction (forward/reverse) — typical of
|
|
222
|
+
* ceiling fans. */
|
|
223
|
+
DeviceFeature["FanDirection"] = "fan-direction";
|
|
224
|
+
/** Fan exposes an oscillation toggle. */
|
|
225
|
+
DeviceFeature["FanOscillating"] = "fan-oscillating";
|
|
226
|
+
/** Lock supports a latch-release ("open door") action distinct from
|
|
227
|
+
* unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
|
|
228
|
+
* `supported_features`. Gates the Open Door button in the UI. */
|
|
229
|
+
DeviceFeature["LockOpen"] = "lock-open";
|
|
230
|
+
/** Media player exposes a seek-to-position surface. */
|
|
231
|
+
DeviceFeature["MediaPlayerSeek"] = "media-player-seek";
|
|
232
|
+
/** Media player exposes a volume-level setter. */
|
|
233
|
+
DeviceFeature["MediaPlayerVolume"] = "media-player-volume";
|
|
234
|
+
/** Media player exposes a mute toggle distinct from volume=0. */
|
|
235
|
+
DeviceFeature["MediaPlayerMute"] = "media-player-mute";
|
|
236
|
+
/** Media player exposes a shuffle toggle. */
|
|
237
|
+
DeviceFeature["MediaPlayerShuffle"] = "media-player-shuffle";
|
|
238
|
+
/** Media player exposes a repeat mode (off / all / one). */
|
|
239
|
+
DeviceFeature["MediaPlayerRepeat"] = "media-player-repeat";
|
|
240
|
+
/** Media player exposes a source / input selector. */
|
|
241
|
+
DeviceFeature["MediaPlayerSelectSource"] = "media-player-select-source";
|
|
242
|
+
/** Media player exposes a play-arbitrary-media surface (URL / id). */
|
|
243
|
+
DeviceFeature["MediaPlayerPlayMedia"] = "media-player-play-media";
|
|
244
|
+
/** Media player exposes next-track. */
|
|
245
|
+
DeviceFeature["MediaPlayerNext"] = "media-player-next";
|
|
246
|
+
/** Media player exposes previous-track. */
|
|
247
|
+
DeviceFeature["MediaPlayerPrevious"] = "media-player-previous";
|
|
248
|
+
/** Media player exposes stop distinct from pause. */
|
|
249
|
+
DeviceFeature["MediaPlayerStop"] = "media-player-stop";
|
|
250
|
+
/** Media player exposes volume up / down in steps (an infrared TV has no level). */
|
|
251
|
+
DeviceFeature["MediaPlayerVolumeStep"] = "media-player-volume-step";
|
|
252
|
+
/** Media player exposes channel up / down in steps. */
|
|
253
|
+
DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
|
|
254
|
+
/** Media player exposes power on / off. */
|
|
255
|
+
DeviceFeature["MediaPlayerPower"] = "media-player-power";
|
|
256
|
+
/** Presence device carries GPS coordinates (lat/lng/accuracy) in
|
|
257
|
+
* addition to a textual location. */
|
|
258
|
+
DeviceFeature["PresenceGps"] = "presence-gps";
|
|
259
|
+
/** Notifier accepts an inline / URL image attachment. */
|
|
260
|
+
DeviceFeature["NotifierImage"] = "notifier-image";
|
|
261
|
+
/** Notifier accepts a priority hint (high/normal/low). */
|
|
262
|
+
DeviceFeature["NotifierPriority"] = "notifier-priority";
|
|
263
|
+
/** Notifier accepts a free-form `data` payload for platform-specific
|
|
264
|
+
* fields. */
|
|
265
|
+
DeviceFeature["NotifierData"] = "notifier-data";
|
|
266
|
+
/** Notifier supports interactive action buttons / callbacks. */
|
|
267
|
+
DeviceFeature["NotifierActions"] = "notifier-actions";
|
|
268
|
+
/** Notifier supports per-call recipient targeting (multi-user). */
|
|
269
|
+
DeviceFeature["NotifierRecipients"] = "notifier-recipients";
|
|
270
|
+
/** Script runner accepts a variables map on each run invocation. */
|
|
271
|
+
DeviceFeature["ScriptVariables"] = "script-variables";
|
|
272
|
+
/** Automation `trigger` accepts a skipCondition flag — fires the
|
|
273
|
+
* automation's actions while bypassing its condition block. */
|
|
274
|
+
DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
|
|
275
|
+
/** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
|
|
276
|
+
* switches group. */
|
|
277
|
+
DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
|
|
278
|
+
/** Robot mower exposes targeted mowing (all-area / zones / edges /
|
|
279
|
+
* spots) — gates the Mow action + map selectors. */
|
|
280
|
+
DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
|
|
281
|
+
/** The device has a drive/navigation surface (`navigation` cap): a robot camera. */
|
|
282
|
+
DeviceFeature["Navigation"] = "navigation";
|
|
283
|
+
/** The device has a network-link reading (`network-link` cap). */
|
|
284
|
+
DeviceFeature["NetworkLink"] = "network-link";
|
|
285
|
+
return DeviceFeature;
|
|
286
|
+
}({});
|
|
287
|
+
/**
|
|
288
|
+
* The features a device carries because a capability is bound on it: a bound cap
|
|
289
|
+
* whose name IS a `DeviceFeature` value. One rule for a device whose cap set
|
|
290
|
+
* is not decided by one driver (a composed device, a wrapper cap) — a feature
|
|
291
|
+
* is never listed twice, once as a cap and once as a table of names.
|
|
292
|
+
*/
|
|
293
|
+
function featuresOfBoundCaps(capNames) {
|
|
294
|
+
return Object.values(DeviceFeature).filter((feature) => capNames.includes(feature));
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Semantic role a device plays within its parent. Populated by driver
|
|
298
|
+
* addons when creating accessory devices (Reolink siren/floodlight/
|
|
299
|
+
* PIR/chime/autotrack/doorbell, ONVIF relay outputs, …). Used by the
|
|
300
|
+
* admin UI to pick icons, labels, and widgets — a `Switch` with
|
|
301
|
+
* `role: Floodlight` renders as a bulb with a brightness slider,
|
|
302
|
+
* whereas a `Switch` with `role: Siren` renders as a klaxon.
|
|
303
|
+
*
|
|
304
|
+
* Undefined for top-level devices (cameras, NVRs, hubs). Persisted in
|
|
305
|
+
* sqlite as a nullable TEXT column — old rows keep working unchanged.
|
|
306
|
+
*/
|
|
307
|
+
var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
308
|
+
DeviceRole["Siren"] = "siren";
|
|
309
|
+
DeviceRole["Floodlight"] = "floodlight";
|
|
310
|
+
DeviceRole["Spotlight"] = "spotlight";
|
|
311
|
+
DeviceRole["PirSensor"] = "pir-sensor";
|
|
312
|
+
DeviceRole["Chime"] = "chime";
|
|
313
|
+
DeviceRole["Autotrack"] = "autotrack";
|
|
314
|
+
DeviceRole["Nightvision"] = "nightvision";
|
|
315
|
+
DeviceRole["PrivacyMask"] = "privacy-mask";
|
|
316
|
+
DeviceRole["Doorbell"] = "doorbell";
|
|
317
|
+
/** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
|
|
318
|
+
DeviceRole["CoverBlind"] = "cover-blind";
|
|
319
|
+
/** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
|
|
320
|
+
DeviceRole["CoverShutter"] = "cover-shutter";
|
|
321
|
+
/** Exterior awning. HA `device_class: awning`. */
|
|
322
|
+
DeviceRole["CoverAwning"] = "cover-awning";
|
|
323
|
+
/** Curtain / drape. HA `device_class: curtain`. */
|
|
324
|
+
DeviceRole["CoverCurtain"] = "cover-curtain";
|
|
325
|
+
/** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
|
|
326
|
+
DeviceRole["CoverGarage"] = "cover-garage";
|
|
327
|
+
/** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
|
|
328
|
+
DeviceRole["CoverGate"] = "cover-gate";
|
|
329
|
+
/** Door. HA `device_class: door`. A security actuator: exports gate it. */
|
|
330
|
+
DeviceRole["CoverDoor"] = "cover-door";
|
|
331
|
+
/** Window. HA `device_class: window`. */
|
|
332
|
+
DeviceRole["CoverWindow"] = "cover-window";
|
|
333
|
+
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
334
|
+
* real Switch device for UI rendering / export adapters. */
|
|
335
|
+
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
336
|
+
/** A smart plug: a `switch` whose source says it is an outlet (HA
|
|
337
|
+
* `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
|
|
338
|
+
DeviceRole["Outlet"] = "outlet";
|
|
339
|
+
/** A dumb plug-in stove or heater behind a switch: it runs only while the
|
|
340
|
+
* switch is on. Offered `timed-run`, which switches it off again after a
|
|
341
|
+
* chosen time. */
|
|
342
|
+
DeviceRole["SwitchHeater"] = "switch-heater";
|
|
343
|
+
/** A plain fan behind a switch (a smart plug powering it): drawn as a fan,
|
|
344
|
+
* with the switch's on/off only. Speed or oscillation appear only when the
|
|
345
|
+
* device also has a fan cap (D1033). */
|
|
346
|
+
DeviceRole["SwitchFan"] = "switch-fan";
|
|
347
|
+
/** A relay driving an on/off-only lamp: drawn as a light (bulb and glow, no
|
|
348
|
+
* slider), presented to the exports as a light with power only. Not a
|
|
349
|
+
* `light` type: the provider owns the type, and a light implies brightness
|
|
350
|
+
* or colour this relay lacks. */
|
|
351
|
+
DeviceRole["SwitchLight"] = "switch-light";
|
|
352
|
+
/** One port of a network switch that powers the device behind it (PoE): on /
|
|
353
|
+
* off feeds or cuts that power. Its link is `network-link`, its draw
|
|
354
|
+
* `power-meter`. Restarting the powered device through the port is that
|
|
355
|
+
* device's `power-source` cap, never a reboot of the port. */
|
|
356
|
+
DeviceRole["PoePort"] = "poe-port";
|
|
357
|
+
/** Air conditioner / split unit: cooling, fan speed, louvres. */
|
|
358
|
+
DeviceRole["ClimateAc"] = "climate-ac";
|
|
359
|
+
/** Room thermostat: a setpoint and a room temperature. The default. */
|
|
360
|
+
DeviceRole["ClimateThermostat"] = "climate-thermostat";
|
|
361
|
+
/** Floor-heating zone actuator. */
|
|
362
|
+
DeviceRole["ClimateFloor"] = "climate-floor";
|
|
363
|
+
/** Radiator valve (thermostatic radiator head). */
|
|
364
|
+
DeviceRole["ClimateRadiator"] = "climate-radiator";
|
|
365
|
+
/** A heater with its own thermostat (stove, convector). */
|
|
366
|
+
DeviceRole["ClimateHeater"] = "climate-heater";
|
|
367
|
+
/** One heating/cooling circuit of a heat pump: a water loop with comfort /
|
|
368
|
+
* eco setpoints and a heat/cool mode, no room sensor. */
|
|
369
|
+
DeviceRole["ClimateHeatPumpCircuit"] = "climate-heat-pump-circuit";
|
|
370
|
+
/** Generic motion / occupancy / moving event source. Distinct from
|
|
371
|
+
* the camera accessory PirSensor role: that one is a camera child;
|
|
372
|
+
* this is a standalone HA / 3rd-party motion sensor. */
|
|
373
|
+
DeviceRole["MotionSensor"] = "motion-sensor";
|
|
374
|
+
DeviceRole["ContactSensor"] = "contact-sensor";
|
|
375
|
+
DeviceRole["LeakSensor"] = "leak-sensor";
|
|
376
|
+
DeviceRole["SmokeSensor"] = "smoke-sensor";
|
|
377
|
+
DeviceRole["COSensor"] = "co-sensor";
|
|
378
|
+
DeviceRole["GasSensor"] = "gas-sensor";
|
|
379
|
+
DeviceRole["TamperSensor"] = "tamper-sensor";
|
|
380
|
+
DeviceRole["VibrationSensor"] = "vibration-sensor";
|
|
381
|
+
DeviceRole["ConnectivitySensor"] = "connectivity-sensor";
|
|
382
|
+
DeviceRole["SoundSensor"] = "sound-sensor";
|
|
383
|
+
/** Fallback for `binary_sensor` without a known `device_class`. */
|
|
384
|
+
DeviceRole["BinarySensor"] = "binary-sensor";
|
|
385
|
+
DeviceRole["TemperatureSensor"] = "temperature-sensor";
|
|
386
|
+
DeviceRole["HumiditySensor"] = "humidity-sensor";
|
|
387
|
+
DeviceRole["AmbientLightSensor"] = "ambient-light-sensor";
|
|
388
|
+
DeviceRole["PressureSensor"] = "pressure-sensor";
|
|
389
|
+
/** Wind speed or direction (weather-station `wind-sensor` cap). */
|
|
390
|
+
DeviceRole["WindSensor"] = "wind-sensor";
|
|
391
|
+
/** Rain accumulation or rate (weather-station `rain-sensor` cap). */
|
|
392
|
+
DeviceRole["RainSensor"] = "rain-sensor";
|
|
393
|
+
/** UV index (weather-station `uv-sensor` cap). */
|
|
394
|
+
DeviceRole["UvSensor"] = "uv-sensor";
|
|
395
|
+
/** Solar irradiance W/m² (weather-station `solar-radiation-sensor` cap).
|
|
396
|
+
* Distinct from AmbientLightSensor (lux). */
|
|
397
|
+
DeviceRole["SolarRadiationSensor"] = "solar-radiation-sensor";
|
|
398
|
+
/** Soil moisture % (garden/weather `soil-moisture-sensor` cap). */
|
|
399
|
+
DeviceRole["SoilMoistureSensor"] = "soil-moisture-sensor";
|
|
400
|
+
DeviceRole["PowerSensor"] = "power-sensor";
|
|
401
|
+
DeviceRole["EnergySensor"] = "energy-sensor";
|
|
402
|
+
DeviceRole["VoltageSensor"] = "voltage-sensor";
|
|
403
|
+
DeviceRole["CurrentSensor"] = "current-sensor";
|
|
404
|
+
DeviceRole["AirQualitySensor"] = "air-quality-sensor";
|
|
405
|
+
/** Battery level (numeric % via `sensor` OR low-bool via
|
|
406
|
+
* `binary_sensor` — the cap distinguishes via the value type). */
|
|
407
|
+
DeviceRole["BatterySensor"] = "battery-sensor";
|
|
408
|
+
/** Fallback for `sensor` numeric without a known `device_class`. */
|
|
409
|
+
DeviceRole["NumericSensor"] = "numeric-sensor";
|
|
410
|
+
/** String / enum state (HA `sensor` with `state_class: enum` or
|
|
411
|
+
* `attributes.options`). */
|
|
412
|
+
DeviceRole["EnumSensor"] = "enum-sensor";
|
|
413
|
+
/** Date / timestamp state (HA `sensor` with `device_class: timestamp`
|
|
414
|
+
* or `date`). The slice carries the raw ISO string verbatim (hosted on
|
|
415
|
+
* the `enum-sensor` cap); the UI renders it locale-formatted. */
|
|
416
|
+
DeviceRole["DateTimeSensor"] = "datetime-sensor";
|
|
417
|
+
/** Last-resort fallback when nothing else matches. */
|
|
418
|
+
DeviceRole["GenericSensor"] = "generic-sensor";
|
|
419
|
+
DeviceRole["NumericControl"] = "numeric-control";
|
|
420
|
+
DeviceRole["SelectControl"] = "select-control";
|
|
421
|
+
DeviceRole["TextControl"] = "text-control";
|
|
422
|
+
DeviceRole["DateTimeControl"] = "datetime-control";
|
|
423
|
+
/** Mobile push notifier (HA `notify.mobile_app_*`) — supports
|
|
424
|
+
* rich features (image, priority, channel routing). */
|
|
425
|
+
DeviceRole["MobilePushNotifier"] = "mobile-push-notifier";
|
|
426
|
+
/** Chat / messaging service (HA `notify.telegram_*`,
|
|
427
|
+
* `notify.discord_*`, etc.). */
|
|
428
|
+
DeviceRole["MessagingNotifier"] = "messaging-notifier";
|
|
429
|
+
/** Email-based delivery (HA `notify.smtp`, etc.). */
|
|
430
|
+
DeviceRole["EmailNotifier"] = "email-notifier";
|
|
431
|
+
/** Fallback when the notifier service name doesn't match a known
|
|
432
|
+
* pattern. */
|
|
433
|
+
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
434
|
+
/** Emits a pulse train (infrared or RF) on request — the `ir-transmitter`
|
|
435
|
+
* cap. A `DeviceType.Generic` device. */
|
|
436
|
+
DeviceRole["IrTransmitter"] = "ir-transmitter";
|
|
437
|
+
/** A virtual machine on a hypervisor. */
|
|
438
|
+
DeviceRole["Vm"] = "vm";
|
|
439
|
+
/** An application container (Docker, Podman). */
|
|
440
|
+
DeviceRole["AppContainer"] = "app-container";
|
|
441
|
+
/** A system container (LXC). */
|
|
442
|
+
DeviceRole["Lxc"] = "lxc";
|
|
443
|
+
/** An application or service running on a host. */
|
|
444
|
+
DeviceRole["App"] = "app";
|
|
445
|
+
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
446
|
+
* server, a hypervisor, a gateway console, a CCU. */
|
|
447
|
+
DeviceRole["Host"] = "host";
|
|
448
|
+
/** An uninterruptible power supply: battery charge, mains status and load. A
|
|
449
|
+
* `DeviceType.Sensor` device. */
|
|
450
|
+
DeviceRole["Ups"] = "ups";
|
|
451
|
+
return DeviceRole;
|
|
452
|
+
}({});
|
|
453
|
+
//#endregion
|
|
454
|
+
Object.defineProperty(exports, "DeviceFeature", {
|
|
455
|
+
enumerable: true,
|
|
456
|
+
get: function() {
|
|
457
|
+
return DeviceFeature;
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
Object.defineProperty(exports, "DeviceRole", {
|
|
461
|
+
enumerable: true,
|
|
462
|
+
get: function() {
|
|
463
|
+
return DeviceRole;
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
Object.defineProperty(exports, "DeviceType", {
|
|
467
|
+
enumerable: true,
|
|
468
|
+
get: function() {
|
|
469
|
+
return DeviceType;
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
Object.defineProperty(exports, "featuresOfBoundCaps", {
|
|
473
|
+
enumerable: true,
|
|
474
|
+
get: function() {
|
|
475
|
+
return featuresOfBoundCaps;
|
|
476
|
+
}
|
|
477
|
+
});
|