@camstack/addon-provider-velux 0.2.147 → 0.2.148
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 +10 -1
- package/README.md +24 -8
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -5441,7 +5441,7 @@ var ZodIssueCode = {
|
|
|
5441
5441
|
var ZodFirstPartyTypeKind;
|
|
5442
5442
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5443
5443
|
//#endregion
|
|
5444
|
-
//#region ../types/dist/sleep
|
|
5444
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5445
5445
|
/**
|
|
5446
5446
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5447
5447
|
* window to float samples (D455).
|
|
@@ -8634,6 +8634,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8634
8634
|
"filesystem-browse",
|
|
8635
8635
|
"flood",
|
|
8636
8636
|
"gas",
|
|
8637
|
+
"group-active",
|
|
8637
8638
|
"group-commands",
|
|
8638
8639
|
"group-status",
|
|
8639
8640
|
"heating-valve",
|
|
@@ -8656,6 +8657,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8656
8657
|
"login-method",
|
|
8657
8658
|
"media-player",
|
|
8658
8659
|
"mesh-network",
|
|
8660
|
+
"meter",
|
|
8659
8661
|
"metrics-provider",
|
|
8660
8662
|
"model-convert",
|
|
8661
8663
|
"model-distributor",
|
|
@@ -9454,6 +9456,10 @@ Object.freeze({
|
|
|
9454
9456
|
"path": "detected",
|
|
9455
9457
|
"valueType": "boolean"
|
|
9456
9458
|
}],
|
|
9459
|
+
"group-active": [{
|
|
9460
|
+
"path": "active",
|
|
9461
|
+
"valueType": "boolean"
|
|
9462
|
+
}],
|
|
9457
9463
|
"group-status": [
|
|
9458
9464
|
{
|
|
9459
9465
|
"path": "included",
|
|
@@ -9713,6 +9719,10 @@ Object.freeze({
|
|
|
9713
9719
|
]
|
|
9714
9720
|
}
|
|
9715
9721
|
],
|
|
9722
|
+
"meter": [{
|
|
9723
|
+
"path": "value",
|
|
9724
|
+
"valueType": "number"
|
|
9725
|
+
}],
|
|
9716
9726
|
"motion": [
|
|
9717
9727
|
{
|
|
9718
9728
|
"path": "detected",
|
|
@@ -10470,7 +10480,7 @@ function userError(code, params, englishFallback) {
|
|
|
10470
10480
|
return new CamstackError(code, params, englishFallback);
|
|
10471
10481
|
}
|
|
10472
10482
|
//#endregion
|
|
10473
|
-
//#region ../types/dist/err-msg-
|
|
10483
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10474
10484
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10475
10485
|
DeviceType["Camera"] = "camera";
|
|
10476
10486
|
DeviceType["Hub"] = "hub";
|
|
@@ -10564,8 +10574,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10564
10574
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10565
10575
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10566
10576
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10567
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10577
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10578
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10568
10579
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10580
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10581
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10582
|
+
DeviceType["Washer"] = "washer";
|
|
10583
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10584
|
+
DeviceType["Dryer"] = "dryer";
|
|
10569
10585
|
return DeviceType;
|
|
10570
10586
|
}({});
|
|
10571
10587
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10823,7 +10839,7 @@ function errMsg(err) {
|
|
|
10823
10839
|
return String(err);
|
|
10824
10840
|
}
|
|
10825
10841
|
//#endregion
|
|
10826
|
-
//#region ../types/dist/composition-
|
|
10842
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10827
10843
|
/**
|
|
10828
10844
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10829
10845
|
*
|
|
@@ -11138,6 +11154,13 @@ var table = {
|
|
|
11138
11154
|
apply: () => {
|
|
11139
11155
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11140
11156
|
}
|
|
11157
|
+
},
|
|
11158
|
+
schmitt: {
|
|
11159
|
+
minArgs: 3,
|
|
11160
|
+
maxArgs: 5,
|
|
11161
|
+
apply: () => {
|
|
11162
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11163
|
+
}
|
|
11141
11164
|
}
|
|
11142
11165
|
};
|
|
11143
11166
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11579,6 +11602,99 @@ function validateExpressionSource(src) {
|
|
|
11579
11602
|
return null;
|
|
11580
11603
|
}
|
|
11581
11604
|
/**
|
|
11605
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11606
|
+
*
|
|
11607
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11608
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11609
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11610
|
+
*
|
|
11611
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11612
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11613
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11614
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11615
|
+
* can move later without moving the others.
|
|
11616
|
+
*/
|
|
11617
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11618
|
+
var APPLIANCE_KINDS = [
|
|
11619
|
+
"washer",
|
|
11620
|
+
"dryer",
|
|
11621
|
+
"dishwasher"
|
|
11622
|
+
];
|
|
11623
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11624
|
+
/**
|
|
11625
|
+
* Statistics and integrals over a history read (D944).
|
|
11626
|
+
*
|
|
11627
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11628
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11629
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11630
|
+
* as zero. A truncated read is not published.
|
|
11631
|
+
*/
|
|
11632
|
+
var STATISTIC_STATS = [
|
|
11633
|
+
"min",
|
|
11634
|
+
"max",
|
|
11635
|
+
"mean",
|
|
11636
|
+
"sum",
|
|
11637
|
+
"count",
|
|
11638
|
+
"change"
|
|
11639
|
+
];
|
|
11640
|
+
/**
|
|
11641
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11642
|
+
*
|
|
11643
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11644
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11645
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11646
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11647
|
+
*/
|
|
11648
|
+
var MINUTE_MS = 6e4;
|
|
11649
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11650
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11651
|
+
var ROLLING_SPANS = [
|
|
11652
|
+
"1h",
|
|
11653
|
+
"24h",
|
|
11654
|
+
"2d",
|
|
11655
|
+
"7d",
|
|
11656
|
+
"30d",
|
|
11657
|
+
"custom"
|
|
11658
|
+
];
|
|
11659
|
+
var CALENDAR_PERIODS = [
|
|
11660
|
+
"today",
|
|
11661
|
+
"yesterday",
|
|
11662
|
+
"this-week",
|
|
11663
|
+
"this-month"
|
|
11664
|
+
];
|
|
11665
|
+
var RESET_PERIODS = [
|
|
11666
|
+
"never",
|
|
11667
|
+
"daily",
|
|
11668
|
+
"weekly",
|
|
11669
|
+
"monthly"
|
|
11670
|
+
];
|
|
11671
|
+
5 * MINUTE_MS;
|
|
11672
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11673
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11674
|
+
var rollingWindowObject = object({
|
|
11675
|
+
kind: literal("rolling"),
|
|
11676
|
+
span: _enum(ROLLING_SPANS),
|
|
11677
|
+
customMinutes: number().int().min(5).optional()
|
|
11678
|
+
}).check((payload) => {
|
|
11679
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11680
|
+
code: "custom",
|
|
11681
|
+
message: "a custom range needs a duration in minutes",
|
|
11682
|
+
path: ["customMinutes"],
|
|
11683
|
+
input: payload.value
|
|
11684
|
+
});
|
|
11685
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11686
|
+
code: "custom",
|
|
11687
|
+
message: "only a custom range carries a duration",
|
|
11688
|
+
path: ["customMinutes"],
|
|
11689
|
+
input: payload.value
|
|
11690
|
+
});
|
|
11691
|
+
});
|
|
11692
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11693
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11694
|
+
kind: literal("calendar"),
|
|
11695
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11696
|
+
})]);
|
|
11697
|
+
/**
|
|
11582
11698
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11583
11699
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11584
11700
|
* `composition.ts` (D659).
|
|
@@ -11604,7 +11720,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11604
11720
|
"occupancy",
|
|
11605
11721
|
"binary",
|
|
11606
11722
|
"switch",
|
|
11607
|
-
"light"
|
|
11723
|
+
"light",
|
|
11724
|
+
"fan",
|
|
11725
|
+
"cover",
|
|
11726
|
+
"valve",
|
|
11727
|
+
"lock",
|
|
11728
|
+
"media-player",
|
|
11729
|
+
"climate"
|
|
11608
11730
|
];
|
|
11609
11731
|
var NUMERIC_AGGREGATES = [
|
|
11610
11732
|
"mean",
|
|
@@ -11634,14 +11756,73 @@ var HelperMemberSchema = object({
|
|
|
11634
11756
|
cap: string().min(1),
|
|
11635
11757
|
fieldPath: string().min(1)
|
|
11636
11758
|
});
|
|
11637
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11759
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11760
|
+
object({
|
|
11761
|
+
kind: literal("group"),
|
|
11762
|
+
templateId: GroupTemplateIdSchema,
|
|
11763
|
+
aggregate: AggregateReducerSchema,
|
|
11764
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11765
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11766
|
+
active: ActiveCriterionSchema.optional()
|
|
11767
|
+
}),
|
|
11768
|
+
object({
|
|
11769
|
+
kind: literal("appliance"),
|
|
11770
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11771
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11772
|
+
thresholdWatts: number().positive(),
|
|
11773
|
+
startDwellMs: number().int().nonnegative(),
|
|
11774
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11775
|
+
member: HelperMemberSchema
|
|
11776
|
+
}),
|
|
11777
|
+
object({
|
|
11778
|
+
kind: literal("statistic"),
|
|
11779
|
+
stat: _enum(STATISTIC_STATS),
|
|
11780
|
+
window: StatisticWindowSchema,
|
|
11781
|
+
source: HelperMemberSchema
|
|
11782
|
+
}),
|
|
11783
|
+
object({
|
|
11784
|
+
kind: literal("integral"),
|
|
11785
|
+
reset: _enum(RESET_PERIODS),
|
|
11786
|
+
output: _enum(["energy", "meter"]),
|
|
11787
|
+
source: HelperMemberSchema
|
|
11788
|
+
}),
|
|
11789
|
+
object({
|
|
11790
|
+
kind: literal("threshold"),
|
|
11791
|
+
source: HelperMemberSchema,
|
|
11792
|
+
high: number(),
|
|
11793
|
+
low: number(),
|
|
11794
|
+
onForMs: number().int().nonnegative(),
|
|
11795
|
+
offForMs: number().int().nonnegative()
|
|
11796
|
+
}),
|
|
11797
|
+
object({
|
|
11798
|
+
kind: literal("arithmetic"),
|
|
11799
|
+
op: _enum([
|
|
11800
|
+
"sum",
|
|
11801
|
+
"difference",
|
|
11802
|
+
"ratio"
|
|
11803
|
+
]),
|
|
11804
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11805
|
+
}),
|
|
11806
|
+
object({
|
|
11807
|
+
kind: literal("expression"),
|
|
11808
|
+
expr: string().min(1),
|
|
11809
|
+
inputs: array(object({
|
|
11810
|
+
name: string().min(1),
|
|
11811
|
+
member: HelperMemberSchema
|
|
11812
|
+
})).min(1).max(64),
|
|
11813
|
+
output: _enum(["number", "boolean"])
|
|
11814
|
+
}),
|
|
11815
|
+
object({
|
|
11816
|
+
kind: literal("derivative"),
|
|
11817
|
+
window: RollingWindowSchema,
|
|
11818
|
+
per: _enum([
|
|
11819
|
+
"second",
|
|
11820
|
+
"minute",
|
|
11821
|
+
"hour"
|
|
11822
|
+
]),
|
|
11823
|
+
source: HelperMemberSchema
|
|
11824
|
+
})
|
|
11825
|
+
]);
|
|
11645
11826
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11646
11827
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11647
11828
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11702,6 +11883,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11702
11883
|
"all"
|
|
11703
11884
|
]),
|
|
11704
11885
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11886
|
+
/**
|
|
11887
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11888
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11889
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11890
|
+
*/
|
|
11891
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11705
11892
|
/** `value` is the reading; the others are the member counts. */
|
|
11706
11893
|
publish: _enum([
|
|
11707
11894
|
"value",
|
|
@@ -11715,6 +11902,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11715
11902
|
"omit",
|
|
11716
11903
|
"offline"
|
|
11717
11904
|
])
|
|
11905
|
+
}),
|
|
11906
|
+
object({
|
|
11907
|
+
kind: literal("series"),
|
|
11908
|
+
read: CompositionFieldReadSchema,
|
|
11909
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11910
|
+
publish: _enum([
|
|
11911
|
+
"value",
|
|
11912
|
+
"included",
|
|
11913
|
+
"excluded",
|
|
11914
|
+
"total"
|
|
11915
|
+
]),
|
|
11916
|
+
/**
|
|
11917
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11918
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11919
|
+
*/
|
|
11920
|
+
empty: _enum([
|
|
11921
|
+
"null",
|
|
11922
|
+
"omit",
|
|
11923
|
+
"offline"
|
|
11924
|
+
])
|
|
11718
11925
|
})
|
|
11719
11926
|
]);
|
|
11720
11927
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16874,7 +17081,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16874
17081
|
*/
|
|
16875
17082
|
interactiveConnectPath: string().min(1).optional(),
|
|
16876
17083
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16877
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17084
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17085
|
+
/**
|
|
17086
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17087
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17088
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17089
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17090
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17091
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17092
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17093
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17094
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17095
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17096
|
+
* offers it as the default path; the fields the session fills are
|
|
17097
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17098
|
+
*/
|
|
17099
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16878
17100
|
}))
|
|
16879
17101
|
});
|
|
16880
17102
|
var ListInputSchema = object({
|
|
@@ -17979,7 +18201,8 @@ var CompositionProblemSchema = object({
|
|
|
17979
18201
|
"native-capability-replace",
|
|
17980
18202
|
"mixed-quantity",
|
|
17981
18203
|
"helper-mismatch",
|
|
17982
|
-
"member-constraint"
|
|
18204
|
+
"member-constraint",
|
|
18205
|
+
"retention"
|
|
17983
18206
|
]),
|
|
17984
18207
|
path: string(),
|
|
17985
18208
|
message: string()
|
|
@@ -18213,13 +18436,17 @@ Object.freeze({
|
|
|
18213
18436
|
latchedAt: {
|
|
18214
18437
|
kind: "fixed",
|
|
18215
18438
|
result: ["number", "null"]
|
|
18439
|
+
},
|
|
18440
|
+
schmitt: {
|
|
18441
|
+
kind: "fixed",
|
|
18442
|
+
result: ["boolean", "null"]
|
|
18216
18443
|
}
|
|
18217
18444
|
});
|
|
18218
18445
|
/**
|
|
18219
18446
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18220
18447
|
* Data, not a form default written into the block.
|
|
18221
18448
|
*/
|
|
18222
|
-
var NOW = {
|
|
18449
|
+
var NOW$2 = {
|
|
18223
18450
|
fieldPath: "lastFetchedAt",
|
|
18224
18451
|
expr: "now"
|
|
18225
18452
|
};
|
|
@@ -18233,6 +18460,8 @@ function numeric(input) {
|
|
|
18233
18460
|
family: "numeric",
|
|
18234
18461
|
deviceType: DeviceType.Sensor,
|
|
18235
18462
|
memberDeviceType: DeviceType.Sensor,
|
|
18463
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18464
|
+
activeWhen: void 0,
|
|
18236
18465
|
commandCaps: [],
|
|
18237
18466
|
baseUnit: baseUnitOf(input.quantity),
|
|
18238
18467
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18248,6 +18477,8 @@ function binary(input) {
|
|
|
18248
18477
|
family: "binary",
|
|
18249
18478
|
deviceType: DeviceType.Sensor,
|
|
18250
18479
|
memberDeviceType: DeviceType.Sensor,
|
|
18480
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18481
|
+
activeWhen: void 0,
|
|
18251
18482
|
commandCaps: [],
|
|
18252
18483
|
quantity: "none",
|
|
18253
18484
|
baseUnit: void 0,
|
|
@@ -18265,7 +18496,7 @@ var GROUP_TEMPLATES = [
|
|
|
18265
18496
|
quantity: "temperature",
|
|
18266
18497
|
defaultAggregate: "mean",
|
|
18267
18498
|
empty: "null",
|
|
18268
|
-
companions: [NOW]
|
|
18499
|
+
companions: [NOW$2]
|
|
18269
18500
|
}),
|
|
18270
18501
|
numeric({
|
|
18271
18502
|
id: "humidity",
|
|
@@ -18276,7 +18507,7 @@ var GROUP_TEMPLATES = [
|
|
|
18276
18507
|
quantity: "humidity",
|
|
18277
18508
|
defaultAggregate: "mean",
|
|
18278
18509
|
empty: "null",
|
|
18279
|
-
companions: [NOW]
|
|
18510
|
+
companions: [NOW$2]
|
|
18280
18511
|
}),
|
|
18281
18512
|
numeric({
|
|
18282
18513
|
id: "pressure",
|
|
@@ -18287,7 +18518,7 @@ var GROUP_TEMPLATES = [
|
|
|
18287
18518
|
quantity: "pressure",
|
|
18288
18519
|
defaultAggregate: "mean",
|
|
18289
18520
|
empty: "null",
|
|
18290
|
-
companions: [NOW]
|
|
18521
|
+
companions: [NOW$2]
|
|
18291
18522
|
}),
|
|
18292
18523
|
numeric({
|
|
18293
18524
|
id: "illuminance",
|
|
@@ -18298,7 +18529,7 @@ var GROUP_TEMPLATES = [
|
|
|
18298
18529
|
quantity: "illuminance",
|
|
18299
18530
|
defaultAggregate: "mean",
|
|
18300
18531
|
empty: "null",
|
|
18301
|
-
companions: [NOW]
|
|
18532
|
+
companions: [NOW$2]
|
|
18302
18533
|
}),
|
|
18303
18534
|
numeric({
|
|
18304
18535
|
id: "power",
|
|
@@ -18309,7 +18540,7 @@ var GROUP_TEMPLATES = [
|
|
|
18309
18540
|
quantity: "power",
|
|
18310
18541
|
defaultAggregate: "sum",
|
|
18311
18542
|
empty: "omit",
|
|
18312
|
-
companions: [NOW]
|
|
18543
|
+
companions: [NOW$2]
|
|
18313
18544
|
}),
|
|
18314
18545
|
numeric({
|
|
18315
18546
|
id: "energy",
|
|
@@ -18320,7 +18551,7 @@ var GROUP_TEMPLATES = [
|
|
|
18320
18551
|
quantity: "energy",
|
|
18321
18552
|
defaultAggregate: "sum",
|
|
18322
18553
|
empty: "omit",
|
|
18323
|
-
companions: [NOW]
|
|
18554
|
+
companions: [NOW$2]
|
|
18324
18555
|
}),
|
|
18325
18556
|
numeric({
|
|
18326
18557
|
id: "battery",
|
|
@@ -18355,7 +18586,7 @@ var GROUP_TEMPLATES = [
|
|
|
18355
18586
|
quantity: "device",
|
|
18356
18587
|
defaultAggregate: "mean",
|
|
18357
18588
|
empty: "null",
|
|
18358
|
-
companions: [NOW]
|
|
18589
|
+
companions: [NOW$2]
|
|
18359
18590
|
}),
|
|
18360
18591
|
binary({
|
|
18361
18592
|
id: "motion",
|
|
@@ -18449,6 +18680,11 @@ var GROUP_TEMPLATES = [
|
|
|
18449
18680
|
summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
|
|
18450
18681
|
deviceType: DeviceType.Switch,
|
|
18451
18682
|
outputCap: "switch",
|
|
18683
|
+
outputField: "on",
|
|
18684
|
+
member: {
|
|
18685
|
+
cap: "switch",
|
|
18686
|
+
fieldPath: "on"
|
|
18687
|
+
},
|
|
18452
18688
|
commandCaps: ["switch"]
|
|
18453
18689
|
}),
|
|
18454
18690
|
actuator({
|
|
@@ -18456,34 +18692,136 @@ var GROUP_TEMPLATES = [
|
|
|
18456
18692
|
summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
|
|
18457
18693
|
deviceType: DeviceType.Light,
|
|
18458
18694
|
outputCap: "switch",
|
|
18695
|
+
outputField: "on",
|
|
18696
|
+
member: {
|
|
18697
|
+
cap: "switch",
|
|
18698
|
+
fieldPath: "on"
|
|
18699
|
+
},
|
|
18459
18700
|
commandCaps: [
|
|
18460
18701
|
"switch",
|
|
18461
18702
|
"brightness",
|
|
18462
18703
|
"color"
|
|
18463
18704
|
]
|
|
18705
|
+
}),
|
|
18706
|
+
actuator({
|
|
18707
|
+
id: "fan",
|
|
18708
|
+
summary: "On when at least one fan is on, or when all of them are. Speed, preset, direction and oscillation are offered only when every fan has them. A command is not sent to a fan that lacks it.",
|
|
18709
|
+
deviceType: DeviceType.Fan,
|
|
18710
|
+
outputCap: "switch",
|
|
18711
|
+
outputField: "on",
|
|
18712
|
+
member: {
|
|
18713
|
+
cap: "switch",
|
|
18714
|
+
fieldPath: "on"
|
|
18715
|
+
},
|
|
18716
|
+
commandCaps: ["switch", "fan-control"]
|
|
18717
|
+
}),
|
|
18718
|
+
actuator({
|
|
18719
|
+
id: "cover",
|
|
18720
|
+
summary: "Open when at least one cover is open or part-open, or only when all of them are. Position and tilt are offered only when every cover has them. A cover that reports nothing is left out, never read as closed.",
|
|
18721
|
+
deviceType: DeviceType.Cover,
|
|
18722
|
+
outputCap: "group-active",
|
|
18723
|
+
outputField: "active",
|
|
18724
|
+
member: {
|
|
18725
|
+
cap: "cover",
|
|
18726
|
+
fieldPath: "state"
|
|
18727
|
+
},
|
|
18728
|
+
activeWhen: [
|
|
18729
|
+
"open",
|
|
18730
|
+
"opening",
|
|
18731
|
+
"stopped"
|
|
18732
|
+
],
|
|
18733
|
+
commandCaps: ["cover"]
|
|
18734
|
+
}),
|
|
18735
|
+
actuator({
|
|
18736
|
+
id: "valve",
|
|
18737
|
+
summary: "Open when at least one valve is open or part-open, or only when all of them are. Position is offered only when every valve has it. A valve that reports nothing is left out, never read as closed.",
|
|
18738
|
+
deviceType: DeviceType.Valve,
|
|
18739
|
+
outputCap: "group-active",
|
|
18740
|
+
outputField: "active",
|
|
18741
|
+
member: {
|
|
18742
|
+
cap: "valve",
|
|
18743
|
+
fieldPath: "state"
|
|
18744
|
+
},
|
|
18745
|
+
activeWhen: [
|
|
18746
|
+
"open",
|
|
18747
|
+
"opening",
|
|
18748
|
+
"stopped"
|
|
18749
|
+
],
|
|
18750
|
+
commandCaps: ["valve"]
|
|
18751
|
+
}),
|
|
18752
|
+
actuator({
|
|
18753
|
+
id: "lock",
|
|
18754
|
+
summary: "Locked when at least one lock is locked, or only when all of them are. A jammed or moving lock is not locked. Locking is one tap; unlocking the group needs a confirmation every time, and nothing is sent without it.",
|
|
18755
|
+
deviceType: DeviceType.Lock,
|
|
18756
|
+
outputCap: "group-active",
|
|
18757
|
+
outputField: "active",
|
|
18758
|
+
member: {
|
|
18759
|
+
cap: "lock-control",
|
|
18760
|
+
fieldPath: "state"
|
|
18761
|
+
},
|
|
18762
|
+
activeWhen: ["locked"],
|
|
18763
|
+
commandCaps: ["lock-control"]
|
|
18764
|
+
}),
|
|
18765
|
+
actuator({
|
|
18766
|
+
id: "media-player",
|
|
18767
|
+
summary: "Playing when at least one player is playing, or only when all of them are. Volume is offered only when every player has it. A player that reports nothing is left out, never read as stopped.",
|
|
18768
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18769
|
+
outputCap: "group-active",
|
|
18770
|
+
outputField: "active",
|
|
18771
|
+
member: {
|
|
18772
|
+
cap: "media-player",
|
|
18773
|
+
fieldPath: "state"
|
|
18774
|
+
},
|
|
18775
|
+
activeWhen: ["playing", "buffering"],
|
|
18776
|
+
commandCaps: ["media-player"]
|
|
18777
|
+
}),
|
|
18778
|
+
actuator({
|
|
18779
|
+
id: "climate",
|
|
18780
|
+
summary: "Running when at least one thermostat or air conditioner is not off, or only when all of them are. Target temperature and fan are offered only when every device has them. A device that reports nothing is left out, never read as off.",
|
|
18781
|
+
deviceType: DeviceType.Thermostat,
|
|
18782
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18783
|
+
outputCap: "group-active",
|
|
18784
|
+
outputField: "active",
|
|
18785
|
+
member: {
|
|
18786
|
+
cap: "climate-control",
|
|
18787
|
+
fieldPath: "mode"
|
|
18788
|
+
},
|
|
18789
|
+
activeWhen: [
|
|
18790
|
+
"heat",
|
|
18791
|
+
"cool",
|
|
18792
|
+
"auto",
|
|
18793
|
+
"heat_cool",
|
|
18794
|
+
"fan_only",
|
|
18795
|
+
"dry"
|
|
18796
|
+
],
|
|
18797
|
+
commandCaps: ["climate-control"]
|
|
18464
18798
|
})
|
|
18465
18799
|
];
|
|
18466
18800
|
function actuator(input) {
|
|
18467
18801
|
return {
|
|
18468
|
-
|
|
18802
|
+
id: input.id,
|
|
18803
|
+
summary: input.summary,
|
|
18804
|
+
deviceType: input.deviceType,
|
|
18805
|
+
outputCap: input.outputCap,
|
|
18806
|
+
outputField: input.outputField,
|
|
18807
|
+
commandCaps: input.commandCaps,
|
|
18469
18808
|
family: "actuator",
|
|
18470
18809
|
role: void 0,
|
|
18471
18810
|
memberDeviceType: input.deviceType,
|
|
18472
|
-
|
|
18811
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18812
|
+
activeWhen: input.activeWhen,
|
|
18473
18813
|
quantity: "none",
|
|
18474
18814
|
baseUnit: void 0,
|
|
18475
18815
|
aggregates: BINARY_AGGREGATES,
|
|
18476
18816
|
defaultAggregate: "any",
|
|
18477
18817
|
empty: "offline",
|
|
18478
|
-
accept: [
|
|
18479
|
-
cap: "switch",
|
|
18480
|
-
fieldPath: "on"
|
|
18481
|
-
}],
|
|
18818
|
+
accept: [input.member],
|
|
18482
18819
|
companions: [CHANGED]
|
|
18483
18820
|
};
|
|
18484
18821
|
}
|
|
18485
18822
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18486
18823
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18824
|
+
DeviceType.Camera;
|
|
18487
18825
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18488
18826
|
/**
|
|
18489
18827
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43803,7 +44141,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43803
44141
|
});
|
|
43804
44142
|
/**
|
|
43805
44143
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43806
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44144
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43807
44145
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43808
44146
|
* the originating provider config (mode + sourcePort) so the
|
|
43809
44147
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46490,7 +46828,20 @@ var NcRuleInputSchema = object({
|
|
|
46490
46828
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46491
46829
|
* path does not run Zod defaults.
|
|
46492
46830
|
*/
|
|
46493
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46831
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46832
|
+
/**
|
|
46833
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46834
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46835
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46836
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46837
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46838
|
+
*
|
|
46839
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46840
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46841
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46842
|
+
* `false`, so it needs no `clear` key.
|
|
46843
|
+
*/
|
|
46844
|
+
askVerdict: boolean().optional()
|
|
46494
46845
|
});
|
|
46495
46846
|
/**
|
|
46496
46847
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57210,7 +57561,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57210
57561
|
DeviceType.Switch,
|
|
57211
57562
|
DeviceType.PetFeeder,
|
|
57212
57563
|
DeviceType.Container,
|
|
57213
|
-
DeviceType.Thermostat
|
|
57564
|
+
DeviceType.Thermostat,
|
|
57565
|
+
DeviceType.EventEmitter
|
|
57214
57566
|
];
|
|
57215
57567
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57216
57568
|
var batteryCustomize = {
|
|
@@ -60070,7 +60422,17 @@ var groupCommandsCapability = {
|
|
|
60070
60422
|
scope: "device",
|
|
60071
60423
|
deviceNative: true,
|
|
60072
60424
|
mode: "singleton",
|
|
60073
|
-
deviceTypes: [
|
|
60425
|
+
deviceTypes: [
|
|
60426
|
+
DeviceType.Switch,
|
|
60427
|
+
DeviceType.Light,
|
|
60428
|
+
DeviceType.Fan,
|
|
60429
|
+
DeviceType.Cover,
|
|
60430
|
+
DeviceType.Valve,
|
|
60431
|
+
DeviceType.Lock,
|
|
60432
|
+
DeviceType.MediaPlayer,
|
|
60433
|
+
DeviceType.Thermostat,
|
|
60434
|
+
DeviceType.Climate
|
|
60435
|
+
],
|
|
60074
60436
|
methods: {},
|
|
60075
60437
|
status: {
|
|
60076
60438
|
schema: GroupCommandsSchema,
|
|
@@ -60088,6 +60450,49 @@ var groupCommandsCapability = {
|
|
|
60088
60450
|
history: "none"
|
|
60089
60451
|
};
|
|
60090
60452
|
/**
|
|
60453
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60454
|
+
* included member is, or every included member is. What "active" means is the
|
|
60455
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60456
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60457
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60458
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60459
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60460
|
+
*/
|
|
60461
|
+
var GroupActiveSchema = object({
|
|
60462
|
+
active: boolean().meta({ label: "Active" }),
|
|
60463
|
+
/** Ms epoch when the slice was last updated. */
|
|
60464
|
+
lastChangedAt: number()
|
|
60465
|
+
});
|
|
60466
|
+
var groupActiveCapability = {
|
|
60467
|
+
name: "group-active",
|
|
60468
|
+
scope: "device",
|
|
60469
|
+
deviceNative: true,
|
|
60470
|
+
mode: "singleton",
|
|
60471
|
+
deviceTypes: [
|
|
60472
|
+
DeviceType.Cover,
|
|
60473
|
+
DeviceType.Valve,
|
|
60474
|
+
DeviceType.Lock,
|
|
60475
|
+
DeviceType.MediaPlayer,
|
|
60476
|
+
DeviceType.Climate,
|
|
60477
|
+
DeviceType.Thermostat
|
|
60478
|
+
],
|
|
60479
|
+
methods: {},
|
|
60480
|
+
status: {
|
|
60481
|
+
schema: GroupActiveSchema,
|
|
60482
|
+
kind: "push"
|
|
60483
|
+
},
|
|
60484
|
+
runtimeState: GroupActiveSchema,
|
|
60485
|
+
/**
|
|
60486
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60487
|
+
* next source event; a restored value would outlive the members it named.
|
|
60488
|
+
*
|
|
60489
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60490
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60491
|
+
*/
|
|
60492
|
+
durability: "session",
|
|
60493
|
+
history: "none"
|
|
60494
|
+
};
|
|
60495
|
+
/**
|
|
60091
60496
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60092
60497
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60093
60498
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60118,7 +60523,14 @@ var groupStatusCapability = {
|
|
|
60118
60523
|
deviceTypes: [
|
|
60119
60524
|
DeviceType.Sensor,
|
|
60120
60525
|
DeviceType.Switch,
|
|
60121
|
-
DeviceType.Light
|
|
60526
|
+
DeviceType.Light,
|
|
60527
|
+
DeviceType.Fan,
|
|
60528
|
+
DeviceType.Cover,
|
|
60529
|
+
DeviceType.Valve,
|
|
60530
|
+
DeviceType.Lock,
|
|
60531
|
+
DeviceType.MediaPlayer,
|
|
60532
|
+
DeviceType.Thermostat,
|
|
60533
|
+
DeviceType.Climate
|
|
60122
60534
|
],
|
|
60123
60535
|
methods: {},
|
|
60124
60536
|
status: {
|
|
@@ -61391,7 +61803,14 @@ var lockControlCapability = {
|
|
|
61391
61803
|
}),
|
|
61392
61804
|
unlock: method(object({
|
|
61393
61805
|
deviceId: number().int().nonnegative(),
|
|
61394
|
-
code: string().min(1).optional()
|
|
61806
|
+
code: string().min(1).optional(),
|
|
61807
|
+
/**
|
|
61808
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61809
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61810
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61811
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61812
|
+
*/
|
|
61813
|
+
confirm: boolean().optional()
|
|
61395
61814
|
}), _void(), {
|
|
61396
61815
|
kind: "mutation",
|
|
61397
61816
|
auth: "protected"
|
|
@@ -61428,6 +61847,44 @@ var lockControlCapability = {
|
|
|
61428
61847
|
volatileStateFields: ["lastChangedAt"]
|
|
61429
61848
|
};
|
|
61430
61849
|
/**
|
|
61850
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61851
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61852
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61853
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61854
|
+
*/
|
|
61855
|
+
var MeterStatusSchema = object({
|
|
61856
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61857
|
+
lastFetchedAt: number()
|
|
61858
|
+
});
|
|
61859
|
+
var meterCapability = {
|
|
61860
|
+
name: "meter",
|
|
61861
|
+
scope: "device",
|
|
61862
|
+
deviceNative: true,
|
|
61863
|
+
mode: "singleton",
|
|
61864
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61865
|
+
methods: {},
|
|
61866
|
+
status: {
|
|
61867
|
+
schema: MeterStatusSchema,
|
|
61868
|
+
kind: "push"
|
|
61869
|
+
},
|
|
61870
|
+
runtimeState: MeterStatusSchema,
|
|
61871
|
+
/**
|
|
61872
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61873
|
+
* history integral. A restart shows it only until the history pass
|
|
61874
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61875
|
+
*
|
|
61876
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61877
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61878
|
+
*/
|
|
61879
|
+
durability: "restored",
|
|
61880
|
+
history: { fields: { value: {
|
|
61881
|
+
kind: "counter",
|
|
61882
|
+
deadband: .001,
|
|
61883
|
+
minIntervalMs: 6e4
|
|
61884
|
+
} } },
|
|
61885
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61886
|
+
};
|
|
61887
|
+
/**
|
|
61431
61888
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61432
61889
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61433
61890
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -63939,9 +64396,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63939
64396
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63940
64397
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63941
64398
|
/** Voltage in volts. */
|
|
63942
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64399
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63943
64400
|
/** Current in amperes. */
|
|
63944
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64401
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63945
64402
|
/** Apparent power in volt-amperes. */
|
|
63946
64403
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63947
64404
|
/** Power factor (0..1) if reported. */
|
|
@@ -63949,12 +64406,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63949
64406
|
/** Ms epoch when the slice was last updated. */
|
|
63950
64407
|
lastFetchedAt: number()
|
|
63951
64408
|
});
|
|
64409
|
+
/**
|
|
64410
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64411
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64412
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64413
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64414
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64415
|
+
*/
|
|
64416
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64417
|
+
DeviceType.Sensor,
|
|
64418
|
+
DeviceType.Switch,
|
|
64419
|
+
DeviceType.Light,
|
|
64420
|
+
DeviceType.Fan,
|
|
64421
|
+
DeviceType.Climate,
|
|
64422
|
+
DeviceType.Thermostat,
|
|
64423
|
+
DeviceType.Humidifier,
|
|
64424
|
+
DeviceType.WaterHeater,
|
|
64425
|
+
DeviceType.MediaPlayer,
|
|
64426
|
+
DeviceType.Washer,
|
|
64427
|
+
DeviceType.Dryer,
|
|
64428
|
+
DeviceType.Dishwasher,
|
|
64429
|
+
DeviceType.Vacuum,
|
|
64430
|
+
DeviceType.LawnMower,
|
|
64431
|
+
DeviceType.PetFeeder
|
|
64432
|
+
];
|
|
64433
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64434
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64435
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64436
|
+
function powerTarget(id, unit) {
|
|
64437
|
+
return {
|
|
64438
|
+
id,
|
|
64439
|
+
cardinality: "scalar",
|
|
64440
|
+
vocabulary: {
|
|
64441
|
+
cap: "power-meter",
|
|
64442
|
+
stateField: id
|
|
64443
|
+
},
|
|
64444
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64445
|
+
apply: "add",
|
|
64446
|
+
path: id,
|
|
64447
|
+
sources: [{
|
|
64448
|
+
kind: "numeric",
|
|
64449
|
+
requiredUnit: unit,
|
|
64450
|
+
transforms: [{ kind: "identity" }]
|
|
64451
|
+
}],
|
|
64452
|
+
companions: [{
|
|
64453
|
+
kind: "clock",
|
|
64454
|
+
path: "lastFetchedAt",
|
|
64455
|
+
when: "always"
|
|
64456
|
+
}],
|
|
64457
|
+
sourceReport: { status: "assignment-status" },
|
|
64458
|
+
advancedExpression: true
|
|
64459
|
+
};
|
|
64460
|
+
}
|
|
64461
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64462
|
+
var powerMeterCustomize = {
|
|
64463
|
+
version: 1,
|
|
64464
|
+
targets: [
|
|
64465
|
+
powerTarget("watts", "W"),
|
|
64466
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64467
|
+
powerTarget("volts", "V"),
|
|
64468
|
+
powerTarget("amps", "A")
|
|
64469
|
+
]
|
|
64470
|
+
};
|
|
63952
64471
|
var powerMeterCapability = {
|
|
63953
64472
|
name: "power-meter",
|
|
63954
64473
|
scope: "device",
|
|
63955
64474
|
deviceNative: true,
|
|
63956
64475
|
mode: "singleton",
|
|
63957
|
-
deviceTypes:
|
|
64476
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63958
64477
|
methods: {},
|
|
63959
64478
|
status: {
|
|
63960
64479
|
schema: PowerMeterStatusSchema,
|
|
@@ -64011,7 +64530,8 @@ var powerMeterCapability = {
|
|
|
64011
64530
|
} },
|
|
64012
64531
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64013
64532
|
* whether persisting is worth a SQLite commit. */
|
|
64014
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64533
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64534
|
+
customize: powerMeterCustomize
|
|
64015
64535
|
};
|
|
64016
64536
|
/**
|
|
64017
64537
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64692,6 +65212,8 @@ var runningCustomize = {
|
|
|
64692
65212
|
stateField: "running"
|
|
64693
65213
|
},
|
|
64694
65214
|
deviceTypes: [
|
|
65215
|
+
DeviceType.Washer,
|
|
65216
|
+
DeviceType.Dryer,
|
|
64695
65217
|
DeviceType.Dishwasher,
|
|
64696
65218
|
DeviceType.Vacuum,
|
|
64697
65219
|
DeviceType.LawnMower,
|
|
@@ -67181,7 +67703,8 @@ var switchCapability = {
|
|
|
67181
67703
|
deviceTypes: [
|
|
67182
67704
|
DeviceType.Switch,
|
|
67183
67705
|
DeviceType.Siren,
|
|
67184
|
-
DeviceType.Light
|
|
67706
|
+
DeviceType.Light,
|
|
67707
|
+
DeviceType.Fan
|
|
67185
67708
|
],
|
|
67186
67709
|
methods: { setState: method(object({
|
|
67187
67710
|
deviceId: number(),
|
|
@@ -69394,8 +69917,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69394
69917
|
kind: "mutation",
|
|
69395
69918
|
auth: "admin"
|
|
69396
69919
|
});
|
|
69920
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69397
69921
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69398
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Camera, DeviceType.Camera, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
69922
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
69399
69923
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69400
69924
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69401
69925
|
new Set(CAP_NAMES);
|
|
@@ -69724,6 +70248,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69724
70248
|
featureProbe: featureProbeCapability,
|
|
69725
70249
|
flood: floodCapability,
|
|
69726
70250
|
gas: gasCapability,
|
|
70251
|
+
groupActive: groupActiveCapability,
|
|
69727
70252
|
groupCommands: groupCommandsCapability,
|
|
69728
70253
|
groupStatus: groupStatusCapability,
|
|
69729
70254
|
heatingValve: heatingValveCapability,
|
|
@@ -69735,6 +70260,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69735
70260
|
lawnMowerControl: lawnMowerControlCapability,
|
|
69736
70261
|
lockControl: lockControlCapability,
|
|
69737
70262
|
mediaPlayer: mediaPlayerCapability,
|
|
70263
|
+
meter: meterCapability,
|
|
69738
70264
|
motion: motionCapability,
|
|
69739
70265
|
motionTrigger: motionTriggerCapability,
|
|
69740
70266
|
motionZones: motionZonesCapability,
|
|
@@ -70994,7 +71520,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
70994
71520
|
return toDeviceSummary(device, this.addonId);
|
|
70995
71521
|
}
|
|
70996
71522
|
};
|
|
70997
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
71523
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer;
|
|
70998
71524
|
new Set(Object.values(DeviceType));
|
|
70999
71525
|
Object.freeze({
|
|
71000
71526
|
"accessories.getStatus": {
|
|
@@ -74217,6 +74743,13 @@ Object.freeze({
|
|
|
74217
74743
|
access: "view",
|
|
74218
74744
|
role: "viewer"
|
|
74219
74745
|
},
|
|
74746
|
+
"groupActive.getStatus": {
|
|
74747
|
+
capName: "group-active",
|
|
74748
|
+
capScope: "device",
|
|
74749
|
+
addonId: null,
|
|
74750
|
+
access: "view",
|
|
74751
|
+
role: "viewer"
|
|
74752
|
+
},
|
|
74220
74753
|
"groupCommands.getStatus": {
|
|
74221
74754
|
capName: "group-commands",
|
|
74222
74755
|
capScope: "device",
|
|
@@ -75183,6 +75716,13 @@ Object.freeze({
|
|
|
75183
75716
|
access: "create",
|
|
75184
75717
|
role: "admin"
|
|
75185
75718
|
},
|
|
75719
|
+
"meter.getStatus": {
|
|
75720
|
+
capName: "meter",
|
|
75721
|
+
capScope: "device",
|
|
75722
|
+
addonId: null,
|
|
75723
|
+
access: "view",
|
|
75724
|
+
role: "viewer"
|
|
75725
|
+
},
|
|
75186
75726
|
"metricsProvider.collectSnapshot": {
|
|
75187
75727
|
capName: "metrics-provider",
|
|
75188
75728
|
capScope: "system",
|
|
@@ -83281,7 +83821,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83281
83821
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83282
83822
|
icon: "square"
|
|
83283
83823
|
}
|
|
83284
|
-
}
|
|
83824
|
+
},
|
|
83825
|
+
overrides: { byType: {
|
|
83826
|
+
[DeviceType.Washer]: {
|
|
83827
|
+
state: { running: {
|
|
83828
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
83829
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
83830
|
+
} },
|
|
83831
|
+
events: {
|
|
83832
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
83833
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
83834
|
+
}
|
|
83835
|
+
},
|
|
83836
|
+
[DeviceType.Dryer]: {
|
|
83837
|
+
state: { running: {
|
|
83838
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
83839
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
83840
|
+
} },
|
|
83841
|
+
events: {
|
|
83842
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
83843
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
83844
|
+
}
|
|
83845
|
+
},
|
|
83846
|
+
[DeviceType.Dishwasher]: {
|
|
83847
|
+
state: { running: {
|
|
83848
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
83849
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
83850
|
+
} },
|
|
83851
|
+
events: {
|
|
83852
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
83853
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
83854
|
+
}
|
|
83855
|
+
}
|
|
83856
|
+
} }
|
|
83285
83857
|
},
|
|
83286
83858
|
update: {
|
|
83287
83859
|
scope: "device",
|
|
@@ -84053,6 +84625,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84053
84625
|
icon: "flame"
|
|
84054
84626
|
}]
|
|
84055
84627
|
},
|
|
84628
|
+
"group-active": {
|
|
84629
|
+
scope: "device",
|
|
84630
|
+
noun: t("Group state", "Stato del gruppo")
|
|
84631
|
+
},
|
|
84056
84632
|
"group-commands": {
|
|
84057
84633
|
scope: "device",
|
|
84058
84634
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84109,6 +84685,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84109
84685
|
}],
|
|
84110
84686
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84111
84687
|
},
|
|
84688
|
+
meter: {
|
|
84689
|
+
scope: "device",
|
|
84690
|
+
noun: t("Meter", "Contatore"),
|
|
84691
|
+
state: [{
|
|
84692
|
+
kind: "numeric",
|
|
84693
|
+
field: "value",
|
|
84694
|
+
quantity: t("the total", "il totale"),
|
|
84695
|
+
label: t("Total", "Totale"),
|
|
84696
|
+
icon: "gauge"
|
|
84697
|
+
}]
|
|
84698
|
+
},
|
|
84112
84699
|
"numeric-sensor": {
|
|
84113
84700
|
scope: "device",
|
|
84114
84701
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84581,8 +85168,47 @@ function projectAction(cap, action) {
|
|
|
84581
85168
|
};
|
|
84582
85169
|
}
|
|
84583
85170
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84584
|
-
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
85171
|
+
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer;
|
|
84585
85172
|
DeviceFeature.BatteryOperated;
|
|
85173
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85174
|
+
var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
|
|
85175
|
+
var HOMEKIT_REASON = "HomeKit has no laundry-appliance service. The export tab would pair an accessory with nothing on it: running-state is withheld until a null reading can be unavailable, and power is not a HomeKit service this export honours.";
|
|
85176
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85177
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85178
|
+
var MATTER_REASON = "No Matter export is built. The closest device types are Laundry Washer (0x0073) and Laundry Dryer (0x0074); a power threshold is not the Laundry Washer Mode cluster.";
|
|
85179
|
+
function withheld(reason) {
|
|
85180
|
+
return {
|
|
85181
|
+
[DeviceType.Washer]: {
|
|
85182
|
+
exported: false,
|
|
85183
|
+
reason
|
|
85184
|
+
},
|
|
85185
|
+
[DeviceType.Dryer]: {
|
|
85186
|
+
exported: false,
|
|
85187
|
+
reason
|
|
85188
|
+
},
|
|
85189
|
+
[DeviceType.Dishwasher]: {
|
|
85190
|
+
exported: false,
|
|
85191
|
+
reason
|
|
85192
|
+
}
|
|
85193
|
+
};
|
|
85194
|
+
}
|
|
85195
|
+
function offered(received) {
|
|
85196
|
+
return {
|
|
85197
|
+
[DeviceType.Washer]: {
|
|
85198
|
+
exported: true,
|
|
85199
|
+
as: received
|
|
85200
|
+
},
|
|
85201
|
+
[DeviceType.Dryer]: {
|
|
85202
|
+
exported: true,
|
|
85203
|
+
as: received
|
|
85204
|
+
},
|
|
85205
|
+
[DeviceType.Dishwasher]: {
|
|
85206
|
+
exported: true,
|
|
85207
|
+
as: received
|
|
85208
|
+
}
|
|
85209
|
+
};
|
|
85210
|
+
}
|
|
85211
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84586
85212
|
Object.freeze({
|
|
84587
85213
|
"accessories.getStatus": [{
|
|
84588
85214
|
name: "deviceId",
|
|
@@ -85549,6 +86175,11 @@ Object.freeze({
|
|
|
85549
86175
|
form: "single",
|
|
85550
86176
|
optional: false
|
|
85551
86177
|
}],
|
|
86178
|
+
"groupActive.getStatus": [{
|
|
86179
|
+
name: "deviceId",
|
|
86180
|
+
form: "single",
|
|
86181
|
+
optional: false
|
|
86182
|
+
}],
|
|
85552
86183
|
"groupCommands.getStatus": [{
|
|
85553
86184
|
name: "deviceId",
|
|
85554
86185
|
form: "single",
|
|
@@ -85759,6 +86390,11 @@ Object.freeze({
|
|
|
85759
86390
|
form: "single",
|
|
85760
86391
|
optional: false
|
|
85761
86392
|
}],
|
|
86393
|
+
"meter.getStatus": [{
|
|
86394
|
+
name: "deviceId",
|
|
86395
|
+
form: "single",
|
|
86396
|
+
optional: false
|
|
86397
|
+
}],
|
|
85762
86398
|
"motion.getStatus": [{
|
|
85763
86399
|
name: "deviceId",
|
|
85764
86400
|
form: "single",
|
|
@@ -87366,7 +88002,6 @@ Object.freeze({
|
|
|
87366
88002
|
"network-access": "ingress",
|
|
87367
88003
|
"smtp-provider": "email"
|
|
87368
88004
|
});
|
|
87369
|
-
DeviceType.Camera;
|
|
87370
88005
|
/**
|
|
87371
88006
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87372
88007
|
* `z.infer`, they do not restate the shape.
|