@camstack/addon-provider-homematic 1.2.159 → 1.2.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/README.md +31 -9
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5584,7 +5584,7 @@ var ZodIssueCode = {
|
|
|
5584
5584
|
var ZodFirstPartyTypeKind;
|
|
5585
5585
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5586
5586
|
//#endregion
|
|
5587
|
-
//#region ../types/dist/sleep
|
|
5587
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5588
5588
|
/**
|
|
5589
5589
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5590
5590
|
* window to float samples (D455).
|
|
@@ -8965,6 +8965,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8965
8965
|
"filesystem-browse",
|
|
8966
8966
|
"flood",
|
|
8967
8967
|
"gas",
|
|
8968
|
+
"group-active",
|
|
8968
8969
|
"group-commands",
|
|
8969
8970
|
"group-status",
|
|
8970
8971
|
"heating-valve",
|
|
@@ -8987,6 +8988,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8987
8988
|
"login-method",
|
|
8988
8989
|
"media-player",
|
|
8989
8990
|
"mesh-network",
|
|
8991
|
+
"meter",
|
|
8990
8992
|
"metrics-provider",
|
|
8991
8993
|
"model-convert",
|
|
8992
8994
|
"model-distributor",
|
|
@@ -9785,6 +9787,10 @@ Object.freeze({
|
|
|
9785
9787
|
"path": "detected",
|
|
9786
9788
|
"valueType": "boolean"
|
|
9787
9789
|
}],
|
|
9790
|
+
"group-active": [{
|
|
9791
|
+
"path": "active",
|
|
9792
|
+
"valueType": "boolean"
|
|
9793
|
+
}],
|
|
9788
9794
|
"group-status": [
|
|
9789
9795
|
{
|
|
9790
9796
|
"path": "included",
|
|
@@ -10044,6 +10050,10 @@ Object.freeze({
|
|
|
10044
10050
|
]
|
|
10045
10051
|
}
|
|
10046
10052
|
],
|
|
10053
|
+
"meter": [{
|
|
10054
|
+
"path": "value",
|
|
10055
|
+
"valueType": "number"
|
|
10056
|
+
}],
|
|
10047
10057
|
"motion": [
|
|
10048
10058
|
{
|
|
10049
10059
|
"path": "detected",
|
|
@@ -10787,7 +10797,7 @@ object({
|
|
|
10787
10797
|
params: record(string(), union([string(), number()])).optional()
|
|
10788
10798
|
});
|
|
10789
10799
|
//#endregion
|
|
10790
|
-
//#region ../types/dist/err-msg-
|
|
10800
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10791
10801
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10792
10802
|
DeviceType["Camera"] = "camera";
|
|
10793
10803
|
DeviceType["Hub"] = "hub";
|
|
@@ -10881,8 +10891,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10881
10891
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10882
10892
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10883
10893
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10884
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10894
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10895
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10885
10896
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10897
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10898
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10899
|
+
DeviceType["Washer"] = "washer";
|
|
10900
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10901
|
+
DeviceType["Dryer"] = "dryer";
|
|
10886
10902
|
return DeviceType;
|
|
10887
10903
|
}({});
|
|
10888
10904
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -11140,7 +11156,7 @@ function errMsg(err) {
|
|
|
11140
11156
|
return String(err);
|
|
11141
11157
|
}
|
|
11142
11158
|
//#endregion
|
|
11143
|
-
//#region ../types/dist/composition-
|
|
11159
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
11144
11160
|
/**
|
|
11145
11161
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
11146
11162
|
*
|
|
@@ -11455,6 +11471,13 @@ var table = {
|
|
|
11455
11471
|
apply: () => {
|
|
11456
11472
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11457
11473
|
}
|
|
11474
|
+
},
|
|
11475
|
+
schmitt: {
|
|
11476
|
+
minArgs: 3,
|
|
11477
|
+
maxArgs: 5,
|
|
11478
|
+
apply: () => {
|
|
11479
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11480
|
+
}
|
|
11458
11481
|
}
|
|
11459
11482
|
};
|
|
11460
11483
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11896,6 +11919,99 @@ function validateExpressionSource(src) {
|
|
|
11896
11919
|
return null;
|
|
11897
11920
|
}
|
|
11898
11921
|
/**
|
|
11922
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11923
|
+
*
|
|
11924
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11925
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11926
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11927
|
+
*
|
|
11928
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11929
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11930
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11931
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11932
|
+
* can move later without moving the others.
|
|
11933
|
+
*/
|
|
11934
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11935
|
+
var APPLIANCE_KINDS = [
|
|
11936
|
+
"washer",
|
|
11937
|
+
"dryer",
|
|
11938
|
+
"dishwasher"
|
|
11939
|
+
];
|
|
11940
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11941
|
+
/**
|
|
11942
|
+
* Statistics and integrals over a history read (D944).
|
|
11943
|
+
*
|
|
11944
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11945
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11946
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11947
|
+
* as zero. A truncated read is not published.
|
|
11948
|
+
*/
|
|
11949
|
+
var STATISTIC_STATS = [
|
|
11950
|
+
"min",
|
|
11951
|
+
"max",
|
|
11952
|
+
"mean",
|
|
11953
|
+
"sum",
|
|
11954
|
+
"count",
|
|
11955
|
+
"change"
|
|
11956
|
+
];
|
|
11957
|
+
/**
|
|
11958
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11959
|
+
*
|
|
11960
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11961
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11962
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11963
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11964
|
+
*/
|
|
11965
|
+
var MINUTE_MS = 6e4;
|
|
11966
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11967
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11968
|
+
var ROLLING_SPANS = [
|
|
11969
|
+
"1h",
|
|
11970
|
+
"24h",
|
|
11971
|
+
"2d",
|
|
11972
|
+
"7d",
|
|
11973
|
+
"30d",
|
|
11974
|
+
"custom"
|
|
11975
|
+
];
|
|
11976
|
+
var CALENDAR_PERIODS = [
|
|
11977
|
+
"today",
|
|
11978
|
+
"yesterday",
|
|
11979
|
+
"this-week",
|
|
11980
|
+
"this-month"
|
|
11981
|
+
];
|
|
11982
|
+
var RESET_PERIODS = [
|
|
11983
|
+
"never",
|
|
11984
|
+
"daily",
|
|
11985
|
+
"weekly",
|
|
11986
|
+
"monthly"
|
|
11987
|
+
];
|
|
11988
|
+
5 * MINUTE_MS;
|
|
11989
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11990
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11991
|
+
var rollingWindowObject = object({
|
|
11992
|
+
kind: literal("rolling"),
|
|
11993
|
+
span: _enum(ROLLING_SPANS),
|
|
11994
|
+
customMinutes: number().int().min(5).optional()
|
|
11995
|
+
}).check((payload) => {
|
|
11996
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11997
|
+
code: "custom",
|
|
11998
|
+
message: "a custom range needs a duration in minutes",
|
|
11999
|
+
path: ["customMinutes"],
|
|
12000
|
+
input: payload.value
|
|
12001
|
+
});
|
|
12002
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
12003
|
+
code: "custom",
|
|
12004
|
+
message: "only a custom range carries a duration",
|
|
12005
|
+
path: ["customMinutes"],
|
|
12006
|
+
input: payload.value
|
|
12007
|
+
});
|
|
12008
|
+
});
|
|
12009
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
12010
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
12011
|
+
kind: literal("calendar"),
|
|
12012
|
+
period: _enum(CALENDAR_PERIODS)
|
|
12013
|
+
})]);
|
|
12014
|
+
/**
|
|
11899
12015
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11900
12016
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11901
12017
|
* `composition.ts` (D659).
|
|
@@ -11921,7 +12037,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11921
12037
|
"occupancy",
|
|
11922
12038
|
"binary",
|
|
11923
12039
|
"switch",
|
|
11924
|
-
"light"
|
|
12040
|
+
"light",
|
|
12041
|
+
"fan",
|
|
12042
|
+
"cover",
|
|
12043
|
+
"valve",
|
|
12044
|
+
"lock",
|
|
12045
|
+
"media-player",
|
|
12046
|
+
"climate"
|
|
11925
12047
|
];
|
|
11926
12048
|
var NUMERIC_AGGREGATES = [
|
|
11927
12049
|
"mean",
|
|
@@ -11951,14 +12073,73 @@ var HelperMemberSchema = object({
|
|
|
11951
12073
|
cap: string().min(1),
|
|
11952
12074
|
fieldPath: string().min(1)
|
|
11953
12075
|
});
|
|
11954
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
12076
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
12077
|
+
object({
|
|
12078
|
+
kind: literal("group"),
|
|
12079
|
+
templateId: GroupTemplateIdSchema,
|
|
12080
|
+
aggregate: AggregateReducerSchema,
|
|
12081
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
12082
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
12083
|
+
active: ActiveCriterionSchema.optional()
|
|
12084
|
+
}),
|
|
12085
|
+
object({
|
|
12086
|
+
kind: literal("appliance"),
|
|
12087
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
12088
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
12089
|
+
thresholdWatts: number().positive(),
|
|
12090
|
+
startDwellMs: number().int().nonnegative(),
|
|
12091
|
+
stopDwellMs: number().int().nonnegative(),
|
|
12092
|
+
member: HelperMemberSchema
|
|
12093
|
+
}),
|
|
12094
|
+
object({
|
|
12095
|
+
kind: literal("statistic"),
|
|
12096
|
+
stat: _enum(STATISTIC_STATS),
|
|
12097
|
+
window: StatisticWindowSchema,
|
|
12098
|
+
source: HelperMemberSchema
|
|
12099
|
+
}),
|
|
12100
|
+
object({
|
|
12101
|
+
kind: literal("integral"),
|
|
12102
|
+
reset: _enum(RESET_PERIODS),
|
|
12103
|
+
output: _enum(["energy", "meter"]),
|
|
12104
|
+
source: HelperMemberSchema
|
|
12105
|
+
}),
|
|
12106
|
+
object({
|
|
12107
|
+
kind: literal("threshold"),
|
|
12108
|
+
source: HelperMemberSchema,
|
|
12109
|
+
high: number(),
|
|
12110
|
+
low: number(),
|
|
12111
|
+
onForMs: number().int().nonnegative(),
|
|
12112
|
+
offForMs: number().int().nonnegative()
|
|
12113
|
+
}),
|
|
12114
|
+
object({
|
|
12115
|
+
kind: literal("arithmetic"),
|
|
12116
|
+
op: _enum([
|
|
12117
|
+
"sum",
|
|
12118
|
+
"difference",
|
|
12119
|
+
"ratio"
|
|
12120
|
+
]),
|
|
12121
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
12122
|
+
}),
|
|
12123
|
+
object({
|
|
12124
|
+
kind: literal("expression"),
|
|
12125
|
+
expr: string().min(1),
|
|
12126
|
+
inputs: array(object({
|
|
12127
|
+
name: string().min(1),
|
|
12128
|
+
member: HelperMemberSchema
|
|
12129
|
+
})).min(1).max(64),
|
|
12130
|
+
output: _enum(["number", "boolean"])
|
|
12131
|
+
}),
|
|
12132
|
+
object({
|
|
12133
|
+
kind: literal("derivative"),
|
|
12134
|
+
window: RollingWindowSchema,
|
|
12135
|
+
per: _enum([
|
|
12136
|
+
"second",
|
|
12137
|
+
"minute",
|
|
12138
|
+
"hour"
|
|
12139
|
+
]),
|
|
12140
|
+
source: HelperMemberSchema
|
|
12141
|
+
})
|
|
12142
|
+
]);
|
|
11962
12143
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11963
12144
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11964
12145
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -12019,6 +12200,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
12019
12200
|
"all"
|
|
12020
12201
|
]),
|
|
12021
12202
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
12203
|
+
/**
|
|
12204
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
12205
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
12206
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
12207
|
+
*/
|
|
12208
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
12022
12209
|
/** `value` is the reading; the others are the member counts. */
|
|
12023
12210
|
publish: _enum([
|
|
12024
12211
|
"value",
|
|
@@ -12032,6 +12219,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
12032
12219
|
"omit",
|
|
12033
12220
|
"offline"
|
|
12034
12221
|
])
|
|
12222
|
+
}),
|
|
12223
|
+
object({
|
|
12224
|
+
kind: literal("series"),
|
|
12225
|
+
read: CompositionFieldReadSchema,
|
|
12226
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
12227
|
+
publish: _enum([
|
|
12228
|
+
"value",
|
|
12229
|
+
"included",
|
|
12230
|
+
"excluded",
|
|
12231
|
+
"total"
|
|
12232
|
+
]),
|
|
12233
|
+
/**
|
|
12234
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
12235
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
12236
|
+
*/
|
|
12237
|
+
empty: _enum([
|
|
12238
|
+
"null",
|
|
12239
|
+
"omit",
|
|
12240
|
+
"offline"
|
|
12241
|
+
])
|
|
12035
12242
|
})
|
|
12036
12243
|
]);
|
|
12037
12244
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -17191,7 +17398,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
17191
17398
|
*/
|
|
17192
17399
|
interactiveConnectPath: string().min(1).optional(),
|
|
17193
17400
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
17194
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17401
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17402
|
+
/**
|
|
17403
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17404
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17405
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17406
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17407
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17408
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17409
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17410
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17411
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17412
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17413
|
+
* offers it as the default path; the fields the session fills are
|
|
17414
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17415
|
+
*/
|
|
17416
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
17195
17417
|
}))
|
|
17196
17418
|
});
|
|
17197
17419
|
var ListInputSchema = object({
|
|
@@ -18345,7 +18567,8 @@ var CompositionProblemSchema = object({
|
|
|
18345
18567
|
"native-capability-replace",
|
|
18346
18568
|
"mixed-quantity",
|
|
18347
18569
|
"helper-mismatch",
|
|
18348
|
-
"member-constraint"
|
|
18570
|
+
"member-constraint",
|
|
18571
|
+
"retention"
|
|
18349
18572
|
]),
|
|
18350
18573
|
path: string(),
|
|
18351
18574
|
message: string()
|
|
@@ -18579,13 +18802,17 @@ Object.freeze({
|
|
|
18579
18802
|
latchedAt: {
|
|
18580
18803
|
kind: "fixed",
|
|
18581
18804
|
result: ["number", "null"]
|
|
18805
|
+
},
|
|
18806
|
+
schmitt: {
|
|
18807
|
+
kind: "fixed",
|
|
18808
|
+
result: ["boolean", "null"]
|
|
18582
18809
|
}
|
|
18583
18810
|
});
|
|
18584
18811
|
/**
|
|
18585
18812
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18586
18813
|
* Data, not a form default written into the block.
|
|
18587
18814
|
*/
|
|
18588
|
-
var NOW = {
|
|
18815
|
+
var NOW$2 = {
|
|
18589
18816
|
fieldPath: "lastFetchedAt",
|
|
18590
18817
|
expr: "now"
|
|
18591
18818
|
};
|
|
@@ -18599,6 +18826,8 @@ function numeric(input) {
|
|
|
18599
18826
|
family: "numeric",
|
|
18600
18827
|
deviceType: DeviceType.Sensor,
|
|
18601
18828
|
memberDeviceType: DeviceType.Sensor,
|
|
18829
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18830
|
+
activeWhen: void 0,
|
|
18602
18831
|
commandCaps: [],
|
|
18603
18832
|
baseUnit: baseUnitOf(input.quantity),
|
|
18604
18833
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18614,6 +18843,8 @@ function binary(input) {
|
|
|
18614
18843
|
family: "binary",
|
|
18615
18844
|
deviceType: DeviceType.Sensor,
|
|
18616
18845
|
memberDeviceType: DeviceType.Sensor,
|
|
18846
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18847
|
+
activeWhen: void 0,
|
|
18617
18848
|
commandCaps: [],
|
|
18618
18849
|
quantity: "none",
|
|
18619
18850
|
baseUnit: void 0,
|
|
@@ -18631,7 +18862,7 @@ var GROUP_TEMPLATES = [
|
|
|
18631
18862
|
quantity: "temperature",
|
|
18632
18863
|
defaultAggregate: "mean",
|
|
18633
18864
|
empty: "null",
|
|
18634
|
-
companions: [NOW]
|
|
18865
|
+
companions: [NOW$2]
|
|
18635
18866
|
}),
|
|
18636
18867
|
numeric({
|
|
18637
18868
|
id: "humidity",
|
|
@@ -18642,7 +18873,7 @@ var GROUP_TEMPLATES = [
|
|
|
18642
18873
|
quantity: "humidity",
|
|
18643
18874
|
defaultAggregate: "mean",
|
|
18644
18875
|
empty: "null",
|
|
18645
|
-
companions: [NOW]
|
|
18876
|
+
companions: [NOW$2]
|
|
18646
18877
|
}),
|
|
18647
18878
|
numeric({
|
|
18648
18879
|
id: "pressure",
|
|
@@ -18653,7 +18884,7 @@ var GROUP_TEMPLATES = [
|
|
|
18653
18884
|
quantity: "pressure",
|
|
18654
18885
|
defaultAggregate: "mean",
|
|
18655
18886
|
empty: "null",
|
|
18656
|
-
companions: [NOW]
|
|
18887
|
+
companions: [NOW$2]
|
|
18657
18888
|
}),
|
|
18658
18889
|
numeric({
|
|
18659
18890
|
id: "illuminance",
|
|
@@ -18664,7 +18895,7 @@ var GROUP_TEMPLATES = [
|
|
|
18664
18895
|
quantity: "illuminance",
|
|
18665
18896
|
defaultAggregate: "mean",
|
|
18666
18897
|
empty: "null",
|
|
18667
|
-
companions: [NOW]
|
|
18898
|
+
companions: [NOW$2]
|
|
18668
18899
|
}),
|
|
18669
18900
|
numeric({
|
|
18670
18901
|
id: "power",
|
|
@@ -18675,7 +18906,7 @@ var GROUP_TEMPLATES = [
|
|
|
18675
18906
|
quantity: "power",
|
|
18676
18907
|
defaultAggregate: "sum",
|
|
18677
18908
|
empty: "omit",
|
|
18678
|
-
companions: [NOW]
|
|
18909
|
+
companions: [NOW$2]
|
|
18679
18910
|
}),
|
|
18680
18911
|
numeric({
|
|
18681
18912
|
id: "energy",
|
|
@@ -18686,7 +18917,7 @@ var GROUP_TEMPLATES = [
|
|
|
18686
18917
|
quantity: "energy",
|
|
18687
18918
|
defaultAggregate: "sum",
|
|
18688
18919
|
empty: "omit",
|
|
18689
|
-
companions: [NOW]
|
|
18920
|
+
companions: [NOW$2]
|
|
18690
18921
|
}),
|
|
18691
18922
|
numeric({
|
|
18692
18923
|
id: "battery",
|
|
@@ -18721,7 +18952,7 @@ var GROUP_TEMPLATES = [
|
|
|
18721
18952
|
quantity: "device",
|
|
18722
18953
|
defaultAggregate: "mean",
|
|
18723
18954
|
empty: "null",
|
|
18724
|
-
companions: [NOW]
|
|
18955
|
+
companions: [NOW$2]
|
|
18725
18956
|
}),
|
|
18726
18957
|
binary({
|
|
18727
18958
|
id: "motion",
|
|
@@ -18815,6 +19046,11 @@ var GROUP_TEMPLATES = [
|
|
|
18815
19046
|
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.",
|
|
18816
19047
|
deviceType: DeviceType.Switch,
|
|
18817
19048
|
outputCap: "switch",
|
|
19049
|
+
outputField: "on",
|
|
19050
|
+
member: {
|
|
19051
|
+
cap: "switch",
|
|
19052
|
+
fieldPath: "on"
|
|
19053
|
+
},
|
|
18818
19054
|
commandCaps: ["switch"]
|
|
18819
19055
|
}),
|
|
18820
19056
|
actuator({
|
|
@@ -18822,34 +19058,136 @@ var GROUP_TEMPLATES = [
|
|
|
18822
19058
|
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.",
|
|
18823
19059
|
deviceType: DeviceType.Light,
|
|
18824
19060
|
outputCap: "switch",
|
|
19061
|
+
outputField: "on",
|
|
19062
|
+
member: {
|
|
19063
|
+
cap: "switch",
|
|
19064
|
+
fieldPath: "on"
|
|
19065
|
+
},
|
|
18825
19066
|
commandCaps: [
|
|
18826
19067
|
"switch",
|
|
18827
19068
|
"brightness",
|
|
18828
19069
|
"color"
|
|
18829
19070
|
]
|
|
19071
|
+
}),
|
|
19072
|
+
actuator({
|
|
19073
|
+
id: "fan",
|
|
19074
|
+
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.",
|
|
19075
|
+
deviceType: DeviceType.Fan,
|
|
19076
|
+
outputCap: "switch",
|
|
19077
|
+
outputField: "on",
|
|
19078
|
+
member: {
|
|
19079
|
+
cap: "switch",
|
|
19080
|
+
fieldPath: "on"
|
|
19081
|
+
},
|
|
19082
|
+
commandCaps: ["switch", "fan-control"]
|
|
19083
|
+
}),
|
|
19084
|
+
actuator({
|
|
19085
|
+
id: "cover",
|
|
19086
|
+
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.",
|
|
19087
|
+
deviceType: DeviceType.Cover,
|
|
19088
|
+
outputCap: "group-active",
|
|
19089
|
+
outputField: "active",
|
|
19090
|
+
member: {
|
|
19091
|
+
cap: "cover",
|
|
19092
|
+
fieldPath: "state"
|
|
19093
|
+
},
|
|
19094
|
+
activeWhen: [
|
|
19095
|
+
"open",
|
|
19096
|
+
"opening",
|
|
19097
|
+
"stopped"
|
|
19098
|
+
],
|
|
19099
|
+
commandCaps: ["cover"]
|
|
19100
|
+
}),
|
|
19101
|
+
actuator({
|
|
19102
|
+
id: "valve",
|
|
19103
|
+
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.",
|
|
19104
|
+
deviceType: DeviceType.Valve,
|
|
19105
|
+
outputCap: "group-active",
|
|
19106
|
+
outputField: "active",
|
|
19107
|
+
member: {
|
|
19108
|
+
cap: "valve",
|
|
19109
|
+
fieldPath: "state"
|
|
19110
|
+
},
|
|
19111
|
+
activeWhen: [
|
|
19112
|
+
"open",
|
|
19113
|
+
"opening",
|
|
19114
|
+
"stopped"
|
|
19115
|
+
],
|
|
19116
|
+
commandCaps: ["valve"]
|
|
19117
|
+
}),
|
|
19118
|
+
actuator({
|
|
19119
|
+
id: "lock",
|
|
19120
|
+
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.",
|
|
19121
|
+
deviceType: DeviceType.Lock,
|
|
19122
|
+
outputCap: "group-active",
|
|
19123
|
+
outputField: "active",
|
|
19124
|
+
member: {
|
|
19125
|
+
cap: "lock-control",
|
|
19126
|
+
fieldPath: "state"
|
|
19127
|
+
},
|
|
19128
|
+
activeWhen: ["locked"],
|
|
19129
|
+
commandCaps: ["lock-control"]
|
|
19130
|
+
}),
|
|
19131
|
+
actuator({
|
|
19132
|
+
id: "media-player",
|
|
19133
|
+
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.",
|
|
19134
|
+
deviceType: DeviceType.MediaPlayer,
|
|
19135
|
+
outputCap: "group-active",
|
|
19136
|
+
outputField: "active",
|
|
19137
|
+
member: {
|
|
19138
|
+
cap: "media-player",
|
|
19139
|
+
fieldPath: "state"
|
|
19140
|
+
},
|
|
19141
|
+
activeWhen: ["playing", "buffering"],
|
|
19142
|
+
commandCaps: ["media-player"]
|
|
19143
|
+
}),
|
|
19144
|
+
actuator({
|
|
19145
|
+
id: "climate",
|
|
19146
|
+
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.",
|
|
19147
|
+
deviceType: DeviceType.Thermostat,
|
|
19148
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
19149
|
+
outputCap: "group-active",
|
|
19150
|
+
outputField: "active",
|
|
19151
|
+
member: {
|
|
19152
|
+
cap: "climate-control",
|
|
19153
|
+
fieldPath: "mode"
|
|
19154
|
+
},
|
|
19155
|
+
activeWhen: [
|
|
19156
|
+
"heat",
|
|
19157
|
+
"cool",
|
|
19158
|
+
"auto",
|
|
19159
|
+
"heat_cool",
|
|
19160
|
+
"fan_only",
|
|
19161
|
+
"dry"
|
|
19162
|
+
],
|
|
19163
|
+
commandCaps: ["climate-control"]
|
|
18830
19164
|
})
|
|
18831
19165
|
];
|
|
18832
19166
|
function actuator(input) {
|
|
18833
19167
|
return {
|
|
18834
|
-
|
|
19168
|
+
id: input.id,
|
|
19169
|
+
summary: input.summary,
|
|
19170
|
+
deviceType: input.deviceType,
|
|
19171
|
+
outputCap: input.outputCap,
|
|
19172
|
+
outputField: input.outputField,
|
|
19173
|
+
commandCaps: input.commandCaps,
|
|
18835
19174
|
family: "actuator",
|
|
18836
19175
|
role: void 0,
|
|
18837
19176
|
memberDeviceType: input.deviceType,
|
|
18838
|
-
|
|
19177
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
19178
|
+
activeWhen: input.activeWhen,
|
|
18839
19179
|
quantity: "none",
|
|
18840
19180
|
baseUnit: void 0,
|
|
18841
19181
|
aggregates: BINARY_AGGREGATES,
|
|
18842
19182
|
defaultAggregate: "any",
|
|
18843
19183
|
empty: "offline",
|
|
18844
|
-
accept: [
|
|
18845
|
-
cap: "switch",
|
|
18846
|
-
fieldPath: "on"
|
|
18847
|
-
}],
|
|
19184
|
+
accept: [input.member],
|
|
18848
19185
|
companions: [CHANGED]
|
|
18849
19186
|
};
|
|
18850
19187
|
}
|
|
18851
19188
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18852
19189
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
19190
|
+
DeviceType.Camera;
|
|
18853
19191
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18854
19192
|
/**
|
|
18855
19193
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -44260,7 +44598,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
44260
44598
|
});
|
|
44261
44599
|
/**
|
|
44262
44600
|
* Optional, richer endpoint shape returned by providers that expose
|
|
44263
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44601
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
44264
44602
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
44265
44603
|
* the originating provider config (mode + sourcePort) so the
|
|
44266
44604
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46947,7 +47285,20 @@ var NcRuleInputSchema = object({
|
|
|
46947
47285
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46948
47286
|
* path does not run Zod defaults.
|
|
46949
47287
|
*/
|
|
46950
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
47288
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
47289
|
+
/**
|
|
47290
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
47291
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
47292
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
47293
|
+
* same mark the Library writes, and records whose notification it was and
|
|
47294
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
47295
|
+
*
|
|
47296
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
47297
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
47298
|
+
* authored before this field meant. An editor turns it off by writing
|
|
47299
|
+
* `false`, so it needs no `clear` key.
|
|
47300
|
+
*/
|
|
47301
|
+
askVerdict: boolean().optional()
|
|
46951
47302
|
});
|
|
46952
47303
|
/**
|
|
46953
47304
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57667,7 +58018,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57667
58018
|
DeviceType.Switch,
|
|
57668
58019
|
DeviceType.PetFeeder,
|
|
57669
58020
|
DeviceType.Container,
|
|
57670
|
-
DeviceType.Thermostat
|
|
58021
|
+
DeviceType.Thermostat,
|
|
58022
|
+
DeviceType.EventEmitter
|
|
57671
58023
|
];
|
|
57672
58024
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57673
58025
|
var batteryCustomize = {
|
|
@@ -60527,7 +60879,17 @@ var groupCommandsCapability = {
|
|
|
60527
60879
|
scope: "device",
|
|
60528
60880
|
deviceNative: true,
|
|
60529
60881
|
mode: "singleton",
|
|
60530
|
-
deviceTypes: [
|
|
60882
|
+
deviceTypes: [
|
|
60883
|
+
DeviceType.Switch,
|
|
60884
|
+
DeviceType.Light,
|
|
60885
|
+
DeviceType.Fan,
|
|
60886
|
+
DeviceType.Cover,
|
|
60887
|
+
DeviceType.Valve,
|
|
60888
|
+
DeviceType.Lock,
|
|
60889
|
+
DeviceType.MediaPlayer,
|
|
60890
|
+
DeviceType.Thermostat,
|
|
60891
|
+
DeviceType.Climate
|
|
60892
|
+
],
|
|
60531
60893
|
methods: {},
|
|
60532
60894
|
status: {
|
|
60533
60895
|
schema: GroupCommandsSchema,
|
|
@@ -60545,6 +60907,49 @@ var groupCommandsCapability = {
|
|
|
60545
60907
|
history: "none"
|
|
60546
60908
|
};
|
|
60547
60909
|
/**
|
|
60910
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60911
|
+
* included member is, or every included member is. What "active" means is the
|
|
60912
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60913
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60914
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60915
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60916
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60917
|
+
*/
|
|
60918
|
+
var GroupActiveSchema = object({
|
|
60919
|
+
active: boolean().meta({ label: "Active" }),
|
|
60920
|
+
/** Ms epoch when the slice was last updated. */
|
|
60921
|
+
lastChangedAt: number()
|
|
60922
|
+
});
|
|
60923
|
+
var groupActiveCapability = {
|
|
60924
|
+
name: "group-active",
|
|
60925
|
+
scope: "device",
|
|
60926
|
+
deviceNative: true,
|
|
60927
|
+
mode: "singleton",
|
|
60928
|
+
deviceTypes: [
|
|
60929
|
+
DeviceType.Cover,
|
|
60930
|
+
DeviceType.Valve,
|
|
60931
|
+
DeviceType.Lock,
|
|
60932
|
+
DeviceType.MediaPlayer,
|
|
60933
|
+
DeviceType.Climate,
|
|
60934
|
+
DeviceType.Thermostat
|
|
60935
|
+
],
|
|
60936
|
+
methods: {},
|
|
60937
|
+
status: {
|
|
60938
|
+
schema: GroupActiveSchema,
|
|
60939
|
+
kind: "push"
|
|
60940
|
+
},
|
|
60941
|
+
runtimeState: GroupActiveSchema,
|
|
60942
|
+
/**
|
|
60943
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60944
|
+
* next source event; a restored value would outlive the members it named.
|
|
60945
|
+
*
|
|
60946
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60947
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60948
|
+
*/
|
|
60949
|
+
durability: "session",
|
|
60950
|
+
history: "none"
|
|
60951
|
+
};
|
|
60952
|
+
/**
|
|
60548
60953
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60549
60954
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60550
60955
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60575,7 +60980,14 @@ var groupStatusCapability = {
|
|
|
60575
60980
|
deviceTypes: [
|
|
60576
60981
|
DeviceType.Sensor,
|
|
60577
60982
|
DeviceType.Switch,
|
|
60578
|
-
DeviceType.Light
|
|
60983
|
+
DeviceType.Light,
|
|
60984
|
+
DeviceType.Fan,
|
|
60985
|
+
DeviceType.Cover,
|
|
60986
|
+
DeviceType.Valve,
|
|
60987
|
+
DeviceType.Lock,
|
|
60988
|
+
DeviceType.MediaPlayer,
|
|
60989
|
+
DeviceType.Thermostat,
|
|
60990
|
+
DeviceType.Climate
|
|
60579
60991
|
],
|
|
60580
60992
|
methods: {},
|
|
60581
60993
|
status: {
|
|
@@ -61848,7 +62260,14 @@ var lockControlCapability = {
|
|
|
61848
62260
|
}),
|
|
61849
62261
|
unlock: method(object({
|
|
61850
62262
|
deviceId: number().int().nonnegative(),
|
|
61851
|
-
code: string().min(1).optional()
|
|
62263
|
+
code: string().min(1).optional(),
|
|
62264
|
+
/**
|
|
62265
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
62266
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
62267
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
62268
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
62269
|
+
*/
|
|
62270
|
+
confirm: boolean().optional()
|
|
61852
62271
|
}), _void(), {
|
|
61853
62272
|
kind: "mutation",
|
|
61854
62273
|
auth: "protected"
|
|
@@ -61885,6 +62304,44 @@ var lockControlCapability = {
|
|
|
61885
62304
|
volatileStateFields: ["lastChangedAt"]
|
|
61886
62305
|
};
|
|
61887
62306
|
/**
|
|
62307
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
62308
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
62309
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
62310
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
62311
|
+
*/
|
|
62312
|
+
var MeterStatusSchema = object({
|
|
62313
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
62314
|
+
lastFetchedAt: number()
|
|
62315
|
+
});
|
|
62316
|
+
var meterCapability = {
|
|
62317
|
+
name: "meter",
|
|
62318
|
+
scope: "device",
|
|
62319
|
+
deviceNative: true,
|
|
62320
|
+
mode: "singleton",
|
|
62321
|
+
deviceTypes: [DeviceType.Sensor],
|
|
62322
|
+
methods: {},
|
|
62323
|
+
status: {
|
|
62324
|
+
schema: MeterStatusSchema,
|
|
62325
|
+
kind: "push"
|
|
62326
|
+
},
|
|
62327
|
+
runtimeState: MeterStatusSchema,
|
|
62328
|
+
/**
|
|
62329
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
62330
|
+
* history integral. A restart shows it only until the history pass
|
|
62331
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
62332
|
+
*
|
|
62333
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
62334
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
62335
|
+
*/
|
|
62336
|
+
durability: "restored",
|
|
62337
|
+
history: { fields: { value: {
|
|
62338
|
+
kind: "counter",
|
|
62339
|
+
deadband: .001,
|
|
62340
|
+
minIntervalMs: 6e4
|
|
62341
|
+
} } },
|
|
62342
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
62343
|
+
};
|
|
62344
|
+
/**
|
|
61888
62345
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61889
62346
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61890
62347
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -64396,9 +64853,9 @@ var PowerMeterStatusSchema = object({
|
|
|
64396
64853
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
64397
64854
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
64398
64855
|
/** Voltage in volts. */
|
|
64399
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64856
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
64400
64857
|
/** Current in amperes. */
|
|
64401
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64858
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
64402
64859
|
/** Apparent power in volt-amperes. */
|
|
64403
64860
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
64404
64861
|
/** Power factor (0..1) if reported. */
|
|
@@ -64406,12 +64863,74 @@ var PowerMeterStatusSchema = object({
|
|
|
64406
64863
|
/** Ms epoch when the slice was last updated. */
|
|
64407
64864
|
lastFetchedAt: number()
|
|
64408
64865
|
});
|
|
64866
|
+
/**
|
|
64867
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64868
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64869
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64870
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64871
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64872
|
+
*/
|
|
64873
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64874
|
+
DeviceType.Sensor,
|
|
64875
|
+
DeviceType.Switch,
|
|
64876
|
+
DeviceType.Light,
|
|
64877
|
+
DeviceType.Fan,
|
|
64878
|
+
DeviceType.Climate,
|
|
64879
|
+
DeviceType.Thermostat,
|
|
64880
|
+
DeviceType.Humidifier,
|
|
64881
|
+
DeviceType.WaterHeater,
|
|
64882
|
+
DeviceType.MediaPlayer,
|
|
64883
|
+
DeviceType.Washer,
|
|
64884
|
+
DeviceType.Dryer,
|
|
64885
|
+
DeviceType.Dishwasher,
|
|
64886
|
+
DeviceType.Vacuum,
|
|
64887
|
+
DeviceType.LawnMower,
|
|
64888
|
+
DeviceType.PetFeeder
|
|
64889
|
+
];
|
|
64890
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64891
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64892
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64893
|
+
function powerTarget(id, unit) {
|
|
64894
|
+
return {
|
|
64895
|
+
id,
|
|
64896
|
+
cardinality: "scalar",
|
|
64897
|
+
vocabulary: {
|
|
64898
|
+
cap: "power-meter",
|
|
64899
|
+
stateField: id
|
|
64900
|
+
},
|
|
64901
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64902
|
+
apply: "add",
|
|
64903
|
+
path: id,
|
|
64904
|
+
sources: [{
|
|
64905
|
+
kind: "numeric",
|
|
64906
|
+
requiredUnit: unit,
|
|
64907
|
+
transforms: [{ kind: "identity" }]
|
|
64908
|
+
}],
|
|
64909
|
+
companions: [{
|
|
64910
|
+
kind: "clock",
|
|
64911
|
+
path: "lastFetchedAt",
|
|
64912
|
+
when: "always"
|
|
64913
|
+
}],
|
|
64914
|
+
sourceReport: { status: "assignment-status" },
|
|
64915
|
+
advancedExpression: true
|
|
64916
|
+
};
|
|
64917
|
+
}
|
|
64918
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64919
|
+
var powerMeterCustomize = {
|
|
64920
|
+
version: 1,
|
|
64921
|
+
targets: [
|
|
64922
|
+
powerTarget("watts", "W"),
|
|
64923
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64924
|
+
powerTarget("volts", "V"),
|
|
64925
|
+
powerTarget("amps", "A")
|
|
64926
|
+
]
|
|
64927
|
+
};
|
|
64409
64928
|
var powerMeterCapability = {
|
|
64410
64929
|
name: "power-meter",
|
|
64411
64930
|
scope: "device",
|
|
64412
64931
|
deviceNative: true,
|
|
64413
64932
|
mode: "singleton",
|
|
64414
|
-
deviceTypes:
|
|
64933
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
64415
64934
|
methods: {},
|
|
64416
64935
|
status: {
|
|
64417
64936
|
schema: PowerMeterStatusSchema,
|
|
@@ -64468,7 +64987,8 @@ var powerMeterCapability = {
|
|
|
64468
64987
|
} },
|
|
64469
64988
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64470
64989
|
* whether persisting is worth a SQLite commit. */
|
|
64471
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64990
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64991
|
+
customize: powerMeterCustomize
|
|
64472
64992
|
};
|
|
64473
64993
|
/**
|
|
64474
64994
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -65149,6 +65669,8 @@ var runningCustomize = {
|
|
|
65149
65669
|
stateField: "running"
|
|
65150
65670
|
},
|
|
65151
65671
|
deviceTypes: [
|
|
65672
|
+
DeviceType.Washer,
|
|
65673
|
+
DeviceType.Dryer,
|
|
65152
65674
|
DeviceType.Dishwasher,
|
|
65153
65675
|
DeviceType.Vacuum,
|
|
65154
65676
|
DeviceType.LawnMower,
|
|
@@ -67638,7 +68160,8 @@ var switchCapability = {
|
|
|
67638
68160
|
deviceTypes: [
|
|
67639
68161
|
DeviceType.Switch,
|
|
67640
68162
|
DeviceType.Siren,
|
|
67641
|
-
DeviceType.Light
|
|
68163
|
+
DeviceType.Light,
|
|
68164
|
+
DeviceType.Fan
|
|
67642
68165
|
],
|
|
67643
68166
|
methods: { setState: method(object({
|
|
67644
68167
|
deviceId: number(),
|
|
@@ -69851,6 +70374,7 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69851
70374
|
kind: "mutation",
|
|
69852
70375
|
auth: "admin"
|
|
69853
70376
|
});
|
|
70377
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69854
70378
|
/**
|
|
69855
70379
|
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
69856
70380
|
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
@@ -70235,7 +70759,7 @@ function tryConvertUnit(value, from, to) {
|
|
|
70235
70759
|
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
70236
70760
|
}
|
|
70237
70761
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
70238
|
-
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;
|
|
70762
|
+
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;
|
|
70239
70763
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
70240
70764
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
70241
70765
|
new Set(CAP_NAMES);
|
|
@@ -70564,6 +71088,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70564
71088
|
featureProbe: featureProbeCapability,
|
|
70565
71089
|
flood: floodCapability,
|
|
70566
71090
|
gas: gasCapability,
|
|
71091
|
+
groupActive: groupActiveCapability,
|
|
70567
71092
|
groupCommands: groupCommandsCapability,
|
|
70568
71093
|
groupStatus: groupStatusCapability,
|
|
70569
71094
|
heatingValve: heatingValveCapability,
|
|
@@ -70575,6 +71100,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70575
71100
|
lawnMowerControl: lawnMowerControlCapability,
|
|
70576
71101
|
lockControl: lockControlCapability,
|
|
70577
71102
|
mediaPlayer: mediaPlayerCapability,
|
|
71103
|
+
meter: meterCapability,
|
|
70578
71104
|
motion: motionCapability,
|
|
70579
71105
|
motionTrigger: motionTriggerCapability,
|
|
70580
71106
|
motionZones: motionZonesCapability,
|
|
@@ -71834,7 +72360,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71834
72360
|
return toDeviceSummary(device, this.addonId);
|
|
71835
72361
|
}
|
|
71836
72362
|
};
|
|
71837
|
-
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;
|
|
72363
|
+
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;
|
|
71838
72364
|
new Set(Object.values(DeviceType));
|
|
71839
72365
|
Object.freeze({
|
|
71840
72366
|
"accessories.getStatus": {
|
|
@@ -75057,6 +75583,13 @@ Object.freeze({
|
|
|
75057
75583
|
access: "view",
|
|
75058
75584
|
role: "viewer"
|
|
75059
75585
|
},
|
|
75586
|
+
"groupActive.getStatus": {
|
|
75587
|
+
capName: "group-active",
|
|
75588
|
+
capScope: "device",
|
|
75589
|
+
addonId: null,
|
|
75590
|
+
access: "view",
|
|
75591
|
+
role: "viewer"
|
|
75592
|
+
},
|
|
75060
75593
|
"groupCommands.getStatus": {
|
|
75061
75594
|
capName: "group-commands",
|
|
75062
75595
|
capScope: "device",
|
|
@@ -76023,6 +76556,13 @@ Object.freeze({
|
|
|
76023
76556
|
access: "create",
|
|
76024
76557
|
role: "admin"
|
|
76025
76558
|
},
|
|
76559
|
+
"meter.getStatus": {
|
|
76560
|
+
capName: "meter",
|
|
76561
|
+
capScope: "device",
|
|
76562
|
+
addonId: null,
|
|
76563
|
+
access: "view",
|
|
76564
|
+
role: "viewer"
|
|
76565
|
+
},
|
|
76026
76566
|
"metricsProvider.collectSnapshot": {
|
|
76027
76567
|
capName: "metrics-provider",
|
|
76028
76568
|
capScope: "system",
|
|
@@ -84121,7 +84661,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
84121
84661
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
84122
84662
|
icon: "square"
|
|
84123
84663
|
}
|
|
84124
|
-
}
|
|
84664
|
+
},
|
|
84665
|
+
overrides: { byType: {
|
|
84666
|
+
[DeviceType.Washer]: {
|
|
84667
|
+
state: { running: {
|
|
84668
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
84669
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
84670
|
+
} },
|
|
84671
|
+
events: {
|
|
84672
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
84673
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
84674
|
+
}
|
|
84675
|
+
},
|
|
84676
|
+
[DeviceType.Dryer]: {
|
|
84677
|
+
state: { running: {
|
|
84678
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
84679
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
84680
|
+
} },
|
|
84681
|
+
events: {
|
|
84682
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
84683
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
84684
|
+
}
|
|
84685
|
+
},
|
|
84686
|
+
[DeviceType.Dishwasher]: {
|
|
84687
|
+
state: { running: {
|
|
84688
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
84689
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
84690
|
+
} },
|
|
84691
|
+
events: {
|
|
84692
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
84693
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
84694
|
+
}
|
|
84695
|
+
}
|
|
84696
|
+
} }
|
|
84125
84697
|
},
|
|
84126
84698
|
update: {
|
|
84127
84699
|
scope: "device",
|
|
@@ -84893,6 +85465,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84893
85465
|
icon: "flame"
|
|
84894
85466
|
}]
|
|
84895
85467
|
},
|
|
85468
|
+
"group-active": {
|
|
85469
|
+
scope: "device",
|
|
85470
|
+
noun: t("Group state", "Stato del gruppo")
|
|
85471
|
+
},
|
|
84896
85472
|
"group-commands": {
|
|
84897
85473
|
scope: "device",
|
|
84898
85474
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84949,6 +85525,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84949
85525
|
}],
|
|
84950
85526
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84951
85527
|
},
|
|
85528
|
+
meter: {
|
|
85529
|
+
scope: "device",
|
|
85530
|
+
noun: t("Meter", "Contatore"),
|
|
85531
|
+
state: [{
|
|
85532
|
+
kind: "numeric",
|
|
85533
|
+
field: "value",
|
|
85534
|
+
quantity: t("the total", "il totale"),
|
|
85535
|
+
label: t("Total", "Totale"),
|
|
85536
|
+
icon: "gauge"
|
|
85537
|
+
}]
|
|
85538
|
+
},
|
|
84952
85539
|
"numeric-sensor": {
|
|
84953
85540
|
scope: "device",
|
|
84954
85541
|
noun: t("Sensor", "Sensore"),
|
|
@@ -85421,8 +86008,47 @@ function projectAction(cap, action) {
|
|
|
85421
86008
|
};
|
|
85422
86009
|
}
|
|
85423
86010
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
85424
|
-
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;
|
|
86011
|
+
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;
|
|
85425
86012
|
DeviceFeature.BatteryOperated;
|
|
86013
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
86014
|
+
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.";
|
|
86015
|
+
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.";
|
|
86016
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
86017
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
86018
|
+
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.";
|
|
86019
|
+
function withheld(reason) {
|
|
86020
|
+
return {
|
|
86021
|
+
[DeviceType.Washer]: {
|
|
86022
|
+
exported: false,
|
|
86023
|
+
reason
|
|
86024
|
+
},
|
|
86025
|
+
[DeviceType.Dryer]: {
|
|
86026
|
+
exported: false,
|
|
86027
|
+
reason
|
|
86028
|
+
},
|
|
86029
|
+
[DeviceType.Dishwasher]: {
|
|
86030
|
+
exported: false,
|
|
86031
|
+
reason
|
|
86032
|
+
}
|
|
86033
|
+
};
|
|
86034
|
+
}
|
|
86035
|
+
function offered(received) {
|
|
86036
|
+
return {
|
|
86037
|
+
[DeviceType.Washer]: {
|
|
86038
|
+
exported: true,
|
|
86039
|
+
as: received
|
|
86040
|
+
},
|
|
86041
|
+
[DeviceType.Dryer]: {
|
|
86042
|
+
exported: true,
|
|
86043
|
+
as: received
|
|
86044
|
+
},
|
|
86045
|
+
[DeviceType.Dishwasher]: {
|
|
86046
|
+
exported: true,
|
|
86047
|
+
as: received
|
|
86048
|
+
}
|
|
86049
|
+
};
|
|
86050
|
+
}
|
|
86051
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
85426
86052
|
Object.freeze({
|
|
85427
86053
|
"accessories.getStatus": [{
|
|
85428
86054
|
name: "deviceId",
|
|
@@ -86389,6 +87015,11 @@ Object.freeze({
|
|
|
86389
87015
|
form: "single",
|
|
86390
87016
|
optional: false
|
|
86391
87017
|
}],
|
|
87018
|
+
"groupActive.getStatus": [{
|
|
87019
|
+
name: "deviceId",
|
|
87020
|
+
form: "single",
|
|
87021
|
+
optional: false
|
|
87022
|
+
}],
|
|
86392
87023
|
"groupCommands.getStatus": [{
|
|
86393
87024
|
name: "deviceId",
|
|
86394
87025
|
form: "single",
|
|
@@ -86599,6 +87230,11 @@ Object.freeze({
|
|
|
86599
87230
|
form: "single",
|
|
86600
87231
|
optional: false
|
|
86601
87232
|
}],
|
|
87233
|
+
"meter.getStatus": [{
|
|
87234
|
+
name: "deviceId",
|
|
87235
|
+
form: "single",
|
|
87236
|
+
optional: false
|
|
87237
|
+
}],
|
|
86602
87238
|
"motion.getStatus": [{
|
|
86603
87239
|
name: "deviceId",
|
|
86604
87240
|
form: "single",
|
|
@@ -88206,7 +88842,6 @@ Object.freeze({
|
|
|
88206
88842
|
"network-access": "ingress",
|
|
88207
88843
|
"smtp-provider": "email"
|
|
88208
88844
|
});
|
|
88209
|
-
DeviceType.Camera;
|
|
88210
88845
|
/**
|
|
88211
88846
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
88212
88847
|
* `z.infer`, they do not restate the shape.
|