@camstack/addon-provider-ecowitt 0.2.148 → 0.2.149
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 +26 -8
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -5444,7 +5444,7 @@ var ZodIssueCode$1 = {
|
|
|
5444
5444
|
var ZodFirstPartyTypeKind$1;
|
|
5445
5445
|
ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
|
|
5446
5446
|
//#endregion
|
|
5447
|
-
//#region ../types/dist/sleep
|
|
5447
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5448
5448
|
/**
|
|
5449
5449
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5450
5450
|
* window to float samples (D455).
|
|
@@ -8637,6 +8637,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8637
8637
|
"filesystem-browse",
|
|
8638
8638
|
"flood",
|
|
8639
8639
|
"gas",
|
|
8640
|
+
"group-active",
|
|
8640
8641
|
"group-commands",
|
|
8641
8642
|
"group-status",
|
|
8642
8643
|
"heating-valve",
|
|
@@ -8659,6 +8660,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8659
8660
|
"login-method",
|
|
8660
8661
|
"media-player",
|
|
8661
8662
|
"mesh-network",
|
|
8663
|
+
"meter",
|
|
8662
8664
|
"metrics-provider",
|
|
8663
8665
|
"model-convert",
|
|
8664
8666
|
"model-distributor",
|
|
@@ -9457,6 +9459,10 @@ Object.freeze({
|
|
|
9457
9459
|
"path": "detected",
|
|
9458
9460
|
"valueType": "boolean"
|
|
9459
9461
|
}],
|
|
9462
|
+
"group-active": [{
|
|
9463
|
+
"path": "active",
|
|
9464
|
+
"valueType": "boolean"
|
|
9465
|
+
}],
|
|
9460
9466
|
"group-status": [
|
|
9461
9467
|
{
|
|
9462
9468
|
"path": "included",
|
|
@@ -9716,6 +9722,10 @@ Object.freeze({
|
|
|
9716
9722
|
]
|
|
9717
9723
|
}
|
|
9718
9724
|
],
|
|
9725
|
+
"meter": [{
|
|
9726
|
+
"path": "value",
|
|
9727
|
+
"valueType": "number"
|
|
9728
|
+
}],
|
|
9719
9729
|
"motion": [
|
|
9720
9730
|
{
|
|
9721
9731
|
"path": "detected",
|
|
@@ -10473,7 +10483,7 @@ function userError(code, params, englishFallback) {
|
|
|
10473
10483
|
return new CamstackError(code, params, englishFallback);
|
|
10474
10484
|
}
|
|
10475
10485
|
//#endregion
|
|
10476
|
-
//#region ../types/dist/err-msg-
|
|
10486
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10477
10487
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10478
10488
|
DeviceType["Camera"] = "camera";
|
|
10479
10489
|
DeviceType["Hub"] = "hub";
|
|
@@ -10567,8 +10577,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10567
10577
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10568
10578
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10569
10579
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10570
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10580
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10581
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10571
10582
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10583
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10584
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10585
|
+
DeviceType["Washer"] = "washer";
|
|
10586
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10587
|
+
DeviceType["Dryer"] = "dryer";
|
|
10572
10588
|
return DeviceType;
|
|
10573
10589
|
}({});
|
|
10574
10590
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10826,7 +10842,7 @@ function errMsg(err) {
|
|
|
10826
10842
|
return String(err);
|
|
10827
10843
|
}
|
|
10828
10844
|
//#endregion
|
|
10829
|
-
//#region ../types/dist/composition-
|
|
10845
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10830
10846
|
/**
|
|
10831
10847
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10832
10848
|
*
|
|
@@ -11141,6 +11157,13 @@ var table = {
|
|
|
11141
11157
|
apply: () => {
|
|
11142
11158
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11143
11159
|
}
|
|
11160
|
+
},
|
|
11161
|
+
schmitt: {
|
|
11162
|
+
minArgs: 3,
|
|
11163
|
+
maxArgs: 5,
|
|
11164
|
+
apply: () => {
|
|
11165
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11166
|
+
}
|
|
11144
11167
|
}
|
|
11145
11168
|
};
|
|
11146
11169
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11582,6 +11605,99 @@ function validateExpressionSource(src) {
|
|
|
11582
11605
|
return null;
|
|
11583
11606
|
}
|
|
11584
11607
|
/**
|
|
11608
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11609
|
+
*
|
|
11610
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11611
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11612
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11613
|
+
*
|
|
11614
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11615
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11616
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11617
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11618
|
+
* can move later without moving the others.
|
|
11619
|
+
*/
|
|
11620
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11621
|
+
var APPLIANCE_KINDS = [
|
|
11622
|
+
"washer",
|
|
11623
|
+
"dryer",
|
|
11624
|
+
"dishwasher"
|
|
11625
|
+
];
|
|
11626
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11627
|
+
/**
|
|
11628
|
+
* Statistics and integrals over a history read (D944).
|
|
11629
|
+
*
|
|
11630
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11631
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11632
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11633
|
+
* as zero. A truncated read is not published.
|
|
11634
|
+
*/
|
|
11635
|
+
var STATISTIC_STATS = [
|
|
11636
|
+
"min",
|
|
11637
|
+
"max",
|
|
11638
|
+
"mean",
|
|
11639
|
+
"sum",
|
|
11640
|
+
"count",
|
|
11641
|
+
"change"
|
|
11642
|
+
];
|
|
11643
|
+
/**
|
|
11644
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11645
|
+
*
|
|
11646
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11647
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11648
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11649
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11650
|
+
*/
|
|
11651
|
+
var MINUTE_MS = 6e4;
|
|
11652
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11653
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11654
|
+
var ROLLING_SPANS = [
|
|
11655
|
+
"1h",
|
|
11656
|
+
"24h",
|
|
11657
|
+
"2d",
|
|
11658
|
+
"7d",
|
|
11659
|
+
"30d",
|
|
11660
|
+
"custom"
|
|
11661
|
+
];
|
|
11662
|
+
var CALENDAR_PERIODS = [
|
|
11663
|
+
"today",
|
|
11664
|
+
"yesterday",
|
|
11665
|
+
"this-week",
|
|
11666
|
+
"this-month"
|
|
11667
|
+
];
|
|
11668
|
+
var RESET_PERIODS = [
|
|
11669
|
+
"never",
|
|
11670
|
+
"daily",
|
|
11671
|
+
"weekly",
|
|
11672
|
+
"monthly"
|
|
11673
|
+
];
|
|
11674
|
+
5 * MINUTE_MS;
|
|
11675
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11676
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11677
|
+
var rollingWindowObject = object({
|
|
11678
|
+
kind: literal("rolling"),
|
|
11679
|
+
span: _enum(ROLLING_SPANS),
|
|
11680
|
+
customMinutes: number().int().min(5).optional()
|
|
11681
|
+
}).check((payload) => {
|
|
11682
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11683
|
+
code: "custom",
|
|
11684
|
+
message: "a custom range needs a duration in minutes",
|
|
11685
|
+
path: ["customMinutes"],
|
|
11686
|
+
input: payload.value
|
|
11687
|
+
});
|
|
11688
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11689
|
+
code: "custom",
|
|
11690
|
+
message: "only a custom range carries a duration",
|
|
11691
|
+
path: ["customMinutes"],
|
|
11692
|
+
input: payload.value
|
|
11693
|
+
});
|
|
11694
|
+
});
|
|
11695
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11696
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11697
|
+
kind: literal("calendar"),
|
|
11698
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11699
|
+
})]);
|
|
11700
|
+
/**
|
|
11585
11701
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11586
11702
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11587
11703
|
* `composition.ts` (D659).
|
|
@@ -11607,7 +11723,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11607
11723
|
"occupancy",
|
|
11608
11724
|
"binary",
|
|
11609
11725
|
"switch",
|
|
11610
|
-
"light"
|
|
11726
|
+
"light",
|
|
11727
|
+
"fan",
|
|
11728
|
+
"cover",
|
|
11729
|
+
"valve",
|
|
11730
|
+
"lock",
|
|
11731
|
+
"media-player",
|
|
11732
|
+
"climate"
|
|
11611
11733
|
];
|
|
11612
11734
|
var NUMERIC_AGGREGATES = [
|
|
11613
11735
|
"mean",
|
|
@@ -11637,14 +11759,73 @@ var HelperMemberSchema = object({
|
|
|
11637
11759
|
cap: string().min(1),
|
|
11638
11760
|
fieldPath: string().min(1)
|
|
11639
11761
|
});
|
|
11640
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11762
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11763
|
+
object({
|
|
11764
|
+
kind: literal("group"),
|
|
11765
|
+
templateId: GroupTemplateIdSchema,
|
|
11766
|
+
aggregate: AggregateReducerSchema,
|
|
11767
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11768
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11769
|
+
active: ActiveCriterionSchema.optional()
|
|
11770
|
+
}),
|
|
11771
|
+
object({
|
|
11772
|
+
kind: literal("appliance"),
|
|
11773
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11774
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11775
|
+
thresholdWatts: number().positive(),
|
|
11776
|
+
startDwellMs: number().int().nonnegative(),
|
|
11777
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11778
|
+
member: HelperMemberSchema
|
|
11779
|
+
}),
|
|
11780
|
+
object({
|
|
11781
|
+
kind: literal("statistic"),
|
|
11782
|
+
stat: _enum(STATISTIC_STATS),
|
|
11783
|
+
window: StatisticWindowSchema,
|
|
11784
|
+
source: HelperMemberSchema
|
|
11785
|
+
}),
|
|
11786
|
+
object({
|
|
11787
|
+
kind: literal("integral"),
|
|
11788
|
+
reset: _enum(RESET_PERIODS),
|
|
11789
|
+
output: _enum(["energy", "meter"]),
|
|
11790
|
+
source: HelperMemberSchema
|
|
11791
|
+
}),
|
|
11792
|
+
object({
|
|
11793
|
+
kind: literal("threshold"),
|
|
11794
|
+
source: HelperMemberSchema,
|
|
11795
|
+
high: number(),
|
|
11796
|
+
low: number(),
|
|
11797
|
+
onForMs: number().int().nonnegative(),
|
|
11798
|
+
offForMs: number().int().nonnegative()
|
|
11799
|
+
}),
|
|
11800
|
+
object({
|
|
11801
|
+
kind: literal("arithmetic"),
|
|
11802
|
+
op: _enum([
|
|
11803
|
+
"sum",
|
|
11804
|
+
"difference",
|
|
11805
|
+
"ratio"
|
|
11806
|
+
]),
|
|
11807
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11808
|
+
}),
|
|
11809
|
+
object({
|
|
11810
|
+
kind: literal("expression"),
|
|
11811
|
+
expr: string().min(1),
|
|
11812
|
+
inputs: array(object({
|
|
11813
|
+
name: string().min(1),
|
|
11814
|
+
member: HelperMemberSchema
|
|
11815
|
+
})).min(1).max(64),
|
|
11816
|
+
output: _enum(["number", "boolean"])
|
|
11817
|
+
}),
|
|
11818
|
+
object({
|
|
11819
|
+
kind: literal("derivative"),
|
|
11820
|
+
window: RollingWindowSchema,
|
|
11821
|
+
per: _enum([
|
|
11822
|
+
"second",
|
|
11823
|
+
"minute",
|
|
11824
|
+
"hour"
|
|
11825
|
+
]),
|
|
11826
|
+
source: HelperMemberSchema
|
|
11827
|
+
})
|
|
11828
|
+
]);
|
|
11648
11829
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11649
11830
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11650
11831
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11705,6 +11886,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11705
11886
|
"all"
|
|
11706
11887
|
]),
|
|
11707
11888
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11889
|
+
/**
|
|
11890
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11891
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11892
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11893
|
+
*/
|
|
11894
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11708
11895
|
/** `value` is the reading; the others are the member counts. */
|
|
11709
11896
|
publish: _enum([
|
|
11710
11897
|
"value",
|
|
@@ -11718,6 +11905,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11718
11905
|
"omit",
|
|
11719
11906
|
"offline"
|
|
11720
11907
|
])
|
|
11908
|
+
}),
|
|
11909
|
+
object({
|
|
11910
|
+
kind: literal("series"),
|
|
11911
|
+
read: CompositionFieldReadSchema,
|
|
11912
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11913
|
+
publish: _enum([
|
|
11914
|
+
"value",
|
|
11915
|
+
"included",
|
|
11916
|
+
"excluded",
|
|
11917
|
+
"total"
|
|
11918
|
+
]),
|
|
11919
|
+
/**
|
|
11920
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11921
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11922
|
+
*/
|
|
11923
|
+
empty: _enum([
|
|
11924
|
+
"null",
|
|
11925
|
+
"omit",
|
|
11926
|
+
"offline"
|
|
11927
|
+
])
|
|
11721
11928
|
})
|
|
11722
11929
|
]);
|
|
11723
11930
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16877,7 +17084,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16877
17084
|
*/
|
|
16878
17085
|
interactiveConnectPath: string().min(1).optional(),
|
|
16879
17086
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16880
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17087
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17088
|
+
/**
|
|
17089
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17090
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17091
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17092
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17093
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17094
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17095
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17096
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17097
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17098
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17099
|
+
* offers it as the default path; the fields the session fills are
|
|
17100
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17101
|
+
*/
|
|
17102
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16881
17103
|
}))
|
|
16882
17104
|
});
|
|
16883
17105
|
var ListInputSchema = object({
|
|
@@ -17982,7 +18204,8 @@ var CompositionProblemSchema = object({
|
|
|
17982
18204
|
"native-capability-replace",
|
|
17983
18205
|
"mixed-quantity",
|
|
17984
18206
|
"helper-mismatch",
|
|
17985
|
-
"member-constraint"
|
|
18207
|
+
"member-constraint",
|
|
18208
|
+
"retention"
|
|
17986
18209
|
]),
|
|
17987
18210
|
path: string(),
|
|
17988
18211
|
message: string()
|
|
@@ -18216,13 +18439,17 @@ Object.freeze({
|
|
|
18216
18439
|
latchedAt: {
|
|
18217
18440
|
kind: "fixed",
|
|
18218
18441
|
result: ["number", "null"]
|
|
18442
|
+
},
|
|
18443
|
+
schmitt: {
|
|
18444
|
+
kind: "fixed",
|
|
18445
|
+
result: ["boolean", "null"]
|
|
18219
18446
|
}
|
|
18220
18447
|
});
|
|
18221
18448
|
/**
|
|
18222
18449
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18223
18450
|
* Data, not a form default written into the block.
|
|
18224
18451
|
*/
|
|
18225
|
-
var NOW = {
|
|
18452
|
+
var NOW$2 = {
|
|
18226
18453
|
fieldPath: "lastFetchedAt",
|
|
18227
18454
|
expr: "now"
|
|
18228
18455
|
};
|
|
@@ -18236,6 +18463,8 @@ function numeric(input) {
|
|
|
18236
18463
|
family: "numeric",
|
|
18237
18464
|
deviceType: DeviceType.Sensor,
|
|
18238
18465
|
memberDeviceType: DeviceType.Sensor,
|
|
18466
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18467
|
+
activeWhen: void 0,
|
|
18239
18468
|
commandCaps: [],
|
|
18240
18469
|
baseUnit: baseUnitOf(input.quantity),
|
|
18241
18470
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18251,6 +18480,8 @@ function binary(input) {
|
|
|
18251
18480
|
family: "binary",
|
|
18252
18481
|
deviceType: DeviceType.Sensor,
|
|
18253
18482
|
memberDeviceType: DeviceType.Sensor,
|
|
18483
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18484
|
+
activeWhen: void 0,
|
|
18254
18485
|
commandCaps: [],
|
|
18255
18486
|
quantity: "none",
|
|
18256
18487
|
baseUnit: void 0,
|
|
@@ -18268,7 +18499,7 @@ var GROUP_TEMPLATES = [
|
|
|
18268
18499
|
quantity: "temperature",
|
|
18269
18500
|
defaultAggregate: "mean",
|
|
18270
18501
|
empty: "null",
|
|
18271
|
-
companions: [NOW]
|
|
18502
|
+
companions: [NOW$2]
|
|
18272
18503
|
}),
|
|
18273
18504
|
numeric({
|
|
18274
18505
|
id: "humidity",
|
|
@@ -18279,7 +18510,7 @@ var GROUP_TEMPLATES = [
|
|
|
18279
18510
|
quantity: "humidity",
|
|
18280
18511
|
defaultAggregate: "mean",
|
|
18281
18512
|
empty: "null",
|
|
18282
|
-
companions: [NOW]
|
|
18513
|
+
companions: [NOW$2]
|
|
18283
18514
|
}),
|
|
18284
18515
|
numeric({
|
|
18285
18516
|
id: "pressure",
|
|
@@ -18290,7 +18521,7 @@ var GROUP_TEMPLATES = [
|
|
|
18290
18521
|
quantity: "pressure",
|
|
18291
18522
|
defaultAggregate: "mean",
|
|
18292
18523
|
empty: "null",
|
|
18293
|
-
companions: [NOW]
|
|
18524
|
+
companions: [NOW$2]
|
|
18294
18525
|
}),
|
|
18295
18526
|
numeric({
|
|
18296
18527
|
id: "illuminance",
|
|
@@ -18301,7 +18532,7 @@ var GROUP_TEMPLATES = [
|
|
|
18301
18532
|
quantity: "illuminance",
|
|
18302
18533
|
defaultAggregate: "mean",
|
|
18303
18534
|
empty: "null",
|
|
18304
|
-
companions: [NOW]
|
|
18535
|
+
companions: [NOW$2]
|
|
18305
18536
|
}),
|
|
18306
18537
|
numeric({
|
|
18307
18538
|
id: "power",
|
|
@@ -18312,7 +18543,7 @@ var GROUP_TEMPLATES = [
|
|
|
18312
18543
|
quantity: "power",
|
|
18313
18544
|
defaultAggregate: "sum",
|
|
18314
18545
|
empty: "omit",
|
|
18315
|
-
companions: [NOW]
|
|
18546
|
+
companions: [NOW$2]
|
|
18316
18547
|
}),
|
|
18317
18548
|
numeric({
|
|
18318
18549
|
id: "energy",
|
|
@@ -18323,7 +18554,7 @@ var GROUP_TEMPLATES = [
|
|
|
18323
18554
|
quantity: "energy",
|
|
18324
18555
|
defaultAggregate: "sum",
|
|
18325
18556
|
empty: "omit",
|
|
18326
|
-
companions: [NOW]
|
|
18557
|
+
companions: [NOW$2]
|
|
18327
18558
|
}),
|
|
18328
18559
|
numeric({
|
|
18329
18560
|
id: "battery",
|
|
@@ -18358,7 +18589,7 @@ var GROUP_TEMPLATES = [
|
|
|
18358
18589
|
quantity: "device",
|
|
18359
18590
|
defaultAggregate: "mean",
|
|
18360
18591
|
empty: "null",
|
|
18361
|
-
companions: [NOW]
|
|
18592
|
+
companions: [NOW$2]
|
|
18362
18593
|
}),
|
|
18363
18594
|
binary({
|
|
18364
18595
|
id: "motion",
|
|
@@ -18452,6 +18683,11 @@ var GROUP_TEMPLATES = [
|
|
|
18452
18683
|
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.",
|
|
18453
18684
|
deviceType: DeviceType.Switch,
|
|
18454
18685
|
outputCap: "switch",
|
|
18686
|
+
outputField: "on",
|
|
18687
|
+
member: {
|
|
18688
|
+
cap: "switch",
|
|
18689
|
+
fieldPath: "on"
|
|
18690
|
+
},
|
|
18455
18691
|
commandCaps: ["switch"]
|
|
18456
18692
|
}),
|
|
18457
18693
|
actuator({
|
|
@@ -18459,34 +18695,136 @@ var GROUP_TEMPLATES = [
|
|
|
18459
18695
|
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.",
|
|
18460
18696
|
deviceType: DeviceType.Light,
|
|
18461
18697
|
outputCap: "switch",
|
|
18698
|
+
outputField: "on",
|
|
18699
|
+
member: {
|
|
18700
|
+
cap: "switch",
|
|
18701
|
+
fieldPath: "on"
|
|
18702
|
+
},
|
|
18462
18703
|
commandCaps: [
|
|
18463
18704
|
"switch",
|
|
18464
18705
|
"brightness",
|
|
18465
18706
|
"color"
|
|
18466
18707
|
]
|
|
18708
|
+
}),
|
|
18709
|
+
actuator({
|
|
18710
|
+
id: "fan",
|
|
18711
|
+
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.",
|
|
18712
|
+
deviceType: DeviceType.Fan,
|
|
18713
|
+
outputCap: "switch",
|
|
18714
|
+
outputField: "on",
|
|
18715
|
+
member: {
|
|
18716
|
+
cap: "switch",
|
|
18717
|
+
fieldPath: "on"
|
|
18718
|
+
},
|
|
18719
|
+
commandCaps: ["switch", "fan-control"]
|
|
18720
|
+
}),
|
|
18721
|
+
actuator({
|
|
18722
|
+
id: "cover",
|
|
18723
|
+
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.",
|
|
18724
|
+
deviceType: DeviceType.Cover,
|
|
18725
|
+
outputCap: "group-active",
|
|
18726
|
+
outputField: "active",
|
|
18727
|
+
member: {
|
|
18728
|
+
cap: "cover",
|
|
18729
|
+
fieldPath: "state"
|
|
18730
|
+
},
|
|
18731
|
+
activeWhen: [
|
|
18732
|
+
"open",
|
|
18733
|
+
"opening",
|
|
18734
|
+
"stopped"
|
|
18735
|
+
],
|
|
18736
|
+
commandCaps: ["cover"]
|
|
18737
|
+
}),
|
|
18738
|
+
actuator({
|
|
18739
|
+
id: "valve",
|
|
18740
|
+
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.",
|
|
18741
|
+
deviceType: DeviceType.Valve,
|
|
18742
|
+
outputCap: "group-active",
|
|
18743
|
+
outputField: "active",
|
|
18744
|
+
member: {
|
|
18745
|
+
cap: "valve",
|
|
18746
|
+
fieldPath: "state"
|
|
18747
|
+
},
|
|
18748
|
+
activeWhen: [
|
|
18749
|
+
"open",
|
|
18750
|
+
"opening",
|
|
18751
|
+
"stopped"
|
|
18752
|
+
],
|
|
18753
|
+
commandCaps: ["valve"]
|
|
18754
|
+
}),
|
|
18755
|
+
actuator({
|
|
18756
|
+
id: "lock",
|
|
18757
|
+
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.",
|
|
18758
|
+
deviceType: DeviceType.Lock,
|
|
18759
|
+
outputCap: "group-active",
|
|
18760
|
+
outputField: "active",
|
|
18761
|
+
member: {
|
|
18762
|
+
cap: "lock-control",
|
|
18763
|
+
fieldPath: "state"
|
|
18764
|
+
},
|
|
18765
|
+
activeWhen: ["locked"],
|
|
18766
|
+
commandCaps: ["lock-control"]
|
|
18767
|
+
}),
|
|
18768
|
+
actuator({
|
|
18769
|
+
id: "media-player",
|
|
18770
|
+
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.",
|
|
18771
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18772
|
+
outputCap: "group-active",
|
|
18773
|
+
outputField: "active",
|
|
18774
|
+
member: {
|
|
18775
|
+
cap: "media-player",
|
|
18776
|
+
fieldPath: "state"
|
|
18777
|
+
},
|
|
18778
|
+
activeWhen: ["playing", "buffering"],
|
|
18779
|
+
commandCaps: ["media-player"]
|
|
18780
|
+
}),
|
|
18781
|
+
actuator({
|
|
18782
|
+
id: "climate",
|
|
18783
|
+
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.",
|
|
18784
|
+
deviceType: DeviceType.Thermostat,
|
|
18785
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18786
|
+
outputCap: "group-active",
|
|
18787
|
+
outputField: "active",
|
|
18788
|
+
member: {
|
|
18789
|
+
cap: "climate-control",
|
|
18790
|
+
fieldPath: "mode"
|
|
18791
|
+
},
|
|
18792
|
+
activeWhen: [
|
|
18793
|
+
"heat",
|
|
18794
|
+
"cool",
|
|
18795
|
+
"auto",
|
|
18796
|
+
"heat_cool",
|
|
18797
|
+
"fan_only",
|
|
18798
|
+
"dry"
|
|
18799
|
+
],
|
|
18800
|
+
commandCaps: ["climate-control"]
|
|
18467
18801
|
})
|
|
18468
18802
|
];
|
|
18469
18803
|
function actuator(input) {
|
|
18470
18804
|
return {
|
|
18471
|
-
|
|
18805
|
+
id: input.id,
|
|
18806
|
+
summary: input.summary,
|
|
18807
|
+
deviceType: input.deviceType,
|
|
18808
|
+
outputCap: input.outputCap,
|
|
18809
|
+
outputField: input.outputField,
|
|
18810
|
+
commandCaps: input.commandCaps,
|
|
18472
18811
|
family: "actuator",
|
|
18473
18812
|
role: void 0,
|
|
18474
18813
|
memberDeviceType: input.deviceType,
|
|
18475
|
-
|
|
18814
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18815
|
+
activeWhen: input.activeWhen,
|
|
18476
18816
|
quantity: "none",
|
|
18477
18817
|
baseUnit: void 0,
|
|
18478
18818
|
aggregates: BINARY_AGGREGATES,
|
|
18479
18819
|
defaultAggregate: "any",
|
|
18480
18820
|
empty: "offline",
|
|
18481
|
-
accept: [
|
|
18482
|
-
cap: "switch",
|
|
18483
|
-
fieldPath: "on"
|
|
18484
|
-
}],
|
|
18821
|
+
accept: [input.member],
|
|
18485
18822
|
companions: [CHANGED]
|
|
18486
18823
|
};
|
|
18487
18824
|
}
|
|
18488
18825
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18489
18826
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18827
|
+
DeviceType.Camera;
|
|
18490
18828
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18491
18829
|
/**
|
|
18492
18830
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43880,7 +44218,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43880
44218
|
});
|
|
43881
44219
|
/**
|
|
43882
44220
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43883
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44221
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43884
44222
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43885
44223
|
* the originating provider config (mode + sourcePort) so the
|
|
43886
44224
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46567,7 +46905,20 @@ var NcRuleInputSchema = object({
|
|
|
46567
46905
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46568
46906
|
* path does not run Zod defaults.
|
|
46569
46907
|
*/
|
|
46570
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46908
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46909
|
+
/**
|
|
46910
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46911
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46912
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46913
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46914
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46915
|
+
*
|
|
46916
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46917
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46918
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46919
|
+
* `false`, so it needs no `clear` key.
|
|
46920
|
+
*/
|
|
46921
|
+
askVerdict: boolean().optional()
|
|
46571
46922
|
});
|
|
46572
46923
|
/**
|
|
46573
46924
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57287,7 +57638,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57287
57638
|
DeviceType.Switch,
|
|
57288
57639
|
DeviceType.PetFeeder,
|
|
57289
57640
|
DeviceType.Container,
|
|
57290
|
-
DeviceType.Thermostat
|
|
57641
|
+
DeviceType.Thermostat,
|
|
57642
|
+
DeviceType.EventEmitter
|
|
57291
57643
|
];
|
|
57292
57644
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57293
57645
|
var batteryCustomize = {
|
|
@@ -60147,7 +60499,17 @@ var groupCommandsCapability = {
|
|
|
60147
60499
|
scope: "device",
|
|
60148
60500
|
deviceNative: true,
|
|
60149
60501
|
mode: "singleton",
|
|
60150
|
-
deviceTypes: [
|
|
60502
|
+
deviceTypes: [
|
|
60503
|
+
DeviceType.Switch,
|
|
60504
|
+
DeviceType.Light,
|
|
60505
|
+
DeviceType.Fan,
|
|
60506
|
+
DeviceType.Cover,
|
|
60507
|
+
DeviceType.Valve,
|
|
60508
|
+
DeviceType.Lock,
|
|
60509
|
+
DeviceType.MediaPlayer,
|
|
60510
|
+
DeviceType.Thermostat,
|
|
60511
|
+
DeviceType.Climate
|
|
60512
|
+
],
|
|
60151
60513
|
methods: {},
|
|
60152
60514
|
status: {
|
|
60153
60515
|
schema: GroupCommandsSchema,
|
|
@@ -60165,6 +60527,49 @@ var groupCommandsCapability = {
|
|
|
60165
60527
|
history: "none"
|
|
60166
60528
|
};
|
|
60167
60529
|
/**
|
|
60530
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60531
|
+
* included member is, or every included member is. What "active" means is the
|
|
60532
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60533
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60534
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60535
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60536
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60537
|
+
*/
|
|
60538
|
+
var GroupActiveSchema = object({
|
|
60539
|
+
active: boolean().meta({ label: "Active" }),
|
|
60540
|
+
/** Ms epoch when the slice was last updated. */
|
|
60541
|
+
lastChangedAt: number()
|
|
60542
|
+
});
|
|
60543
|
+
var groupActiveCapability = {
|
|
60544
|
+
name: "group-active",
|
|
60545
|
+
scope: "device",
|
|
60546
|
+
deviceNative: true,
|
|
60547
|
+
mode: "singleton",
|
|
60548
|
+
deviceTypes: [
|
|
60549
|
+
DeviceType.Cover,
|
|
60550
|
+
DeviceType.Valve,
|
|
60551
|
+
DeviceType.Lock,
|
|
60552
|
+
DeviceType.MediaPlayer,
|
|
60553
|
+
DeviceType.Climate,
|
|
60554
|
+
DeviceType.Thermostat
|
|
60555
|
+
],
|
|
60556
|
+
methods: {},
|
|
60557
|
+
status: {
|
|
60558
|
+
schema: GroupActiveSchema,
|
|
60559
|
+
kind: "push"
|
|
60560
|
+
},
|
|
60561
|
+
runtimeState: GroupActiveSchema,
|
|
60562
|
+
/**
|
|
60563
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60564
|
+
* next source event; a restored value would outlive the members it named.
|
|
60565
|
+
*
|
|
60566
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60567
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60568
|
+
*/
|
|
60569
|
+
durability: "session",
|
|
60570
|
+
history: "none"
|
|
60571
|
+
};
|
|
60572
|
+
/**
|
|
60168
60573
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60169
60574
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60170
60575
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60195,7 +60600,14 @@ var groupStatusCapability = {
|
|
|
60195
60600
|
deviceTypes: [
|
|
60196
60601
|
DeviceType.Sensor,
|
|
60197
60602
|
DeviceType.Switch,
|
|
60198
|
-
DeviceType.Light
|
|
60603
|
+
DeviceType.Light,
|
|
60604
|
+
DeviceType.Fan,
|
|
60605
|
+
DeviceType.Cover,
|
|
60606
|
+
DeviceType.Valve,
|
|
60607
|
+
DeviceType.Lock,
|
|
60608
|
+
DeviceType.MediaPlayer,
|
|
60609
|
+
DeviceType.Thermostat,
|
|
60610
|
+
DeviceType.Climate
|
|
60199
60611
|
],
|
|
60200
60612
|
methods: {},
|
|
60201
60613
|
status: {
|
|
@@ -61468,7 +61880,14 @@ var lockControlCapability = {
|
|
|
61468
61880
|
}),
|
|
61469
61881
|
unlock: method(object({
|
|
61470
61882
|
deviceId: number().int().nonnegative(),
|
|
61471
|
-
code: string().min(1).optional()
|
|
61883
|
+
code: string().min(1).optional(),
|
|
61884
|
+
/**
|
|
61885
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61886
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61887
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61888
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61889
|
+
*/
|
|
61890
|
+
confirm: boolean().optional()
|
|
61472
61891
|
}), _void(), {
|
|
61473
61892
|
kind: "mutation",
|
|
61474
61893
|
auth: "protected"
|
|
@@ -61505,6 +61924,44 @@ var lockControlCapability = {
|
|
|
61505
61924
|
volatileStateFields: ["lastChangedAt"]
|
|
61506
61925
|
};
|
|
61507
61926
|
/**
|
|
61927
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61928
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61929
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61930
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61931
|
+
*/
|
|
61932
|
+
var MeterStatusSchema = object({
|
|
61933
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61934
|
+
lastFetchedAt: number()
|
|
61935
|
+
});
|
|
61936
|
+
var meterCapability = {
|
|
61937
|
+
name: "meter",
|
|
61938
|
+
scope: "device",
|
|
61939
|
+
deviceNative: true,
|
|
61940
|
+
mode: "singleton",
|
|
61941
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61942
|
+
methods: {},
|
|
61943
|
+
status: {
|
|
61944
|
+
schema: MeterStatusSchema,
|
|
61945
|
+
kind: "push"
|
|
61946
|
+
},
|
|
61947
|
+
runtimeState: MeterStatusSchema,
|
|
61948
|
+
/**
|
|
61949
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61950
|
+
* history integral. A restart shows it only until the history pass
|
|
61951
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61952
|
+
*
|
|
61953
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61954
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61955
|
+
*/
|
|
61956
|
+
durability: "restored",
|
|
61957
|
+
history: { fields: { value: {
|
|
61958
|
+
kind: "counter",
|
|
61959
|
+
deadband: .001,
|
|
61960
|
+
minIntervalMs: 6e4
|
|
61961
|
+
} } },
|
|
61962
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61963
|
+
};
|
|
61964
|
+
/**
|
|
61508
61965
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61509
61966
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61510
61967
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -64016,9 +64473,9 @@ var PowerMeterStatusSchema = object({
|
|
|
64016
64473
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
64017
64474
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
64018
64475
|
/** Voltage in volts. */
|
|
64019
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64476
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
64020
64477
|
/** Current in amperes. */
|
|
64021
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64478
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
64022
64479
|
/** Apparent power in volt-amperes. */
|
|
64023
64480
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
64024
64481
|
/** Power factor (0..1) if reported. */
|
|
@@ -64026,12 +64483,74 @@ var PowerMeterStatusSchema = object({
|
|
|
64026
64483
|
/** Ms epoch when the slice was last updated. */
|
|
64027
64484
|
lastFetchedAt: number()
|
|
64028
64485
|
});
|
|
64486
|
+
/**
|
|
64487
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64488
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64489
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64490
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64491
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64492
|
+
*/
|
|
64493
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64494
|
+
DeviceType.Sensor,
|
|
64495
|
+
DeviceType.Switch,
|
|
64496
|
+
DeviceType.Light,
|
|
64497
|
+
DeviceType.Fan,
|
|
64498
|
+
DeviceType.Climate,
|
|
64499
|
+
DeviceType.Thermostat,
|
|
64500
|
+
DeviceType.Humidifier,
|
|
64501
|
+
DeviceType.WaterHeater,
|
|
64502
|
+
DeviceType.MediaPlayer,
|
|
64503
|
+
DeviceType.Washer,
|
|
64504
|
+
DeviceType.Dryer,
|
|
64505
|
+
DeviceType.Dishwasher,
|
|
64506
|
+
DeviceType.Vacuum,
|
|
64507
|
+
DeviceType.LawnMower,
|
|
64508
|
+
DeviceType.PetFeeder
|
|
64509
|
+
];
|
|
64510
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64511
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64512
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64513
|
+
function powerTarget(id, unit) {
|
|
64514
|
+
return {
|
|
64515
|
+
id,
|
|
64516
|
+
cardinality: "scalar",
|
|
64517
|
+
vocabulary: {
|
|
64518
|
+
cap: "power-meter",
|
|
64519
|
+
stateField: id
|
|
64520
|
+
},
|
|
64521
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64522
|
+
apply: "add",
|
|
64523
|
+
path: id,
|
|
64524
|
+
sources: [{
|
|
64525
|
+
kind: "numeric",
|
|
64526
|
+
requiredUnit: unit,
|
|
64527
|
+
transforms: [{ kind: "identity" }]
|
|
64528
|
+
}],
|
|
64529
|
+
companions: [{
|
|
64530
|
+
kind: "clock",
|
|
64531
|
+
path: "lastFetchedAt",
|
|
64532
|
+
when: "always"
|
|
64533
|
+
}],
|
|
64534
|
+
sourceReport: { status: "assignment-status" },
|
|
64535
|
+
advancedExpression: true
|
|
64536
|
+
};
|
|
64537
|
+
}
|
|
64538
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64539
|
+
var powerMeterCustomize = {
|
|
64540
|
+
version: 1,
|
|
64541
|
+
targets: [
|
|
64542
|
+
powerTarget("watts", "W"),
|
|
64543
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64544
|
+
powerTarget("volts", "V"),
|
|
64545
|
+
powerTarget("amps", "A")
|
|
64546
|
+
]
|
|
64547
|
+
};
|
|
64029
64548
|
var powerMeterCapability = {
|
|
64030
64549
|
name: "power-meter",
|
|
64031
64550
|
scope: "device",
|
|
64032
64551
|
deviceNative: true,
|
|
64033
64552
|
mode: "singleton",
|
|
64034
|
-
deviceTypes:
|
|
64553
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
64035
64554
|
methods: {},
|
|
64036
64555
|
status: {
|
|
64037
64556
|
schema: PowerMeterStatusSchema,
|
|
@@ -64088,7 +64607,8 @@ var powerMeterCapability = {
|
|
|
64088
64607
|
} },
|
|
64089
64608
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64090
64609
|
* whether persisting is worth a SQLite commit. */
|
|
64091
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64610
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64611
|
+
customize: powerMeterCustomize
|
|
64092
64612
|
};
|
|
64093
64613
|
/**
|
|
64094
64614
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64769,6 +65289,8 @@ var runningCustomize = {
|
|
|
64769
65289
|
stateField: "running"
|
|
64770
65290
|
},
|
|
64771
65291
|
deviceTypes: [
|
|
65292
|
+
DeviceType.Washer,
|
|
65293
|
+
DeviceType.Dryer,
|
|
64772
65294
|
DeviceType.Dishwasher,
|
|
64773
65295
|
DeviceType.Vacuum,
|
|
64774
65296
|
DeviceType.LawnMower,
|
|
@@ -67258,7 +67780,8 @@ var switchCapability = {
|
|
|
67258
67780
|
deviceTypes: [
|
|
67259
67781
|
DeviceType.Switch,
|
|
67260
67782
|
DeviceType.Siren,
|
|
67261
|
-
DeviceType.Light
|
|
67783
|
+
DeviceType.Light,
|
|
67784
|
+
DeviceType.Fan
|
|
67262
67785
|
],
|
|
67263
67786
|
methods: { setState: method(object({
|
|
67264
67787
|
deviceId: number(),
|
|
@@ -69471,6 +69994,7 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69471
69994
|
kind: "mutation",
|
|
69472
69995
|
auth: "admin"
|
|
69473
69996
|
});
|
|
69997
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69474
69998
|
/**
|
|
69475
69999
|
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
69476
70000
|
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
@@ -69855,7 +70379,7 @@ function tryConvertUnit(value, from, to) {
|
|
|
69855
70379
|
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
69856
70380
|
}
|
|
69857
70381
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69858
|
-
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;
|
|
70382
|
+
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;
|
|
69859
70383
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69860
70384
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69861
70385
|
new Set(CAP_NAMES);
|
|
@@ -70184,6 +70708,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70184
70708
|
featureProbe: featureProbeCapability,
|
|
70185
70709
|
flood: floodCapability,
|
|
70186
70710
|
gas: gasCapability,
|
|
70711
|
+
groupActive: groupActiveCapability,
|
|
70187
70712
|
groupCommands: groupCommandsCapability,
|
|
70188
70713
|
groupStatus: groupStatusCapability,
|
|
70189
70714
|
heatingValve: heatingValveCapability,
|
|
@@ -70195,6 +70720,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70195
70720
|
lawnMowerControl: lawnMowerControlCapability,
|
|
70196
70721
|
lockControl: lockControlCapability,
|
|
70197
70722
|
mediaPlayer: mediaPlayerCapability,
|
|
70723
|
+
meter: meterCapability,
|
|
70198
70724
|
motion: motionCapability,
|
|
70199
70725
|
motionTrigger: motionTriggerCapability,
|
|
70200
70726
|
motionZones: motionZonesCapability,
|
|
@@ -71454,7 +71980,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71454
71980
|
return toDeviceSummary(device, this.addonId);
|
|
71455
71981
|
}
|
|
71456
71982
|
};
|
|
71457
|
-
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;
|
|
71983
|
+
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;
|
|
71458
71984
|
new Set(Object.values(DeviceType));
|
|
71459
71985
|
Object.freeze({
|
|
71460
71986
|
"accessories.getStatus": {
|
|
@@ -74677,6 +75203,13 @@ Object.freeze({
|
|
|
74677
75203
|
access: "view",
|
|
74678
75204
|
role: "viewer"
|
|
74679
75205
|
},
|
|
75206
|
+
"groupActive.getStatus": {
|
|
75207
|
+
capName: "group-active",
|
|
75208
|
+
capScope: "device",
|
|
75209
|
+
addonId: null,
|
|
75210
|
+
access: "view",
|
|
75211
|
+
role: "viewer"
|
|
75212
|
+
},
|
|
74680
75213
|
"groupCommands.getStatus": {
|
|
74681
75214
|
capName: "group-commands",
|
|
74682
75215
|
capScope: "device",
|
|
@@ -75643,6 +76176,13 @@ Object.freeze({
|
|
|
75643
76176
|
access: "create",
|
|
75644
76177
|
role: "admin"
|
|
75645
76178
|
},
|
|
76179
|
+
"meter.getStatus": {
|
|
76180
|
+
capName: "meter",
|
|
76181
|
+
capScope: "device",
|
|
76182
|
+
addonId: null,
|
|
76183
|
+
access: "view",
|
|
76184
|
+
role: "viewer"
|
|
76185
|
+
},
|
|
75646
76186
|
"metricsProvider.collectSnapshot": {
|
|
75647
76187
|
capName: "metrics-provider",
|
|
75648
76188
|
capScope: "system",
|
|
@@ -83741,7 +84281,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83741
84281
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83742
84282
|
icon: "square"
|
|
83743
84283
|
}
|
|
83744
|
-
}
|
|
84284
|
+
},
|
|
84285
|
+
overrides: { byType: {
|
|
84286
|
+
[DeviceType.Washer]: {
|
|
84287
|
+
state: { running: {
|
|
84288
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
84289
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
84290
|
+
} },
|
|
84291
|
+
events: {
|
|
84292
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
84293
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
84294
|
+
}
|
|
84295
|
+
},
|
|
84296
|
+
[DeviceType.Dryer]: {
|
|
84297
|
+
state: { running: {
|
|
84298
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
84299
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
84300
|
+
} },
|
|
84301
|
+
events: {
|
|
84302
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
84303
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
84304
|
+
}
|
|
84305
|
+
},
|
|
84306
|
+
[DeviceType.Dishwasher]: {
|
|
84307
|
+
state: { running: {
|
|
84308
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
84309
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
84310
|
+
} },
|
|
84311
|
+
events: {
|
|
84312
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
84313
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
84314
|
+
}
|
|
84315
|
+
}
|
|
84316
|
+
} }
|
|
83745
84317
|
},
|
|
83746
84318
|
update: {
|
|
83747
84319
|
scope: "device",
|
|
@@ -84513,6 +85085,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84513
85085
|
icon: "flame"
|
|
84514
85086
|
}]
|
|
84515
85087
|
},
|
|
85088
|
+
"group-active": {
|
|
85089
|
+
scope: "device",
|
|
85090
|
+
noun: t("Group state", "Stato del gruppo")
|
|
85091
|
+
},
|
|
84516
85092
|
"group-commands": {
|
|
84517
85093
|
scope: "device",
|
|
84518
85094
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84569,6 +85145,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84569
85145
|
}],
|
|
84570
85146
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84571
85147
|
},
|
|
85148
|
+
meter: {
|
|
85149
|
+
scope: "device",
|
|
85150
|
+
noun: t("Meter", "Contatore"),
|
|
85151
|
+
state: [{
|
|
85152
|
+
kind: "numeric",
|
|
85153
|
+
field: "value",
|
|
85154
|
+
quantity: t("the total", "il totale"),
|
|
85155
|
+
label: t("Total", "Totale"),
|
|
85156
|
+
icon: "gauge"
|
|
85157
|
+
}]
|
|
85158
|
+
},
|
|
84572
85159
|
"numeric-sensor": {
|
|
84573
85160
|
scope: "device",
|
|
84574
85161
|
noun: t("Sensor", "Sensore"),
|
|
@@ -85041,8 +85628,47 @@ function projectAction(cap, action) {
|
|
|
85041
85628
|
};
|
|
85042
85629
|
}
|
|
85043
85630
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
85044
|
-
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;
|
|
85631
|
+
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;
|
|
85045
85632
|
DeviceFeature.BatteryOperated;
|
|
85633
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85634
|
+
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.";
|
|
85635
|
+
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.";
|
|
85636
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85637
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85638
|
+
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.";
|
|
85639
|
+
function withheld(reason) {
|
|
85640
|
+
return {
|
|
85641
|
+
[DeviceType.Washer]: {
|
|
85642
|
+
exported: false,
|
|
85643
|
+
reason
|
|
85644
|
+
},
|
|
85645
|
+
[DeviceType.Dryer]: {
|
|
85646
|
+
exported: false,
|
|
85647
|
+
reason
|
|
85648
|
+
},
|
|
85649
|
+
[DeviceType.Dishwasher]: {
|
|
85650
|
+
exported: false,
|
|
85651
|
+
reason
|
|
85652
|
+
}
|
|
85653
|
+
};
|
|
85654
|
+
}
|
|
85655
|
+
function offered(received) {
|
|
85656
|
+
return {
|
|
85657
|
+
[DeviceType.Washer]: {
|
|
85658
|
+
exported: true,
|
|
85659
|
+
as: received
|
|
85660
|
+
},
|
|
85661
|
+
[DeviceType.Dryer]: {
|
|
85662
|
+
exported: true,
|
|
85663
|
+
as: received
|
|
85664
|
+
},
|
|
85665
|
+
[DeviceType.Dishwasher]: {
|
|
85666
|
+
exported: true,
|
|
85667
|
+
as: received
|
|
85668
|
+
}
|
|
85669
|
+
};
|
|
85670
|
+
}
|
|
85671
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
85046
85672
|
Object.freeze({
|
|
85047
85673
|
"accessories.getStatus": [{
|
|
85048
85674
|
name: "deviceId",
|
|
@@ -86009,6 +86635,11 @@ Object.freeze({
|
|
|
86009
86635
|
form: "single",
|
|
86010
86636
|
optional: false
|
|
86011
86637
|
}],
|
|
86638
|
+
"groupActive.getStatus": [{
|
|
86639
|
+
name: "deviceId",
|
|
86640
|
+
form: "single",
|
|
86641
|
+
optional: false
|
|
86642
|
+
}],
|
|
86012
86643
|
"groupCommands.getStatus": [{
|
|
86013
86644
|
name: "deviceId",
|
|
86014
86645
|
form: "single",
|
|
@@ -86219,6 +86850,11 @@ Object.freeze({
|
|
|
86219
86850
|
form: "single",
|
|
86220
86851
|
optional: false
|
|
86221
86852
|
}],
|
|
86853
|
+
"meter.getStatus": [{
|
|
86854
|
+
name: "deviceId",
|
|
86855
|
+
form: "single",
|
|
86856
|
+
optional: false
|
|
86857
|
+
}],
|
|
86222
86858
|
"motion.getStatus": [{
|
|
86223
86859
|
name: "deviceId",
|
|
86224
86860
|
form: "single",
|
|
@@ -87826,7 +88462,6 @@ Object.freeze({
|
|
|
87826
88462
|
"network-access": "ingress",
|
|
87827
88463
|
"smtp-provider": "email"
|
|
87828
88464
|
});
|
|
87829
|
-
DeviceType.Camera;
|
|
87830
88465
|
/**
|
|
87831
88466
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87832
88467
|
* `z.infer`, they do not restate the shape.
|