@camstack/addon-terminal 0.1.154 → 0.1.155
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 +17 -10
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -5451,7 +5451,7 @@ var ZodIssueCode = {
|
|
|
5451
5451
|
var ZodFirstPartyTypeKind;
|
|
5452
5452
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5453
5453
|
//#endregion
|
|
5454
|
-
//#region ../types/dist/sleep
|
|
5454
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5455
5455
|
/**
|
|
5456
5456
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5457
5457
|
* window to float samples (D455).
|
|
@@ -8703,6 +8703,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8703
8703
|
"filesystem-browse",
|
|
8704
8704
|
"flood",
|
|
8705
8705
|
"gas",
|
|
8706
|
+
"group-active",
|
|
8706
8707
|
"group-commands",
|
|
8707
8708
|
"group-status",
|
|
8708
8709
|
"heating-valve",
|
|
@@ -8725,6 +8726,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8725
8726
|
"login-method",
|
|
8726
8727
|
"media-player",
|
|
8727
8728
|
"mesh-network",
|
|
8729
|
+
"meter",
|
|
8728
8730
|
"metrics-provider",
|
|
8729
8731
|
"model-convert",
|
|
8730
8732
|
"model-distributor",
|
|
@@ -9523,6 +9525,10 @@ Object.freeze({
|
|
|
9523
9525
|
"path": "detected",
|
|
9524
9526
|
"valueType": "boolean"
|
|
9525
9527
|
}],
|
|
9528
|
+
"group-active": [{
|
|
9529
|
+
"path": "active",
|
|
9530
|
+
"valueType": "boolean"
|
|
9531
|
+
}],
|
|
9526
9532
|
"group-status": [
|
|
9527
9533
|
{
|
|
9528
9534
|
"path": "included",
|
|
@@ -9782,6 +9788,10 @@ Object.freeze({
|
|
|
9782
9788
|
]
|
|
9783
9789
|
}
|
|
9784
9790
|
],
|
|
9791
|
+
"meter": [{
|
|
9792
|
+
"path": "value",
|
|
9793
|
+
"valueType": "number"
|
|
9794
|
+
}],
|
|
9785
9795
|
"motion": [
|
|
9786
9796
|
{
|
|
9787
9797
|
"path": "detected",
|
|
@@ -10525,7 +10535,7 @@ object({
|
|
|
10525
10535
|
params: record(string(), union([string(), number()])).optional()
|
|
10526
10536
|
});
|
|
10527
10537
|
//#endregion
|
|
10528
|
-
//#region ../types/dist/err-msg-
|
|
10538
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10529
10539
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10530
10540
|
DeviceType["Camera"] = "camera";
|
|
10531
10541
|
DeviceType["Hub"] = "hub";
|
|
@@ -10619,8 +10629,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10619
10629
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10620
10630
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10621
10631
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10622
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10632
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10633
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10623
10634
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10635
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10636
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10637
|
+
DeviceType["Washer"] = "washer";
|
|
10638
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10639
|
+
DeviceType["Dryer"] = "dryer";
|
|
10624
10640
|
return DeviceType;
|
|
10625
10641
|
}({});
|
|
10626
10642
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10878,7 +10894,7 @@ function errMsg(err) {
|
|
|
10878
10894
|
return String(err);
|
|
10879
10895
|
}
|
|
10880
10896
|
//#endregion
|
|
10881
|
-
//#region ../types/dist/composition-
|
|
10897
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10882
10898
|
/**
|
|
10883
10899
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10884
10900
|
*
|
|
@@ -11193,6 +11209,13 @@ var table = {
|
|
|
11193
11209
|
apply: () => {
|
|
11194
11210
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11195
11211
|
}
|
|
11212
|
+
},
|
|
11213
|
+
schmitt: {
|
|
11214
|
+
minArgs: 3,
|
|
11215
|
+
maxArgs: 5,
|
|
11216
|
+
apply: () => {
|
|
11217
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11218
|
+
}
|
|
11196
11219
|
}
|
|
11197
11220
|
};
|
|
11198
11221
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11634,6 +11657,99 @@ function validateExpressionSource(src) {
|
|
|
11634
11657
|
return null;
|
|
11635
11658
|
}
|
|
11636
11659
|
/**
|
|
11660
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11661
|
+
*
|
|
11662
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11663
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11664
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11665
|
+
*
|
|
11666
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11667
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11668
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11669
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11670
|
+
* can move later without moving the others.
|
|
11671
|
+
*/
|
|
11672
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11673
|
+
var APPLIANCE_KINDS = [
|
|
11674
|
+
"washer",
|
|
11675
|
+
"dryer",
|
|
11676
|
+
"dishwasher"
|
|
11677
|
+
];
|
|
11678
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11679
|
+
/**
|
|
11680
|
+
* Statistics and integrals over a history read (D944).
|
|
11681
|
+
*
|
|
11682
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11683
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11684
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11685
|
+
* as zero. A truncated read is not published.
|
|
11686
|
+
*/
|
|
11687
|
+
var STATISTIC_STATS = [
|
|
11688
|
+
"min",
|
|
11689
|
+
"max",
|
|
11690
|
+
"mean",
|
|
11691
|
+
"sum",
|
|
11692
|
+
"count",
|
|
11693
|
+
"change"
|
|
11694
|
+
];
|
|
11695
|
+
/**
|
|
11696
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11697
|
+
*
|
|
11698
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11699
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11700
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11701
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11702
|
+
*/
|
|
11703
|
+
var MINUTE_MS = 6e4;
|
|
11704
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11705
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11706
|
+
var ROLLING_SPANS = [
|
|
11707
|
+
"1h",
|
|
11708
|
+
"24h",
|
|
11709
|
+
"2d",
|
|
11710
|
+
"7d",
|
|
11711
|
+
"30d",
|
|
11712
|
+
"custom"
|
|
11713
|
+
];
|
|
11714
|
+
var CALENDAR_PERIODS = [
|
|
11715
|
+
"today",
|
|
11716
|
+
"yesterday",
|
|
11717
|
+
"this-week",
|
|
11718
|
+
"this-month"
|
|
11719
|
+
];
|
|
11720
|
+
var RESET_PERIODS = [
|
|
11721
|
+
"never",
|
|
11722
|
+
"daily",
|
|
11723
|
+
"weekly",
|
|
11724
|
+
"monthly"
|
|
11725
|
+
];
|
|
11726
|
+
5 * MINUTE_MS;
|
|
11727
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11728
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11729
|
+
var rollingWindowObject = object({
|
|
11730
|
+
kind: literal("rolling"),
|
|
11731
|
+
span: _enum(ROLLING_SPANS),
|
|
11732
|
+
customMinutes: number().int().min(5).optional()
|
|
11733
|
+
}).check((payload) => {
|
|
11734
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11735
|
+
code: "custom",
|
|
11736
|
+
message: "a custom range needs a duration in minutes",
|
|
11737
|
+
path: ["customMinutes"],
|
|
11738
|
+
input: payload.value
|
|
11739
|
+
});
|
|
11740
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11741
|
+
code: "custom",
|
|
11742
|
+
message: "only a custom range carries a duration",
|
|
11743
|
+
path: ["customMinutes"],
|
|
11744
|
+
input: payload.value
|
|
11745
|
+
});
|
|
11746
|
+
});
|
|
11747
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11748
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11749
|
+
kind: literal("calendar"),
|
|
11750
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11751
|
+
})]);
|
|
11752
|
+
/**
|
|
11637
11753
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11638
11754
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11639
11755
|
* `composition.ts` (D659).
|
|
@@ -11659,7 +11775,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11659
11775
|
"occupancy",
|
|
11660
11776
|
"binary",
|
|
11661
11777
|
"switch",
|
|
11662
|
-
"light"
|
|
11778
|
+
"light",
|
|
11779
|
+
"fan",
|
|
11780
|
+
"cover",
|
|
11781
|
+
"valve",
|
|
11782
|
+
"lock",
|
|
11783
|
+
"media-player",
|
|
11784
|
+
"climate"
|
|
11663
11785
|
];
|
|
11664
11786
|
var NUMERIC_AGGREGATES = [
|
|
11665
11787
|
"mean",
|
|
@@ -11689,14 +11811,73 @@ var HelperMemberSchema = object({
|
|
|
11689
11811
|
cap: string().min(1),
|
|
11690
11812
|
fieldPath: string().min(1)
|
|
11691
11813
|
});
|
|
11692
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11814
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11815
|
+
object({
|
|
11816
|
+
kind: literal("group"),
|
|
11817
|
+
templateId: GroupTemplateIdSchema,
|
|
11818
|
+
aggregate: AggregateReducerSchema,
|
|
11819
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11820
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11821
|
+
active: ActiveCriterionSchema.optional()
|
|
11822
|
+
}),
|
|
11823
|
+
object({
|
|
11824
|
+
kind: literal("appliance"),
|
|
11825
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11826
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11827
|
+
thresholdWatts: number().positive(),
|
|
11828
|
+
startDwellMs: number().int().nonnegative(),
|
|
11829
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11830
|
+
member: HelperMemberSchema
|
|
11831
|
+
}),
|
|
11832
|
+
object({
|
|
11833
|
+
kind: literal("statistic"),
|
|
11834
|
+
stat: _enum(STATISTIC_STATS),
|
|
11835
|
+
window: StatisticWindowSchema,
|
|
11836
|
+
source: HelperMemberSchema
|
|
11837
|
+
}),
|
|
11838
|
+
object({
|
|
11839
|
+
kind: literal("integral"),
|
|
11840
|
+
reset: _enum(RESET_PERIODS),
|
|
11841
|
+
output: _enum(["energy", "meter"]),
|
|
11842
|
+
source: HelperMemberSchema
|
|
11843
|
+
}),
|
|
11844
|
+
object({
|
|
11845
|
+
kind: literal("threshold"),
|
|
11846
|
+
source: HelperMemberSchema,
|
|
11847
|
+
high: number(),
|
|
11848
|
+
low: number(),
|
|
11849
|
+
onForMs: number().int().nonnegative(),
|
|
11850
|
+
offForMs: number().int().nonnegative()
|
|
11851
|
+
}),
|
|
11852
|
+
object({
|
|
11853
|
+
kind: literal("arithmetic"),
|
|
11854
|
+
op: _enum([
|
|
11855
|
+
"sum",
|
|
11856
|
+
"difference",
|
|
11857
|
+
"ratio"
|
|
11858
|
+
]),
|
|
11859
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11860
|
+
}),
|
|
11861
|
+
object({
|
|
11862
|
+
kind: literal("expression"),
|
|
11863
|
+
expr: string().min(1),
|
|
11864
|
+
inputs: array(object({
|
|
11865
|
+
name: string().min(1),
|
|
11866
|
+
member: HelperMemberSchema
|
|
11867
|
+
})).min(1).max(64),
|
|
11868
|
+
output: _enum(["number", "boolean"])
|
|
11869
|
+
}),
|
|
11870
|
+
object({
|
|
11871
|
+
kind: literal("derivative"),
|
|
11872
|
+
window: RollingWindowSchema,
|
|
11873
|
+
per: _enum([
|
|
11874
|
+
"second",
|
|
11875
|
+
"minute",
|
|
11876
|
+
"hour"
|
|
11877
|
+
]),
|
|
11878
|
+
source: HelperMemberSchema
|
|
11879
|
+
})
|
|
11880
|
+
]);
|
|
11700
11881
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11701
11882
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11702
11883
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11757,6 +11938,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11757
11938
|
"all"
|
|
11758
11939
|
]),
|
|
11759
11940
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11941
|
+
/**
|
|
11942
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11943
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11944
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11945
|
+
*/
|
|
11946
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11760
11947
|
/** `value` is the reading; the others are the member counts. */
|
|
11761
11948
|
publish: _enum([
|
|
11762
11949
|
"value",
|
|
@@ -11770,6 +11957,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11770
11957
|
"omit",
|
|
11771
11958
|
"offline"
|
|
11772
11959
|
])
|
|
11960
|
+
}),
|
|
11961
|
+
object({
|
|
11962
|
+
kind: literal("series"),
|
|
11963
|
+
read: CompositionFieldReadSchema,
|
|
11964
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11965
|
+
publish: _enum([
|
|
11966
|
+
"value",
|
|
11967
|
+
"included",
|
|
11968
|
+
"excluded",
|
|
11969
|
+
"total"
|
|
11970
|
+
]),
|
|
11971
|
+
/**
|
|
11972
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11973
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11974
|
+
*/
|
|
11975
|
+
empty: _enum([
|
|
11976
|
+
"null",
|
|
11977
|
+
"omit",
|
|
11978
|
+
"offline"
|
|
11979
|
+
])
|
|
11773
11980
|
})
|
|
11774
11981
|
]);
|
|
11775
11982
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16961,7 +17168,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16961
17168
|
*/
|
|
16962
17169
|
interactiveConnectPath: string().min(1).optional(),
|
|
16963
17170
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16964
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17171
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17172
|
+
/**
|
|
17173
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17174
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17175
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17176
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17177
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17178
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17179
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17180
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17181
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17182
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17183
|
+
* offers it as the default path; the fields the session fills are
|
|
17184
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17185
|
+
*/
|
|
17186
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16965
17187
|
}))
|
|
16966
17188
|
});
|
|
16967
17189
|
var ListInputSchema = object({
|
|
@@ -18066,7 +18288,8 @@ var CompositionProblemSchema = object({
|
|
|
18066
18288
|
"native-capability-replace",
|
|
18067
18289
|
"mixed-quantity",
|
|
18068
18290
|
"helper-mismatch",
|
|
18069
|
-
"member-constraint"
|
|
18291
|
+
"member-constraint",
|
|
18292
|
+
"retention"
|
|
18070
18293
|
]),
|
|
18071
18294
|
path: string(),
|
|
18072
18295
|
message: string()
|
|
@@ -18300,13 +18523,17 @@ Object.freeze({
|
|
|
18300
18523
|
latchedAt: {
|
|
18301
18524
|
kind: "fixed",
|
|
18302
18525
|
result: ["number", "null"]
|
|
18526
|
+
},
|
|
18527
|
+
schmitt: {
|
|
18528
|
+
kind: "fixed",
|
|
18529
|
+
result: ["boolean", "null"]
|
|
18303
18530
|
}
|
|
18304
18531
|
});
|
|
18305
18532
|
/**
|
|
18306
18533
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18307
18534
|
* Data, not a form default written into the block.
|
|
18308
18535
|
*/
|
|
18309
|
-
var NOW = {
|
|
18536
|
+
var NOW$2 = {
|
|
18310
18537
|
fieldPath: "lastFetchedAt",
|
|
18311
18538
|
expr: "now"
|
|
18312
18539
|
};
|
|
@@ -18320,6 +18547,8 @@ function numeric(input) {
|
|
|
18320
18547
|
family: "numeric",
|
|
18321
18548
|
deviceType: DeviceType.Sensor,
|
|
18322
18549
|
memberDeviceType: DeviceType.Sensor,
|
|
18550
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18551
|
+
activeWhen: void 0,
|
|
18323
18552
|
commandCaps: [],
|
|
18324
18553
|
baseUnit: baseUnitOf(input.quantity),
|
|
18325
18554
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18335,6 +18564,8 @@ function binary(input) {
|
|
|
18335
18564
|
family: "binary",
|
|
18336
18565
|
deviceType: DeviceType.Sensor,
|
|
18337
18566
|
memberDeviceType: DeviceType.Sensor,
|
|
18567
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18568
|
+
activeWhen: void 0,
|
|
18338
18569
|
commandCaps: [],
|
|
18339
18570
|
quantity: "none",
|
|
18340
18571
|
baseUnit: void 0,
|
|
@@ -18352,7 +18583,7 @@ var GROUP_TEMPLATES = [
|
|
|
18352
18583
|
quantity: "temperature",
|
|
18353
18584
|
defaultAggregate: "mean",
|
|
18354
18585
|
empty: "null",
|
|
18355
|
-
companions: [NOW]
|
|
18586
|
+
companions: [NOW$2]
|
|
18356
18587
|
}),
|
|
18357
18588
|
numeric({
|
|
18358
18589
|
id: "humidity",
|
|
@@ -18363,7 +18594,7 @@ var GROUP_TEMPLATES = [
|
|
|
18363
18594
|
quantity: "humidity",
|
|
18364
18595
|
defaultAggregate: "mean",
|
|
18365
18596
|
empty: "null",
|
|
18366
|
-
companions: [NOW]
|
|
18597
|
+
companions: [NOW$2]
|
|
18367
18598
|
}),
|
|
18368
18599
|
numeric({
|
|
18369
18600
|
id: "pressure",
|
|
@@ -18374,7 +18605,7 @@ var GROUP_TEMPLATES = [
|
|
|
18374
18605
|
quantity: "pressure",
|
|
18375
18606
|
defaultAggregate: "mean",
|
|
18376
18607
|
empty: "null",
|
|
18377
|
-
companions: [NOW]
|
|
18608
|
+
companions: [NOW$2]
|
|
18378
18609
|
}),
|
|
18379
18610
|
numeric({
|
|
18380
18611
|
id: "illuminance",
|
|
@@ -18385,7 +18616,7 @@ var GROUP_TEMPLATES = [
|
|
|
18385
18616
|
quantity: "illuminance",
|
|
18386
18617
|
defaultAggregate: "mean",
|
|
18387
18618
|
empty: "null",
|
|
18388
|
-
companions: [NOW]
|
|
18619
|
+
companions: [NOW$2]
|
|
18389
18620
|
}),
|
|
18390
18621
|
numeric({
|
|
18391
18622
|
id: "power",
|
|
@@ -18396,7 +18627,7 @@ var GROUP_TEMPLATES = [
|
|
|
18396
18627
|
quantity: "power",
|
|
18397
18628
|
defaultAggregate: "sum",
|
|
18398
18629
|
empty: "omit",
|
|
18399
|
-
companions: [NOW]
|
|
18630
|
+
companions: [NOW$2]
|
|
18400
18631
|
}),
|
|
18401
18632
|
numeric({
|
|
18402
18633
|
id: "energy",
|
|
@@ -18407,7 +18638,7 @@ var GROUP_TEMPLATES = [
|
|
|
18407
18638
|
quantity: "energy",
|
|
18408
18639
|
defaultAggregate: "sum",
|
|
18409
18640
|
empty: "omit",
|
|
18410
|
-
companions: [NOW]
|
|
18641
|
+
companions: [NOW$2]
|
|
18411
18642
|
}),
|
|
18412
18643
|
numeric({
|
|
18413
18644
|
id: "battery",
|
|
@@ -18442,7 +18673,7 @@ var GROUP_TEMPLATES = [
|
|
|
18442
18673
|
quantity: "device",
|
|
18443
18674
|
defaultAggregate: "mean",
|
|
18444
18675
|
empty: "null",
|
|
18445
|
-
companions: [NOW]
|
|
18676
|
+
companions: [NOW$2]
|
|
18446
18677
|
}),
|
|
18447
18678
|
binary({
|
|
18448
18679
|
id: "motion",
|
|
@@ -18536,6 +18767,11 @@ var GROUP_TEMPLATES = [
|
|
|
18536
18767
|
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.",
|
|
18537
18768
|
deviceType: DeviceType.Switch,
|
|
18538
18769
|
outputCap: "switch",
|
|
18770
|
+
outputField: "on",
|
|
18771
|
+
member: {
|
|
18772
|
+
cap: "switch",
|
|
18773
|
+
fieldPath: "on"
|
|
18774
|
+
},
|
|
18539
18775
|
commandCaps: ["switch"]
|
|
18540
18776
|
}),
|
|
18541
18777
|
actuator({
|
|
@@ -18543,34 +18779,136 @@ var GROUP_TEMPLATES = [
|
|
|
18543
18779
|
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.",
|
|
18544
18780
|
deviceType: DeviceType.Light,
|
|
18545
18781
|
outputCap: "switch",
|
|
18782
|
+
outputField: "on",
|
|
18783
|
+
member: {
|
|
18784
|
+
cap: "switch",
|
|
18785
|
+
fieldPath: "on"
|
|
18786
|
+
},
|
|
18546
18787
|
commandCaps: [
|
|
18547
18788
|
"switch",
|
|
18548
18789
|
"brightness",
|
|
18549
18790
|
"color"
|
|
18550
18791
|
]
|
|
18792
|
+
}),
|
|
18793
|
+
actuator({
|
|
18794
|
+
id: "fan",
|
|
18795
|
+
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.",
|
|
18796
|
+
deviceType: DeviceType.Fan,
|
|
18797
|
+
outputCap: "switch",
|
|
18798
|
+
outputField: "on",
|
|
18799
|
+
member: {
|
|
18800
|
+
cap: "switch",
|
|
18801
|
+
fieldPath: "on"
|
|
18802
|
+
},
|
|
18803
|
+
commandCaps: ["switch", "fan-control"]
|
|
18804
|
+
}),
|
|
18805
|
+
actuator({
|
|
18806
|
+
id: "cover",
|
|
18807
|
+
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.",
|
|
18808
|
+
deviceType: DeviceType.Cover,
|
|
18809
|
+
outputCap: "group-active",
|
|
18810
|
+
outputField: "active",
|
|
18811
|
+
member: {
|
|
18812
|
+
cap: "cover",
|
|
18813
|
+
fieldPath: "state"
|
|
18814
|
+
},
|
|
18815
|
+
activeWhen: [
|
|
18816
|
+
"open",
|
|
18817
|
+
"opening",
|
|
18818
|
+
"stopped"
|
|
18819
|
+
],
|
|
18820
|
+
commandCaps: ["cover"]
|
|
18821
|
+
}),
|
|
18822
|
+
actuator({
|
|
18823
|
+
id: "valve",
|
|
18824
|
+
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.",
|
|
18825
|
+
deviceType: DeviceType.Valve,
|
|
18826
|
+
outputCap: "group-active",
|
|
18827
|
+
outputField: "active",
|
|
18828
|
+
member: {
|
|
18829
|
+
cap: "valve",
|
|
18830
|
+
fieldPath: "state"
|
|
18831
|
+
},
|
|
18832
|
+
activeWhen: [
|
|
18833
|
+
"open",
|
|
18834
|
+
"opening",
|
|
18835
|
+
"stopped"
|
|
18836
|
+
],
|
|
18837
|
+
commandCaps: ["valve"]
|
|
18838
|
+
}),
|
|
18839
|
+
actuator({
|
|
18840
|
+
id: "lock",
|
|
18841
|
+
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.",
|
|
18842
|
+
deviceType: DeviceType.Lock,
|
|
18843
|
+
outputCap: "group-active",
|
|
18844
|
+
outputField: "active",
|
|
18845
|
+
member: {
|
|
18846
|
+
cap: "lock-control",
|
|
18847
|
+
fieldPath: "state"
|
|
18848
|
+
},
|
|
18849
|
+
activeWhen: ["locked"],
|
|
18850
|
+
commandCaps: ["lock-control"]
|
|
18851
|
+
}),
|
|
18852
|
+
actuator({
|
|
18853
|
+
id: "media-player",
|
|
18854
|
+
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.",
|
|
18855
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18856
|
+
outputCap: "group-active",
|
|
18857
|
+
outputField: "active",
|
|
18858
|
+
member: {
|
|
18859
|
+
cap: "media-player",
|
|
18860
|
+
fieldPath: "state"
|
|
18861
|
+
},
|
|
18862
|
+
activeWhen: ["playing", "buffering"],
|
|
18863
|
+
commandCaps: ["media-player"]
|
|
18864
|
+
}),
|
|
18865
|
+
actuator({
|
|
18866
|
+
id: "climate",
|
|
18867
|
+
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.",
|
|
18868
|
+
deviceType: DeviceType.Thermostat,
|
|
18869
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18870
|
+
outputCap: "group-active",
|
|
18871
|
+
outputField: "active",
|
|
18872
|
+
member: {
|
|
18873
|
+
cap: "climate-control",
|
|
18874
|
+
fieldPath: "mode"
|
|
18875
|
+
},
|
|
18876
|
+
activeWhen: [
|
|
18877
|
+
"heat",
|
|
18878
|
+
"cool",
|
|
18879
|
+
"auto",
|
|
18880
|
+
"heat_cool",
|
|
18881
|
+
"fan_only",
|
|
18882
|
+
"dry"
|
|
18883
|
+
],
|
|
18884
|
+
commandCaps: ["climate-control"]
|
|
18551
18885
|
})
|
|
18552
18886
|
];
|
|
18553
18887
|
function actuator(input) {
|
|
18554
18888
|
return {
|
|
18555
|
-
|
|
18889
|
+
id: input.id,
|
|
18890
|
+
summary: input.summary,
|
|
18891
|
+
deviceType: input.deviceType,
|
|
18892
|
+
outputCap: input.outputCap,
|
|
18893
|
+
outputField: input.outputField,
|
|
18894
|
+
commandCaps: input.commandCaps,
|
|
18556
18895
|
family: "actuator",
|
|
18557
18896
|
role: void 0,
|
|
18558
18897
|
memberDeviceType: input.deviceType,
|
|
18559
|
-
|
|
18898
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18899
|
+
activeWhen: input.activeWhen,
|
|
18560
18900
|
quantity: "none",
|
|
18561
18901
|
baseUnit: void 0,
|
|
18562
18902
|
aggregates: BINARY_AGGREGATES,
|
|
18563
18903
|
defaultAggregate: "any",
|
|
18564
18904
|
empty: "offline",
|
|
18565
|
-
accept: [
|
|
18566
|
-
cap: "switch",
|
|
18567
|
-
fieldPath: "on"
|
|
18568
|
-
}],
|
|
18905
|
+
accept: [input.member],
|
|
18569
18906
|
companions: [CHANGED]
|
|
18570
18907
|
};
|
|
18571
18908
|
}
|
|
18572
18909
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18573
18910
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18911
|
+
DeviceType.Camera;
|
|
18574
18912
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18575
18913
|
/**
|
|
18576
18914
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43696,7 +44034,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43696
44034
|
});
|
|
43697
44035
|
/**
|
|
43698
44036
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43699
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44037
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43700
44038
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43701
44039
|
* the originating provider config (mode + sourcePort) so the
|
|
43702
44040
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46383,7 +46721,20 @@ var NcRuleInputSchema = object({
|
|
|
46383
46721
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46384
46722
|
* path does not run Zod defaults.
|
|
46385
46723
|
*/
|
|
46386
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46724
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46725
|
+
/**
|
|
46726
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46727
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46728
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46729
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46730
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46731
|
+
*
|
|
46732
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46733
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46734
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46735
|
+
* `false`, so it needs no `clear` key.
|
|
46736
|
+
*/
|
|
46737
|
+
askVerdict: boolean().optional()
|
|
46387
46738
|
});
|
|
46388
46739
|
/**
|
|
46389
46740
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57251,7 +57602,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57251
57602
|
DeviceType.Switch,
|
|
57252
57603
|
DeviceType.PetFeeder,
|
|
57253
57604
|
DeviceType.Container,
|
|
57254
|
-
DeviceType.Thermostat
|
|
57605
|
+
DeviceType.Thermostat,
|
|
57606
|
+
DeviceType.EventEmitter
|
|
57255
57607
|
];
|
|
57256
57608
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57257
57609
|
var batteryCustomize = {
|
|
@@ -60111,7 +60463,17 @@ var groupCommandsCapability = {
|
|
|
60111
60463
|
scope: "device",
|
|
60112
60464
|
deviceNative: true,
|
|
60113
60465
|
mode: "singleton",
|
|
60114
|
-
deviceTypes: [
|
|
60466
|
+
deviceTypes: [
|
|
60467
|
+
DeviceType.Switch,
|
|
60468
|
+
DeviceType.Light,
|
|
60469
|
+
DeviceType.Fan,
|
|
60470
|
+
DeviceType.Cover,
|
|
60471
|
+
DeviceType.Valve,
|
|
60472
|
+
DeviceType.Lock,
|
|
60473
|
+
DeviceType.MediaPlayer,
|
|
60474
|
+
DeviceType.Thermostat,
|
|
60475
|
+
DeviceType.Climate
|
|
60476
|
+
],
|
|
60115
60477
|
methods: {},
|
|
60116
60478
|
status: {
|
|
60117
60479
|
schema: GroupCommandsSchema,
|
|
@@ -60129,6 +60491,49 @@ var groupCommandsCapability = {
|
|
|
60129
60491
|
history: "none"
|
|
60130
60492
|
};
|
|
60131
60493
|
/**
|
|
60494
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60495
|
+
* included member is, or every included member is. What "active" means is the
|
|
60496
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60497
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60498
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60499
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60500
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60501
|
+
*/
|
|
60502
|
+
var GroupActiveSchema = object({
|
|
60503
|
+
active: boolean().meta({ label: "Active" }),
|
|
60504
|
+
/** Ms epoch when the slice was last updated. */
|
|
60505
|
+
lastChangedAt: number()
|
|
60506
|
+
});
|
|
60507
|
+
var groupActiveCapability = {
|
|
60508
|
+
name: "group-active",
|
|
60509
|
+
scope: "device",
|
|
60510
|
+
deviceNative: true,
|
|
60511
|
+
mode: "singleton",
|
|
60512
|
+
deviceTypes: [
|
|
60513
|
+
DeviceType.Cover,
|
|
60514
|
+
DeviceType.Valve,
|
|
60515
|
+
DeviceType.Lock,
|
|
60516
|
+
DeviceType.MediaPlayer,
|
|
60517
|
+
DeviceType.Climate,
|
|
60518
|
+
DeviceType.Thermostat
|
|
60519
|
+
],
|
|
60520
|
+
methods: {},
|
|
60521
|
+
status: {
|
|
60522
|
+
schema: GroupActiveSchema,
|
|
60523
|
+
kind: "push"
|
|
60524
|
+
},
|
|
60525
|
+
runtimeState: GroupActiveSchema,
|
|
60526
|
+
/**
|
|
60527
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60528
|
+
* next source event; a restored value would outlive the members it named.
|
|
60529
|
+
*
|
|
60530
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60531
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60532
|
+
*/
|
|
60533
|
+
durability: "session",
|
|
60534
|
+
history: "none"
|
|
60535
|
+
};
|
|
60536
|
+
/**
|
|
60132
60537
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60133
60538
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60134
60539
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60159,7 +60564,14 @@ var groupStatusCapability = {
|
|
|
60159
60564
|
deviceTypes: [
|
|
60160
60565
|
DeviceType.Sensor,
|
|
60161
60566
|
DeviceType.Switch,
|
|
60162
|
-
DeviceType.Light
|
|
60567
|
+
DeviceType.Light,
|
|
60568
|
+
DeviceType.Fan,
|
|
60569
|
+
DeviceType.Cover,
|
|
60570
|
+
DeviceType.Valve,
|
|
60571
|
+
DeviceType.Lock,
|
|
60572
|
+
DeviceType.MediaPlayer,
|
|
60573
|
+
DeviceType.Thermostat,
|
|
60574
|
+
DeviceType.Climate
|
|
60163
60575
|
],
|
|
60164
60576
|
methods: {},
|
|
60165
60577
|
status: {
|
|
@@ -61432,7 +61844,14 @@ var lockControlCapability = {
|
|
|
61432
61844
|
}),
|
|
61433
61845
|
unlock: method(object({
|
|
61434
61846
|
deviceId: number().int().nonnegative(),
|
|
61435
|
-
code: string().min(1).optional()
|
|
61847
|
+
code: string().min(1).optional(),
|
|
61848
|
+
/**
|
|
61849
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61850
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61851
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61852
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61853
|
+
*/
|
|
61854
|
+
confirm: boolean().optional()
|
|
61436
61855
|
}), _void(), {
|
|
61437
61856
|
kind: "mutation",
|
|
61438
61857
|
auth: "protected"
|
|
@@ -61469,6 +61888,44 @@ var lockControlCapability = {
|
|
|
61469
61888
|
volatileStateFields: ["lastChangedAt"]
|
|
61470
61889
|
};
|
|
61471
61890
|
/**
|
|
61891
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61892
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61893
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61894
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61895
|
+
*/
|
|
61896
|
+
var MeterStatusSchema = object({
|
|
61897
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61898
|
+
lastFetchedAt: number()
|
|
61899
|
+
});
|
|
61900
|
+
var meterCapability = {
|
|
61901
|
+
name: "meter",
|
|
61902
|
+
scope: "device",
|
|
61903
|
+
deviceNative: true,
|
|
61904
|
+
mode: "singleton",
|
|
61905
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61906
|
+
methods: {},
|
|
61907
|
+
status: {
|
|
61908
|
+
schema: MeterStatusSchema,
|
|
61909
|
+
kind: "push"
|
|
61910
|
+
},
|
|
61911
|
+
runtimeState: MeterStatusSchema,
|
|
61912
|
+
/**
|
|
61913
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61914
|
+
* history integral. A restart shows it only until the history pass
|
|
61915
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61916
|
+
*
|
|
61917
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61918
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61919
|
+
*/
|
|
61920
|
+
durability: "restored",
|
|
61921
|
+
history: { fields: { value: {
|
|
61922
|
+
kind: "counter",
|
|
61923
|
+
deadband: .001,
|
|
61924
|
+
minIntervalMs: 6e4
|
|
61925
|
+
} } },
|
|
61926
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61927
|
+
};
|
|
61928
|
+
/**
|
|
61472
61929
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61473
61930
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61474
61931
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -63980,9 +64437,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63980
64437
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63981
64438
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63982
64439
|
/** Voltage in volts. */
|
|
63983
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64440
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63984
64441
|
/** Current in amperes. */
|
|
63985
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64442
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63986
64443
|
/** Apparent power in volt-amperes. */
|
|
63987
64444
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63988
64445
|
/** Power factor (0..1) if reported. */
|
|
@@ -63990,12 +64447,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63990
64447
|
/** Ms epoch when the slice was last updated. */
|
|
63991
64448
|
lastFetchedAt: number()
|
|
63992
64449
|
});
|
|
64450
|
+
/**
|
|
64451
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64452
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64453
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64454
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64455
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64456
|
+
*/
|
|
64457
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64458
|
+
DeviceType.Sensor,
|
|
64459
|
+
DeviceType.Switch,
|
|
64460
|
+
DeviceType.Light,
|
|
64461
|
+
DeviceType.Fan,
|
|
64462
|
+
DeviceType.Climate,
|
|
64463
|
+
DeviceType.Thermostat,
|
|
64464
|
+
DeviceType.Humidifier,
|
|
64465
|
+
DeviceType.WaterHeater,
|
|
64466
|
+
DeviceType.MediaPlayer,
|
|
64467
|
+
DeviceType.Washer,
|
|
64468
|
+
DeviceType.Dryer,
|
|
64469
|
+
DeviceType.Dishwasher,
|
|
64470
|
+
DeviceType.Vacuum,
|
|
64471
|
+
DeviceType.LawnMower,
|
|
64472
|
+
DeviceType.PetFeeder
|
|
64473
|
+
];
|
|
64474
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64475
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64476
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64477
|
+
function powerTarget(id, unit) {
|
|
64478
|
+
return {
|
|
64479
|
+
id,
|
|
64480
|
+
cardinality: "scalar",
|
|
64481
|
+
vocabulary: {
|
|
64482
|
+
cap: "power-meter",
|
|
64483
|
+
stateField: id
|
|
64484
|
+
},
|
|
64485
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64486
|
+
apply: "add",
|
|
64487
|
+
path: id,
|
|
64488
|
+
sources: [{
|
|
64489
|
+
kind: "numeric",
|
|
64490
|
+
requiredUnit: unit,
|
|
64491
|
+
transforms: [{ kind: "identity" }]
|
|
64492
|
+
}],
|
|
64493
|
+
companions: [{
|
|
64494
|
+
kind: "clock",
|
|
64495
|
+
path: "lastFetchedAt",
|
|
64496
|
+
when: "always"
|
|
64497
|
+
}],
|
|
64498
|
+
sourceReport: { status: "assignment-status" },
|
|
64499
|
+
advancedExpression: true
|
|
64500
|
+
};
|
|
64501
|
+
}
|
|
64502
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64503
|
+
var powerMeterCustomize = {
|
|
64504
|
+
version: 1,
|
|
64505
|
+
targets: [
|
|
64506
|
+
powerTarget("watts", "W"),
|
|
64507
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64508
|
+
powerTarget("volts", "V"),
|
|
64509
|
+
powerTarget("amps", "A")
|
|
64510
|
+
]
|
|
64511
|
+
};
|
|
63993
64512
|
var powerMeterCapability = {
|
|
63994
64513
|
name: "power-meter",
|
|
63995
64514
|
scope: "device",
|
|
63996
64515
|
deviceNative: true,
|
|
63997
64516
|
mode: "singleton",
|
|
63998
|
-
deviceTypes:
|
|
64517
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63999
64518
|
methods: {},
|
|
64000
64519
|
status: {
|
|
64001
64520
|
schema: PowerMeterStatusSchema,
|
|
@@ -64052,7 +64571,8 @@ var powerMeterCapability = {
|
|
|
64052
64571
|
} },
|
|
64053
64572
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64054
64573
|
* whether persisting is worth a SQLite commit. */
|
|
64055
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64574
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64575
|
+
customize: powerMeterCustomize
|
|
64056
64576
|
};
|
|
64057
64577
|
/**
|
|
64058
64578
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64733,6 +65253,8 @@ var runningCustomize = {
|
|
|
64733
65253
|
stateField: "running"
|
|
64734
65254
|
},
|
|
64735
65255
|
deviceTypes: [
|
|
65256
|
+
DeviceType.Washer,
|
|
65257
|
+
DeviceType.Dryer,
|
|
64736
65258
|
DeviceType.Dishwasher,
|
|
64737
65259
|
DeviceType.Vacuum,
|
|
64738
65260
|
DeviceType.LawnMower,
|
|
@@ -67222,7 +67744,8 @@ var switchCapability = {
|
|
|
67222
67744
|
deviceTypes: [
|
|
67223
67745
|
DeviceType.Switch,
|
|
67224
67746
|
DeviceType.Siren,
|
|
67225
|
-
DeviceType.Light
|
|
67747
|
+
DeviceType.Light,
|
|
67748
|
+
DeviceType.Fan
|
|
67226
67749
|
],
|
|
67227
67750
|
methods: { setState: method(object({
|
|
67228
67751
|
deviceId: number(),
|
|
@@ -69435,8 +69958,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69435
69958
|
kind: "mutation",
|
|
69436
69959
|
auth: "admin"
|
|
69437
69960
|
});
|
|
69961
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69438
69962
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69439
|
-
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;
|
|
69963
|
+
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;
|
|
69440
69964
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69441
69965
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69442
69966
|
new Set(CAP_NAMES);
|
|
@@ -69765,6 +70289,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69765
70289
|
featureProbe: featureProbeCapability,
|
|
69766
70290
|
flood: floodCapability,
|
|
69767
70291
|
gas: gasCapability,
|
|
70292
|
+
groupActive: groupActiveCapability,
|
|
69768
70293
|
groupCommands: groupCommandsCapability,
|
|
69769
70294
|
groupStatus: groupStatusCapability,
|
|
69770
70295
|
heatingValve: heatingValveCapability,
|
|
@@ -69776,6 +70301,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69776
70301
|
lawnMowerControl: lawnMowerControlCapability,
|
|
69777
70302
|
lockControl: lockControlCapability,
|
|
69778
70303
|
mediaPlayer: mediaPlayerCapability,
|
|
70304
|
+
meter: meterCapability,
|
|
69779
70305
|
motion: motionCapability,
|
|
69780
70306
|
motionTrigger: motionTriggerCapability,
|
|
69781
70307
|
motionZones: motionZonesCapability,
|
|
@@ -70552,7 +71078,7 @@ var DeclaredDevices = class {
|
|
|
70552
71078
|
return removed;
|
|
70553
71079
|
}
|
|
70554
71080
|
};
|
|
70555
|
-
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;
|
|
71081
|
+
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;
|
|
70556
71082
|
new Set(Object.values(DeviceType));
|
|
70557
71083
|
Object.freeze({
|
|
70558
71084
|
"accessories.getStatus": {
|
|
@@ -73775,6 +74301,13 @@ Object.freeze({
|
|
|
73775
74301
|
access: "view",
|
|
73776
74302
|
role: "viewer"
|
|
73777
74303
|
},
|
|
74304
|
+
"groupActive.getStatus": {
|
|
74305
|
+
capName: "group-active",
|
|
74306
|
+
capScope: "device",
|
|
74307
|
+
addonId: null,
|
|
74308
|
+
access: "view",
|
|
74309
|
+
role: "viewer"
|
|
74310
|
+
},
|
|
73778
74311
|
"groupCommands.getStatus": {
|
|
73779
74312
|
capName: "group-commands",
|
|
73780
74313
|
capScope: "device",
|
|
@@ -74741,6 +75274,13 @@ Object.freeze({
|
|
|
74741
75274
|
access: "create",
|
|
74742
75275
|
role: "admin"
|
|
74743
75276
|
},
|
|
75277
|
+
"meter.getStatus": {
|
|
75278
|
+
capName: "meter",
|
|
75279
|
+
capScope: "device",
|
|
75280
|
+
addonId: null,
|
|
75281
|
+
access: "view",
|
|
75282
|
+
role: "viewer"
|
|
75283
|
+
},
|
|
74744
75284
|
"metricsProvider.collectSnapshot": {
|
|
74745
75285
|
capName: "metrics-provider",
|
|
74746
75286
|
capScope: "system",
|
|
@@ -82839,7 +83379,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
82839
83379
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
82840
83380
|
icon: "square"
|
|
82841
83381
|
}
|
|
82842
|
-
}
|
|
83382
|
+
},
|
|
83383
|
+
overrides: { byType: {
|
|
83384
|
+
[DeviceType.Washer]: {
|
|
83385
|
+
state: { running: {
|
|
83386
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
83387
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
83388
|
+
} },
|
|
83389
|
+
events: {
|
|
83390
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
83391
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
83392
|
+
}
|
|
83393
|
+
},
|
|
83394
|
+
[DeviceType.Dryer]: {
|
|
83395
|
+
state: { running: {
|
|
83396
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
83397
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
83398
|
+
} },
|
|
83399
|
+
events: {
|
|
83400
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
83401
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
83402
|
+
}
|
|
83403
|
+
},
|
|
83404
|
+
[DeviceType.Dishwasher]: {
|
|
83405
|
+
state: { running: {
|
|
83406
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
83407
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
83408
|
+
} },
|
|
83409
|
+
events: {
|
|
83410
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
83411
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
83412
|
+
}
|
|
83413
|
+
}
|
|
83414
|
+
} }
|
|
82843
83415
|
},
|
|
82844
83416
|
update: {
|
|
82845
83417
|
scope: "device",
|
|
@@ -83611,6 +84183,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
83611
84183
|
icon: "flame"
|
|
83612
84184
|
}]
|
|
83613
84185
|
},
|
|
84186
|
+
"group-active": {
|
|
84187
|
+
scope: "device",
|
|
84188
|
+
noun: t("Group state", "Stato del gruppo")
|
|
84189
|
+
},
|
|
83614
84190
|
"group-commands": {
|
|
83615
84191
|
scope: "device",
|
|
83616
84192
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -83667,6 +84243,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
83667
84243
|
}],
|
|
83668
84244
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
83669
84245
|
},
|
|
84246
|
+
meter: {
|
|
84247
|
+
scope: "device",
|
|
84248
|
+
noun: t("Meter", "Contatore"),
|
|
84249
|
+
state: [{
|
|
84250
|
+
kind: "numeric",
|
|
84251
|
+
field: "value",
|
|
84252
|
+
quantity: t("the total", "il totale"),
|
|
84253
|
+
label: t("Total", "Totale"),
|
|
84254
|
+
icon: "gauge"
|
|
84255
|
+
}]
|
|
84256
|
+
},
|
|
83670
84257
|
"numeric-sensor": {
|
|
83671
84258
|
scope: "device",
|
|
83672
84259
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84139,8 +84726,47 @@ function projectAction(cap, action) {
|
|
|
84139
84726
|
};
|
|
84140
84727
|
}
|
|
84141
84728
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84142
|
-
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;
|
|
84729
|
+
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;
|
|
84143
84730
|
DeviceFeature.BatteryOperated;
|
|
84731
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
84732
|
+
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.";
|
|
84733
|
+
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.";
|
|
84734
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
84735
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
84736
|
+
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.";
|
|
84737
|
+
function withheld(reason) {
|
|
84738
|
+
return {
|
|
84739
|
+
[DeviceType.Washer]: {
|
|
84740
|
+
exported: false,
|
|
84741
|
+
reason
|
|
84742
|
+
},
|
|
84743
|
+
[DeviceType.Dryer]: {
|
|
84744
|
+
exported: false,
|
|
84745
|
+
reason
|
|
84746
|
+
},
|
|
84747
|
+
[DeviceType.Dishwasher]: {
|
|
84748
|
+
exported: false,
|
|
84749
|
+
reason
|
|
84750
|
+
}
|
|
84751
|
+
};
|
|
84752
|
+
}
|
|
84753
|
+
function offered(received) {
|
|
84754
|
+
return {
|
|
84755
|
+
[DeviceType.Washer]: {
|
|
84756
|
+
exported: true,
|
|
84757
|
+
as: received
|
|
84758
|
+
},
|
|
84759
|
+
[DeviceType.Dryer]: {
|
|
84760
|
+
exported: true,
|
|
84761
|
+
as: received
|
|
84762
|
+
},
|
|
84763
|
+
[DeviceType.Dishwasher]: {
|
|
84764
|
+
exported: true,
|
|
84765
|
+
as: received
|
|
84766
|
+
}
|
|
84767
|
+
};
|
|
84768
|
+
}
|
|
84769
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84144
84770
|
Object.freeze({
|
|
84145
84771
|
"accessories.getStatus": [{
|
|
84146
84772
|
name: "deviceId",
|
|
@@ -85107,6 +85733,11 @@ Object.freeze({
|
|
|
85107
85733
|
form: "single",
|
|
85108
85734
|
optional: false
|
|
85109
85735
|
}],
|
|
85736
|
+
"groupActive.getStatus": [{
|
|
85737
|
+
name: "deviceId",
|
|
85738
|
+
form: "single",
|
|
85739
|
+
optional: false
|
|
85740
|
+
}],
|
|
85110
85741
|
"groupCommands.getStatus": [{
|
|
85111
85742
|
name: "deviceId",
|
|
85112
85743
|
form: "single",
|
|
@@ -85317,6 +85948,11 @@ Object.freeze({
|
|
|
85317
85948
|
form: "single",
|
|
85318
85949
|
optional: false
|
|
85319
85950
|
}],
|
|
85951
|
+
"meter.getStatus": [{
|
|
85952
|
+
name: "deviceId",
|
|
85953
|
+
form: "single",
|
|
85954
|
+
optional: false
|
|
85955
|
+
}],
|
|
85320
85956
|
"motion.getStatus": [{
|
|
85321
85957
|
name: "deviceId",
|
|
85322
85958
|
form: "single",
|
|
@@ -86924,7 +87560,6 @@ Object.freeze({
|
|
|
86924
87560
|
"network-access": "ingress",
|
|
86925
87561
|
"smtp-provider": "email"
|
|
86926
87562
|
});
|
|
86927
|
-
DeviceType.Camera;
|
|
86928
87563
|
/**
|
|
86929
87564
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
86930
87565
|
* `z.infer`, they do not restate the shape.
|