@camstack/addon-provider-homeassistant 1.2.127 → 1.2.129
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/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-B_k0RK2L.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-device-source.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-
|
|
1
|
+
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-DiwcPIg7.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-device-source.ts
|
|
@@ -13835,6 +13835,43 @@ var deviceExportCapability = {
|
|
|
13835
13835
|
unexposeDevice: method(UnexposeInputSchema, _void(), { kind: "mutation" })
|
|
13836
13836
|
}
|
|
13837
13837
|
};
|
|
13838
|
+
/** Wire/storage schema for one icon id. */
|
|
13839
|
+
var LocationIconIdSchema = _enum([
|
|
13840
|
+
"map-pin",
|
|
13841
|
+
"house",
|
|
13842
|
+
"door-open",
|
|
13843
|
+
"sofa",
|
|
13844
|
+
"utensils",
|
|
13845
|
+
"bed-double",
|
|
13846
|
+
"bath",
|
|
13847
|
+
"briefcase",
|
|
13848
|
+
"car",
|
|
13849
|
+
"circle-parking",
|
|
13850
|
+
"route",
|
|
13851
|
+
"trees",
|
|
13852
|
+
"umbrella",
|
|
13853
|
+
"waves-ladder",
|
|
13854
|
+
"fence",
|
|
13855
|
+
"package",
|
|
13856
|
+
"warehouse",
|
|
13857
|
+
"store",
|
|
13858
|
+
"sun",
|
|
13859
|
+
"radar"
|
|
13860
|
+
]);
|
|
13861
|
+
/**
|
|
13862
|
+
* One (location, icon) assignment as it travels.
|
|
13863
|
+
*
|
|
13864
|
+
* `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
|
|
13865
|
+
* operator's casing. The registry matches labels trimmed + case-insensitively
|
|
13866
|
+
* everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
|
|
13867
|
+
* case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
|
|
13868
|
+
* map keyed on the displayed casing would orphan its entry on exactly that
|
|
13869
|
+
* edit. Consumers join by keying their own label through `locationIconKey`.
|
|
13870
|
+
*/
|
|
13871
|
+
var LocationIconAssignmentSchema = object({
|
|
13872
|
+
locationKey: string(),
|
|
13873
|
+
icon: LocationIconIdSchema
|
|
13874
|
+
});
|
|
13838
13875
|
var ProviderStatusSchema = object({
|
|
13839
13876
|
connected: boolean(),
|
|
13840
13877
|
deviceCount: number(),
|
|
@@ -14427,6 +14464,12 @@ method(object({
|
|
|
14427
14464
|
}), object({ moved: number() }), {
|
|
14428
14465
|
kind: "mutation",
|
|
14429
14466
|
auth: "admin"
|
|
14467
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
14468
|
+
location: string(),
|
|
14469
|
+
icon: LocationIconIdSchema.nullable()
|
|
14470
|
+
}), _void(), {
|
|
14471
|
+
kind: "mutation",
|
|
14472
|
+
auth: "admin"
|
|
14430
14473
|
}), method(object({
|
|
14431
14474
|
deviceId: number(),
|
|
14432
14475
|
disabled: boolean()
|
|
@@ -20431,6 +20474,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20431
20474
|
"keyFrame",
|
|
20432
20475
|
"keyFrameSmall",
|
|
20433
20476
|
"thumbnailSmall",
|
|
20477
|
+
"confirmationCrop",
|
|
20434
20478
|
"sceneFrame"
|
|
20435
20479
|
]);
|
|
20436
20480
|
/**
|
|
@@ -37455,6 +37499,12 @@ Object.freeze({
|
|
|
37455
37499
|
addonId: null,
|
|
37456
37500
|
access: "view"
|
|
37457
37501
|
},
|
|
37502
|
+
"deviceManager.listLocationIcons": {
|
|
37503
|
+
capName: "device-manager",
|
|
37504
|
+
capScope: "system",
|
|
37505
|
+
addonId: null,
|
|
37506
|
+
access: "view"
|
|
37507
|
+
},
|
|
37458
37508
|
"deviceManager.listLocations": {
|
|
37459
37509
|
capName: "device-manager",
|
|
37460
37510
|
capScope: "system",
|
|
@@ -37599,6 +37649,12 @@ Object.freeze({
|
|
|
37599
37649
|
addonId: null,
|
|
37600
37650
|
access: "create"
|
|
37601
37651
|
},
|
|
37652
|
+
"deviceManager.setLocationIcon": {
|
|
37653
|
+
capName: "device-manager",
|
|
37654
|
+
capScope: "system",
|
|
37655
|
+
addonId: null,
|
|
37656
|
+
access: "create"
|
|
37657
|
+
},
|
|
37602
37658
|
"deviceManager.setMetadata": {
|
|
37603
37659
|
capName: "device-manager",
|
|
37604
37660
|
capScope: "system",
|
|
@@ -13835,6 +13835,43 @@ var deviceExportCapability = {
|
|
|
13835
13835
|
unexposeDevice: method(UnexposeInputSchema, _void(), { kind: "mutation" })
|
|
13836
13836
|
}
|
|
13837
13837
|
};
|
|
13838
|
+
/** Wire/storage schema for one icon id. */
|
|
13839
|
+
var LocationIconIdSchema = _enum([
|
|
13840
|
+
"map-pin",
|
|
13841
|
+
"house",
|
|
13842
|
+
"door-open",
|
|
13843
|
+
"sofa",
|
|
13844
|
+
"utensils",
|
|
13845
|
+
"bed-double",
|
|
13846
|
+
"bath",
|
|
13847
|
+
"briefcase",
|
|
13848
|
+
"car",
|
|
13849
|
+
"circle-parking",
|
|
13850
|
+
"route",
|
|
13851
|
+
"trees",
|
|
13852
|
+
"umbrella",
|
|
13853
|
+
"waves-ladder",
|
|
13854
|
+
"fence",
|
|
13855
|
+
"package",
|
|
13856
|
+
"warehouse",
|
|
13857
|
+
"store",
|
|
13858
|
+
"sun",
|
|
13859
|
+
"radar"
|
|
13860
|
+
]);
|
|
13861
|
+
/**
|
|
13862
|
+
* One (location, icon) assignment as it travels.
|
|
13863
|
+
*
|
|
13864
|
+
* `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
|
|
13865
|
+
* operator's casing. The registry matches labels trimmed + case-insensitively
|
|
13866
|
+
* everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
|
|
13867
|
+
* case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
|
|
13868
|
+
* map keyed on the displayed casing would orphan its entry on exactly that
|
|
13869
|
+
* edit. Consumers join by keying their own label through `locationIconKey`.
|
|
13870
|
+
*/
|
|
13871
|
+
var LocationIconAssignmentSchema = object({
|
|
13872
|
+
locationKey: string(),
|
|
13873
|
+
icon: LocationIconIdSchema
|
|
13874
|
+
});
|
|
13838
13875
|
var ProviderStatusSchema = object({
|
|
13839
13876
|
connected: boolean(),
|
|
13840
13877
|
deviceCount: number(),
|
|
@@ -14427,6 +14464,12 @@ method(object({
|
|
|
14427
14464
|
}), object({ moved: number() }), {
|
|
14428
14465
|
kind: "mutation",
|
|
14429
14466
|
auth: "admin"
|
|
14467
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
14468
|
+
location: string(),
|
|
14469
|
+
icon: LocationIconIdSchema.nullable()
|
|
14470
|
+
}), _void(), {
|
|
14471
|
+
kind: "mutation",
|
|
14472
|
+
auth: "admin"
|
|
14430
14473
|
}), method(object({
|
|
14431
14474
|
deviceId: number(),
|
|
14432
14475
|
disabled: boolean()
|
|
@@ -20431,6 +20474,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20431
20474
|
"keyFrame",
|
|
20432
20475
|
"keyFrameSmall",
|
|
20433
20476
|
"thumbnailSmall",
|
|
20477
|
+
"confirmationCrop",
|
|
20434
20478
|
"sceneFrame"
|
|
20435
20479
|
]);
|
|
20436
20480
|
/**
|
|
@@ -37455,6 +37499,12 @@ Object.freeze({
|
|
|
37455
37499
|
addonId: null,
|
|
37456
37500
|
access: "view"
|
|
37457
37501
|
},
|
|
37502
|
+
"deviceManager.listLocationIcons": {
|
|
37503
|
+
capName: "device-manager",
|
|
37504
|
+
capScope: "system",
|
|
37505
|
+
addonId: null,
|
|
37506
|
+
access: "view"
|
|
37507
|
+
},
|
|
37458
37508
|
"deviceManager.listLocations": {
|
|
37459
37509
|
capName: "device-manager",
|
|
37460
37510
|
capScope: "system",
|
|
@@ -37599,6 +37649,12 @@ Object.freeze({
|
|
|
37599
37649
|
addonId: null,
|
|
37600
37650
|
access: "create"
|
|
37601
37651
|
},
|
|
37652
|
+
"deviceManager.setLocationIcon": {
|
|
37653
|
+
capName: "device-manager",
|
|
37654
|
+
capScope: "system",
|
|
37655
|
+
addonId: null,
|
|
37656
|
+
access: "create"
|
|
37657
|
+
},
|
|
37602
37658
|
"deviceManager.setMetadata": {
|
|
37603
37659
|
capName: "device-manager",
|
|
37604
37660
|
capScope: "system",
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#endregion
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-B_k0RK2L.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-
|
|
1
|
+
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-DiwcPIg7.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|