@camstack/addon-provider-wyze 0.2.159 → 0.2.160
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 +29 -8
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5474,7 +5474,7 @@ var ZodIssueCode = {
|
|
|
5474
5474
|
var ZodFirstPartyTypeKind;
|
|
5475
5475
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5476
5476
|
//#endregion
|
|
5477
|
-
//#region ../types/dist/sleep
|
|
5477
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5478
5478
|
/**
|
|
5479
5479
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5480
5480
|
* window to float samples (D455).
|
|
@@ -8667,6 +8667,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8667
8667
|
"filesystem-browse",
|
|
8668
8668
|
"flood",
|
|
8669
8669
|
"gas",
|
|
8670
|
+
"group-active",
|
|
8670
8671
|
"group-commands",
|
|
8671
8672
|
"group-status",
|
|
8672
8673
|
"heating-valve",
|
|
@@ -8689,6 +8690,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8689
8690
|
"login-method",
|
|
8690
8691
|
"media-player",
|
|
8691
8692
|
"mesh-network",
|
|
8693
|
+
"meter",
|
|
8692
8694
|
"metrics-provider",
|
|
8693
8695
|
"model-convert",
|
|
8694
8696
|
"model-distributor",
|
|
@@ -9487,6 +9489,10 @@ Object.freeze({
|
|
|
9487
9489
|
"path": "detected",
|
|
9488
9490
|
"valueType": "boolean"
|
|
9489
9491
|
}],
|
|
9492
|
+
"group-active": [{
|
|
9493
|
+
"path": "active",
|
|
9494
|
+
"valueType": "boolean"
|
|
9495
|
+
}],
|
|
9490
9496
|
"group-status": [
|
|
9491
9497
|
{
|
|
9492
9498
|
"path": "included",
|
|
@@ -9746,6 +9752,10 @@ Object.freeze({
|
|
|
9746
9752
|
]
|
|
9747
9753
|
}
|
|
9748
9754
|
],
|
|
9755
|
+
"meter": [{
|
|
9756
|
+
"path": "value",
|
|
9757
|
+
"valueType": "number"
|
|
9758
|
+
}],
|
|
9749
9759
|
"motion": [
|
|
9750
9760
|
{
|
|
9751
9761
|
"path": "detected",
|
|
@@ -10503,7 +10513,7 @@ function userError(code, params, englishFallback) {
|
|
|
10503
10513
|
return new CamstackError(code, params, englishFallback);
|
|
10504
10514
|
}
|
|
10505
10515
|
//#endregion
|
|
10506
|
-
//#region ../types/dist/err-msg-
|
|
10516
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10507
10517
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10508
10518
|
DeviceType["Camera"] = "camera";
|
|
10509
10519
|
DeviceType["Hub"] = "hub";
|
|
@@ -10597,8 +10607,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10597
10607
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10598
10608
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10599
10609
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10600
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10610
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10611
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10601
10612
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10613
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10614
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10615
|
+
DeviceType["Washer"] = "washer";
|
|
10616
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10617
|
+
DeviceType["Dryer"] = "dryer";
|
|
10602
10618
|
return DeviceType;
|
|
10603
10619
|
}({});
|
|
10604
10620
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10856,7 +10872,7 @@ function errMsg(err) {
|
|
|
10856
10872
|
return String(err);
|
|
10857
10873
|
}
|
|
10858
10874
|
//#endregion
|
|
10859
|
-
//#region ../types/dist/composition-
|
|
10875
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10860
10876
|
/**
|
|
10861
10877
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10862
10878
|
*
|
|
@@ -11171,6 +11187,13 @@ var table = {
|
|
|
11171
11187
|
apply: () => {
|
|
11172
11188
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11173
11189
|
}
|
|
11190
|
+
},
|
|
11191
|
+
schmitt: {
|
|
11192
|
+
minArgs: 3,
|
|
11193
|
+
maxArgs: 5,
|
|
11194
|
+
apply: () => {
|
|
11195
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11196
|
+
}
|
|
11174
11197
|
}
|
|
11175
11198
|
};
|
|
11176
11199
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11612,6 +11635,99 @@ function validateExpressionSource(src) {
|
|
|
11612
11635
|
return null;
|
|
11613
11636
|
}
|
|
11614
11637
|
/**
|
|
11638
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11639
|
+
*
|
|
11640
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11641
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11642
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11643
|
+
*
|
|
11644
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11645
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11646
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11647
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11648
|
+
* can move later without moving the others.
|
|
11649
|
+
*/
|
|
11650
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11651
|
+
var APPLIANCE_KINDS = [
|
|
11652
|
+
"washer",
|
|
11653
|
+
"dryer",
|
|
11654
|
+
"dishwasher"
|
|
11655
|
+
];
|
|
11656
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11657
|
+
/**
|
|
11658
|
+
* Statistics and integrals over a history read (D944).
|
|
11659
|
+
*
|
|
11660
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11661
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11662
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11663
|
+
* as zero. A truncated read is not published.
|
|
11664
|
+
*/
|
|
11665
|
+
var STATISTIC_STATS = [
|
|
11666
|
+
"min",
|
|
11667
|
+
"max",
|
|
11668
|
+
"mean",
|
|
11669
|
+
"sum",
|
|
11670
|
+
"count",
|
|
11671
|
+
"change"
|
|
11672
|
+
];
|
|
11673
|
+
/**
|
|
11674
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11675
|
+
*
|
|
11676
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11677
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11678
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11679
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11680
|
+
*/
|
|
11681
|
+
var MINUTE_MS = 6e4;
|
|
11682
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11683
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11684
|
+
var ROLLING_SPANS = [
|
|
11685
|
+
"1h",
|
|
11686
|
+
"24h",
|
|
11687
|
+
"2d",
|
|
11688
|
+
"7d",
|
|
11689
|
+
"30d",
|
|
11690
|
+
"custom"
|
|
11691
|
+
];
|
|
11692
|
+
var CALENDAR_PERIODS = [
|
|
11693
|
+
"today",
|
|
11694
|
+
"yesterday",
|
|
11695
|
+
"this-week",
|
|
11696
|
+
"this-month"
|
|
11697
|
+
];
|
|
11698
|
+
var RESET_PERIODS = [
|
|
11699
|
+
"never",
|
|
11700
|
+
"daily",
|
|
11701
|
+
"weekly",
|
|
11702
|
+
"monthly"
|
|
11703
|
+
];
|
|
11704
|
+
5 * MINUTE_MS;
|
|
11705
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11706
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11707
|
+
var rollingWindowObject = object({
|
|
11708
|
+
kind: literal("rolling"),
|
|
11709
|
+
span: _enum(ROLLING_SPANS),
|
|
11710
|
+
customMinutes: number().int().min(5).optional()
|
|
11711
|
+
}).check((payload) => {
|
|
11712
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11713
|
+
code: "custom",
|
|
11714
|
+
message: "a custom range needs a duration in minutes",
|
|
11715
|
+
path: ["customMinutes"],
|
|
11716
|
+
input: payload.value
|
|
11717
|
+
});
|
|
11718
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11719
|
+
code: "custom",
|
|
11720
|
+
message: "only a custom range carries a duration",
|
|
11721
|
+
path: ["customMinutes"],
|
|
11722
|
+
input: payload.value
|
|
11723
|
+
});
|
|
11724
|
+
});
|
|
11725
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11726
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11727
|
+
kind: literal("calendar"),
|
|
11728
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11729
|
+
})]);
|
|
11730
|
+
/**
|
|
11615
11731
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11616
11732
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11617
11733
|
* `composition.ts` (D659).
|
|
@@ -11637,7 +11753,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11637
11753
|
"occupancy",
|
|
11638
11754
|
"binary",
|
|
11639
11755
|
"switch",
|
|
11640
|
-
"light"
|
|
11756
|
+
"light",
|
|
11757
|
+
"fan",
|
|
11758
|
+
"cover",
|
|
11759
|
+
"valve",
|
|
11760
|
+
"lock",
|
|
11761
|
+
"media-player",
|
|
11762
|
+
"climate"
|
|
11641
11763
|
];
|
|
11642
11764
|
var NUMERIC_AGGREGATES = [
|
|
11643
11765
|
"mean",
|
|
@@ -11667,14 +11789,73 @@ var HelperMemberSchema = object({
|
|
|
11667
11789
|
cap: string().min(1),
|
|
11668
11790
|
fieldPath: string().min(1)
|
|
11669
11791
|
});
|
|
11670
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11792
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11793
|
+
object({
|
|
11794
|
+
kind: literal("group"),
|
|
11795
|
+
templateId: GroupTemplateIdSchema,
|
|
11796
|
+
aggregate: AggregateReducerSchema,
|
|
11797
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11798
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11799
|
+
active: ActiveCriterionSchema.optional()
|
|
11800
|
+
}),
|
|
11801
|
+
object({
|
|
11802
|
+
kind: literal("appliance"),
|
|
11803
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11804
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11805
|
+
thresholdWatts: number().positive(),
|
|
11806
|
+
startDwellMs: number().int().nonnegative(),
|
|
11807
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11808
|
+
member: HelperMemberSchema
|
|
11809
|
+
}),
|
|
11810
|
+
object({
|
|
11811
|
+
kind: literal("statistic"),
|
|
11812
|
+
stat: _enum(STATISTIC_STATS),
|
|
11813
|
+
window: StatisticWindowSchema,
|
|
11814
|
+
source: HelperMemberSchema
|
|
11815
|
+
}),
|
|
11816
|
+
object({
|
|
11817
|
+
kind: literal("integral"),
|
|
11818
|
+
reset: _enum(RESET_PERIODS),
|
|
11819
|
+
output: _enum(["energy", "meter"]),
|
|
11820
|
+
source: HelperMemberSchema
|
|
11821
|
+
}),
|
|
11822
|
+
object({
|
|
11823
|
+
kind: literal("threshold"),
|
|
11824
|
+
source: HelperMemberSchema,
|
|
11825
|
+
high: number(),
|
|
11826
|
+
low: number(),
|
|
11827
|
+
onForMs: number().int().nonnegative(),
|
|
11828
|
+
offForMs: number().int().nonnegative()
|
|
11829
|
+
}),
|
|
11830
|
+
object({
|
|
11831
|
+
kind: literal("arithmetic"),
|
|
11832
|
+
op: _enum([
|
|
11833
|
+
"sum",
|
|
11834
|
+
"difference",
|
|
11835
|
+
"ratio"
|
|
11836
|
+
]),
|
|
11837
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11838
|
+
}),
|
|
11839
|
+
object({
|
|
11840
|
+
kind: literal("expression"),
|
|
11841
|
+
expr: string().min(1),
|
|
11842
|
+
inputs: array(object({
|
|
11843
|
+
name: string().min(1),
|
|
11844
|
+
member: HelperMemberSchema
|
|
11845
|
+
})).min(1).max(64),
|
|
11846
|
+
output: _enum(["number", "boolean"])
|
|
11847
|
+
}),
|
|
11848
|
+
object({
|
|
11849
|
+
kind: literal("derivative"),
|
|
11850
|
+
window: RollingWindowSchema,
|
|
11851
|
+
per: _enum([
|
|
11852
|
+
"second",
|
|
11853
|
+
"minute",
|
|
11854
|
+
"hour"
|
|
11855
|
+
]),
|
|
11856
|
+
source: HelperMemberSchema
|
|
11857
|
+
})
|
|
11858
|
+
]);
|
|
11678
11859
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11679
11860
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11680
11861
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11735,6 +11916,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11735
11916
|
"all"
|
|
11736
11917
|
]),
|
|
11737
11918
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11919
|
+
/**
|
|
11920
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11921
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11922
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11923
|
+
*/
|
|
11924
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11738
11925
|
/** `value` is the reading; the others are the member counts. */
|
|
11739
11926
|
publish: _enum([
|
|
11740
11927
|
"value",
|
|
@@ -11748,6 +11935,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11748
11935
|
"omit",
|
|
11749
11936
|
"offline"
|
|
11750
11937
|
])
|
|
11938
|
+
}),
|
|
11939
|
+
object({
|
|
11940
|
+
kind: literal("series"),
|
|
11941
|
+
read: CompositionFieldReadSchema,
|
|
11942
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11943
|
+
publish: _enum([
|
|
11944
|
+
"value",
|
|
11945
|
+
"included",
|
|
11946
|
+
"excluded",
|
|
11947
|
+
"total"
|
|
11948
|
+
]),
|
|
11949
|
+
/**
|
|
11950
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11951
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11952
|
+
*/
|
|
11953
|
+
empty: _enum([
|
|
11954
|
+
"null",
|
|
11955
|
+
"omit",
|
|
11956
|
+
"offline"
|
|
11957
|
+
])
|
|
11751
11958
|
})
|
|
11752
11959
|
]);
|
|
11753
11960
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16927,7 +17134,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16927
17134
|
*/
|
|
16928
17135
|
interactiveConnectPath: string().min(1).optional(),
|
|
16929
17136
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16930
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17137
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17138
|
+
/**
|
|
17139
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17140
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17141
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17142
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17143
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17144
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17145
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17146
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17147
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17148
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17149
|
+
* offers it as the default path; the fields the session fills are
|
|
17150
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17151
|
+
*/
|
|
17152
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16931
17153
|
}))
|
|
16932
17154
|
});
|
|
16933
17155
|
var ListInputSchema = object({
|
|
@@ -18032,7 +18254,8 @@ var CompositionProblemSchema = object({
|
|
|
18032
18254
|
"native-capability-replace",
|
|
18033
18255
|
"mixed-quantity",
|
|
18034
18256
|
"helper-mismatch",
|
|
18035
|
-
"member-constraint"
|
|
18257
|
+
"member-constraint",
|
|
18258
|
+
"retention"
|
|
18036
18259
|
]),
|
|
18037
18260
|
path: string(),
|
|
18038
18261
|
message: string()
|
|
@@ -18266,13 +18489,17 @@ Object.freeze({
|
|
|
18266
18489
|
latchedAt: {
|
|
18267
18490
|
kind: "fixed",
|
|
18268
18491
|
result: ["number", "null"]
|
|
18492
|
+
},
|
|
18493
|
+
schmitt: {
|
|
18494
|
+
kind: "fixed",
|
|
18495
|
+
result: ["boolean", "null"]
|
|
18269
18496
|
}
|
|
18270
18497
|
});
|
|
18271
18498
|
/**
|
|
18272
18499
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18273
18500
|
* Data, not a form default written into the block.
|
|
18274
18501
|
*/
|
|
18275
|
-
var NOW = {
|
|
18502
|
+
var NOW$2 = {
|
|
18276
18503
|
fieldPath: "lastFetchedAt",
|
|
18277
18504
|
expr: "now"
|
|
18278
18505
|
};
|
|
@@ -18286,6 +18513,8 @@ function numeric(input) {
|
|
|
18286
18513
|
family: "numeric",
|
|
18287
18514
|
deviceType: DeviceType.Sensor,
|
|
18288
18515
|
memberDeviceType: DeviceType.Sensor,
|
|
18516
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18517
|
+
activeWhen: void 0,
|
|
18289
18518
|
commandCaps: [],
|
|
18290
18519
|
baseUnit: baseUnitOf(input.quantity),
|
|
18291
18520
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18301,6 +18530,8 @@ function binary(input) {
|
|
|
18301
18530
|
family: "binary",
|
|
18302
18531
|
deviceType: DeviceType.Sensor,
|
|
18303
18532
|
memberDeviceType: DeviceType.Sensor,
|
|
18533
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18534
|
+
activeWhen: void 0,
|
|
18304
18535
|
commandCaps: [],
|
|
18305
18536
|
quantity: "none",
|
|
18306
18537
|
baseUnit: void 0,
|
|
@@ -18318,7 +18549,7 @@ var GROUP_TEMPLATES = [
|
|
|
18318
18549
|
quantity: "temperature",
|
|
18319
18550
|
defaultAggregate: "mean",
|
|
18320
18551
|
empty: "null",
|
|
18321
|
-
companions: [NOW]
|
|
18552
|
+
companions: [NOW$2]
|
|
18322
18553
|
}),
|
|
18323
18554
|
numeric({
|
|
18324
18555
|
id: "humidity",
|
|
@@ -18329,7 +18560,7 @@ var GROUP_TEMPLATES = [
|
|
|
18329
18560
|
quantity: "humidity",
|
|
18330
18561
|
defaultAggregate: "mean",
|
|
18331
18562
|
empty: "null",
|
|
18332
|
-
companions: [NOW]
|
|
18563
|
+
companions: [NOW$2]
|
|
18333
18564
|
}),
|
|
18334
18565
|
numeric({
|
|
18335
18566
|
id: "pressure",
|
|
@@ -18340,7 +18571,7 @@ var GROUP_TEMPLATES = [
|
|
|
18340
18571
|
quantity: "pressure",
|
|
18341
18572
|
defaultAggregate: "mean",
|
|
18342
18573
|
empty: "null",
|
|
18343
|
-
companions: [NOW]
|
|
18574
|
+
companions: [NOW$2]
|
|
18344
18575
|
}),
|
|
18345
18576
|
numeric({
|
|
18346
18577
|
id: "illuminance",
|
|
@@ -18351,7 +18582,7 @@ var GROUP_TEMPLATES = [
|
|
|
18351
18582
|
quantity: "illuminance",
|
|
18352
18583
|
defaultAggregate: "mean",
|
|
18353
18584
|
empty: "null",
|
|
18354
|
-
companions: [NOW]
|
|
18585
|
+
companions: [NOW$2]
|
|
18355
18586
|
}),
|
|
18356
18587
|
numeric({
|
|
18357
18588
|
id: "power",
|
|
@@ -18362,7 +18593,7 @@ var GROUP_TEMPLATES = [
|
|
|
18362
18593
|
quantity: "power",
|
|
18363
18594
|
defaultAggregate: "sum",
|
|
18364
18595
|
empty: "omit",
|
|
18365
|
-
companions: [NOW]
|
|
18596
|
+
companions: [NOW$2]
|
|
18366
18597
|
}),
|
|
18367
18598
|
numeric({
|
|
18368
18599
|
id: "energy",
|
|
@@ -18373,7 +18604,7 @@ var GROUP_TEMPLATES = [
|
|
|
18373
18604
|
quantity: "energy",
|
|
18374
18605
|
defaultAggregate: "sum",
|
|
18375
18606
|
empty: "omit",
|
|
18376
|
-
companions: [NOW]
|
|
18607
|
+
companions: [NOW$2]
|
|
18377
18608
|
}),
|
|
18378
18609
|
numeric({
|
|
18379
18610
|
id: "battery",
|
|
@@ -18408,7 +18639,7 @@ var GROUP_TEMPLATES = [
|
|
|
18408
18639
|
quantity: "device",
|
|
18409
18640
|
defaultAggregate: "mean",
|
|
18410
18641
|
empty: "null",
|
|
18411
|
-
companions: [NOW]
|
|
18642
|
+
companions: [NOW$2]
|
|
18412
18643
|
}),
|
|
18413
18644
|
binary({
|
|
18414
18645
|
id: "motion",
|
|
@@ -18502,6 +18733,11 @@ var GROUP_TEMPLATES = [
|
|
|
18502
18733
|
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.",
|
|
18503
18734
|
deviceType: DeviceType.Switch,
|
|
18504
18735
|
outputCap: "switch",
|
|
18736
|
+
outputField: "on",
|
|
18737
|
+
member: {
|
|
18738
|
+
cap: "switch",
|
|
18739
|
+
fieldPath: "on"
|
|
18740
|
+
},
|
|
18505
18741
|
commandCaps: ["switch"]
|
|
18506
18742
|
}),
|
|
18507
18743
|
actuator({
|
|
@@ -18509,34 +18745,136 @@ var GROUP_TEMPLATES = [
|
|
|
18509
18745
|
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.",
|
|
18510
18746
|
deviceType: DeviceType.Light,
|
|
18511
18747
|
outputCap: "switch",
|
|
18748
|
+
outputField: "on",
|
|
18749
|
+
member: {
|
|
18750
|
+
cap: "switch",
|
|
18751
|
+
fieldPath: "on"
|
|
18752
|
+
},
|
|
18512
18753
|
commandCaps: [
|
|
18513
18754
|
"switch",
|
|
18514
18755
|
"brightness",
|
|
18515
18756
|
"color"
|
|
18516
18757
|
]
|
|
18758
|
+
}),
|
|
18759
|
+
actuator({
|
|
18760
|
+
id: "fan",
|
|
18761
|
+
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.",
|
|
18762
|
+
deviceType: DeviceType.Fan,
|
|
18763
|
+
outputCap: "switch",
|
|
18764
|
+
outputField: "on",
|
|
18765
|
+
member: {
|
|
18766
|
+
cap: "switch",
|
|
18767
|
+
fieldPath: "on"
|
|
18768
|
+
},
|
|
18769
|
+
commandCaps: ["switch", "fan-control"]
|
|
18770
|
+
}),
|
|
18771
|
+
actuator({
|
|
18772
|
+
id: "cover",
|
|
18773
|
+
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.",
|
|
18774
|
+
deviceType: DeviceType.Cover,
|
|
18775
|
+
outputCap: "group-active",
|
|
18776
|
+
outputField: "active",
|
|
18777
|
+
member: {
|
|
18778
|
+
cap: "cover",
|
|
18779
|
+
fieldPath: "state"
|
|
18780
|
+
},
|
|
18781
|
+
activeWhen: [
|
|
18782
|
+
"open",
|
|
18783
|
+
"opening",
|
|
18784
|
+
"stopped"
|
|
18785
|
+
],
|
|
18786
|
+
commandCaps: ["cover"]
|
|
18787
|
+
}),
|
|
18788
|
+
actuator({
|
|
18789
|
+
id: "valve",
|
|
18790
|
+
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.",
|
|
18791
|
+
deviceType: DeviceType.Valve,
|
|
18792
|
+
outputCap: "group-active",
|
|
18793
|
+
outputField: "active",
|
|
18794
|
+
member: {
|
|
18795
|
+
cap: "valve",
|
|
18796
|
+
fieldPath: "state"
|
|
18797
|
+
},
|
|
18798
|
+
activeWhen: [
|
|
18799
|
+
"open",
|
|
18800
|
+
"opening",
|
|
18801
|
+
"stopped"
|
|
18802
|
+
],
|
|
18803
|
+
commandCaps: ["valve"]
|
|
18804
|
+
}),
|
|
18805
|
+
actuator({
|
|
18806
|
+
id: "lock",
|
|
18807
|
+
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.",
|
|
18808
|
+
deviceType: DeviceType.Lock,
|
|
18809
|
+
outputCap: "group-active",
|
|
18810
|
+
outputField: "active",
|
|
18811
|
+
member: {
|
|
18812
|
+
cap: "lock-control",
|
|
18813
|
+
fieldPath: "state"
|
|
18814
|
+
},
|
|
18815
|
+
activeWhen: ["locked"],
|
|
18816
|
+
commandCaps: ["lock-control"]
|
|
18817
|
+
}),
|
|
18818
|
+
actuator({
|
|
18819
|
+
id: "media-player",
|
|
18820
|
+
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.",
|
|
18821
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18822
|
+
outputCap: "group-active",
|
|
18823
|
+
outputField: "active",
|
|
18824
|
+
member: {
|
|
18825
|
+
cap: "media-player",
|
|
18826
|
+
fieldPath: "state"
|
|
18827
|
+
},
|
|
18828
|
+
activeWhen: ["playing", "buffering"],
|
|
18829
|
+
commandCaps: ["media-player"]
|
|
18830
|
+
}),
|
|
18831
|
+
actuator({
|
|
18832
|
+
id: "climate",
|
|
18833
|
+
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.",
|
|
18834
|
+
deviceType: DeviceType.Thermostat,
|
|
18835
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18836
|
+
outputCap: "group-active",
|
|
18837
|
+
outputField: "active",
|
|
18838
|
+
member: {
|
|
18839
|
+
cap: "climate-control",
|
|
18840
|
+
fieldPath: "mode"
|
|
18841
|
+
},
|
|
18842
|
+
activeWhen: [
|
|
18843
|
+
"heat",
|
|
18844
|
+
"cool",
|
|
18845
|
+
"auto",
|
|
18846
|
+
"heat_cool",
|
|
18847
|
+
"fan_only",
|
|
18848
|
+
"dry"
|
|
18849
|
+
],
|
|
18850
|
+
commandCaps: ["climate-control"]
|
|
18517
18851
|
})
|
|
18518
18852
|
];
|
|
18519
18853
|
function actuator(input) {
|
|
18520
18854
|
return {
|
|
18521
|
-
|
|
18855
|
+
id: input.id,
|
|
18856
|
+
summary: input.summary,
|
|
18857
|
+
deviceType: input.deviceType,
|
|
18858
|
+
outputCap: input.outputCap,
|
|
18859
|
+
outputField: input.outputField,
|
|
18860
|
+
commandCaps: input.commandCaps,
|
|
18522
18861
|
family: "actuator",
|
|
18523
18862
|
role: void 0,
|
|
18524
18863
|
memberDeviceType: input.deviceType,
|
|
18525
|
-
|
|
18864
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18865
|
+
activeWhen: input.activeWhen,
|
|
18526
18866
|
quantity: "none",
|
|
18527
18867
|
baseUnit: void 0,
|
|
18528
18868
|
aggregates: BINARY_AGGREGATES,
|
|
18529
18869
|
defaultAggregate: "any",
|
|
18530
18870
|
empty: "offline",
|
|
18531
|
-
accept: [
|
|
18532
|
-
cap: "switch",
|
|
18533
|
-
fieldPath: "on"
|
|
18534
|
-
}],
|
|
18871
|
+
accept: [input.member],
|
|
18535
18872
|
companions: [CHANGED]
|
|
18536
18873
|
};
|
|
18537
18874
|
}
|
|
18538
18875
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18539
18876
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18877
|
+
DeviceType.Camera;
|
|
18540
18878
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18541
18879
|
/**
|
|
18542
18880
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43760,7 +44098,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43760
44098
|
});
|
|
43761
44099
|
/**
|
|
43762
44100
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43763
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44101
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43764
44102
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43765
44103
|
* the originating provider config (mode + sourcePort) so the
|
|
43766
44104
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46447,7 +46785,20 @@ var NcRuleInputSchema = object({
|
|
|
46447
46785
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46448
46786
|
* path does not run Zod defaults.
|
|
46449
46787
|
*/
|
|
46450
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46788
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46789
|
+
/**
|
|
46790
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46791
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46792
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46793
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46794
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46795
|
+
*
|
|
46796
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46797
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46798
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46799
|
+
* `false`, so it needs no `clear` key.
|
|
46800
|
+
*/
|
|
46801
|
+
askVerdict: boolean().optional()
|
|
46451
46802
|
});
|
|
46452
46803
|
/**
|
|
46453
46804
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57271,7 +57622,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57271
57622
|
DeviceType.Switch,
|
|
57272
57623
|
DeviceType.PetFeeder,
|
|
57273
57624
|
DeviceType.Container,
|
|
57274
|
-
DeviceType.Thermostat
|
|
57625
|
+
DeviceType.Thermostat,
|
|
57626
|
+
DeviceType.EventEmitter
|
|
57275
57627
|
];
|
|
57276
57628
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57277
57629
|
var batteryCustomize = {
|
|
@@ -60139,7 +60491,17 @@ var groupCommandsCapability = {
|
|
|
60139
60491
|
scope: "device",
|
|
60140
60492
|
deviceNative: true,
|
|
60141
60493
|
mode: "singleton",
|
|
60142
|
-
deviceTypes: [
|
|
60494
|
+
deviceTypes: [
|
|
60495
|
+
DeviceType.Switch,
|
|
60496
|
+
DeviceType.Light,
|
|
60497
|
+
DeviceType.Fan,
|
|
60498
|
+
DeviceType.Cover,
|
|
60499
|
+
DeviceType.Valve,
|
|
60500
|
+
DeviceType.Lock,
|
|
60501
|
+
DeviceType.MediaPlayer,
|
|
60502
|
+
DeviceType.Thermostat,
|
|
60503
|
+
DeviceType.Climate
|
|
60504
|
+
],
|
|
60143
60505
|
methods: {},
|
|
60144
60506
|
status: {
|
|
60145
60507
|
schema: GroupCommandsSchema,
|
|
@@ -60157,6 +60519,49 @@ var groupCommandsCapability = {
|
|
|
60157
60519
|
history: "none"
|
|
60158
60520
|
};
|
|
60159
60521
|
/**
|
|
60522
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60523
|
+
* included member is, or every included member is. What "active" means is the
|
|
60524
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60525
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60526
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60527
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60528
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60529
|
+
*/
|
|
60530
|
+
var GroupActiveSchema = object({
|
|
60531
|
+
active: boolean().meta({ label: "Active" }),
|
|
60532
|
+
/** Ms epoch when the slice was last updated. */
|
|
60533
|
+
lastChangedAt: number()
|
|
60534
|
+
});
|
|
60535
|
+
var groupActiveCapability = {
|
|
60536
|
+
name: "group-active",
|
|
60537
|
+
scope: "device",
|
|
60538
|
+
deviceNative: true,
|
|
60539
|
+
mode: "singleton",
|
|
60540
|
+
deviceTypes: [
|
|
60541
|
+
DeviceType.Cover,
|
|
60542
|
+
DeviceType.Valve,
|
|
60543
|
+
DeviceType.Lock,
|
|
60544
|
+
DeviceType.MediaPlayer,
|
|
60545
|
+
DeviceType.Climate,
|
|
60546
|
+
DeviceType.Thermostat
|
|
60547
|
+
],
|
|
60548
|
+
methods: {},
|
|
60549
|
+
status: {
|
|
60550
|
+
schema: GroupActiveSchema,
|
|
60551
|
+
kind: "push"
|
|
60552
|
+
},
|
|
60553
|
+
runtimeState: GroupActiveSchema,
|
|
60554
|
+
/**
|
|
60555
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60556
|
+
* next source event; a restored value would outlive the members it named.
|
|
60557
|
+
*
|
|
60558
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60559
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60560
|
+
*/
|
|
60561
|
+
durability: "session",
|
|
60562
|
+
history: "none"
|
|
60563
|
+
};
|
|
60564
|
+
/**
|
|
60160
60565
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60161
60566
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60162
60567
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60187,7 +60592,14 @@ var groupStatusCapability = {
|
|
|
60187
60592
|
deviceTypes: [
|
|
60188
60593
|
DeviceType.Sensor,
|
|
60189
60594
|
DeviceType.Switch,
|
|
60190
|
-
DeviceType.Light
|
|
60595
|
+
DeviceType.Light,
|
|
60596
|
+
DeviceType.Fan,
|
|
60597
|
+
DeviceType.Cover,
|
|
60598
|
+
DeviceType.Valve,
|
|
60599
|
+
DeviceType.Lock,
|
|
60600
|
+
DeviceType.MediaPlayer,
|
|
60601
|
+
DeviceType.Thermostat,
|
|
60602
|
+
DeviceType.Climate
|
|
60191
60603
|
],
|
|
60192
60604
|
methods: {},
|
|
60193
60605
|
status: {
|
|
@@ -61460,7 +61872,14 @@ var lockControlCapability = {
|
|
|
61460
61872
|
}),
|
|
61461
61873
|
unlock: method(object({
|
|
61462
61874
|
deviceId: number().int().nonnegative(),
|
|
61463
|
-
code: string().min(1).optional()
|
|
61875
|
+
code: string().min(1).optional(),
|
|
61876
|
+
/**
|
|
61877
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61878
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61879
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61880
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61881
|
+
*/
|
|
61882
|
+
confirm: boolean().optional()
|
|
61464
61883
|
}), _void(), {
|
|
61465
61884
|
kind: "mutation",
|
|
61466
61885
|
auth: "protected"
|
|
@@ -61497,6 +61916,44 @@ var lockControlCapability = {
|
|
|
61497
61916
|
volatileStateFields: ["lastChangedAt"]
|
|
61498
61917
|
};
|
|
61499
61918
|
/**
|
|
61919
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61920
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61921
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61922
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61923
|
+
*/
|
|
61924
|
+
var MeterStatusSchema = object({
|
|
61925
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61926
|
+
lastFetchedAt: number()
|
|
61927
|
+
});
|
|
61928
|
+
var meterCapability = {
|
|
61929
|
+
name: "meter",
|
|
61930
|
+
scope: "device",
|
|
61931
|
+
deviceNative: true,
|
|
61932
|
+
mode: "singleton",
|
|
61933
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61934
|
+
methods: {},
|
|
61935
|
+
status: {
|
|
61936
|
+
schema: MeterStatusSchema,
|
|
61937
|
+
kind: "push"
|
|
61938
|
+
},
|
|
61939
|
+
runtimeState: MeterStatusSchema,
|
|
61940
|
+
/**
|
|
61941
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61942
|
+
* history integral. A restart shows it only until the history pass
|
|
61943
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61944
|
+
*
|
|
61945
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61946
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61947
|
+
*/
|
|
61948
|
+
durability: "restored",
|
|
61949
|
+
history: { fields: { value: {
|
|
61950
|
+
kind: "counter",
|
|
61951
|
+
deadband: .001,
|
|
61952
|
+
minIntervalMs: 6e4
|
|
61953
|
+
} } },
|
|
61954
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61955
|
+
};
|
|
61956
|
+
/**
|
|
61500
61957
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61501
61958
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61502
61959
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -64008,9 +64465,9 @@ var PowerMeterStatusSchema = object({
|
|
|
64008
64465
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
64009
64466
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
64010
64467
|
/** Voltage in volts. */
|
|
64011
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64468
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
64012
64469
|
/** Current in amperes. */
|
|
64013
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64470
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
64014
64471
|
/** Apparent power in volt-amperes. */
|
|
64015
64472
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
64016
64473
|
/** Power factor (0..1) if reported. */
|
|
@@ -64018,12 +64475,74 @@ var PowerMeterStatusSchema = object({
|
|
|
64018
64475
|
/** Ms epoch when the slice was last updated. */
|
|
64019
64476
|
lastFetchedAt: number()
|
|
64020
64477
|
});
|
|
64478
|
+
/**
|
|
64479
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64480
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64481
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64482
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64483
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64484
|
+
*/
|
|
64485
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64486
|
+
DeviceType.Sensor,
|
|
64487
|
+
DeviceType.Switch,
|
|
64488
|
+
DeviceType.Light,
|
|
64489
|
+
DeviceType.Fan,
|
|
64490
|
+
DeviceType.Climate,
|
|
64491
|
+
DeviceType.Thermostat,
|
|
64492
|
+
DeviceType.Humidifier,
|
|
64493
|
+
DeviceType.WaterHeater,
|
|
64494
|
+
DeviceType.MediaPlayer,
|
|
64495
|
+
DeviceType.Washer,
|
|
64496
|
+
DeviceType.Dryer,
|
|
64497
|
+
DeviceType.Dishwasher,
|
|
64498
|
+
DeviceType.Vacuum,
|
|
64499
|
+
DeviceType.LawnMower,
|
|
64500
|
+
DeviceType.PetFeeder
|
|
64501
|
+
];
|
|
64502
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64503
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64504
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64505
|
+
function powerTarget(id, unit) {
|
|
64506
|
+
return {
|
|
64507
|
+
id,
|
|
64508
|
+
cardinality: "scalar",
|
|
64509
|
+
vocabulary: {
|
|
64510
|
+
cap: "power-meter",
|
|
64511
|
+
stateField: id
|
|
64512
|
+
},
|
|
64513
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64514
|
+
apply: "add",
|
|
64515
|
+
path: id,
|
|
64516
|
+
sources: [{
|
|
64517
|
+
kind: "numeric",
|
|
64518
|
+
requiredUnit: unit,
|
|
64519
|
+
transforms: [{ kind: "identity" }]
|
|
64520
|
+
}],
|
|
64521
|
+
companions: [{
|
|
64522
|
+
kind: "clock",
|
|
64523
|
+
path: "lastFetchedAt",
|
|
64524
|
+
when: "always"
|
|
64525
|
+
}],
|
|
64526
|
+
sourceReport: { status: "assignment-status" },
|
|
64527
|
+
advancedExpression: true
|
|
64528
|
+
};
|
|
64529
|
+
}
|
|
64530
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64531
|
+
var powerMeterCustomize = {
|
|
64532
|
+
version: 1,
|
|
64533
|
+
targets: [
|
|
64534
|
+
powerTarget("watts", "W"),
|
|
64535
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64536
|
+
powerTarget("volts", "V"),
|
|
64537
|
+
powerTarget("amps", "A")
|
|
64538
|
+
]
|
|
64539
|
+
};
|
|
64021
64540
|
var powerMeterCapability = {
|
|
64022
64541
|
name: "power-meter",
|
|
64023
64542
|
scope: "device",
|
|
64024
64543
|
deviceNative: true,
|
|
64025
64544
|
mode: "singleton",
|
|
64026
|
-
deviceTypes:
|
|
64545
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
64027
64546
|
methods: {},
|
|
64028
64547
|
status: {
|
|
64029
64548
|
schema: PowerMeterStatusSchema,
|
|
@@ -64080,7 +64599,8 @@ var powerMeterCapability = {
|
|
|
64080
64599
|
} },
|
|
64081
64600
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64082
64601
|
* whether persisting is worth a SQLite commit. */
|
|
64083
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64602
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64603
|
+
customize: powerMeterCustomize
|
|
64084
64604
|
};
|
|
64085
64605
|
/**
|
|
64086
64606
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64761,6 +65281,8 @@ var runningCustomize = {
|
|
|
64761
65281
|
stateField: "running"
|
|
64762
65282
|
},
|
|
64763
65283
|
deviceTypes: [
|
|
65284
|
+
DeviceType.Washer,
|
|
65285
|
+
DeviceType.Dryer,
|
|
64764
65286
|
DeviceType.Dishwasher,
|
|
64765
65287
|
DeviceType.Vacuum,
|
|
64766
65288
|
DeviceType.LawnMower,
|
|
@@ -67250,7 +67772,8 @@ var switchCapability = {
|
|
|
67250
67772
|
deviceTypes: [
|
|
67251
67773
|
DeviceType.Switch,
|
|
67252
67774
|
DeviceType.Siren,
|
|
67253
|
-
DeviceType.Light
|
|
67775
|
+
DeviceType.Light,
|
|
67776
|
+
DeviceType.Fan
|
|
67254
67777
|
],
|
|
67255
67778
|
methods: { setState: method(object({
|
|
67256
67779
|
deviceId: number(),
|
|
@@ -69463,8 +69986,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69463
69986
|
kind: "mutation",
|
|
69464
69987
|
auth: "admin"
|
|
69465
69988
|
});
|
|
69989
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69466
69990
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69467
|
-
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;
|
|
69991
|
+
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;
|
|
69468
69992
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69469
69993
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69470
69994
|
new Set(CAP_NAMES);
|
|
@@ -69793,6 +70317,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69793
70317
|
featureProbe: featureProbeCapability,
|
|
69794
70318
|
flood: floodCapability,
|
|
69795
70319
|
gas: gasCapability,
|
|
70320
|
+
groupActive: groupActiveCapability,
|
|
69796
70321
|
groupCommands: groupCommandsCapability,
|
|
69797
70322
|
groupStatus: groupStatusCapability,
|
|
69798
70323
|
heatingValve: heatingValveCapability,
|
|
@@ -69804,6 +70329,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69804
70329
|
lawnMowerControl: lawnMowerControlCapability,
|
|
69805
70330
|
lockControl: lockControlCapability,
|
|
69806
70331
|
mediaPlayer: mediaPlayerCapability,
|
|
70332
|
+
meter: meterCapability,
|
|
69807
70333
|
motion: motionCapability,
|
|
69808
70334
|
motionTrigger: motionTriggerCapability,
|
|
69809
70335
|
motionZones: motionZonesCapability,
|
|
@@ -71063,7 +71589,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71063
71589
|
return toDeviceSummary(device, this.addonId);
|
|
71064
71590
|
}
|
|
71065
71591
|
};
|
|
71066
|
-
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;
|
|
71592
|
+
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;
|
|
71067
71593
|
new Set(Object.values(DeviceType));
|
|
71068
71594
|
Object.freeze({
|
|
71069
71595
|
"accessories.getStatus": {
|
|
@@ -74286,6 +74812,13 @@ Object.freeze({
|
|
|
74286
74812
|
access: "view",
|
|
74287
74813
|
role: "viewer"
|
|
74288
74814
|
},
|
|
74815
|
+
"groupActive.getStatus": {
|
|
74816
|
+
capName: "group-active",
|
|
74817
|
+
capScope: "device",
|
|
74818
|
+
addonId: null,
|
|
74819
|
+
access: "view",
|
|
74820
|
+
role: "viewer"
|
|
74821
|
+
},
|
|
74289
74822
|
"groupCommands.getStatus": {
|
|
74290
74823
|
capName: "group-commands",
|
|
74291
74824
|
capScope: "device",
|
|
@@ -75252,6 +75785,13 @@ Object.freeze({
|
|
|
75252
75785
|
access: "create",
|
|
75253
75786
|
role: "admin"
|
|
75254
75787
|
},
|
|
75788
|
+
"meter.getStatus": {
|
|
75789
|
+
capName: "meter",
|
|
75790
|
+
capScope: "device",
|
|
75791
|
+
addonId: null,
|
|
75792
|
+
access: "view",
|
|
75793
|
+
role: "viewer"
|
|
75794
|
+
},
|
|
75255
75795
|
"metricsProvider.collectSnapshot": {
|
|
75256
75796
|
capName: "metrics-provider",
|
|
75257
75797
|
capScope: "system",
|
|
@@ -83350,7 +83890,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83350
83890
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83351
83891
|
icon: "square"
|
|
83352
83892
|
}
|
|
83353
|
-
}
|
|
83893
|
+
},
|
|
83894
|
+
overrides: { byType: {
|
|
83895
|
+
[DeviceType.Washer]: {
|
|
83896
|
+
state: { running: {
|
|
83897
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
83898
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
83899
|
+
} },
|
|
83900
|
+
events: {
|
|
83901
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
83902
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
83903
|
+
}
|
|
83904
|
+
},
|
|
83905
|
+
[DeviceType.Dryer]: {
|
|
83906
|
+
state: { running: {
|
|
83907
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
83908
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
83909
|
+
} },
|
|
83910
|
+
events: {
|
|
83911
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
83912
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
83913
|
+
}
|
|
83914
|
+
},
|
|
83915
|
+
[DeviceType.Dishwasher]: {
|
|
83916
|
+
state: { running: {
|
|
83917
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
83918
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
83919
|
+
} },
|
|
83920
|
+
events: {
|
|
83921
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
83922
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
83923
|
+
}
|
|
83924
|
+
}
|
|
83925
|
+
} }
|
|
83354
83926
|
},
|
|
83355
83927
|
update: {
|
|
83356
83928
|
scope: "device",
|
|
@@ -84122,6 +84694,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84122
84694
|
icon: "flame"
|
|
84123
84695
|
}]
|
|
84124
84696
|
},
|
|
84697
|
+
"group-active": {
|
|
84698
|
+
scope: "device",
|
|
84699
|
+
noun: t("Group state", "Stato del gruppo")
|
|
84700
|
+
},
|
|
84125
84701
|
"group-commands": {
|
|
84126
84702
|
scope: "device",
|
|
84127
84703
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84178,6 +84754,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84178
84754
|
}],
|
|
84179
84755
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84180
84756
|
},
|
|
84757
|
+
meter: {
|
|
84758
|
+
scope: "device",
|
|
84759
|
+
noun: t("Meter", "Contatore"),
|
|
84760
|
+
state: [{
|
|
84761
|
+
kind: "numeric",
|
|
84762
|
+
field: "value",
|
|
84763
|
+
quantity: t("the total", "il totale"),
|
|
84764
|
+
label: t("Total", "Totale"),
|
|
84765
|
+
icon: "gauge"
|
|
84766
|
+
}]
|
|
84767
|
+
},
|
|
84181
84768
|
"numeric-sensor": {
|
|
84182
84769
|
scope: "device",
|
|
84183
84770
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84650,8 +85237,47 @@ function projectAction(cap, action) {
|
|
|
84650
85237
|
};
|
|
84651
85238
|
}
|
|
84652
85239
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84653
|
-
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;
|
|
85240
|
+
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;
|
|
84654
85241
|
DeviceFeature.BatteryOperated;
|
|
85242
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85243
|
+
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.";
|
|
85244
|
+
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.";
|
|
85245
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85246
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85247
|
+
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.";
|
|
85248
|
+
function withheld(reason) {
|
|
85249
|
+
return {
|
|
85250
|
+
[DeviceType.Washer]: {
|
|
85251
|
+
exported: false,
|
|
85252
|
+
reason
|
|
85253
|
+
},
|
|
85254
|
+
[DeviceType.Dryer]: {
|
|
85255
|
+
exported: false,
|
|
85256
|
+
reason
|
|
85257
|
+
},
|
|
85258
|
+
[DeviceType.Dishwasher]: {
|
|
85259
|
+
exported: false,
|
|
85260
|
+
reason
|
|
85261
|
+
}
|
|
85262
|
+
};
|
|
85263
|
+
}
|
|
85264
|
+
function offered(received) {
|
|
85265
|
+
return {
|
|
85266
|
+
[DeviceType.Washer]: {
|
|
85267
|
+
exported: true,
|
|
85268
|
+
as: received
|
|
85269
|
+
},
|
|
85270
|
+
[DeviceType.Dryer]: {
|
|
85271
|
+
exported: true,
|
|
85272
|
+
as: received
|
|
85273
|
+
},
|
|
85274
|
+
[DeviceType.Dishwasher]: {
|
|
85275
|
+
exported: true,
|
|
85276
|
+
as: received
|
|
85277
|
+
}
|
|
85278
|
+
};
|
|
85279
|
+
}
|
|
85280
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84655
85281
|
Object.freeze({
|
|
84656
85282
|
"accessories.getStatus": [{
|
|
84657
85283
|
name: "deviceId",
|
|
@@ -85618,6 +86244,11 @@ Object.freeze({
|
|
|
85618
86244
|
form: "single",
|
|
85619
86245
|
optional: false
|
|
85620
86246
|
}],
|
|
86247
|
+
"groupActive.getStatus": [{
|
|
86248
|
+
name: "deviceId",
|
|
86249
|
+
form: "single",
|
|
86250
|
+
optional: false
|
|
86251
|
+
}],
|
|
85621
86252
|
"groupCommands.getStatus": [{
|
|
85622
86253
|
name: "deviceId",
|
|
85623
86254
|
form: "single",
|
|
@@ -85828,6 +86459,11 @@ Object.freeze({
|
|
|
85828
86459
|
form: "single",
|
|
85829
86460
|
optional: false
|
|
85830
86461
|
}],
|
|
86462
|
+
"meter.getStatus": [{
|
|
86463
|
+
name: "deviceId",
|
|
86464
|
+
form: "single",
|
|
86465
|
+
optional: false
|
|
86466
|
+
}],
|
|
85831
86467
|
"motion.getStatus": [{
|
|
85832
86468
|
name: "deviceId",
|
|
85833
86469
|
form: "single",
|
|
@@ -87435,7 +88071,6 @@ Object.freeze({
|
|
|
87435
88071
|
"network-access": "ingress",
|
|
87436
88072
|
"smtp-provider": "email"
|
|
87437
88073
|
});
|
|
87438
|
-
DeviceType.Camera;
|
|
87439
88074
|
/**
|
|
87440
88075
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87441
88076
|
* `z.infer`, they do not restate the shape.
|