@camstack/addon-provider-rtsp 1.2.147 → 1.2.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/README.md +32 -9
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -5442,7 +5442,7 @@ var ZodIssueCode = {
|
|
|
5442
5442
|
var ZodFirstPartyTypeKind;
|
|
5443
5443
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5444
5444
|
//#endregion
|
|
5445
|
-
//#region ../types/dist/sleep
|
|
5445
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5446
5446
|
/**
|
|
5447
5447
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5448
5448
|
* window to float samples (D455).
|
|
@@ -8635,6 +8635,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8635
8635
|
"filesystem-browse",
|
|
8636
8636
|
"flood",
|
|
8637
8637
|
"gas",
|
|
8638
|
+
"group-active",
|
|
8638
8639
|
"group-commands",
|
|
8639
8640
|
"group-status",
|
|
8640
8641
|
"heating-valve",
|
|
@@ -8657,6 +8658,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8657
8658
|
"login-method",
|
|
8658
8659
|
"media-player",
|
|
8659
8660
|
"mesh-network",
|
|
8661
|
+
"meter",
|
|
8660
8662
|
"metrics-provider",
|
|
8661
8663
|
"model-convert",
|
|
8662
8664
|
"model-distributor",
|
|
@@ -9455,6 +9457,10 @@ Object.freeze({
|
|
|
9455
9457
|
"path": "detected",
|
|
9456
9458
|
"valueType": "boolean"
|
|
9457
9459
|
}],
|
|
9460
|
+
"group-active": [{
|
|
9461
|
+
"path": "active",
|
|
9462
|
+
"valueType": "boolean"
|
|
9463
|
+
}],
|
|
9458
9464
|
"group-status": [
|
|
9459
9465
|
{
|
|
9460
9466
|
"path": "included",
|
|
@@ -9714,6 +9720,10 @@ Object.freeze({
|
|
|
9714
9720
|
]
|
|
9715
9721
|
}
|
|
9716
9722
|
],
|
|
9723
|
+
"meter": [{
|
|
9724
|
+
"path": "value",
|
|
9725
|
+
"valueType": "number"
|
|
9726
|
+
}],
|
|
9717
9727
|
"motion": [
|
|
9718
9728
|
{
|
|
9719
9729
|
"path": "detected",
|
|
@@ -10546,7 +10556,7 @@ function maskUrlCredentials(rawUrl) {
|
|
|
10546
10556
|
}
|
|
10547
10557
|
}
|
|
10548
10558
|
//#endregion
|
|
10549
|
-
//#region ../types/dist/err-msg-
|
|
10559
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10550
10560
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10551
10561
|
DeviceType["Camera"] = "camera";
|
|
10552
10562
|
DeviceType["Hub"] = "hub";
|
|
@@ -10640,8 +10650,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10640
10650
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10641
10651
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10642
10652
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10643
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10653
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10654
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10644
10655
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10656
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10657
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10658
|
+
DeviceType["Washer"] = "washer";
|
|
10659
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10660
|
+
DeviceType["Dryer"] = "dryer";
|
|
10645
10661
|
return DeviceType;
|
|
10646
10662
|
}({});
|
|
10647
10663
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10899,7 +10915,7 @@ function errMsg(err) {
|
|
|
10899
10915
|
return String(err);
|
|
10900
10916
|
}
|
|
10901
10917
|
//#endregion
|
|
10902
|
-
//#region ../types/dist/composition-
|
|
10918
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10903
10919
|
/**
|
|
10904
10920
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10905
10921
|
*
|
|
@@ -11214,6 +11230,13 @@ var table = {
|
|
|
11214
11230
|
apply: () => {
|
|
11215
11231
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11216
11232
|
}
|
|
11233
|
+
},
|
|
11234
|
+
schmitt: {
|
|
11235
|
+
minArgs: 3,
|
|
11236
|
+
maxArgs: 5,
|
|
11237
|
+
apply: () => {
|
|
11238
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11239
|
+
}
|
|
11217
11240
|
}
|
|
11218
11241
|
};
|
|
11219
11242
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11655,6 +11678,99 @@ function validateExpressionSource(src) {
|
|
|
11655
11678
|
return null;
|
|
11656
11679
|
}
|
|
11657
11680
|
/**
|
|
11681
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11682
|
+
*
|
|
11683
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11684
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11685
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11686
|
+
*
|
|
11687
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11688
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11689
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11690
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11691
|
+
* can move later without moving the others.
|
|
11692
|
+
*/
|
|
11693
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11694
|
+
var APPLIANCE_KINDS = [
|
|
11695
|
+
"washer",
|
|
11696
|
+
"dryer",
|
|
11697
|
+
"dishwasher"
|
|
11698
|
+
];
|
|
11699
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11700
|
+
/**
|
|
11701
|
+
* Statistics and integrals over a history read (D944).
|
|
11702
|
+
*
|
|
11703
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11704
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11705
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11706
|
+
* as zero. A truncated read is not published.
|
|
11707
|
+
*/
|
|
11708
|
+
var STATISTIC_STATS = [
|
|
11709
|
+
"min",
|
|
11710
|
+
"max",
|
|
11711
|
+
"mean",
|
|
11712
|
+
"sum",
|
|
11713
|
+
"count",
|
|
11714
|
+
"change"
|
|
11715
|
+
];
|
|
11716
|
+
/**
|
|
11717
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11718
|
+
*
|
|
11719
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11720
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11721
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11722
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11723
|
+
*/
|
|
11724
|
+
var MINUTE_MS = 6e4;
|
|
11725
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11726
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11727
|
+
var ROLLING_SPANS = [
|
|
11728
|
+
"1h",
|
|
11729
|
+
"24h",
|
|
11730
|
+
"2d",
|
|
11731
|
+
"7d",
|
|
11732
|
+
"30d",
|
|
11733
|
+
"custom"
|
|
11734
|
+
];
|
|
11735
|
+
var CALENDAR_PERIODS = [
|
|
11736
|
+
"today",
|
|
11737
|
+
"yesterday",
|
|
11738
|
+
"this-week",
|
|
11739
|
+
"this-month"
|
|
11740
|
+
];
|
|
11741
|
+
var RESET_PERIODS = [
|
|
11742
|
+
"never",
|
|
11743
|
+
"daily",
|
|
11744
|
+
"weekly",
|
|
11745
|
+
"monthly"
|
|
11746
|
+
];
|
|
11747
|
+
5 * MINUTE_MS;
|
|
11748
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11749
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11750
|
+
var rollingWindowObject = object({
|
|
11751
|
+
kind: literal("rolling"),
|
|
11752
|
+
span: _enum(ROLLING_SPANS),
|
|
11753
|
+
customMinutes: number().int().min(5).optional()
|
|
11754
|
+
}).check((payload) => {
|
|
11755
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11756
|
+
code: "custom",
|
|
11757
|
+
message: "a custom range needs a duration in minutes",
|
|
11758
|
+
path: ["customMinutes"],
|
|
11759
|
+
input: payload.value
|
|
11760
|
+
});
|
|
11761
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11762
|
+
code: "custom",
|
|
11763
|
+
message: "only a custom range carries a duration",
|
|
11764
|
+
path: ["customMinutes"],
|
|
11765
|
+
input: payload.value
|
|
11766
|
+
});
|
|
11767
|
+
});
|
|
11768
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11769
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11770
|
+
kind: literal("calendar"),
|
|
11771
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11772
|
+
})]);
|
|
11773
|
+
/**
|
|
11658
11774
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11659
11775
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11660
11776
|
* `composition.ts` (D659).
|
|
@@ -11680,7 +11796,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11680
11796
|
"occupancy",
|
|
11681
11797
|
"binary",
|
|
11682
11798
|
"switch",
|
|
11683
|
-
"light"
|
|
11799
|
+
"light",
|
|
11800
|
+
"fan",
|
|
11801
|
+
"cover",
|
|
11802
|
+
"valve",
|
|
11803
|
+
"lock",
|
|
11804
|
+
"media-player",
|
|
11805
|
+
"climate"
|
|
11684
11806
|
];
|
|
11685
11807
|
var NUMERIC_AGGREGATES = [
|
|
11686
11808
|
"mean",
|
|
@@ -11710,14 +11832,73 @@ var HelperMemberSchema = object({
|
|
|
11710
11832
|
cap: string().min(1),
|
|
11711
11833
|
fieldPath: string().min(1)
|
|
11712
11834
|
});
|
|
11713
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11835
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11836
|
+
object({
|
|
11837
|
+
kind: literal("group"),
|
|
11838
|
+
templateId: GroupTemplateIdSchema,
|
|
11839
|
+
aggregate: AggregateReducerSchema,
|
|
11840
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11841
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11842
|
+
active: ActiveCriterionSchema.optional()
|
|
11843
|
+
}),
|
|
11844
|
+
object({
|
|
11845
|
+
kind: literal("appliance"),
|
|
11846
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11847
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11848
|
+
thresholdWatts: number().positive(),
|
|
11849
|
+
startDwellMs: number().int().nonnegative(),
|
|
11850
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11851
|
+
member: HelperMemberSchema
|
|
11852
|
+
}),
|
|
11853
|
+
object({
|
|
11854
|
+
kind: literal("statistic"),
|
|
11855
|
+
stat: _enum(STATISTIC_STATS),
|
|
11856
|
+
window: StatisticWindowSchema,
|
|
11857
|
+
source: HelperMemberSchema
|
|
11858
|
+
}),
|
|
11859
|
+
object({
|
|
11860
|
+
kind: literal("integral"),
|
|
11861
|
+
reset: _enum(RESET_PERIODS),
|
|
11862
|
+
output: _enum(["energy", "meter"]),
|
|
11863
|
+
source: HelperMemberSchema
|
|
11864
|
+
}),
|
|
11865
|
+
object({
|
|
11866
|
+
kind: literal("threshold"),
|
|
11867
|
+
source: HelperMemberSchema,
|
|
11868
|
+
high: number(),
|
|
11869
|
+
low: number(),
|
|
11870
|
+
onForMs: number().int().nonnegative(),
|
|
11871
|
+
offForMs: number().int().nonnegative()
|
|
11872
|
+
}),
|
|
11873
|
+
object({
|
|
11874
|
+
kind: literal("arithmetic"),
|
|
11875
|
+
op: _enum([
|
|
11876
|
+
"sum",
|
|
11877
|
+
"difference",
|
|
11878
|
+
"ratio"
|
|
11879
|
+
]),
|
|
11880
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11881
|
+
}),
|
|
11882
|
+
object({
|
|
11883
|
+
kind: literal("expression"),
|
|
11884
|
+
expr: string().min(1),
|
|
11885
|
+
inputs: array(object({
|
|
11886
|
+
name: string().min(1),
|
|
11887
|
+
member: HelperMemberSchema
|
|
11888
|
+
})).min(1).max(64),
|
|
11889
|
+
output: _enum(["number", "boolean"])
|
|
11890
|
+
}),
|
|
11891
|
+
object({
|
|
11892
|
+
kind: literal("derivative"),
|
|
11893
|
+
window: RollingWindowSchema,
|
|
11894
|
+
per: _enum([
|
|
11895
|
+
"second",
|
|
11896
|
+
"minute",
|
|
11897
|
+
"hour"
|
|
11898
|
+
]),
|
|
11899
|
+
source: HelperMemberSchema
|
|
11900
|
+
})
|
|
11901
|
+
]);
|
|
11721
11902
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11722
11903
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11723
11904
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11778,6 +11959,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11778
11959
|
"all"
|
|
11779
11960
|
]),
|
|
11780
11961
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11962
|
+
/**
|
|
11963
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11964
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11965
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11966
|
+
*/
|
|
11967
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11781
11968
|
/** `value` is the reading; the others are the member counts. */
|
|
11782
11969
|
publish: _enum([
|
|
11783
11970
|
"value",
|
|
@@ -11791,6 +11978,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11791
11978
|
"omit",
|
|
11792
11979
|
"offline"
|
|
11793
11980
|
])
|
|
11981
|
+
}),
|
|
11982
|
+
object({
|
|
11983
|
+
kind: literal("series"),
|
|
11984
|
+
read: CompositionFieldReadSchema,
|
|
11985
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11986
|
+
publish: _enum([
|
|
11987
|
+
"value",
|
|
11988
|
+
"included",
|
|
11989
|
+
"excluded",
|
|
11990
|
+
"total"
|
|
11991
|
+
]),
|
|
11992
|
+
/**
|
|
11993
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11994
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11995
|
+
*/
|
|
11996
|
+
empty: _enum([
|
|
11997
|
+
"null",
|
|
11998
|
+
"omit",
|
|
11999
|
+
"offline"
|
|
12000
|
+
])
|
|
11794
12001
|
})
|
|
11795
12002
|
]);
|
|
11796
12003
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16982,7 +17189,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16982
17189
|
*/
|
|
16983
17190
|
interactiveConnectPath: string().min(1).optional(),
|
|
16984
17191
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16985
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17192
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17193
|
+
/**
|
|
17194
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17195
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17196
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17197
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17198
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17199
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17200
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17201
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17202
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17203
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17204
|
+
* offers it as the default path; the fields the session fills are
|
|
17205
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17206
|
+
*/
|
|
17207
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16986
17208
|
}))
|
|
16987
17209
|
});
|
|
16988
17210
|
var ListInputSchema = object({
|
|
@@ -18087,7 +18309,8 @@ var CompositionProblemSchema = object({
|
|
|
18087
18309
|
"native-capability-replace",
|
|
18088
18310
|
"mixed-quantity",
|
|
18089
18311
|
"helper-mismatch",
|
|
18090
|
-
"member-constraint"
|
|
18312
|
+
"member-constraint",
|
|
18313
|
+
"retention"
|
|
18091
18314
|
]),
|
|
18092
18315
|
path: string(),
|
|
18093
18316
|
message: string()
|
|
@@ -18321,13 +18544,17 @@ Object.freeze({
|
|
|
18321
18544
|
latchedAt: {
|
|
18322
18545
|
kind: "fixed",
|
|
18323
18546
|
result: ["number", "null"]
|
|
18547
|
+
},
|
|
18548
|
+
schmitt: {
|
|
18549
|
+
kind: "fixed",
|
|
18550
|
+
result: ["boolean", "null"]
|
|
18324
18551
|
}
|
|
18325
18552
|
});
|
|
18326
18553
|
/**
|
|
18327
18554
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18328
18555
|
* Data, not a form default written into the block.
|
|
18329
18556
|
*/
|
|
18330
|
-
var NOW = {
|
|
18557
|
+
var NOW$2 = {
|
|
18331
18558
|
fieldPath: "lastFetchedAt",
|
|
18332
18559
|
expr: "now"
|
|
18333
18560
|
};
|
|
@@ -18341,6 +18568,8 @@ function numeric(input) {
|
|
|
18341
18568
|
family: "numeric",
|
|
18342
18569
|
deviceType: DeviceType.Sensor,
|
|
18343
18570
|
memberDeviceType: DeviceType.Sensor,
|
|
18571
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18572
|
+
activeWhen: void 0,
|
|
18344
18573
|
commandCaps: [],
|
|
18345
18574
|
baseUnit: baseUnitOf(input.quantity),
|
|
18346
18575
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18356,6 +18585,8 @@ function binary(input) {
|
|
|
18356
18585
|
family: "binary",
|
|
18357
18586
|
deviceType: DeviceType.Sensor,
|
|
18358
18587
|
memberDeviceType: DeviceType.Sensor,
|
|
18588
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18589
|
+
activeWhen: void 0,
|
|
18359
18590
|
commandCaps: [],
|
|
18360
18591
|
quantity: "none",
|
|
18361
18592
|
baseUnit: void 0,
|
|
@@ -18373,7 +18604,7 @@ var GROUP_TEMPLATES = [
|
|
|
18373
18604
|
quantity: "temperature",
|
|
18374
18605
|
defaultAggregate: "mean",
|
|
18375
18606
|
empty: "null",
|
|
18376
|
-
companions: [NOW]
|
|
18607
|
+
companions: [NOW$2]
|
|
18377
18608
|
}),
|
|
18378
18609
|
numeric({
|
|
18379
18610
|
id: "humidity",
|
|
@@ -18384,7 +18615,7 @@ var GROUP_TEMPLATES = [
|
|
|
18384
18615
|
quantity: "humidity",
|
|
18385
18616
|
defaultAggregate: "mean",
|
|
18386
18617
|
empty: "null",
|
|
18387
|
-
companions: [NOW]
|
|
18618
|
+
companions: [NOW$2]
|
|
18388
18619
|
}),
|
|
18389
18620
|
numeric({
|
|
18390
18621
|
id: "pressure",
|
|
@@ -18395,7 +18626,7 @@ var GROUP_TEMPLATES = [
|
|
|
18395
18626
|
quantity: "pressure",
|
|
18396
18627
|
defaultAggregate: "mean",
|
|
18397
18628
|
empty: "null",
|
|
18398
|
-
companions: [NOW]
|
|
18629
|
+
companions: [NOW$2]
|
|
18399
18630
|
}),
|
|
18400
18631
|
numeric({
|
|
18401
18632
|
id: "illuminance",
|
|
@@ -18406,7 +18637,7 @@ var GROUP_TEMPLATES = [
|
|
|
18406
18637
|
quantity: "illuminance",
|
|
18407
18638
|
defaultAggregate: "mean",
|
|
18408
18639
|
empty: "null",
|
|
18409
|
-
companions: [NOW]
|
|
18640
|
+
companions: [NOW$2]
|
|
18410
18641
|
}),
|
|
18411
18642
|
numeric({
|
|
18412
18643
|
id: "power",
|
|
@@ -18417,7 +18648,7 @@ var GROUP_TEMPLATES = [
|
|
|
18417
18648
|
quantity: "power",
|
|
18418
18649
|
defaultAggregate: "sum",
|
|
18419
18650
|
empty: "omit",
|
|
18420
|
-
companions: [NOW]
|
|
18651
|
+
companions: [NOW$2]
|
|
18421
18652
|
}),
|
|
18422
18653
|
numeric({
|
|
18423
18654
|
id: "energy",
|
|
@@ -18428,7 +18659,7 @@ var GROUP_TEMPLATES = [
|
|
|
18428
18659
|
quantity: "energy",
|
|
18429
18660
|
defaultAggregate: "sum",
|
|
18430
18661
|
empty: "omit",
|
|
18431
|
-
companions: [NOW]
|
|
18662
|
+
companions: [NOW$2]
|
|
18432
18663
|
}),
|
|
18433
18664
|
numeric({
|
|
18434
18665
|
id: "battery",
|
|
@@ -18463,7 +18694,7 @@ var GROUP_TEMPLATES = [
|
|
|
18463
18694
|
quantity: "device",
|
|
18464
18695
|
defaultAggregate: "mean",
|
|
18465
18696
|
empty: "null",
|
|
18466
|
-
companions: [NOW]
|
|
18697
|
+
companions: [NOW$2]
|
|
18467
18698
|
}),
|
|
18468
18699
|
binary({
|
|
18469
18700
|
id: "motion",
|
|
@@ -18557,6 +18788,11 @@ var GROUP_TEMPLATES = [
|
|
|
18557
18788
|
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.",
|
|
18558
18789
|
deviceType: DeviceType.Switch,
|
|
18559
18790
|
outputCap: "switch",
|
|
18791
|
+
outputField: "on",
|
|
18792
|
+
member: {
|
|
18793
|
+
cap: "switch",
|
|
18794
|
+
fieldPath: "on"
|
|
18795
|
+
},
|
|
18560
18796
|
commandCaps: ["switch"]
|
|
18561
18797
|
}),
|
|
18562
18798
|
actuator({
|
|
@@ -18564,34 +18800,136 @@ var GROUP_TEMPLATES = [
|
|
|
18564
18800
|
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.",
|
|
18565
18801
|
deviceType: DeviceType.Light,
|
|
18566
18802
|
outputCap: "switch",
|
|
18803
|
+
outputField: "on",
|
|
18804
|
+
member: {
|
|
18805
|
+
cap: "switch",
|
|
18806
|
+
fieldPath: "on"
|
|
18807
|
+
},
|
|
18567
18808
|
commandCaps: [
|
|
18568
18809
|
"switch",
|
|
18569
18810
|
"brightness",
|
|
18570
18811
|
"color"
|
|
18571
18812
|
]
|
|
18813
|
+
}),
|
|
18814
|
+
actuator({
|
|
18815
|
+
id: "fan",
|
|
18816
|
+
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.",
|
|
18817
|
+
deviceType: DeviceType.Fan,
|
|
18818
|
+
outputCap: "switch",
|
|
18819
|
+
outputField: "on",
|
|
18820
|
+
member: {
|
|
18821
|
+
cap: "switch",
|
|
18822
|
+
fieldPath: "on"
|
|
18823
|
+
},
|
|
18824
|
+
commandCaps: ["switch", "fan-control"]
|
|
18825
|
+
}),
|
|
18826
|
+
actuator({
|
|
18827
|
+
id: "cover",
|
|
18828
|
+
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.",
|
|
18829
|
+
deviceType: DeviceType.Cover,
|
|
18830
|
+
outputCap: "group-active",
|
|
18831
|
+
outputField: "active",
|
|
18832
|
+
member: {
|
|
18833
|
+
cap: "cover",
|
|
18834
|
+
fieldPath: "state"
|
|
18835
|
+
},
|
|
18836
|
+
activeWhen: [
|
|
18837
|
+
"open",
|
|
18838
|
+
"opening",
|
|
18839
|
+
"stopped"
|
|
18840
|
+
],
|
|
18841
|
+
commandCaps: ["cover"]
|
|
18842
|
+
}),
|
|
18843
|
+
actuator({
|
|
18844
|
+
id: "valve",
|
|
18845
|
+
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.",
|
|
18846
|
+
deviceType: DeviceType.Valve,
|
|
18847
|
+
outputCap: "group-active",
|
|
18848
|
+
outputField: "active",
|
|
18849
|
+
member: {
|
|
18850
|
+
cap: "valve",
|
|
18851
|
+
fieldPath: "state"
|
|
18852
|
+
},
|
|
18853
|
+
activeWhen: [
|
|
18854
|
+
"open",
|
|
18855
|
+
"opening",
|
|
18856
|
+
"stopped"
|
|
18857
|
+
],
|
|
18858
|
+
commandCaps: ["valve"]
|
|
18859
|
+
}),
|
|
18860
|
+
actuator({
|
|
18861
|
+
id: "lock",
|
|
18862
|
+
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.",
|
|
18863
|
+
deviceType: DeviceType.Lock,
|
|
18864
|
+
outputCap: "group-active",
|
|
18865
|
+
outputField: "active",
|
|
18866
|
+
member: {
|
|
18867
|
+
cap: "lock-control",
|
|
18868
|
+
fieldPath: "state"
|
|
18869
|
+
},
|
|
18870
|
+
activeWhen: ["locked"],
|
|
18871
|
+
commandCaps: ["lock-control"]
|
|
18872
|
+
}),
|
|
18873
|
+
actuator({
|
|
18874
|
+
id: "media-player",
|
|
18875
|
+
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.",
|
|
18876
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18877
|
+
outputCap: "group-active",
|
|
18878
|
+
outputField: "active",
|
|
18879
|
+
member: {
|
|
18880
|
+
cap: "media-player",
|
|
18881
|
+
fieldPath: "state"
|
|
18882
|
+
},
|
|
18883
|
+
activeWhen: ["playing", "buffering"],
|
|
18884
|
+
commandCaps: ["media-player"]
|
|
18885
|
+
}),
|
|
18886
|
+
actuator({
|
|
18887
|
+
id: "climate",
|
|
18888
|
+
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.",
|
|
18889
|
+
deviceType: DeviceType.Thermostat,
|
|
18890
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18891
|
+
outputCap: "group-active",
|
|
18892
|
+
outputField: "active",
|
|
18893
|
+
member: {
|
|
18894
|
+
cap: "climate-control",
|
|
18895
|
+
fieldPath: "mode"
|
|
18896
|
+
},
|
|
18897
|
+
activeWhen: [
|
|
18898
|
+
"heat",
|
|
18899
|
+
"cool",
|
|
18900
|
+
"auto",
|
|
18901
|
+
"heat_cool",
|
|
18902
|
+
"fan_only",
|
|
18903
|
+
"dry"
|
|
18904
|
+
],
|
|
18905
|
+
commandCaps: ["climate-control"]
|
|
18572
18906
|
})
|
|
18573
18907
|
];
|
|
18574
18908
|
function actuator(input) {
|
|
18575
18909
|
return {
|
|
18576
|
-
|
|
18910
|
+
id: input.id,
|
|
18911
|
+
summary: input.summary,
|
|
18912
|
+
deviceType: input.deviceType,
|
|
18913
|
+
outputCap: input.outputCap,
|
|
18914
|
+
outputField: input.outputField,
|
|
18915
|
+
commandCaps: input.commandCaps,
|
|
18577
18916
|
family: "actuator",
|
|
18578
18917
|
role: void 0,
|
|
18579
18918
|
memberDeviceType: input.deviceType,
|
|
18580
|
-
|
|
18919
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18920
|
+
activeWhen: input.activeWhen,
|
|
18581
18921
|
quantity: "none",
|
|
18582
18922
|
baseUnit: void 0,
|
|
18583
18923
|
aggregates: BINARY_AGGREGATES,
|
|
18584
18924
|
defaultAggregate: "any",
|
|
18585
18925
|
empty: "offline",
|
|
18586
|
-
accept: [
|
|
18587
|
-
cap: "switch",
|
|
18588
|
-
fieldPath: "on"
|
|
18589
|
-
}],
|
|
18926
|
+
accept: [input.member],
|
|
18590
18927
|
companions: [CHANGED]
|
|
18591
18928
|
};
|
|
18592
18929
|
}
|
|
18593
18930
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18594
18931
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18932
|
+
DeviceType.Camera;
|
|
18595
18933
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18596
18934
|
/**
|
|
18597
18935
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43798,7 +44136,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43798
44136
|
});
|
|
43799
44137
|
/**
|
|
43800
44138
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43801
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44139
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43802
44140
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43803
44141
|
* the originating provider config (mode + sourcePort) so the
|
|
43804
44142
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46485,7 +46823,20 @@ var NcRuleInputSchema = object({
|
|
|
46485
46823
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46486
46824
|
* path does not run Zod defaults.
|
|
46487
46825
|
*/
|
|
46488
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46826
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46827
|
+
/**
|
|
46828
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46829
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46830
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46831
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46832
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46833
|
+
*
|
|
46834
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46835
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46836
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46837
|
+
* `false`, so it needs no `clear` key.
|
|
46838
|
+
*/
|
|
46839
|
+
askVerdict: boolean().optional()
|
|
46489
46840
|
});
|
|
46490
46841
|
/**
|
|
46491
46842
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57309,7 +57660,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57309
57660
|
DeviceType.Switch,
|
|
57310
57661
|
DeviceType.PetFeeder,
|
|
57311
57662
|
DeviceType.Container,
|
|
57312
|
-
DeviceType.Thermostat
|
|
57663
|
+
DeviceType.Thermostat,
|
|
57664
|
+
DeviceType.EventEmitter
|
|
57313
57665
|
];
|
|
57314
57666
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57315
57667
|
var batteryCustomize = {
|
|
@@ -60177,7 +60529,17 @@ var groupCommandsCapability = {
|
|
|
60177
60529
|
scope: "device",
|
|
60178
60530
|
deviceNative: true,
|
|
60179
60531
|
mode: "singleton",
|
|
60180
|
-
deviceTypes: [
|
|
60532
|
+
deviceTypes: [
|
|
60533
|
+
DeviceType.Switch,
|
|
60534
|
+
DeviceType.Light,
|
|
60535
|
+
DeviceType.Fan,
|
|
60536
|
+
DeviceType.Cover,
|
|
60537
|
+
DeviceType.Valve,
|
|
60538
|
+
DeviceType.Lock,
|
|
60539
|
+
DeviceType.MediaPlayer,
|
|
60540
|
+
DeviceType.Thermostat,
|
|
60541
|
+
DeviceType.Climate
|
|
60542
|
+
],
|
|
60181
60543
|
methods: {},
|
|
60182
60544
|
status: {
|
|
60183
60545
|
schema: GroupCommandsSchema,
|
|
@@ -60195,6 +60557,49 @@ var groupCommandsCapability = {
|
|
|
60195
60557
|
history: "none"
|
|
60196
60558
|
};
|
|
60197
60559
|
/**
|
|
60560
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60561
|
+
* included member is, or every included member is. What "active" means is the
|
|
60562
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60563
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60564
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60565
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60566
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60567
|
+
*/
|
|
60568
|
+
var GroupActiveSchema = object({
|
|
60569
|
+
active: boolean().meta({ label: "Active" }),
|
|
60570
|
+
/** Ms epoch when the slice was last updated. */
|
|
60571
|
+
lastChangedAt: number()
|
|
60572
|
+
});
|
|
60573
|
+
var groupActiveCapability = {
|
|
60574
|
+
name: "group-active",
|
|
60575
|
+
scope: "device",
|
|
60576
|
+
deviceNative: true,
|
|
60577
|
+
mode: "singleton",
|
|
60578
|
+
deviceTypes: [
|
|
60579
|
+
DeviceType.Cover,
|
|
60580
|
+
DeviceType.Valve,
|
|
60581
|
+
DeviceType.Lock,
|
|
60582
|
+
DeviceType.MediaPlayer,
|
|
60583
|
+
DeviceType.Climate,
|
|
60584
|
+
DeviceType.Thermostat
|
|
60585
|
+
],
|
|
60586
|
+
methods: {},
|
|
60587
|
+
status: {
|
|
60588
|
+
schema: GroupActiveSchema,
|
|
60589
|
+
kind: "push"
|
|
60590
|
+
},
|
|
60591
|
+
runtimeState: GroupActiveSchema,
|
|
60592
|
+
/**
|
|
60593
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60594
|
+
* next source event; a restored value would outlive the members it named.
|
|
60595
|
+
*
|
|
60596
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60597
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60598
|
+
*/
|
|
60599
|
+
durability: "session",
|
|
60600
|
+
history: "none"
|
|
60601
|
+
};
|
|
60602
|
+
/**
|
|
60198
60603
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60199
60604
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60200
60605
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60225,7 +60630,14 @@ var groupStatusCapability = {
|
|
|
60225
60630
|
deviceTypes: [
|
|
60226
60631
|
DeviceType.Sensor,
|
|
60227
60632
|
DeviceType.Switch,
|
|
60228
|
-
DeviceType.Light
|
|
60633
|
+
DeviceType.Light,
|
|
60634
|
+
DeviceType.Fan,
|
|
60635
|
+
DeviceType.Cover,
|
|
60636
|
+
DeviceType.Valve,
|
|
60637
|
+
DeviceType.Lock,
|
|
60638
|
+
DeviceType.MediaPlayer,
|
|
60639
|
+
DeviceType.Thermostat,
|
|
60640
|
+
DeviceType.Climate
|
|
60229
60641
|
],
|
|
60230
60642
|
methods: {},
|
|
60231
60643
|
status: {
|
|
@@ -61498,7 +61910,14 @@ var lockControlCapability = {
|
|
|
61498
61910
|
}),
|
|
61499
61911
|
unlock: method(object({
|
|
61500
61912
|
deviceId: number().int().nonnegative(),
|
|
61501
|
-
code: string().min(1).optional()
|
|
61913
|
+
code: string().min(1).optional(),
|
|
61914
|
+
/**
|
|
61915
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61916
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61917
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61918
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61919
|
+
*/
|
|
61920
|
+
confirm: boolean().optional()
|
|
61502
61921
|
}), _void(), {
|
|
61503
61922
|
kind: "mutation",
|
|
61504
61923
|
auth: "protected"
|
|
@@ -61535,6 +61954,44 @@ var lockControlCapability = {
|
|
|
61535
61954
|
volatileStateFields: ["lastChangedAt"]
|
|
61536
61955
|
};
|
|
61537
61956
|
/**
|
|
61957
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61958
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61959
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61960
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61961
|
+
*/
|
|
61962
|
+
var MeterStatusSchema = object({
|
|
61963
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61964
|
+
lastFetchedAt: number()
|
|
61965
|
+
});
|
|
61966
|
+
var meterCapability = {
|
|
61967
|
+
name: "meter",
|
|
61968
|
+
scope: "device",
|
|
61969
|
+
deviceNative: true,
|
|
61970
|
+
mode: "singleton",
|
|
61971
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61972
|
+
methods: {},
|
|
61973
|
+
status: {
|
|
61974
|
+
schema: MeterStatusSchema,
|
|
61975
|
+
kind: "push"
|
|
61976
|
+
},
|
|
61977
|
+
runtimeState: MeterStatusSchema,
|
|
61978
|
+
/**
|
|
61979
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61980
|
+
* history integral. A restart shows it only until the history pass
|
|
61981
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61982
|
+
*
|
|
61983
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61984
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61985
|
+
*/
|
|
61986
|
+
durability: "restored",
|
|
61987
|
+
history: { fields: { value: {
|
|
61988
|
+
kind: "counter",
|
|
61989
|
+
deadband: .001,
|
|
61990
|
+
minIntervalMs: 6e4
|
|
61991
|
+
} } },
|
|
61992
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61993
|
+
};
|
|
61994
|
+
/**
|
|
61538
61995
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61539
61996
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61540
61997
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -64046,9 +64503,9 @@ var PowerMeterStatusSchema = object({
|
|
|
64046
64503
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
64047
64504
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
64048
64505
|
/** Voltage in volts. */
|
|
64049
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64506
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
64050
64507
|
/** Current in amperes. */
|
|
64051
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64508
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
64052
64509
|
/** Apparent power in volt-amperes. */
|
|
64053
64510
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
64054
64511
|
/** Power factor (0..1) if reported. */
|
|
@@ -64056,12 +64513,74 @@ var PowerMeterStatusSchema = object({
|
|
|
64056
64513
|
/** Ms epoch when the slice was last updated. */
|
|
64057
64514
|
lastFetchedAt: number()
|
|
64058
64515
|
});
|
|
64516
|
+
/**
|
|
64517
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64518
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64519
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64520
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64521
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64522
|
+
*/
|
|
64523
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64524
|
+
DeviceType.Sensor,
|
|
64525
|
+
DeviceType.Switch,
|
|
64526
|
+
DeviceType.Light,
|
|
64527
|
+
DeviceType.Fan,
|
|
64528
|
+
DeviceType.Climate,
|
|
64529
|
+
DeviceType.Thermostat,
|
|
64530
|
+
DeviceType.Humidifier,
|
|
64531
|
+
DeviceType.WaterHeater,
|
|
64532
|
+
DeviceType.MediaPlayer,
|
|
64533
|
+
DeviceType.Washer,
|
|
64534
|
+
DeviceType.Dryer,
|
|
64535
|
+
DeviceType.Dishwasher,
|
|
64536
|
+
DeviceType.Vacuum,
|
|
64537
|
+
DeviceType.LawnMower,
|
|
64538
|
+
DeviceType.PetFeeder
|
|
64539
|
+
];
|
|
64540
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64541
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64542
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64543
|
+
function powerTarget(id, unit) {
|
|
64544
|
+
return {
|
|
64545
|
+
id,
|
|
64546
|
+
cardinality: "scalar",
|
|
64547
|
+
vocabulary: {
|
|
64548
|
+
cap: "power-meter",
|
|
64549
|
+
stateField: id
|
|
64550
|
+
},
|
|
64551
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64552
|
+
apply: "add",
|
|
64553
|
+
path: id,
|
|
64554
|
+
sources: [{
|
|
64555
|
+
kind: "numeric",
|
|
64556
|
+
requiredUnit: unit,
|
|
64557
|
+
transforms: [{ kind: "identity" }]
|
|
64558
|
+
}],
|
|
64559
|
+
companions: [{
|
|
64560
|
+
kind: "clock",
|
|
64561
|
+
path: "lastFetchedAt",
|
|
64562
|
+
when: "always"
|
|
64563
|
+
}],
|
|
64564
|
+
sourceReport: { status: "assignment-status" },
|
|
64565
|
+
advancedExpression: true
|
|
64566
|
+
};
|
|
64567
|
+
}
|
|
64568
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64569
|
+
var powerMeterCustomize = {
|
|
64570
|
+
version: 1,
|
|
64571
|
+
targets: [
|
|
64572
|
+
powerTarget("watts", "W"),
|
|
64573
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64574
|
+
powerTarget("volts", "V"),
|
|
64575
|
+
powerTarget("amps", "A")
|
|
64576
|
+
]
|
|
64577
|
+
};
|
|
64059
64578
|
var powerMeterCapability = {
|
|
64060
64579
|
name: "power-meter",
|
|
64061
64580
|
scope: "device",
|
|
64062
64581
|
deviceNative: true,
|
|
64063
64582
|
mode: "singleton",
|
|
64064
|
-
deviceTypes:
|
|
64583
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
64065
64584
|
methods: {},
|
|
64066
64585
|
status: {
|
|
64067
64586
|
schema: PowerMeterStatusSchema,
|
|
@@ -64118,7 +64637,8 @@ var powerMeterCapability = {
|
|
|
64118
64637
|
} },
|
|
64119
64638
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64120
64639
|
* whether persisting is worth a SQLite commit. */
|
|
64121
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64640
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64641
|
+
customize: powerMeterCustomize
|
|
64122
64642
|
};
|
|
64123
64643
|
/**
|
|
64124
64644
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64799,6 +65319,8 @@ var runningCustomize = {
|
|
|
64799
65319
|
stateField: "running"
|
|
64800
65320
|
},
|
|
64801
65321
|
deviceTypes: [
|
|
65322
|
+
DeviceType.Washer,
|
|
65323
|
+
DeviceType.Dryer,
|
|
64802
65324
|
DeviceType.Dishwasher,
|
|
64803
65325
|
DeviceType.Vacuum,
|
|
64804
65326
|
DeviceType.LawnMower,
|
|
@@ -67288,7 +67810,8 @@ var switchCapability = {
|
|
|
67288
67810
|
deviceTypes: [
|
|
67289
67811
|
DeviceType.Switch,
|
|
67290
67812
|
DeviceType.Siren,
|
|
67291
|
-
DeviceType.Light
|
|
67813
|
+
DeviceType.Light,
|
|
67814
|
+
DeviceType.Fan
|
|
67292
67815
|
],
|
|
67293
67816
|
methods: { setState: method(object({
|
|
67294
67817
|
deviceId: number(),
|
|
@@ -69501,8 +70024,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69501
70024
|
kind: "mutation",
|
|
69502
70025
|
auth: "admin"
|
|
69503
70026
|
});
|
|
70027
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69504
70028
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69505
|
-
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;
|
|
70029
|
+
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;
|
|
69506
70030
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69507
70031
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69508
70032
|
new Set(CAP_NAMES);
|
|
@@ -69831,6 +70355,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69831
70355
|
featureProbe: featureProbeCapability,
|
|
69832
70356
|
flood: floodCapability,
|
|
69833
70357
|
gas: gasCapability,
|
|
70358
|
+
groupActive: groupActiveCapability,
|
|
69834
70359
|
groupCommands: groupCommandsCapability,
|
|
69835
70360
|
groupStatus: groupStatusCapability,
|
|
69836
70361
|
heatingValve: heatingValveCapability,
|
|
@@ -69842,6 +70367,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69842
70367
|
lawnMowerControl: lawnMowerControlCapability,
|
|
69843
70368
|
lockControl: lockControlCapability,
|
|
69844
70369
|
mediaPlayer: mediaPlayerCapability,
|
|
70370
|
+
meter: meterCapability,
|
|
69845
70371
|
motion: motionCapability,
|
|
69846
70372
|
motionTrigger: motionTriggerCapability,
|
|
69847
70373
|
motionZones: motionZonesCapability,
|
|
@@ -71101,7 +71627,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71101
71627
|
return toDeviceSummary(device, this.addonId);
|
|
71102
71628
|
}
|
|
71103
71629
|
};
|
|
71104
|
-
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;
|
|
71630
|
+
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;
|
|
71105
71631
|
new Set(Object.values(DeviceType));
|
|
71106
71632
|
Object.freeze({
|
|
71107
71633
|
"accessories.getStatus": {
|
|
@@ -74324,6 +74850,13 @@ Object.freeze({
|
|
|
74324
74850
|
access: "view",
|
|
74325
74851
|
role: "viewer"
|
|
74326
74852
|
},
|
|
74853
|
+
"groupActive.getStatus": {
|
|
74854
|
+
capName: "group-active",
|
|
74855
|
+
capScope: "device",
|
|
74856
|
+
addonId: null,
|
|
74857
|
+
access: "view",
|
|
74858
|
+
role: "viewer"
|
|
74859
|
+
},
|
|
74327
74860
|
"groupCommands.getStatus": {
|
|
74328
74861
|
capName: "group-commands",
|
|
74329
74862
|
capScope: "device",
|
|
@@ -75290,6 +75823,13 @@ Object.freeze({
|
|
|
75290
75823
|
access: "create",
|
|
75291
75824
|
role: "admin"
|
|
75292
75825
|
},
|
|
75826
|
+
"meter.getStatus": {
|
|
75827
|
+
capName: "meter",
|
|
75828
|
+
capScope: "device",
|
|
75829
|
+
addonId: null,
|
|
75830
|
+
access: "view",
|
|
75831
|
+
role: "viewer"
|
|
75832
|
+
},
|
|
75293
75833
|
"metricsProvider.collectSnapshot": {
|
|
75294
75834
|
capName: "metrics-provider",
|
|
75295
75835
|
capScope: "system",
|
|
@@ -83388,7 +83928,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83388
83928
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83389
83929
|
icon: "square"
|
|
83390
83930
|
}
|
|
83391
|
-
}
|
|
83931
|
+
},
|
|
83932
|
+
overrides: { byType: {
|
|
83933
|
+
[DeviceType.Washer]: {
|
|
83934
|
+
state: { running: {
|
|
83935
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
83936
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
83937
|
+
} },
|
|
83938
|
+
events: {
|
|
83939
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
83940
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
83941
|
+
}
|
|
83942
|
+
},
|
|
83943
|
+
[DeviceType.Dryer]: {
|
|
83944
|
+
state: { running: {
|
|
83945
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
83946
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
83947
|
+
} },
|
|
83948
|
+
events: {
|
|
83949
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
83950
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
83951
|
+
}
|
|
83952
|
+
},
|
|
83953
|
+
[DeviceType.Dishwasher]: {
|
|
83954
|
+
state: { running: {
|
|
83955
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
83956
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
83957
|
+
} },
|
|
83958
|
+
events: {
|
|
83959
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
83960
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
83961
|
+
}
|
|
83962
|
+
}
|
|
83963
|
+
} }
|
|
83392
83964
|
},
|
|
83393
83965
|
update: {
|
|
83394
83966
|
scope: "device",
|
|
@@ -84160,6 +84732,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84160
84732
|
icon: "flame"
|
|
84161
84733
|
}]
|
|
84162
84734
|
},
|
|
84735
|
+
"group-active": {
|
|
84736
|
+
scope: "device",
|
|
84737
|
+
noun: t("Group state", "Stato del gruppo")
|
|
84738
|
+
},
|
|
84163
84739
|
"group-commands": {
|
|
84164
84740
|
scope: "device",
|
|
84165
84741
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84216,6 +84792,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84216
84792
|
}],
|
|
84217
84793
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84218
84794
|
},
|
|
84795
|
+
meter: {
|
|
84796
|
+
scope: "device",
|
|
84797
|
+
noun: t("Meter", "Contatore"),
|
|
84798
|
+
state: [{
|
|
84799
|
+
kind: "numeric",
|
|
84800
|
+
field: "value",
|
|
84801
|
+
quantity: t("the total", "il totale"),
|
|
84802
|
+
label: t("Total", "Totale"),
|
|
84803
|
+
icon: "gauge"
|
|
84804
|
+
}]
|
|
84805
|
+
},
|
|
84219
84806
|
"numeric-sensor": {
|
|
84220
84807
|
scope: "device",
|
|
84221
84808
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84688,8 +85275,47 @@ function projectAction(cap, action) {
|
|
|
84688
85275
|
};
|
|
84689
85276
|
}
|
|
84690
85277
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84691
|
-
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;
|
|
85278
|
+
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;
|
|
84692
85279
|
DeviceFeature.BatteryOperated;
|
|
85280
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85281
|
+
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.";
|
|
85282
|
+
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.";
|
|
85283
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85284
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85285
|
+
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.";
|
|
85286
|
+
function withheld(reason) {
|
|
85287
|
+
return {
|
|
85288
|
+
[DeviceType.Washer]: {
|
|
85289
|
+
exported: false,
|
|
85290
|
+
reason
|
|
85291
|
+
},
|
|
85292
|
+
[DeviceType.Dryer]: {
|
|
85293
|
+
exported: false,
|
|
85294
|
+
reason
|
|
85295
|
+
},
|
|
85296
|
+
[DeviceType.Dishwasher]: {
|
|
85297
|
+
exported: false,
|
|
85298
|
+
reason
|
|
85299
|
+
}
|
|
85300
|
+
};
|
|
85301
|
+
}
|
|
85302
|
+
function offered(received) {
|
|
85303
|
+
return {
|
|
85304
|
+
[DeviceType.Washer]: {
|
|
85305
|
+
exported: true,
|
|
85306
|
+
as: received
|
|
85307
|
+
},
|
|
85308
|
+
[DeviceType.Dryer]: {
|
|
85309
|
+
exported: true,
|
|
85310
|
+
as: received
|
|
85311
|
+
},
|
|
85312
|
+
[DeviceType.Dishwasher]: {
|
|
85313
|
+
exported: true,
|
|
85314
|
+
as: received
|
|
85315
|
+
}
|
|
85316
|
+
};
|
|
85317
|
+
}
|
|
85318
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84693
85319
|
/** Reject after `ms`; always clears its own timer. */
|
|
84694
85320
|
async function withTimeout$1(promise, ms, label) {
|
|
84695
85321
|
let timer;
|
|
@@ -85722,6 +86348,11 @@ Object.freeze({
|
|
|
85722
86348
|
form: "single",
|
|
85723
86349
|
optional: false
|
|
85724
86350
|
}],
|
|
86351
|
+
"groupActive.getStatus": [{
|
|
86352
|
+
name: "deviceId",
|
|
86353
|
+
form: "single",
|
|
86354
|
+
optional: false
|
|
86355
|
+
}],
|
|
85725
86356
|
"groupCommands.getStatus": [{
|
|
85726
86357
|
name: "deviceId",
|
|
85727
86358
|
form: "single",
|
|
@@ -85932,6 +86563,11 @@ Object.freeze({
|
|
|
85932
86563
|
form: "single",
|
|
85933
86564
|
optional: false
|
|
85934
86565
|
}],
|
|
86566
|
+
"meter.getStatus": [{
|
|
86567
|
+
name: "deviceId",
|
|
86568
|
+
form: "single",
|
|
86569
|
+
optional: false
|
|
86570
|
+
}],
|
|
85935
86571
|
"motion.getStatus": [{
|
|
85936
86572
|
name: "deviceId",
|
|
85937
86573
|
form: "single",
|
|
@@ -87539,7 +88175,6 @@ Object.freeze({
|
|
|
87539
88175
|
"network-access": "ingress",
|
|
87540
88176
|
"smtp-provider": "email"
|
|
87541
88177
|
});
|
|
87542
|
-
DeviceType.Camera;
|
|
87543
88178
|
/**
|
|
87544
88179
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87545
88180
|
* `z.infer`, they do not restate the shape.
|