@riddix/hamh 2.1.0-alpha.612 → 2.1.0-alpha.613
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/dist/backend/cli.js +73 -0
- package/dist/backend/cli.js.map +1 -1
- package/dist/frontend/assets/index-D3FBYf6j.js +473 -0
- package/dist/frontend/assets/index-G-pxPqsB.css +1 -0
- package/dist/frontend/assets/javascript-BQ_IDdmx.js +1 -0
- package/dist/frontend/assets/roboto-cyrillic-300-normal-DEFNdjk5.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-300-normal-DzUz0kzv.woff2 +0 -0
- package/dist/frontend/assets/{roboto-cyrillic-400-normal-DZJji7Rx.woff → roboto-cyrillic-400-normal-Bjg-1-sg.woff} +0 -0
- package/dist/frontend/assets/roboto-cyrillic-400-normal-CBPI_iaY.woff2 +0 -0
- package/dist/frontend/assets/{roboto-cyrillic-500-normal-BI4HuXre.woff → roboto-cyrillic-500-normal-CBKMylY4.woff} +0 -0
- package/dist/frontend/assets/roboto-cyrillic-500-normal-CLao9AfR.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-700-normal-C2o7G-SM.woff2 +0 -0
- package/dist/frontend/assets/{roboto-cyrillic-700-normal-KqaQ5bNp.woff → roboto-cyrillic-700-normal-DhZFXDSN.woff} +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-300-normal-D7ank4TF.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-300-normal-DIxttMbC.woff2 +0 -0
- package/dist/frontend/assets/{roboto-cyrillic-ext-400-normal-DtZHuW6i.woff → roboto-cyrillic-ext-400-normal-CaK1767H.woff} +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-400-normal-qHufge6k.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-500-normal-BWC_xYeb.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-500-normal-DqF2hftb.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-700-normal-CI7FH63F.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-700-normal-DmFxo5wj.woff2 +0 -0
- package/dist/frontend/assets/roboto-greek-300-normal-C_Dgaih9.woff +0 -0
- package/dist/frontend/assets/roboto-greek-300-normal-DJEM9B4Z.woff2 +0 -0
- package/dist/frontend/assets/{roboto-greek-400-normal-CcizSnRP.woff → roboto-greek-400-normal-Bb5mj_fZ.woff} +0 -0
- package/dist/frontend/assets/roboto-greek-400-normal-ai2Z1K3C.woff2 +0 -0
- package/dist/frontend/assets/roboto-greek-500-normal-C9AnhcmC.woff2 +0 -0
- package/dist/frontend/assets/{roboto-greek-500-normal-BLLWU9W-.woff → roboto-greek-500-normal-oCqhoyfc.woff} +0 -0
- package/dist/frontend/assets/roboto-greek-700-normal-0aHWxGLu.woff2 +0 -0
- package/dist/frontend/assets/{roboto-greek-700-normal-D3kmAf0K.woff → roboto-greek-700-normal-DjRqqLBV.woff} +0 -0
- package/dist/frontend/assets/roboto-latin-300-normal-BARJ-h6h.woff +0 -0
- package/dist/frontend/assets/roboto-latin-300-normal-CCzlftfr.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-400-normal-BqEyEoaF.woff2 +0 -0
- package/dist/frontend/assets/{roboto-latin-400-normal-068yxgMN.woff → roboto-latin-400-normal-DyYNIH4P.woff} +0 -0
- package/dist/frontend/assets/roboto-latin-500-normal-7RbcRiD8.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-500-normal-DQZyH_nt.woff +0 -0
- package/dist/frontend/assets/roboto-latin-700-normal-BZpUvMxY.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-700-normal-DLgJJpmK.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-300-normal-B90pq-BC.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-300-normal-CTCCHkZF.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-400-normal-C3tdtHj3.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-400-normal-scX0fKtV.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-500-normal-Cyc0AKLz.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-500-normal-pMCM9Ixg.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-700-normal-BUhwtWwy.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-700-normal-DSBUz0N1.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-300-normal-5dF_7mZP.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-300-normal-Ds0YpBw2.woff +0 -0
- package/dist/frontend/assets/roboto-math-400-normal-BEFej5gc.woff2 +0 -0
- package/dist/frontend/assets/{roboto-math-400-normal-rzxYvyVt.woff → roboto-math-400-normal-C9RxBKAh.woff} +0 -0
- package/dist/frontend/assets/{roboto-math-500-normal-DaFX-ZC8.woff → roboto-math-500-normal-C-7mKPO3.woff} +0 -0
- package/dist/frontend/assets/roboto-math-500-normal-C4NU9gLX.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-700-normal-B8YqGHVc.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-700-normal-DVoD5t2k.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-300-normal-BCnjhQd_.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-300-normal-DDU7avhj.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-400-normal-CB1Ce4Gk.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-400-normal-DLYbZahX.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-500-normal-B_CZKVJS.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-500-normal-F7c8nfcH.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-700-normal-BiFDindJ.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-700-normal-BoS6HWkc.woff +0 -0
- package/dist/frontend/assets/roboto-vietnamese-300-normal-BPvXm_f1.woff2 +0 -0
- package/dist/frontend/assets/roboto-vietnamese-300-normal-INUupD3o.woff +0 -0
- package/dist/frontend/assets/roboto-vietnamese-400-normal-D2PTxGxD.woff2 +0 -0
- package/dist/frontend/assets/{roboto-vietnamese-400-normal-DmXaN3yE.woff → roboto-vietnamese-400-normal-DnpnVwnf.woff} +0 -0
- package/dist/frontend/assets/roboto-vietnamese-500-normal-B3ncpOoB.woff2 +0 -0
- package/dist/frontend/assets/{roboto-vietnamese-500-normal-DW96CsrR.woff → roboto-vietnamese-500-normal-D380IkQ8.woff} +0 -0
- package/dist/frontend/assets/roboto-vietnamese-700-normal-BEVeWqJt.woff2 +0 -0
- package/dist/frontend/assets/{roboto-vietnamese-700-normal-Dz0HwF-w.woff → roboto-vietnamese-700-normal-DsFyXAL4.woff} +0 -0
- package/dist/frontend/assets/vitesse-dark-tyNGF42e.js +1 -0
- package/dist/frontend/assets/vitesse-light-B2NYzK0e.js +1 -0
- package/dist/frontend/index.html +2 -2
- package/package.json +5 -5
- package/dist/frontend/assets/index-BNdBOwwe.css +0 -1
- package/dist/frontend/assets/index-Ch21tWiH.js +0 -499
- package/dist/frontend/assets/javascript-ySlJ1b_l.js +0 -1
- package/dist/frontend/assets/roboto-cyrillic-300-normal-BoeCr7ev.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-300-normal-D568C3aM.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-400-normal-DAIM1_dR.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-500-normal-hCeO1jFL.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-700-normal-BiSG5NnW.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-300-normal-CUPJdUZp.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-300-normal-DQdcc27I.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-400-normal-DzMWdK87.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-500-normal-B7rQpwPu.woff2 +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-500-normal-C927yMrb.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-700-normal-BuQgZIrO.woff +0 -0
- package/dist/frontend/assets/roboto-cyrillic-ext-700-normal-UFn0vR9r.woff2 +0 -0
- package/dist/frontend/assets/roboto-greek-300-normal-CTj2MfNN.woff +0 -0
- package/dist/frontend/assets/roboto-greek-300-normal-Cnub06j7.woff2 +0 -0
- package/dist/frontend/assets/roboto-greek-400-normal-jFM2czAU.woff2 +0 -0
- package/dist/frontend/assets/roboto-greek-500-normal-BJMS0heP.woff2 +0 -0
- package/dist/frontend/assets/roboto-greek-700-normal-BcGn9doz.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-300-normal-CztWkFGs.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-300-normal-KByCBsad.woff +0 -0
- package/dist/frontend/assets/roboto-latin-400-normal-CNwBRw8h.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-500-normal-CC5nhZkh.woff +0 -0
- package/dist/frontend/assets/roboto-latin-500-normal-CkrA1NAy.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-700-normal-CXeAXeti.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-700-normal-DUekQERp.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-300-normal-BOz0oSmX.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-300-normal-Tcf9y2tg.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-400-normal-ZYmyxeOy.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-400-normal-eTRLN0Nt.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-500-normal-C_ARlJGk.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-500-normal-FFcS8vBN.woff +0 -0
- package/dist/frontend/assets/roboto-latin-ext-700-normal-70GS1MYH.woff2 +0 -0
- package/dist/frontend/assets/roboto-latin-ext-700-normal-BS1OuQqR.woff +0 -0
- package/dist/frontend/assets/roboto-math-300-normal-BMxwzQmU.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-300-normal-BU9CUCyj.woff +0 -0
- package/dist/frontend/assets/roboto-math-400-normal-B3wgz80t.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-500-normal-CFNaIMFC.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-700-normal-VUAI6Bz2.woff2 +0 -0
- package/dist/frontend/assets/roboto-math-700-normal-pYD1nhov.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-300-normal-BtHl5mYl.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-300-normal-kyoSXp-d.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-400-normal-Tzuungub.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-400-normal-fF1SLJBj.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-500-normal-BXFTxrNR.woff2 +0 -0
- package/dist/frontend/assets/roboto-symbols-500-normal-CAhAe-ik.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-700-normal-CuuvBBxy.woff +0 -0
- package/dist/frontend/assets/roboto-symbols-700-normal-rJi6RjIy.woff2 +0 -0
- package/dist/frontend/assets/roboto-vietnamese-300-normal-CNeuLW5X.woff2 +0 -0
- package/dist/frontend/assets/roboto-vietnamese-300-normal-DXBG9gdz.woff +0 -0
- package/dist/frontend/assets/roboto-vietnamese-400-normal-CDDxGrUb.woff2 +0 -0
- package/dist/frontend/assets/roboto-vietnamese-500-normal-HYpufUYk.woff2 +0 -0
- package/dist/frontend/assets/roboto-vietnamese-700-normal-iKxYNAzq.woff2 +0 -0
- package/dist/frontend/assets/vitesse-dark-D0r3Knsf.js +0 -1
- package/dist/frontend/assets/vitesse-light-CVO1_9PV.js +0 -1
package/dist/backend/cli.js
CHANGED
|
@@ -145640,6 +145640,7 @@ var init_service = __esm({
|
|
|
145640
145640
|
constructor(serviceName) {
|
|
145641
145641
|
this.serviceName = serviceName;
|
|
145642
145642
|
}
|
|
145643
|
+
serviceName;
|
|
145643
145644
|
construction = new Promise((resolve6, reject) => {
|
|
145644
145645
|
setImmediate(() => {
|
|
145645
145646
|
const init = this.initialize?.bind(this) ?? (async () => {
|
|
@@ -147139,6 +147140,7 @@ var init_debounce_context = __esm({
|
|
|
147139
147140
|
constructor(fn) {
|
|
147140
147141
|
this.fn = fn;
|
|
147141
147142
|
}
|
|
147143
|
+
fn;
|
|
147142
147144
|
buffers = /* @__PURE__ */ new Map();
|
|
147143
147145
|
debouncers = /* @__PURE__ */ new Map();
|
|
147144
147146
|
get(key, wait) {
|
|
@@ -147236,6 +147238,8 @@ var init_retry = __esm({
|
|
|
147236
147238
|
this.failureThreshold = failureThreshold;
|
|
147237
147239
|
this.resetTimeoutMs = resetTimeoutMs;
|
|
147238
147240
|
}
|
|
147241
|
+
failureThreshold;
|
|
147242
|
+
resetTimeoutMs;
|
|
147239
147243
|
failures = 0;
|
|
147240
147244
|
lastFailureTime = 0;
|
|
147241
147245
|
state = "closed";
|
|
@@ -147306,6 +147310,7 @@ var init_home_assistant_actions = __esm({
|
|
|
147306
147310
|
this.config.circuitBreakerResetMs
|
|
147307
147311
|
);
|
|
147308
147312
|
}
|
|
147313
|
+
client;
|
|
147309
147314
|
log;
|
|
147310
147315
|
debounceContext = new DebounceContext(
|
|
147311
147316
|
this.processAction.bind(this)
|
|
@@ -147554,6 +147559,7 @@ var DiagnosticService = class {
|
|
|
147554
147559
|
this.bridgeService = bridgeService;
|
|
147555
147560
|
this.startTime = Date.now();
|
|
147556
147561
|
}
|
|
147562
|
+
bridgeService;
|
|
147557
147563
|
startTime;
|
|
147558
147564
|
collectEntities(aggregator) {
|
|
147559
147565
|
const entities = [];
|
|
@@ -151232,6 +151238,8 @@ var WebSocketApi = class {
|
|
|
151232
151238
|
this.log = log;
|
|
151233
151239
|
this.bridgeService = bridgeService;
|
|
151234
151240
|
}
|
|
151241
|
+
log;
|
|
151242
|
+
bridgeService;
|
|
151235
151243
|
wss;
|
|
151236
151244
|
clients = /* @__PURE__ */ new Set();
|
|
151237
151245
|
diagnosticSubscribers = /* @__PURE__ */ new Set();
|
|
@@ -151376,6 +151384,15 @@ var WebApi = class extends Service {
|
|
|
151376
151384
|
);
|
|
151377
151385
|
this.wsApi.setDiagnosticService(new DiagnosticService(bridgeService));
|
|
151378
151386
|
}
|
|
151387
|
+
bridgeService;
|
|
151388
|
+
haClient;
|
|
151389
|
+
haRegistry;
|
|
151390
|
+
bridgeStorage;
|
|
151391
|
+
mappingStorage;
|
|
151392
|
+
lockCredentialStorage;
|
|
151393
|
+
settingsStorage;
|
|
151394
|
+
backupService;
|
|
151395
|
+
props;
|
|
151379
151396
|
log;
|
|
151380
151397
|
logger;
|
|
151381
151398
|
accessLogger;
|
|
@@ -151590,6 +151607,9 @@ var BetterLogger = class _BetterLogger extends Logger {
|
|
|
151590
151607
|
this._level = _level;
|
|
151591
151608
|
this._jsonOutput = _jsonOutput;
|
|
151592
151609
|
}
|
|
151610
|
+
loggerName;
|
|
151611
|
+
_level;
|
|
151612
|
+
_jsonOutput;
|
|
151593
151613
|
createChild(name) {
|
|
151594
151614
|
return new _BetterLogger(
|
|
151595
151615
|
`${this.loggerName} / ${name}`,
|
|
@@ -151782,6 +151802,7 @@ ${json}
|
|
|
151782
151802
|
return json;
|
|
151783
151803
|
};
|
|
151784
151804
|
}
|
|
151805
|
+
log;
|
|
151785
151806
|
removeClusters(object, clusters) {
|
|
151786
151807
|
if (clusters.length === 0) {
|
|
151787
151808
|
return object;
|
|
@@ -151800,6 +151821,8 @@ var CustomStorage = class extends StorageBackendDisk {
|
|
|
151800
151821
|
this.log = log;
|
|
151801
151822
|
this.path = path14;
|
|
151802
151823
|
}
|
|
151824
|
+
log;
|
|
151825
|
+
path;
|
|
151803
151826
|
async initialize() {
|
|
151804
151827
|
await super.initialize();
|
|
151805
151828
|
if (fs7.existsSync(`${this.path}.json`)) {
|
|
@@ -151881,6 +151904,7 @@ var Options = class {
|
|
|
151881
151904
|
constructor(startOptions) {
|
|
151882
151905
|
this.startOptions = startOptions;
|
|
151883
151906
|
}
|
|
151907
|
+
startOptions;
|
|
151884
151908
|
get mdns() {
|
|
151885
151909
|
return {
|
|
151886
151910
|
ipv4: true,
|
|
@@ -151981,6 +152005,10 @@ var BackupService = class {
|
|
|
151981
152005
|
this.backupDir = path10.join(props.storageLocation, "backups");
|
|
151982
152006
|
fs9.mkdirSync(this.backupDir, { recursive: true });
|
|
151983
152007
|
}
|
|
152008
|
+
bridgeStorage;
|
|
152009
|
+
mappingStorage;
|
|
152010
|
+
settingsStorage;
|
|
152011
|
+
props;
|
|
151984
152012
|
log = Logger.get("BackupService");
|
|
151985
152013
|
backupDir;
|
|
151986
152014
|
async createBackup(auto) {
|
|
@@ -152179,6 +152207,9 @@ var BridgeService = class extends Service {
|
|
|
152179
152207
|
this.props = props;
|
|
152180
152208
|
this.autoRecoveryEnabled = props.autoRecovery ?? true;
|
|
152181
152209
|
}
|
|
152210
|
+
bridgeStorage;
|
|
152211
|
+
bridgeFactory;
|
|
152212
|
+
props;
|
|
152182
152213
|
log = Logger.get("BridgeService");
|
|
152183
152214
|
bridges = [];
|
|
152184
152215
|
autoRecoveryEnabled = false;
|
|
@@ -152410,6 +152441,7 @@ var HomeAssistantClient = class extends Service {
|
|
|
152410
152441
|
this.options = options;
|
|
152411
152442
|
this.log = logger205.get(this);
|
|
152412
152443
|
}
|
|
152444
|
+
options;
|
|
152413
152445
|
static Options = /* @__PURE__ */ Symbol.for("HomeAssistantClientProps");
|
|
152414
152446
|
_connection;
|
|
152415
152447
|
log;
|
|
@@ -152507,6 +152539,7 @@ var HomeAssistantConfig = class extends Service {
|
|
|
152507
152539
|
super("HomeAssistantConfig");
|
|
152508
152540
|
this.client = client;
|
|
152509
152541
|
}
|
|
152542
|
+
client;
|
|
152510
152543
|
config;
|
|
152511
152544
|
get unitSystem() {
|
|
152512
152545
|
return this.config.unit_system;
|
|
@@ -152590,6 +152623,8 @@ var HomeAssistantRegistry = class extends Service {
|
|
|
152590
152623
|
this.client = client;
|
|
152591
152624
|
this.options = options;
|
|
152592
152625
|
}
|
|
152626
|
+
client;
|
|
152627
|
+
options;
|
|
152593
152628
|
autoRefresh;
|
|
152594
152629
|
lastRegistryFingerprint = "";
|
|
152595
152630
|
_devices = {};
|
|
@@ -152801,6 +152836,7 @@ var AppSettingsStorage = class extends Service {
|
|
|
152801
152836
|
super("AppSettingsStorage");
|
|
152802
152837
|
this.appStorage = appStorage;
|
|
152803
152838
|
}
|
|
152839
|
+
appStorage;
|
|
152804
152840
|
storage;
|
|
152805
152841
|
settings = {};
|
|
152806
152842
|
// Caches the last plaintext password that was successfully verified
|
|
@@ -152905,6 +152941,7 @@ var AppStorage = class extends Service {
|
|
|
152905
152941
|
super("AppStorage");
|
|
152906
152942
|
this.storageService = storageService;
|
|
152907
152943
|
}
|
|
152944
|
+
storageService;
|
|
152908
152945
|
storageManager;
|
|
152909
152946
|
async initialize() {
|
|
152910
152947
|
this.storageManager = await this.storageService.open("app");
|
|
@@ -153009,6 +153046,7 @@ var BridgeStorage = class extends Service {
|
|
|
153009
153046
|
super("BridgeStorage");
|
|
153010
153047
|
this.appStorage = appStorage;
|
|
153011
153048
|
}
|
|
153049
|
+
appStorage;
|
|
153012
153050
|
storage;
|
|
153013
153051
|
_bridges = [];
|
|
153014
153052
|
async initialize() {
|
|
@@ -153076,6 +153114,7 @@ var EntityMappingStorage = class extends Service {
|
|
|
153076
153114
|
super("EntityMappingStorage");
|
|
153077
153115
|
this.appStorage = appStorage;
|
|
153078
153116
|
}
|
|
153117
|
+
appStorage;
|
|
153079
153118
|
storage;
|
|
153080
153119
|
mappings = /* @__PURE__ */ new Map();
|
|
153081
153120
|
async initialize() {
|
|
@@ -153202,6 +153241,7 @@ var LockCredentialStorage = class extends Service {
|
|
|
153202
153241
|
super("LockCredentialStorage");
|
|
153203
153242
|
this.appStorage = appStorage;
|
|
153204
153243
|
}
|
|
153244
|
+
appStorage;
|
|
153205
153245
|
storage;
|
|
153206
153246
|
credentials = /* @__PURE__ */ new Map();
|
|
153207
153247
|
async initialize() {
|
|
@@ -167437,6 +167477,8 @@ var Bridge = class {
|
|
|
167437
167477
|
softwareVersionString: basicInformation.softwareVersionString
|
|
167438
167478
|
});
|
|
167439
167479
|
}
|
|
167480
|
+
dataProvider;
|
|
167481
|
+
endpointManager;
|
|
167440
167482
|
log;
|
|
167441
167483
|
server;
|
|
167442
167484
|
status = {
|
|
@@ -167964,6 +168006,7 @@ var EntityEndpoint = class extends Endpoint {
|
|
|
167964
168006
|
this.entityId = entityId;
|
|
167965
168007
|
this.mappedEntityIds = mappedEntityIds ?? [];
|
|
167966
168008
|
}
|
|
168009
|
+
entityId;
|
|
167967
168010
|
mappedEntityIds;
|
|
167968
168011
|
lastMappedStates = {};
|
|
167969
168012
|
hasMappedEntityChanged(states) {
|
|
@@ -168019,6 +168062,7 @@ var EntityStateProvider = class extends Service {
|
|
|
168019
168062
|
super("EntityStateProvider");
|
|
168020
168063
|
this.registry = registry2;
|
|
168021
168064
|
}
|
|
168065
|
+
registry;
|
|
168022
168066
|
/**
|
|
168023
168067
|
* Get the current state of an entity by its ID.
|
|
168024
168068
|
* Returns undefined if the entity doesn't exist or has no state.
|
|
@@ -168102,6 +168146,8 @@ var Temperature = class _Temperature {
|
|
|
168102
168146
|
this.value = value;
|
|
168103
168147
|
this.unit = unit;
|
|
168104
168148
|
}
|
|
168149
|
+
value;
|
|
168150
|
+
unit;
|
|
168105
168151
|
static withUnit(value, unit) {
|
|
168106
168152
|
if (Number.isNaN(value)) {
|
|
168107
168153
|
return void 0;
|
|
@@ -168605,6 +168651,8 @@ var FanMode = class _FanMode {
|
|
|
168605
168651
|
this.mode = mode;
|
|
168606
168652
|
this.sequence = sequence;
|
|
168607
168653
|
}
|
|
168654
|
+
mode;
|
|
168655
|
+
sequence;
|
|
168608
168656
|
static create(mode, sequence) {
|
|
168609
168657
|
let currentMode;
|
|
168610
168658
|
if (mode === FanControl3.FanMode.On) {
|
|
@@ -168683,6 +168731,8 @@ var FanSpeed = class _FanSpeed {
|
|
|
168683
168731
|
this.currentSpeed = currentSpeed;
|
|
168684
168732
|
this.maxSpeed = maxSpeed;
|
|
168685
168733
|
}
|
|
168734
|
+
currentSpeed;
|
|
168735
|
+
maxSpeed;
|
|
168686
168736
|
step(request) {
|
|
168687
168737
|
const direction = request.direction === FanControl3.StepDirection.Increase ? 1 : -1;
|
|
168688
168738
|
let next = this.currentSpeed + direction;
|
|
@@ -179891,6 +179941,14 @@ var BridgeEndpointManager = class extends Service {
|
|
|
179891
179941
|
this.wirePluginCallbacks();
|
|
179892
179942
|
}
|
|
179893
179943
|
}
|
|
179944
|
+
client;
|
|
179945
|
+
registry;
|
|
179946
|
+
mappingStorage;
|
|
179947
|
+
bridgeId;
|
|
179948
|
+
log;
|
|
179949
|
+
pluginManager;
|
|
179950
|
+
pluginRegistry;
|
|
179951
|
+
pluginInstaller;
|
|
179894
179952
|
root;
|
|
179895
179953
|
entityIds = [];
|
|
179896
179954
|
unsubscribe;
|
|
@@ -180375,6 +180433,9 @@ var BridgeRegistry = class _BridgeRegistry {
|
|
|
180375
180433
|
this.client = client;
|
|
180376
180434
|
this.refresh();
|
|
180377
180435
|
}
|
|
180436
|
+
registry;
|
|
180437
|
+
dataProvider;
|
|
180438
|
+
client;
|
|
180378
180439
|
get entityIds() {
|
|
180379
180440
|
return keys2(this._entities);
|
|
180380
180441
|
}
|
|
@@ -181053,6 +181114,9 @@ var ServerModeBridge = class {
|
|
|
181053
181114
|
this.server = server;
|
|
181054
181115
|
this.log = logger205.get(`ServerModeBridge / ${dataProvider.id}`);
|
|
181055
181116
|
}
|
|
181117
|
+
dataProvider;
|
|
181118
|
+
endpointManager;
|
|
181119
|
+
server;
|
|
181056
181120
|
log;
|
|
181057
181121
|
status = {
|
|
181058
181122
|
code: BridgeStatus.Stopped,
|
|
@@ -181892,6 +181956,12 @@ var ServerModeEndpointManager = class extends Service {
|
|
|
181892
181956
|
this.bridgeId = bridgeId;
|
|
181893
181957
|
this.log = log;
|
|
181894
181958
|
}
|
|
181959
|
+
serverNode;
|
|
181960
|
+
client;
|
|
181961
|
+
registry;
|
|
181962
|
+
mappingStorage;
|
|
181963
|
+
bridgeId;
|
|
181964
|
+
log;
|
|
181895
181965
|
entityIds = [];
|
|
181896
181966
|
unsubscribe;
|
|
181897
181967
|
_failedEntities = [];
|
|
@@ -182208,6 +182278,8 @@ var BridgeEnvironmentFactory = class extends BridgeFactory {
|
|
|
182208
182278
|
this.parent = parent;
|
|
182209
182279
|
this.storageLocation = storageLocation;
|
|
182210
182280
|
}
|
|
182281
|
+
parent;
|
|
182282
|
+
storageLocation;
|
|
182211
182283
|
async create(initialData) {
|
|
182212
182284
|
const isServerMode = initialData.featureFlags?.serverMode === true;
|
|
182213
182285
|
if (isServerMode) {
|
|
@@ -182281,6 +182353,7 @@ var AppEnvironment = class _AppEnvironment extends EnvironmentBase {
|
|
|
182281
182353
|
this.options = options;
|
|
182282
182354
|
this.construction = this.init();
|
|
182283
182355
|
}
|
|
182356
|
+
options;
|
|
182284
182357
|
static async create(rootEnv, options) {
|
|
182285
182358
|
const app = new _AppEnvironment(rootEnv, options);
|
|
182286
182359
|
await app.construction;
|