@camstack/addon-provider-homeassistant 1.2.128 → 1.2.130
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-CtI-xJvm.mjs → dist-D_LRpYil.mjs} +188 -0
- package/dist/{dist-D1QDAdLf.js → dist-ynceaZDr.js} +188 -0
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
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-ynceaZDr.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-D_LRpYil.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,107 @@ 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
|
+
});
|
|
13875
|
+
/**
|
|
13876
|
+
* One (location, description) assignment as it travels.
|
|
13877
|
+
*
|
|
13878
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13879
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13880
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13881
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13882
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13883
|
+
* off the location itself, on `locationIconKey`.
|
|
13884
|
+
*/
|
|
13885
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13886
|
+
locationKey: string(),
|
|
13887
|
+
description: string()
|
|
13888
|
+
});
|
|
13889
|
+
/**
|
|
13890
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13891
|
+
*
|
|
13892
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13893
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13894
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13895
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13896
|
+
*
|
|
13897
|
+
* ## Why not `zone`
|
|
13898
|
+
*
|
|
13899
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13900
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13901
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13902
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13903
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13904
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13905
|
+
*
|
|
13906
|
+
* ## The key
|
|
13907
|
+
*
|
|
13908
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13909
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13910
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13911
|
+
* silently-dropped location description.
|
|
13912
|
+
*
|
|
13913
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13914
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13915
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13916
|
+
*/
|
|
13917
|
+
/**
|
|
13918
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13919
|
+
* the locations inside it.
|
|
13920
|
+
*
|
|
13921
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13922
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13923
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13924
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13925
|
+
* it has not fetched yet.
|
|
13926
|
+
*
|
|
13927
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13928
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13929
|
+
*/
|
|
13930
|
+
var SiteZoneSchema = object({
|
|
13931
|
+
zoneKey: string(),
|
|
13932
|
+
label: string(),
|
|
13933
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13934
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13935
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13936
|
+
* the ones that most want grouping. */
|
|
13937
|
+
locationKeys: array(string())
|
|
13938
|
+
});
|
|
13838
13939
|
var ProviderStatusSchema = object({
|
|
13839
13940
|
connected: boolean(),
|
|
13840
13941
|
deviceCount: number(),
|
|
@@ -14427,6 +14528,39 @@ method(object({
|
|
|
14427
14528
|
}), object({ moved: number() }), {
|
|
14428
14529
|
kind: "mutation",
|
|
14429
14530
|
auth: "admin"
|
|
14531
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
14532
|
+
location: string(),
|
|
14533
|
+
icon: LocationIconIdSchema.nullable()
|
|
14534
|
+
}), _void(), {
|
|
14535
|
+
kind: "mutation",
|
|
14536
|
+
auth: "admin"
|
|
14537
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
14538
|
+
location: string(),
|
|
14539
|
+
description: string().max(400).nullable()
|
|
14540
|
+
}), _void(), {
|
|
14541
|
+
kind: "mutation",
|
|
14542
|
+
auth: "admin"
|
|
14543
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
14544
|
+
name: string(),
|
|
14545
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
14546
|
+
}), _void(), {
|
|
14547
|
+
kind: "mutation",
|
|
14548
|
+
auth: "admin"
|
|
14549
|
+
}), method(object({ name: string() }), _void(), {
|
|
14550
|
+
kind: "mutation",
|
|
14551
|
+
auth: "admin"
|
|
14552
|
+
}), method(object({
|
|
14553
|
+
from: string(),
|
|
14554
|
+
to: string()
|
|
14555
|
+
}), _void(), {
|
|
14556
|
+
kind: "mutation",
|
|
14557
|
+
auth: "admin"
|
|
14558
|
+
}), method(object({
|
|
14559
|
+
location: string(),
|
|
14560
|
+
zone: string().nullable()
|
|
14561
|
+
}), _void(), {
|
|
14562
|
+
kind: "mutation",
|
|
14563
|
+
auth: "admin"
|
|
14430
14564
|
}), method(object({
|
|
14431
14565
|
deviceId: number(),
|
|
14432
14566
|
disabled: boolean()
|
|
@@ -37456,6 +37590,18 @@ Object.freeze({
|
|
|
37456
37590
|
addonId: null,
|
|
37457
37591
|
access: "view"
|
|
37458
37592
|
},
|
|
37593
|
+
"deviceManager.listLocationDescriptions": {
|
|
37594
|
+
capName: "device-manager",
|
|
37595
|
+
capScope: "system",
|
|
37596
|
+
addonId: null,
|
|
37597
|
+
access: "view"
|
|
37598
|
+
},
|
|
37599
|
+
"deviceManager.listLocationIcons": {
|
|
37600
|
+
capName: "device-manager",
|
|
37601
|
+
capScope: "system",
|
|
37602
|
+
addonId: null,
|
|
37603
|
+
access: "view"
|
|
37604
|
+
},
|
|
37459
37605
|
"deviceManager.listLocations": {
|
|
37460
37606
|
capName: "device-manager",
|
|
37461
37607
|
capScope: "system",
|
|
@@ -37468,6 +37614,12 @@ Object.freeze({
|
|
|
37468
37614
|
addonId: null,
|
|
37469
37615
|
access: "view"
|
|
37470
37616
|
},
|
|
37617
|
+
"deviceManager.listSiteZones": {
|
|
37618
|
+
capName: "device-manager",
|
|
37619
|
+
capScope: "system",
|
|
37620
|
+
addonId: null,
|
|
37621
|
+
access: "view"
|
|
37622
|
+
},
|
|
37471
37623
|
"deviceManager.listWrappersForCap": {
|
|
37472
37624
|
capName: "device-manager",
|
|
37473
37625
|
capScope: "system",
|
|
@@ -37552,12 +37704,24 @@ Object.freeze({
|
|
|
37552
37704
|
addonId: null,
|
|
37553
37705
|
access: "delete"
|
|
37554
37706
|
},
|
|
37707
|
+
"deviceManager.removeSiteZone": {
|
|
37708
|
+
capName: "device-manager",
|
|
37709
|
+
capScope: "system",
|
|
37710
|
+
addonId: null,
|
|
37711
|
+
access: "delete"
|
|
37712
|
+
},
|
|
37555
37713
|
"deviceManager.renameLocation": {
|
|
37556
37714
|
capName: "device-manager",
|
|
37557
37715
|
capScope: "system",
|
|
37558
37716
|
addonId: null,
|
|
37559
37717
|
access: "create"
|
|
37560
37718
|
},
|
|
37719
|
+
"deviceManager.renameSiteZone": {
|
|
37720
|
+
capName: "device-manager",
|
|
37721
|
+
capScope: "system",
|
|
37722
|
+
addonId: null,
|
|
37723
|
+
access: "create"
|
|
37724
|
+
},
|
|
37561
37725
|
"deviceManager.runDeviceAction": {
|
|
37562
37726
|
capName: "device-manager",
|
|
37563
37727
|
capScope: "system",
|
|
@@ -37600,6 +37764,24 @@ Object.freeze({
|
|
|
37600
37764
|
addonId: null,
|
|
37601
37765
|
access: "create"
|
|
37602
37766
|
},
|
|
37767
|
+
"deviceManager.setLocationDescription": {
|
|
37768
|
+
capName: "device-manager",
|
|
37769
|
+
capScope: "system",
|
|
37770
|
+
addonId: null,
|
|
37771
|
+
access: "create"
|
|
37772
|
+
},
|
|
37773
|
+
"deviceManager.setLocationIcon": {
|
|
37774
|
+
capName: "device-manager",
|
|
37775
|
+
capScope: "system",
|
|
37776
|
+
addonId: null,
|
|
37777
|
+
access: "create"
|
|
37778
|
+
},
|
|
37779
|
+
"deviceManager.setLocationZone": {
|
|
37780
|
+
capName: "device-manager",
|
|
37781
|
+
capScope: "system",
|
|
37782
|
+
addonId: null,
|
|
37783
|
+
access: "create"
|
|
37784
|
+
},
|
|
37603
37785
|
"deviceManager.setMetadata": {
|
|
37604
37786
|
capName: "device-manager",
|
|
37605
37787
|
capScope: "system",
|
|
@@ -37630,6 +37812,12 @@ Object.freeze({
|
|
|
37630
37812
|
addonId: null,
|
|
37631
37813
|
access: "create"
|
|
37632
37814
|
},
|
|
37815
|
+
"deviceManager.setSiteZone": {
|
|
37816
|
+
capName: "device-manager",
|
|
37817
|
+
capScope: "system",
|
|
37818
|
+
addonId: null,
|
|
37819
|
+
access: "create"
|
|
37820
|
+
},
|
|
37633
37821
|
"deviceManager.setStreamProfileMap": {
|
|
37634
37822
|
capName: "device-manager",
|
|
37635
37823
|
capScope: "system",
|
|
@@ -13835,6 +13835,107 @@ 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
|
+
});
|
|
13875
|
+
/**
|
|
13876
|
+
* One (location, description) assignment as it travels.
|
|
13877
|
+
*
|
|
13878
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13879
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13880
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13881
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13882
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13883
|
+
* off the location itself, on `locationIconKey`.
|
|
13884
|
+
*/
|
|
13885
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13886
|
+
locationKey: string(),
|
|
13887
|
+
description: string()
|
|
13888
|
+
});
|
|
13889
|
+
/**
|
|
13890
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13891
|
+
*
|
|
13892
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13893
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13894
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13895
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13896
|
+
*
|
|
13897
|
+
* ## Why not `zone`
|
|
13898
|
+
*
|
|
13899
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13900
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13901
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13902
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13903
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13904
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13905
|
+
*
|
|
13906
|
+
* ## The key
|
|
13907
|
+
*
|
|
13908
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13909
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13910
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13911
|
+
* silently-dropped location description.
|
|
13912
|
+
*
|
|
13913
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13914
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13915
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13916
|
+
*/
|
|
13917
|
+
/**
|
|
13918
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13919
|
+
* the locations inside it.
|
|
13920
|
+
*
|
|
13921
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13922
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13923
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13924
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13925
|
+
* it has not fetched yet.
|
|
13926
|
+
*
|
|
13927
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13928
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13929
|
+
*/
|
|
13930
|
+
var SiteZoneSchema = object({
|
|
13931
|
+
zoneKey: string(),
|
|
13932
|
+
label: string(),
|
|
13933
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13934
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13935
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13936
|
+
* the ones that most want grouping. */
|
|
13937
|
+
locationKeys: array(string())
|
|
13938
|
+
});
|
|
13838
13939
|
var ProviderStatusSchema = object({
|
|
13839
13940
|
connected: boolean(),
|
|
13840
13941
|
deviceCount: number(),
|
|
@@ -14427,6 +14528,39 @@ method(object({
|
|
|
14427
14528
|
}), object({ moved: number() }), {
|
|
14428
14529
|
kind: "mutation",
|
|
14429
14530
|
auth: "admin"
|
|
14531
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
14532
|
+
location: string(),
|
|
14533
|
+
icon: LocationIconIdSchema.nullable()
|
|
14534
|
+
}), _void(), {
|
|
14535
|
+
kind: "mutation",
|
|
14536
|
+
auth: "admin"
|
|
14537
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
14538
|
+
location: string(),
|
|
14539
|
+
description: string().max(400).nullable()
|
|
14540
|
+
}), _void(), {
|
|
14541
|
+
kind: "mutation",
|
|
14542
|
+
auth: "admin"
|
|
14543
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
14544
|
+
name: string(),
|
|
14545
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
14546
|
+
}), _void(), {
|
|
14547
|
+
kind: "mutation",
|
|
14548
|
+
auth: "admin"
|
|
14549
|
+
}), method(object({ name: string() }), _void(), {
|
|
14550
|
+
kind: "mutation",
|
|
14551
|
+
auth: "admin"
|
|
14552
|
+
}), method(object({
|
|
14553
|
+
from: string(),
|
|
14554
|
+
to: string()
|
|
14555
|
+
}), _void(), {
|
|
14556
|
+
kind: "mutation",
|
|
14557
|
+
auth: "admin"
|
|
14558
|
+
}), method(object({
|
|
14559
|
+
location: string(),
|
|
14560
|
+
zone: string().nullable()
|
|
14561
|
+
}), _void(), {
|
|
14562
|
+
kind: "mutation",
|
|
14563
|
+
auth: "admin"
|
|
14430
14564
|
}), method(object({
|
|
14431
14565
|
deviceId: number(),
|
|
14432
14566
|
disabled: boolean()
|
|
@@ -37456,6 +37590,18 @@ Object.freeze({
|
|
|
37456
37590
|
addonId: null,
|
|
37457
37591
|
access: "view"
|
|
37458
37592
|
},
|
|
37593
|
+
"deviceManager.listLocationDescriptions": {
|
|
37594
|
+
capName: "device-manager",
|
|
37595
|
+
capScope: "system",
|
|
37596
|
+
addonId: null,
|
|
37597
|
+
access: "view"
|
|
37598
|
+
},
|
|
37599
|
+
"deviceManager.listLocationIcons": {
|
|
37600
|
+
capName: "device-manager",
|
|
37601
|
+
capScope: "system",
|
|
37602
|
+
addonId: null,
|
|
37603
|
+
access: "view"
|
|
37604
|
+
},
|
|
37459
37605
|
"deviceManager.listLocations": {
|
|
37460
37606
|
capName: "device-manager",
|
|
37461
37607
|
capScope: "system",
|
|
@@ -37468,6 +37614,12 @@ Object.freeze({
|
|
|
37468
37614
|
addonId: null,
|
|
37469
37615
|
access: "view"
|
|
37470
37616
|
},
|
|
37617
|
+
"deviceManager.listSiteZones": {
|
|
37618
|
+
capName: "device-manager",
|
|
37619
|
+
capScope: "system",
|
|
37620
|
+
addonId: null,
|
|
37621
|
+
access: "view"
|
|
37622
|
+
},
|
|
37471
37623
|
"deviceManager.listWrappersForCap": {
|
|
37472
37624
|
capName: "device-manager",
|
|
37473
37625
|
capScope: "system",
|
|
@@ -37552,12 +37704,24 @@ Object.freeze({
|
|
|
37552
37704
|
addonId: null,
|
|
37553
37705
|
access: "delete"
|
|
37554
37706
|
},
|
|
37707
|
+
"deviceManager.removeSiteZone": {
|
|
37708
|
+
capName: "device-manager",
|
|
37709
|
+
capScope: "system",
|
|
37710
|
+
addonId: null,
|
|
37711
|
+
access: "delete"
|
|
37712
|
+
},
|
|
37555
37713
|
"deviceManager.renameLocation": {
|
|
37556
37714
|
capName: "device-manager",
|
|
37557
37715
|
capScope: "system",
|
|
37558
37716
|
addonId: null,
|
|
37559
37717
|
access: "create"
|
|
37560
37718
|
},
|
|
37719
|
+
"deviceManager.renameSiteZone": {
|
|
37720
|
+
capName: "device-manager",
|
|
37721
|
+
capScope: "system",
|
|
37722
|
+
addonId: null,
|
|
37723
|
+
access: "create"
|
|
37724
|
+
},
|
|
37561
37725
|
"deviceManager.runDeviceAction": {
|
|
37562
37726
|
capName: "device-manager",
|
|
37563
37727
|
capScope: "system",
|
|
@@ -37600,6 +37764,24 @@ Object.freeze({
|
|
|
37600
37764
|
addonId: null,
|
|
37601
37765
|
access: "create"
|
|
37602
37766
|
},
|
|
37767
|
+
"deviceManager.setLocationDescription": {
|
|
37768
|
+
capName: "device-manager",
|
|
37769
|
+
capScope: "system",
|
|
37770
|
+
addonId: null,
|
|
37771
|
+
access: "create"
|
|
37772
|
+
},
|
|
37773
|
+
"deviceManager.setLocationIcon": {
|
|
37774
|
+
capName: "device-manager",
|
|
37775
|
+
capScope: "system",
|
|
37776
|
+
addonId: null,
|
|
37777
|
+
access: "create"
|
|
37778
|
+
},
|
|
37779
|
+
"deviceManager.setLocationZone": {
|
|
37780
|
+
capName: "device-manager",
|
|
37781
|
+
capScope: "system",
|
|
37782
|
+
addonId: null,
|
|
37783
|
+
access: "create"
|
|
37784
|
+
},
|
|
37603
37785
|
"deviceManager.setMetadata": {
|
|
37604
37786
|
capName: "device-manager",
|
|
37605
37787
|
capScope: "system",
|
|
@@ -37630,6 +37812,12 @@ Object.freeze({
|
|
|
37630
37812
|
addonId: null,
|
|
37631
37813
|
access: "create"
|
|
37632
37814
|
},
|
|
37815
|
+
"deviceManager.setSiteZone": {
|
|
37816
|
+
capName: "device-manager",
|
|
37817
|
+
capScope: "system",
|
|
37818
|
+
addonId: null,
|
|
37819
|
+
access: "create"
|
|
37820
|
+
},
|
|
37633
37821
|
"deviceManager.setStreamProfileMap": {
|
|
37634
37822
|
capName: "device-manager",
|
|
37635
37823
|
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-ynceaZDr.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-D_LRpYil.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|