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