@camstack/addon-provider-homematic 1.2.158 → 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 +21 -0
- package/README.md +41 -0
- package/dist/addon.js +1254 -33
- package/dist/addon.mjs +1254 -33
- package/package.json +4 -2
package/dist/addon.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { join } from "path";
|
|
|
9
9
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../types/dist/event-category-
|
|
12
|
+
//#region ../types/dist/event-category-CT-hz5Rb.mjs
|
|
13
13
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
14
14
|
EventCategory["SystemBoot"] = "system.boot";
|
|
15
15
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -335,6 +335,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
335
335
|
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
336
336
|
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
337
337
|
/**
|
|
338
|
+
* A camera's package LLM confirm has failed closed three times in a row
|
|
339
|
+
* (D931, 2026-10-26). One edge per camera until
|
|
340
|
+
* {@link PipelinePackageLlmAnswered}.
|
|
341
|
+
*/
|
|
342
|
+
EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
|
|
343
|
+
/** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
|
|
344
|
+
EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
|
|
345
|
+
/**
|
|
338
346
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
339
347
|
* (a settings change via `setAgentInferenceDevices` /
|
|
340
348
|
* `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
|
|
@@ -5577,7 +5585,7 @@ var ZodIssueCode = {
|
|
|
5577
5585
|
var ZodFirstPartyTypeKind;
|
|
5578
5586
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5579
5587
|
//#endregion
|
|
5580
|
-
//#region ../types/dist/sleep
|
|
5588
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5581
5589
|
/**
|
|
5582
5590
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5583
5591
|
* window to float samples (D455).
|
|
@@ -8958,6 +8966,9 @@ var CAP_NAMES = Object.freeze([
|
|
|
8958
8966
|
"filesystem-browse",
|
|
8959
8967
|
"flood",
|
|
8960
8968
|
"gas",
|
|
8969
|
+
"group-active",
|
|
8970
|
+
"group-commands",
|
|
8971
|
+
"group-status",
|
|
8961
8972
|
"heating-valve",
|
|
8962
8973
|
"humidifier",
|
|
8963
8974
|
"humidity-sensor",
|
|
@@ -8978,6 +8989,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8978
8989
|
"login-method",
|
|
8979
8990
|
"media-player",
|
|
8980
8991
|
"mesh-network",
|
|
8992
|
+
"meter",
|
|
8981
8993
|
"metrics-provider",
|
|
8982
8994
|
"model-convert",
|
|
8983
8995
|
"model-distributor",
|
|
@@ -9776,6 +9788,24 @@ Object.freeze({
|
|
|
9776
9788
|
"path": "detected",
|
|
9777
9789
|
"valueType": "boolean"
|
|
9778
9790
|
}],
|
|
9791
|
+
"group-active": [{
|
|
9792
|
+
"path": "active",
|
|
9793
|
+
"valueType": "boolean"
|
|
9794
|
+
}],
|
|
9795
|
+
"group-status": [
|
|
9796
|
+
{
|
|
9797
|
+
"path": "included",
|
|
9798
|
+
"valueType": "number"
|
|
9799
|
+
},
|
|
9800
|
+
{
|
|
9801
|
+
"path": "excluded",
|
|
9802
|
+
"valueType": "number"
|
|
9803
|
+
},
|
|
9804
|
+
{
|
|
9805
|
+
"path": "total",
|
|
9806
|
+
"valueType": "number"
|
|
9807
|
+
}
|
|
9808
|
+
],
|
|
9779
9809
|
"heating-valve": [{
|
|
9780
9810
|
"path": "position",
|
|
9781
9811
|
"valueType": "number"
|
|
@@ -10021,6 +10051,10 @@ Object.freeze({
|
|
|
10021
10051
|
]
|
|
10022
10052
|
}
|
|
10023
10053
|
],
|
|
10054
|
+
"meter": [{
|
|
10055
|
+
"path": "value",
|
|
10056
|
+
"valueType": "number"
|
|
10057
|
+
}],
|
|
10024
10058
|
"motion": [
|
|
10025
10059
|
{
|
|
10026
10060
|
"path": "detected",
|
|
@@ -10764,7 +10798,7 @@ object({
|
|
|
10764
10798
|
params: record(string(), union([string(), number()])).optional()
|
|
10765
10799
|
});
|
|
10766
10800
|
//#endregion
|
|
10767
|
-
//#region ../types/dist/err-msg-
|
|
10801
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10768
10802
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10769
10803
|
DeviceType["Camera"] = "camera";
|
|
10770
10804
|
DeviceType["Hub"] = "hub";
|
|
@@ -10858,8 +10892,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10858
10892
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10859
10893
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10860
10894
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10861
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10895
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10896
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10862
10897
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10898
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10899
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10900
|
+
DeviceType["Washer"] = "washer";
|
|
10901
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10902
|
+
DeviceType["Dryer"] = "dryer";
|
|
10863
10903
|
return DeviceType;
|
|
10864
10904
|
}({});
|
|
10865
10905
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -11117,7 +11157,7 @@ function errMsg(err) {
|
|
|
11117
11157
|
return String(err);
|
|
11118
11158
|
}
|
|
11119
11159
|
//#endregion
|
|
11120
|
-
//#region ../types/dist/composition-
|
|
11160
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
11121
11161
|
/**
|
|
11122
11162
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
11123
11163
|
*
|
|
@@ -11432,6 +11472,13 @@ var table = {
|
|
|
11432
11472
|
apply: () => {
|
|
11433
11473
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11434
11474
|
}
|
|
11475
|
+
},
|
|
11476
|
+
schmitt: {
|
|
11477
|
+
minArgs: 3,
|
|
11478
|
+
maxArgs: 5,
|
|
11479
|
+
apply: () => {
|
|
11480
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11481
|
+
}
|
|
11435
11482
|
}
|
|
11436
11483
|
};
|
|
11437
11484
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11872,15 +11919,232 @@ function validateExpressionSource(src) {
|
|
|
11872
11919
|
}
|
|
11873
11920
|
return null;
|
|
11874
11921
|
}
|
|
11875
|
-
/**
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11922
|
+
/**
|
|
11923
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11924
|
+
*
|
|
11925
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11926
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11927
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11928
|
+
*
|
|
11929
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11930
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11931
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11932
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11933
|
+
* can move later without moving the others.
|
|
11934
|
+
*/
|
|
11935
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11936
|
+
var APPLIANCE_KINDS = [
|
|
11937
|
+
"washer",
|
|
11938
|
+
"dryer",
|
|
11939
|
+
"dishwasher"
|
|
11940
|
+
];
|
|
11941
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11942
|
+
/**
|
|
11943
|
+
* Statistics and integrals over a history read (D944).
|
|
11944
|
+
*
|
|
11945
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11946
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11947
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11948
|
+
* as zero. A truncated read is not published.
|
|
11949
|
+
*/
|
|
11950
|
+
var STATISTIC_STATS = [
|
|
11951
|
+
"min",
|
|
11952
|
+
"max",
|
|
11953
|
+
"mean",
|
|
11954
|
+
"sum",
|
|
11955
|
+
"count",
|
|
11956
|
+
"change"
|
|
11957
|
+
];
|
|
11958
|
+
/**
|
|
11959
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11960
|
+
*
|
|
11961
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11962
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11963
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11964
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11965
|
+
*/
|
|
11966
|
+
var MINUTE_MS = 6e4;
|
|
11967
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11968
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11969
|
+
var ROLLING_SPANS = [
|
|
11970
|
+
"1h",
|
|
11971
|
+
"24h",
|
|
11972
|
+
"2d",
|
|
11973
|
+
"7d",
|
|
11974
|
+
"30d",
|
|
11975
|
+
"custom"
|
|
11976
|
+
];
|
|
11977
|
+
var CALENDAR_PERIODS = [
|
|
11978
|
+
"today",
|
|
11979
|
+
"yesterday",
|
|
11980
|
+
"this-week",
|
|
11981
|
+
"this-month"
|
|
11982
|
+
];
|
|
11983
|
+
var RESET_PERIODS = [
|
|
11984
|
+
"never",
|
|
11985
|
+
"daily",
|
|
11986
|
+
"weekly",
|
|
11987
|
+
"monthly"
|
|
11988
|
+
];
|
|
11989
|
+
5 * MINUTE_MS;
|
|
11990
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11991
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11992
|
+
var rollingWindowObject = object({
|
|
11993
|
+
kind: literal("rolling"),
|
|
11994
|
+
span: _enum(ROLLING_SPANS),
|
|
11995
|
+
customMinutes: number().int().min(5).optional()
|
|
11996
|
+
}).check((payload) => {
|
|
11997
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11998
|
+
code: "custom",
|
|
11999
|
+
message: "a custom range needs a duration in minutes",
|
|
12000
|
+
path: ["customMinutes"],
|
|
12001
|
+
input: payload.value
|
|
12002
|
+
});
|
|
12003
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
12004
|
+
code: "custom",
|
|
12005
|
+
message: "only a custom range carries a duration",
|
|
12006
|
+
path: ["customMinutes"],
|
|
12007
|
+
input: payload.value
|
|
12008
|
+
});
|
|
12009
|
+
});
|
|
12010
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
12011
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
12012
|
+
kind: literal("calendar"),
|
|
12013
|
+
period: _enum(CALENDAR_PERIODS)
|
|
12014
|
+
})]);
|
|
12015
|
+
/**
|
|
12016
|
+
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
12017
|
+
* id. Split out so helper schemas can name it without a cycle through
|
|
12018
|
+
* `composition.ts` (D659).
|
|
12019
|
+
*/
|
|
11879
12020
|
var CompositionSourceRefSchema = object({
|
|
11880
12021
|
/** The owning addon; `stableId` is unique only within it. */
|
|
11881
12022
|
addonId: string().min(1),
|
|
11882
12023
|
stableId: string().min(1)
|
|
11883
12024
|
});
|
|
12025
|
+
var GROUP_TEMPLATE_IDS = [
|
|
12026
|
+
"temperature",
|
|
12027
|
+
"humidity",
|
|
12028
|
+
"pressure",
|
|
12029
|
+
"illuminance",
|
|
12030
|
+
"power",
|
|
12031
|
+
"energy",
|
|
12032
|
+
"battery",
|
|
12033
|
+
"numeric",
|
|
12034
|
+
"motion",
|
|
12035
|
+
"contact",
|
|
12036
|
+
"leak",
|
|
12037
|
+
"smoke",
|
|
12038
|
+
"occupancy",
|
|
12039
|
+
"binary",
|
|
12040
|
+
"switch",
|
|
12041
|
+
"light",
|
|
12042
|
+
"fan",
|
|
12043
|
+
"cover",
|
|
12044
|
+
"valve",
|
|
12045
|
+
"lock",
|
|
12046
|
+
"media-player",
|
|
12047
|
+
"climate"
|
|
12048
|
+
];
|
|
12049
|
+
var NUMERIC_AGGREGATES = [
|
|
12050
|
+
"mean",
|
|
12051
|
+
"median",
|
|
12052
|
+
"min",
|
|
12053
|
+
"max",
|
|
12054
|
+
"sum"
|
|
12055
|
+
];
|
|
12056
|
+
var BINARY_AGGREGATES = ["any", "all"];
|
|
12057
|
+
/** How an actuator group decides it is on. Unknown members never count as off. */
|
|
12058
|
+
var ACTIVE_CRITERIA = ["at-least-one", "all"];
|
|
12059
|
+
var AGGREGATE_REDUCERS = [
|
|
12060
|
+
"mean",
|
|
12061
|
+
"median",
|
|
12062
|
+
"min",
|
|
12063
|
+
"max",
|
|
12064
|
+
"sum",
|
|
12065
|
+
"any",
|
|
12066
|
+
"all"
|
|
12067
|
+
];
|
|
12068
|
+
var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
|
|
12069
|
+
var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
|
|
12070
|
+
var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
|
|
12071
|
+
/** One member. The field is stored so occupancy can name motion or binary. */
|
|
12072
|
+
var HelperMemberSchema = object({
|
|
12073
|
+
source: CompositionSourceRefSchema,
|
|
12074
|
+
cap: string().min(1),
|
|
12075
|
+
fieldPath: string().min(1)
|
|
12076
|
+
});
|
|
12077
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
12078
|
+
object({
|
|
12079
|
+
kind: literal("group"),
|
|
12080
|
+
templateId: GroupTemplateIdSchema,
|
|
12081
|
+
aggregate: AggregateReducerSchema,
|
|
12082
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
12083
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
12084
|
+
active: ActiveCriterionSchema.optional()
|
|
12085
|
+
}),
|
|
12086
|
+
object({
|
|
12087
|
+
kind: literal("appliance"),
|
|
12088
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
12089
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
12090
|
+
thresholdWatts: number().positive(),
|
|
12091
|
+
startDwellMs: number().int().nonnegative(),
|
|
12092
|
+
stopDwellMs: number().int().nonnegative(),
|
|
12093
|
+
member: HelperMemberSchema
|
|
12094
|
+
}),
|
|
12095
|
+
object({
|
|
12096
|
+
kind: literal("statistic"),
|
|
12097
|
+
stat: _enum(STATISTIC_STATS),
|
|
12098
|
+
window: StatisticWindowSchema,
|
|
12099
|
+
source: HelperMemberSchema
|
|
12100
|
+
}),
|
|
12101
|
+
object({
|
|
12102
|
+
kind: literal("integral"),
|
|
12103
|
+
reset: _enum(RESET_PERIODS),
|
|
12104
|
+
output: _enum(["energy", "meter"]),
|
|
12105
|
+
source: HelperMemberSchema
|
|
12106
|
+
}),
|
|
12107
|
+
object({
|
|
12108
|
+
kind: literal("threshold"),
|
|
12109
|
+
source: HelperMemberSchema,
|
|
12110
|
+
high: number(),
|
|
12111
|
+
low: number(),
|
|
12112
|
+
onForMs: number().int().nonnegative(),
|
|
12113
|
+
offForMs: number().int().nonnegative()
|
|
12114
|
+
}),
|
|
12115
|
+
object({
|
|
12116
|
+
kind: literal("arithmetic"),
|
|
12117
|
+
op: _enum([
|
|
12118
|
+
"sum",
|
|
12119
|
+
"difference",
|
|
12120
|
+
"ratio"
|
|
12121
|
+
]),
|
|
12122
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
12123
|
+
}),
|
|
12124
|
+
object({
|
|
12125
|
+
kind: literal("expression"),
|
|
12126
|
+
expr: string().min(1),
|
|
12127
|
+
inputs: array(object({
|
|
12128
|
+
name: string().min(1),
|
|
12129
|
+
member: HelperMemberSchema
|
|
12130
|
+
})).min(1).max(64),
|
|
12131
|
+
output: _enum(["number", "boolean"])
|
|
12132
|
+
}),
|
|
12133
|
+
object({
|
|
12134
|
+
kind: literal("derivative"),
|
|
12135
|
+
window: RollingWindowSchema,
|
|
12136
|
+
per: _enum([
|
|
12137
|
+
"second",
|
|
12138
|
+
"minute",
|
|
12139
|
+
"hour"
|
|
12140
|
+
]),
|
|
12141
|
+
source: HelperMemberSchema
|
|
12142
|
+
})
|
|
12143
|
+
]);
|
|
12144
|
+
/** A composed device's stableId is this prefix plus the block id. */
|
|
12145
|
+
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
12146
|
+
/** Longest snippet a `code` source may carry (slice 4). */
|
|
12147
|
+
var MAX_COMPOSITION_CODE_LENGTH = 2e4;
|
|
11884
12148
|
/** One field of one capability of one source device. */
|
|
11885
12149
|
var CompositionFieldReadSchema = object({
|
|
11886
12150
|
source: CompositionSourceRefSchema,
|
|
@@ -11924,7 +12188,59 @@ var CompositionCodeSourceSchema = object({
|
|
|
11924
12188
|
var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
11925
12189
|
CompositionFromSourceSchema,
|
|
11926
12190
|
CompositionExpressionSourceSchema,
|
|
11927
|
-
CompositionCodeSourceSchema
|
|
12191
|
+
CompositionCodeSourceSchema,
|
|
12192
|
+
object({
|
|
12193
|
+
kind: literal("aggregate"),
|
|
12194
|
+
reducer: _enum([
|
|
12195
|
+
"mean",
|
|
12196
|
+
"median",
|
|
12197
|
+
"min",
|
|
12198
|
+
"max",
|
|
12199
|
+
"sum",
|
|
12200
|
+
"any",
|
|
12201
|
+
"all"
|
|
12202
|
+
]),
|
|
12203
|
+
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
12204
|
+
/**
|
|
12205
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
12206
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
12207
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
12208
|
+
*/
|
|
12209
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
12210
|
+
/** `value` is the reading; the others are the member counts. */
|
|
12211
|
+
publish: _enum([
|
|
12212
|
+
"value",
|
|
12213
|
+
"included",
|
|
12214
|
+
"excluded",
|
|
12215
|
+
"total"
|
|
12216
|
+
]),
|
|
12217
|
+
/** What a `value` publish does when nobody is included. Counts ignore this. */
|
|
12218
|
+
empty: _enum([
|
|
12219
|
+
"null",
|
|
12220
|
+
"omit",
|
|
12221
|
+
"offline"
|
|
12222
|
+
])
|
|
12223
|
+
}),
|
|
12224
|
+
object({
|
|
12225
|
+
kind: literal("series"),
|
|
12226
|
+
read: CompositionFieldReadSchema,
|
|
12227
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
12228
|
+
publish: _enum([
|
|
12229
|
+
"value",
|
|
12230
|
+
"included",
|
|
12231
|
+
"excluded",
|
|
12232
|
+
"total"
|
|
12233
|
+
]),
|
|
12234
|
+
/**
|
|
12235
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
12236
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
12237
|
+
*/
|
|
12238
|
+
empty: _enum([
|
|
12239
|
+
"null",
|
|
12240
|
+
"omit",
|
|
12241
|
+
"offline"
|
|
12242
|
+
])
|
|
12243
|
+
})
|
|
11928
12244
|
]);
|
|
11929
12245
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
11930
12246
|
kind: literal("forward"),
|
|
@@ -11970,7 +12286,13 @@ var CompositionSchema = object({
|
|
|
11970
12286
|
kind: literal("existing"),
|
|
11971
12287
|
device: CompositionSourceRefSchema
|
|
11972
12288
|
})]),
|
|
11973
|
-
features: array(CompositionFeatureSchema).min(1).max(16)
|
|
12289
|
+
features: array(CompositionFeatureSchema).min(1).max(16),
|
|
12290
|
+
/**
|
|
12291
|
+
* Present when the block is a helper template. Absent on a free
|
|
12292
|
+
* composition (the room example, device 4603). The editor reads this,
|
|
12293
|
+
* never the compiled features.
|
|
12294
|
+
*/
|
|
12295
|
+
helper: HelperSpecSchema.optional()
|
|
11974
12296
|
}).superRefine((composition, ctx) => {
|
|
11975
12297
|
const seen = /* @__PURE__ */ new Set();
|
|
11976
12298
|
composition.features.forEach((feature, index) => {
|
|
@@ -17077,7 +17399,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
17077
17399
|
*/
|
|
17078
17400
|
interactiveConnectPath: string().min(1).optional(),
|
|
17079
17401
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
17080
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17402
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17403
|
+
/**
|
|
17404
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17405
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17406
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17407
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17408
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17409
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17410
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17411
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17412
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17413
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17414
|
+
* offers it as the default path; the fields the session fills are
|
|
17415
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17416
|
+
*/
|
|
17417
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
17081
17418
|
}))
|
|
17082
17419
|
});
|
|
17083
17420
|
var ListInputSchema = object({
|
|
@@ -18228,7 +18565,11 @@ var CompositionProblemSchema = object({
|
|
|
18228
18565
|
"target-missing",
|
|
18229
18566
|
"target-unreadable",
|
|
18230
18567
|
"not-replaceable",
|
|
18231
|
-
"native-capability-replace"
|
|
18568
|
+
"native-capability-replace",
|
|
18569
|
+
"mixed-quantity",
|
|
18570
|
+
"helper-mismatch",
|
|
18571
|
+
"member-constraint",
|
|
18572
|
+
"retention"
|
|
18232
18573
|
]),
|
|
18233
18574
|
path: string(),
|
|
18234
18575
|
message: string()
|
|
@@ -18249,7 +18590,8 @@ var CompositionUnavailableModeSchema = _enum([
|
|
|
18249
18590
|
"null",
|
|
18250
18591
|
"offline",
|
|
18251
18592
|
"unknown",
|
|
18252
|
-
"release"
|
|
18593
|
+
"release",
|
|
18594
|
+
"omit"
|
|
18253
18595
|
]);
|
|
18254
18596
|
/**
|
|
18255
18597
|
* `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
|
|
@@ -18461,8 +18803,392 @@ Object.freeze({
|
|
|
18461
18803
|
latchedAt: {
|
|
18462
18804
|
kind: "fixed",
|
|
18463
18805
|
result: ["number", "null"]
|
|
18806
|
+
},
|
|
18807
|
+
schmitt: {
|
|
18808
|
+
kind: "fixed",
|
|
18809
|
+
result: ["boolean", "null"]
|
|
18464
18810
|
}
|
|
18465
18811
|
});
|
|
18812
|
+
/**
|
|
18813
|
+
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18814
|
+
* Data, not a form default written into the block.
|
|
18815
|
+
*/
|
|
18816
|
+
var NOW$2 = {
|
|
18817
|
+
fieldPath: "lastFetchedAt",
|
|
18818
|
+
expr: "now"
|
|
18819
|
+
};
|
|
18820
|
+
var CHANGED = {
|
|
18821
|
+
fieldPath: "lastChangedAt",
|
|
18822
|
+
expr: "now"
|
|
18823
|
+
};
|
|
18824
|
+
function numeric(input) {
|
|
18825
|
+
return {
|
|
18826
|
+
...input,
|
|
18827
|
+
family: "numeric",
|
|
18828
|
+
deviceType: DeviceType.Sensor,
|
|
18829
|
+
memberDeviceType: DeviceType.Sensor,
|
|
18830
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18831
|
+
activeWhen: void 0,
|
|
18832
|
+
commandCaps: [],
|
|
18833
|
+
baseUnit: baseUnitOf(input.quantity),
|
|
18834
|
+
aggregates: NUMERIC_AGGREGATES,
|
|
18835
|
+
accept: [{
|
|
18836
|
+
cap: input.outputCap,
|
|
18837
|
+
fieldPath: input.outputField
|
|
18838
|
+
}]
|
|
18839
|
+
};
|
|
18840
|
+
}
|
|
18841
|
+
function binary(input) {
|
|
18842
|
+
return {
|
|
18843
|
+
...input,
|
|
18844
|
+
family: "binary",
|
|
18845
|
+
deviceType: DeviceType.Sensor,
|
|
18846
|
+
memberDeviceType: DeviceType.Sensor,
|
|
18847
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18848
|
+
activeWhen: void 0,
|
|
18849
|
+
commandCaps: [],
|
|
18850
|
+
quantity: "none",
|
|
18851
|
+
baseUnit: void 0,
|
|
18852
|
+
aggregates: BINARY_AGGREGATES,
|
|
18853
|
+
empty: "offline"
|
|
18854
|
+
};
|
|
18855
|
+
}
|
|
18856
|
+
var GROUP_TEMPLATES = [
|
|
18857
|
+
numeric({
|
|
18858
|
+
id: "temperature",
|
|
18859
|
+
summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
|
|
18860
|
+
role: DeviceRole.TemperatureSensor,
|
|
18861
|
+
outputCap: "temperature-sensor",
|
|
18862
|
+
outputField: "celsius",
|
|
18863
|
+
quantity: "temperature",
|
|
18864
|
+
defaultAggregate: "mean",
|
|
18865
|
+
empty: "null",
|
|
18866
|
+
companions: [NOW$2]
|
|
18867
|
+
}),
|
|
18868
|
+
numeric({
|
|
18869
|
+
id: "humidity",
|
|
18870
|
+
summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
18871
|
+
role: DeviceRole.HumiditySensor,
|
|
18872
|
+
outputCap: "humidity-sensor",
|
|
18873
|
+
outputField: "percent",
|
|
18874
|
+
quantity: "humidity",
|
|
18875
|
+
defaultAggregate: "mean",
|
|
18876
|
+
empty: "null",
|
|
18877
|
+
companions: [NOW$2]
|
|
18878
|
+
}),
|
|
18879
|
+
numeric({
|
|
18880
|
+
id: "pressure",
|
|
18881
|
+
summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
|
|
18882
|
+
role: DeviceRole.PressureSensor,
|
|
18883
|
+
outputCap: "pressure-sensor",
|
|
18884
|
+
outputField: "hpa",
|
|
18885
|
+
quantity: "pressure",
|
|
18886
|
+
defaultAggregate: "mean",
|
|
18887
|
+
empty: "null",
|
|
18888
|
+
companions: [NOW$2]
|
|
18889
|
+
}),
|
|
18890
|
+
numeric({
|
|
18891
|
+
id: "illuminance",
|
|
18892
|
+
summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
|
|
18893
|
+
role: DeviceRole.AmbientLightSensor,
|
|
18894
|
+
outputCap: "ambient-light-sensor",
|
|
18895
|
+
outputField: "lux",
|
|
18896
|
+
quantity: "illuminance",
|
|
18897
|
+
defaultAggregate: "mean",
|
|
18898
|
+
empty: "null",
|
|
18899
|
+
companions: [NOW$2]
|
|
18900
|
+
}),
|
|
18901
|
+
numeric({
|
|
18902
|
+
id: "power",
|
|
18903
|
+
summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
|
|
18904
|
+
role: DeviceRole.PowerSensor,
|
|
18905
|
+
outputCap: "power-meter",
|
|
18906
|
+
outputField: "watts",
|
|
18907
|
+
quantity: "power",
|
|
18908
|
+
defaultAggregate: "sum",
|
|
18909
|
+
empty: "omit",
|
|
18910
|
+
companions: [NOW$2]
|
|
18911
|
+
}),
|
|
18912
|
+
numeric({
|
|
18913
|
+
id: "energy",
|
|
18914
|
+
summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
|
|
18915
|
+
role: DeviceRole.EnergySensor,
|
|
18916
|
+
outputCap: "power-meter",
|
|
18917
|
+
outputField: "kwhTotal",
|
|
18918
|
+
quantity: "energy",
|
|
18919
|
+
defaultAggregate: "sum",
|
|
18920
|
+
empty: "omit",
|
|
18921
|
+
companions: [NOW$2]
|
|
18922
|
+
}),
|
|
18923
|
+
numeric({
|
|
18924
|
+
id: "battery",
|
|
18925
|
+
summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
18926
|
+
role: DeviceRole.BatterySensor,
|
|
18927
|
+
outputCap: "battery",
|
|
18928
|
+
outputField: "percentage",
|
|
18929
|
+
quantity: "percentage",
|
|
18930
|
+
defaultAggregate: "mean",
|
|
18931
|
+
empty: "null",
|
|
18932
|
+
companions: [
|
|
18933
|
+
{
|
|
18934
|
+
fieldPath: "charging",
|
|
18935
|
+
expr: "\"unknown\""
|
|
18936
|
+
},
|
|
18937
|
+
{
|
|
18938
|
+
fieldPath: "sleeping",
|
|
18939
|
+
expr: "false"
|
|
18940
|
+
},
|
|
18941
|
+
{
|
|
18942
|
+
fieldPath: "lastUpdated",
|
|
18943
|
+
expr: "now"
|
|
18944
|
+
}
|
|
18945
|
+
]
|
|
18946
|
+
}),
|
|
18947
|
+
numeric({
|
|
18948
|
+
id: "numeric",
|
|
18949
|
+
summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
|
|
18950
|
+
role: DeviceRole.NumericSensor,
|
|
18951
|
+
outputCap: "numeric-sensor",
|
|
18952
|
+
outputField: "value",
|
|
18953
|
+
quantity: "device",
|
|
18954
|
+
defaultAggregate: "mean",
|
|
18955
|
+
empty: "null",
|
|
18956
|
+
companions: [NOW$2]
|
|
18957
|
+
}),
|
|
18958
|
+
binary({
|
|
18959
|
+
id: "motion",
|
|
18960
|
+
summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
|
|
18961
|
+
role: DeviceRole.MotionSensor,
|
|
18962
|
+
outputCap: "motion",
|
|
18963
|
+
outputField: "detected",
|
|
18964
|
+
defaultAggregate: "any",
|
|
18965
|
+
accept: [{
|
|
18966
|
+
cap: "motion",
|
|
18967
|
+
fieldPath: "detected"
|
|
18968
|
+
}],
|
|
18969
|
+
companions: [{
|
|
18970
|
+
fieldPath: "lastDetectedAt",
|
|
18971
|
+
expr: "null"
|
|
18972
|
+
}, {
|
|
18973
|
+
fieldPath: "autoClearAfterMs",
|
|
18974
|
+
expr: "null"
|
|
18975
|
+
}]
|
|
18976
|
+
}),
|
|
18977
|
+
binary({
|
|
18978
|
+
id: "contact",
|
|
18979
|
+
summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
|
|
18980
|
+
role: DeviceRole.ContactSensor,
|
|
18981
|
+
outputCap: "contact",
|
|
18982
|
+
outputField: "entryOpen",
|
|
18983
|
+
defaultAggregate: "any",
|
|
18984
|
+
accept: [{
|
|
18985
|
+
cap: "contact",
|
|
18986
|
+
fieldPath: "entryOpen"
|
|
18987
|
+
}],
|
|
18988
|
+
companions: [CHANGED]
|
|
18989
|
+
}),
|
|
18990
|
+
binary({
|
|
18991
|
+
id: "leak",
|
|
18992
|
+
summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
|
|
18993
|
+
role: DeviceRole.LeakSensor,
|
|
18994
|
+
outputCap: "flood",
|
|
18995
|
+
outputField: "flooded",
|
|
18996
|
+
defaultAggregate: "any",
|
|
18997
|
+
accept: [{
|
|
18998
|
+
cap: "flood",
|
|
18999
|
+
fieldPath: "flooded"
|
|
19000
|
+
}],
|
|
19001
|
+
companions: [CHANGED]
|
|
19002
|
+
}),
|
|
19003
|
+
binary({
|
|
19004
|
+
id: "smoke",
|
|
19005
|
+
summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
|
|
19006
|
+
role: DeviceRole.SmokeSensor,
|
|
19007
|
+
outputCap: "smoke",
|
|
19008
|
+
outputField: "detected",
|
|
19009
|
+
defaultAggregate: "any",
|
|
19010
|
+
accept: [{
|
|
19011
|
+
cap: "smoke",
|
|
19012
|
+
fieldPath: "detected"
|
|
19013
|
+
}],
|
|
19014
|
+
companions: [CHANGED]
|
|
19015
|
+
}),
|
|
19016
|
+
binary({
|
|
19017
|
+
id: "occupancy",
|
|
19018
|
+
summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
|
|
19019
|
+
role: DeviceRole.BinarySensor,
|
|
19020
|
+
outputCap: "binary",
|
|
19021
|
+
outputField: "on",
|
|
19022
|
+
defaultAggregate: "any",
|
|
19023
|
+
accept: [{
|
|
19024
|
+
cap: "motion",
|
|
19025
|
+
fieldPath: "detected"
|
|
19026
|
+
}, {
|
|
19027
|
+
cap: "binary",
|
|
19028
|
+
fieldPath: "on"
|
|
19029
|
+
}],
|
|
19030
|
+
companions: [CHANGED]
|
|
19031
|
+
}),
|
|
19032
|
+
binary({
|
|
19033
|
+
id: "binary",
|
|
19034
|
+
summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
|
|
19035
|
+
role: DeviceRole.BinarySensor,
|
|
19036
|
+
outputCap: "binary",
|
|
19037
|
+
outputField: "on",
|
|
19038
|
+
defaultAggregate: "any",
|
|
19039
|
+
accept: [{
|
|
19040
|
+
cap: "binary",
|
|
19041
|
+
fieldPath: "on"
|
|
19042
|
+
}],
|
|
19043
|
+
companions: [CHANGED]
|
|
19044
|
+
}),
|
|
19045
|
+
actuator({
|
|
19046
|
+
id: "switch",
|
|
19047
|
+
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.",
|
|
19048
|
+
deviceType: DeviceType.Switch,
|
|
19049
|
+
outputCap: "switch",
|
|
19050
|
+
outputField: "on",
|
|
19051
|
+
member: {
|
|
19052
|
+
cap: "switch",
|
|
19053
|
+
fieldPath: "on"
|
|
19054
|
+
},
|
|
19055
|
+
commandCaps: ["switch"]
|
|
19056
|
+
}),
|
|
19057
|
+
actuator({
|
|
19058
|
+
id: "light",
|
|
19059
|
+
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.",
|
|
19060
|
+
deviceType: DeviceType.Light,
|
|
19061
|
+
outputCap: "switch",
|
|
19062
|
+
outputField: "on",
|
|
19063
|
+
member: {
|
|
19064
|
+
cap: "switch",
|
|
19065
|
+
fieldPath: "on"
|
|
19066
|
+
},
|
|
19067
|
+
commandCaps: [
|
|
19068
|
+
"switch",
|
|
19069
|
+
"brightness",
|
|
19070
|
+
"color"
|
|
19071
|
+
]
|
|
19072
|
+
}),
|
|
19073
|
+
actuator({
|
|
19074
|
+
id: "fan",
|
|
19075
|
+
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.",
|
|
19076
|
+
deviceType: DeviceType.Fan,
|
|
19077
|
+
outputCap: "switch",
|
|
19078
|
+
outputField: "on",
|
|
19079
|
+
member: {
|
|
19080
|
+
cap: "switch",
|
|
19081
|
+
fieldPath: "on"
|
|
19082
|
+
},
|
|
19083
|
+
commandCaps: ["switch", "fan-control"]
|
|
19084
|
+
}),
|
|
19085
|
+
actuator({
|
|
19086
|
+
id: "cover",
|
|
19087
|
+
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.",
|
|
19088
|
+
deviceType: DeviceType.Cover,
|
|
19089
|
+
outputCap: "group-active",
|
|
19090
|
+
outputField: "active",
|
|
19091
|
+
member: {
|
|
19092
|
+
cap: "cover",
|
|
19093
|
+
fieldPath: "state"
|
|
19094
|
+
},
|
|
19095
|
+
activeWhen: [
|
|
19096
|
+
"open",
|
|
19097
|
+
"opening",
|
|
19098
|
+
"stopped"
|
|
19099
|
+
],
|
|
19100
|
+
commandCaps: ["cover"]
|
|
19101
|
+
}),
|
|
19102
|
+
actuator({
|
|
19103
|
+
id: "valve",
|
|
19104
|
+
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.",
|
|
19105
|
+
deviceType: DeviceType.Valve,
|
|
19106
|
+
outputCap: "group-active",
|
|
19107
|
+
outputField: "active",
|
|
19108
|
+
member: {
|
|
19109
|
+
cap: "valve",
|
|
19110
|
+
fieldPath: "state"
|
|
19111
|
+
},
|
|
19112
|
+
activeWhen: [
|
|
19113
|
+
"open",
|
|
19114
|
+
"opening",
|
|
19115
|
+
"stopped"
|
|
19116
|
+
],
|
|
19117
|
+
commandCaps: ["valve"]
|
|
19118
|
+
}),
|
|
19119
|
+
actuator({
|
|
19120
|
+
id: "lock",
|
|
19121
|
+
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.",
|
|
19122
|
+
deviceType: DeviceType.Lock,
|
|
19123
|
+
outputCap: "group-active",
|
|
19124
|
+
outputField: "active",
|
|
19125
|
+
member: {
|
|
19126
|
+
cap: "lock-control",
|
|
19127
|
+
fieldPath: "state"
|
|
19128
|
+
},
|
|
19129
|
+
activeWhen: ["locked"],
|
|
19130
|
+
commandCaps: ["lock-control"]
|
|
19131
|
+
}),
|
|
19132
|
+
actuator({
|
|
19133
|
+
id: "media-player",
|
|
19134
|
+
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.",
|
|
19135
|
+
deviceType: DeviceType.MediaPlayer,
|
|
19136
|
+
outputCap: "group-active",
|
|
19137
|
+
outputField: "active",
|
|
19138
|
+
member: {
|
|
19139
|
+
cap: "media-player",
|
|
19140
|
+
fieldPath: "state"
|
|
19141
|
+
},
|
|
19142
|
+
activeWhen: ["playing", "buffering"],
|
|
19143
|
+
commandCaps: ["media-player"]
|
|
19144
|
+
}),
|
|
19145
|
+
actuator({
|
|
19146
|
+
id: "climate",
|
|
19147
|
+
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.",
|
|
19148
|
+
deviceType: DeviceType.Thermostat,
|
|
19149
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
19150
|
+
outputCap: "group-active",
|
|
19151
|
+
outputField: "active",
|
|
19152
|
+
member: {
|
|
19153
|
+
cap: "climate-control",
|
|
19154
|
+
fieldPath: "mode"
|
|
19155
|
+
},
|
|
19156
|
+
activeWhen: [
|
|
19157
|
+
"heat",
|
|
19158
|
+
"cool",
|
|
19159
|
+
"auto",
|
|
19160
|
+
"heat_cool",
|
|
19161
|
+
"fan_only",
|
|
19162
|
+
"dry"
|
|
19163
|
+
],
|
|
19164
|
+
commandCaps: ["climate-control"]
|
|
19165
|
+
})
|
|
19166
|
+
];
|
|
19167
|
+
function actuator(input) {
|
|
19168
|
+
return {
|
|
19169
|
+
id: input.id,
|
|
19170
|
+
summary: input.summary,
|
|
19171
|
+
deviceType: input.deviceType,
|
|
19172
|
+
outputCap: input.outputCap,
|
|
19173
|
+
outputField: input.outputField,
|
|
19174
|
+
commandCaps: input.commandCaps,
|
|
19175
|
+
family: "actuator",
|
|
19176
|
+
role: void 0,
|
|
19177
|
+
memberDeviceType: input.deviceType,
|
|
19178
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
19179
|
+
activeWhen: input.activeWhen,
|
|
19180
|
+
quantity: "none",
|
|
19181
|
+
baseUnit: void 0,
|
|
19182
|
+
aggregates: BINARY_AGGREGATES,
|
|
19183
|
+
defaultAggregate: "any",
|
|
19184
|
+
empty: "offline",
|
|
19185
|
+
accept: [input.member],
|
|
19186
|
+
companions: [CHANGED]
|
|
19187
|
+
};
|
|
19188
|
+
}
|
|
19189
|
+
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
19190
|
+
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
19191
|
+
DeviceType.Camera;
|
|
18466
19192
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18467
19193
|
/**
|
|
18468
19194
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43873,7 +44599,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43873
44599
|
});
|
|
43874
44600
|
/**
|
|
43875
44601
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43876
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44602
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43877
44603
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43878
44604
|
* the originating provider config (mode + sourcePort) so the
|
|
43879
44605
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -45469,6 +46195,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
45469
46195
|
"detection-blind",
|
|
45470
46196
|
"motion-noisy",
|
|
45471
46197
|
"motion-calm",
|
|
46198
|
+
"package-llm-silent",
|
|
46199
|
+
"package-llm-answered",
|
|
45472
46200
|
"recording-stalled",
|
|
45473
46201
|
"recording-healthy",
|
|
45474
46202
|
"recording-degraded",
|
|
@@ -46558,7 +47286,20 @@ var NcRuleInputSchema = object({
|
|
|
46558
47286
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46559
47287
|
* path does not run Zod defaults.
|
|
46560
47288
|
*/
|
|
46561
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
47289
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
47290
|
+
/**
|
|
47291
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
47292
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
47293
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
47294
|
+
* same mark the Library writes, and records whose notification it was and
|
|
47295
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
47296
|
+
*
|
|
47297
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
47298
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
47299
|
+
* authored before this field meant. An editor turns it off by writing
|
|
47300
|
+
* `false`, so it needs no `clear` key.
|
|
47301
|
+
*/
|
|
47302
|
+
askVerdict: boolean().optional()
|
|
46562
47303
|
});
|
|
46563
47304
|
/**
|
|
46564
47305
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -56560,6 +57301,28 @@ var PackageVersionInfoSchema = object({
|
|
|
56560
57301
|
deprecated: string().optional(),
|
|
56561
57302
|
distTags: array(string()).readonly()
|
|
56562
57303
|
});
|
|
57304
|
+
/**
|
|
57305
|
+
* One published document. `ok` is markdown from the registry. `missing` means
|
|
57306
|
+
* the registry answered and the file was not there. `error` is a registry or
|
|
57307
|
+
* tarball failure — never an empty string standing in for either.
|
|
57308
|
+
*/
|
|
57309
|
+
var PackageDocBodySchema = discriminatedUnion("status", [
|
|
57310
|
+
object({
|
|
57311
|
+
status: literal("ok"),
|
|
57312
|
+
markdown: string()
|
|
57313
|
+
}),
|
|
57314
|
+
object({ status: literal("missing") }),
|
|
57315
|
+
object({
|
|
57316
|
+
status: literal("error"),
|
|
57317
|
+
message: string()
|
|
57318
|
+
})
|
|
57319
|
+
]);
|
|
57320
|
+
var PackageDocsSchema = object({
|
|
57321
|
+
name: string(),
|
|
57322
|
+
version: string(),
|
|
57323
|
+
readme: PackageDocBodySchema,
|
|
57324
|
+
changelog: PackageDocBodySchema
|
|
57325
|
+
});
|
|
56563
57326
|
var SearchResultSchema = object({
|
|
56564
57327
|
name: string(),
|
|
56565
57328
|
version: string(),
|
|
@@ -56778,7 +57541,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
|
|
|
56778
57541
|
}), object({ success: literal(true) }), {
|
|
56779
57542
|
kind: "mutation",
|
|
56780
57543
|
auth: "admin"
|
|
56781
|
-
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
|
|
57544
|
+
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
|
|
57545
|
+
name: string().min(1),
|
|
57546
|
+
version: string().min(1).optional()
|
|
57547
|
+
}), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
56782
57548
|
kind: "mutation",
|
|
56783
57549
|
auth: "admin"
|
|
56784
57550
|
}), method(object({ packageName: string() }), object({ success: literal(true) }), {
|
|
@@ -57253,7 +58019,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57253
58019
|
DeviceType.Switch,
|
|
57254
58020
|
DeviceType.PetFeeder,
|
|
57255
58021
|
DeviceType.Container,
|
|
57256
|
-
DeviceType.Thermostat
|
|
58022
|
+
DeviceType.Thermostat,
|
|
58023
|
+
DeviceType.EventEmitter
|
|
57257
58024
|
];
|
|
57258
58025
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57259
58026
|
var batteryCustomize = {
|
|
@@ -60097,6 +60864,148 @@ var gasCapability = {
|
|
|
60097
60864
|
* whether persisting is worth a SQLite commit. */
|
|
60098
60865
|
volatileStateFields: ["lastChangedAt"]
|
|
60099
60866
|
};
|
|
60867
|
+
var GroupCommandsSchema = object({
|
|
60868
|
+
/** One row per member that has been commanded. A later command replaces that member's row. */
|
|
60869
|
+
results: array(object({
|
|
60870
|
+
deviceId: number().int().nonnegative(),
|
|
60871
|
+
cap: string().min(1),
|
|
60872
|
+
method: string().min(1),
|
|
60873
|
+
ok: boolean(),
|
|
60874
|
+
error: string().optional(),
|
|
60875
|
+
/** Ms epoch of the attempt. */
|
|
60876
|
+
at: number()
|
|
60877
|
+
})) });
|
|
60878
|
+
var groupCommandsCapability = {
|
|
60879
|
+
name: "group-commands",
|
|
60880
|
+
scope: "device",
|
|
60881
|
+
deviceNative: true,
|
|
60882
|
+
mode: "singleton",
|
|
60883
|
+
deviceTypes: [
|
|
60884
|
+
DeviceType.Switch,
|
|
60885
|
+
DeviceType.Light,
|
|
60886
|
+
DeviceType.Fan,
|
|
60887
|
+
DeviceType.Cover,
|
|
60888
|
+
DeviceType.Valve,
|
|
60889
|
+
DeviceType.Lock,
|
|
60890
|
+
DeviceType.MediaPlayer,
|
|
60891
|
+
DeviceType.Thermostat,
|
|
60892
|
+
DeviceType.Climate
|
|
60893
|
+
],
|
|
60894
|
+
methods: {},
|
|
60895
|
+
status: {
|
|
60896
|
+
schema: GroupCommandsSchema,
|
|
60897
|
+
kind: "push"
|
|
60898
|
+
},
|
|
60899
|
+
runtimeState: GroupCommandsSchema,
|
|
60900
|
+
/**
|
|
60901
|
+
* Runtime-state durability: **session** — the last attempt. A restored
|
|
60902
|
+
* failure would outlive the command that caused it.
|
|
60903
|
+
*
|
|
60904
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60905
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60906
|
+
*/
|
|
60907
|
+
durability: "session",
|
|
60908
|
+
history: "none"
|
|
60909
|
+
};
|
|
60910
|
+
/**
|
|
60911
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60912
|
+
* included member is, or every included member is. What "active" means is the
|
|
60913
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60914
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60915
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60916
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60917
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60918
|
+
*/
|
|
60919
|
+
var GroupActiveSchema = object({
|
|
60920
|
+
active: boolean().meta({ label: "Active" }),
|
|
60921
|
+
/** Ms epoch when the slice was last updated. */
|
|
60922
|
+
lastChangedAt: number()
|
|
60923
|
+
});
|
|
60924
|
+
var groupActiveCapability = {
|
|
60925
|
+
name: "group-active",
|
|
60926
|
+
scope: "device",
|
|
60927
|
+
deviceNative: true,
|
|
60928
|
+
mode: "singleton",
|
|
60929
|
+
deviceTypes: [
|
|
60930
|
+
DeviceType.Cover,
|
|
60931
|
+
DeviceType.Valve,
|
|
60932
|
+
DeviceType.Lock,
|
|
60933
|
+
DeviceType.MediaPlayer,
|
|
60934
|
+
DeviceType.Climate,
|
|
60935
|
+
DeviceType.Thermostat
|
|
60936
|
+
],
|
|
60937
|
+
methods: {},
|
|
60938
|
+
status: {
|
|
60939
|
+
schema: GroupActiveSchema,
|
|
60940
|
+
kind: "push"
|
|
60941
|
+
},
|
|
60942
|
+
runtimeState: GroupActiveSchema,
|
|
60943
|
+
/**
|
|
60944
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60945
|
+
* next source event; a restored value would outlive the members it named.
|
|
60946
|
+
*
|
|
60947
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60948
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60949
|
+
*/
|
|
60950
|
+
durability: "session",
|
|
60951
|
+
history: "none"
|
|
60952
|
+
};
|
|
60953
|
+
/**
|
|
60954
|
+
* How many members of a helper group answered (D944). Counts are integers,
|
|
60955
|
+
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60956
|
+
* The reading itself stays on the output capability. History is none — the
|
|
60957
|
+
* series that later statistics read is the output cap's own history block.
|
|
60958
|
+
*/
|
|
60959
|
+
var GroupStatusSchema = object({
|
|
60960
|
+
/** Members whose current value entered the aggregate. */
|
|
60961
|
+
included: number().int().nonnegative().meta(readingMeta("count", {
|
|
60962
|
+
precision: 0,
|
|
60963
|
+
label: "Reporting"
|
|
60964
|
+
})),
|
|
60965
|
+
/** Members left out: offline, unknown, or not a finite reading (D393). */
|
|
60966
|
+
excluded: number().int().nonnegative().meta(readingMeta("count", {
|
|
60967
|
+
precision: 0,
|
|
60968
|
+
label: "Excluded"
|
|
60969
|
+
})),
|
|
60970
|
+
/** `included` + `excluded`. */
|
|
60971
|
+
total: number().int().nonnegative().meta(readingMeta("count", {
|
|
60972
|
+
precision: 0,
|
|
60973
|
+
label: "Members"
|
|
60974
|
+
}))
|
|
60975
|
+
});
|
|
60976
|
+
var groupStatusCapability = {
|
|
60977
|
+
name: "group-status",
|
|
60978
|
+
scope: "device",
|
|
60979
|
+
deviceNative: true,
|
|
60980
|
+
mode: "singleton",
|
|
60981
|
+
deviceTypes: [
|
|
60982
|
+
DeviceType.Sensor,
|
|
60983
|
+
DeviceType.Switch,
|
|
60984
|
+
DeviceType.Light,
|
|
60985
|
+
DeviceType.Fan,
|
|
60986
|
+
DeviceType.Cover,
|
|
60987
|
+
DeviceType.Valve,
|
|
60988
|
+
DeviceType.Lock,
|
|
60989
|
+
DeviceType.MediaPlayer,
|
|
60990
|
+
DeviceType.Thermostat,
|
|
60991
|
+
DeviceType.Climate
|
|
60992
|
+
],
|
|
60993
|
+
methods: {},
|
|
60994
|
+
status: {
|
|
60995
|
+
schema: GroupStatusSchema,
|
|
60996
|
+
kind: "push"
|
|
60997
|
+
},
|
|
60998
|
+
runtimeState: GroupStatusSchema,
|
|
60999
|
+
/**
|
|
61000
|
+
* Runtime-state durability: **session** — recomputed from members on the
|
|
61001
|
+
* next source event; a restored count would outlive the readings it named.
|
|
61002
|
+
*
|
|
61003
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61004
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61005
|
+
*/
|
|
61006
|
+
durability: "session",
|
|
61007
|
+
history: "none"
|
|
61008
|
+
};
|
|
60100
61009
|
var HeatingValveStatusSchema = object({
|
|
60101
61010
|
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
60102
61011
|
position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
|
|
@@ -61352,7 +62261,14 @@ var lockControlCapability = {
|
|
|
61352
62261
|
}),
|
|
61353
62262
|
unlock: method(object({
|
|
61354
62263
|
deviceId: number().int().nonnegative(),
|
|
61355
|
-
code: string().min(1).optional()
|
|
62264
|
+
code: string().min(1).optional(),
|
|
62265
|
+
/**
|
|
62266
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
62267
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
62268
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
62269
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
62270
|
+
*/
|
|
62271
|
+
confirm: boolean().optional()
|
|
61356
62272
|
}), _void(), {
|
|
61357
62273
|
kind: "mutation",
|
|
61358
62274
|
auth: "protected"
|
|
@@ -61389,6 +62305,44 @@ var lockControlCapability = {
|
|
|
61389
62305
|
volatileStateFields: ["lastChangedAt"]
|
|
61390
62306
|
};
|
|
61391
62307
|
/**
|
|
62308
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
62309
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
62310
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
62311
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
62312
|
+
*/
|
|
62313
|
+
var MeterStatusSchema = object({
|
|
62314
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
62315
|
+
lastFetchedAt: number()
|
|
62316
|
+
});
|
|
62317
|
+
var meterCapability = {
|
|
62318
|
+
name: "meter",
|
|
62319
|
+
scope: "device",
|
|
62320
|
+
deviceNative: true,
|
|
62321
|
+
mode: "singleton",
|
|
62322
|
+
deviceTypes: [DeviceType.Sensor],
|
|
62323
|
+
methods: {},
|
|
62324
|
+
status: {
|
|
62325
|
+
schema: MeterStatusSchema,
|
|
62326
|
+
kind: "push"
|
|
62327
|
+
},
|
|
62328
|
+
runtimeState: MeterStatusSchema,
|
|
62329
|
+
/**
|
|
62330
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
62331
|
+
* history integral. A restart shows it only until the history pass
|
|
62332
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
62333
|
+
*
|
|
62334
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
62335
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
62336
|
+
*/
|
|
62337
|
+
durability: "restored",
|
|
62338
|
+
history: { fields: { value: {
|
|
62339
|
+
kind: "counter",
|
|
62340
|
+
deadband: .001,
|
|
62341
|
+
minIntervalMs: 6e4
|
|
62342
|
+
} } },
|
|
62343
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
62344
|
+
};
|
|
62345
|
+
/**
|
|
61392
62346
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61393
62347
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61394
62348
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -61866,12 +62820,18 @@ var motionCapability = {
|
|
|
61866
62820
|
methods: {
|
|
61867
62821
|
/**
|
|
61868
62822
|
* Pull the current motion state synchronously. Convenience shortcut
|
|
61869
|
-
* for consumers that don't need the full status object
|
|
61870
|
-
*
|
|
61871
|
-
* `getStatus` once the auto-injected status surface lands in every
|
|
61872
|
-
* consumer.
|
|
62823
|
+
* for consumers that don't need the full status object. A composed
|
|
62824
|
+
* group answers from its slice (D944): unknown throws, it is not off.
|
|
61873
62825
|
*/
|
|
61874
62826
|
isDetected: method(object({ deviceId: number() }), boolean()) },
|
|
62827
|
+
/**
|
|
62828
|
+
* A composed motion group serves `isDetected` from `detected` (D944).
|
|
62829
|
+
* Without this the cap stays uncomposable (`has-commands`).
|
|
62830
|
+
*/
|
|
62831
|
+
composedMethods: { isDetected: {
|
|
62832
|
+
kind: "slice",
|
|
62833
|
+
field: "detected"
|
|
62834
|
+
} },
|
|
61875
62835
|
events: {
|
|
61876
62836
|
/**
|
|
61877
62837
|
* Fires every time the runner transitions a camera between
|
|
@@ -63894,9 +64854,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63894
64854
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63895
64855
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63896
64856
|
/** Voltage in volts. */
|
|
63897
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64857
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63898
64858
|
/** Current in amperes. */
|
|
63899
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64859
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63900
64860
|
/** Apparent power in volt-amperes. */
|
|
63901
64861
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63902
64862
|
/** Power factor (0..1) if reported. */
|
|
@@ -63904,12 +64864,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63904
64864
|
/** Ms epoch when the slice was last updated. */
|
|
63905
64865
|
lastFetchedAt: number()
|
|
63906
64866
|
});
|
|
64867
|
+
/**
|
|
64868
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64869
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64870
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64871
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64872
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64873
|
+
*/
|
|
64874
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64875
|
+
DeviceType.Sensor,
|
|
64876
|
+
DeviceType.Switch,
|
|
64877
|
+
DeviceType.Light,
|
|
64878
|
+
DeviceType.Fan,
|
|
64879
|
+
DeviceType.Climate,
|
|
64880
|
+
DeviceType.Thermostat,
|
|
64881
|
+
DeviceType.Humidifier,
|
|
64882
|
+
DeviceType.WaterHeater,
|
|
64883
|
+
DeviceType.MediaPlayer,
|
|
64884
|
+
DeviceType.Washer,
|
|
64885
|
+
DeviceType.Dryer,
|
|
64886
|
+
DeviceType.Dishwasher,
|
|
64887
|
+
DeviceType.Vacuum,
|
|
64888
|
+
DeviceType.LawnMower,
|
|
64889
|
+
DeviceType.PetFeeder
|
|
64890
|
+
];
|
|
64891
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64892
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64893
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64894
|
+
function powerTarget(id, unit) {
|
|
64895
|
+
return {
|
|
64896
|
+
id,
|
|
64897
|
+
cardinality: "scalar",
|
|
64898
|
+
vocabulary: {
|
|
64899
|
+
cap: "power-meter",
|
|
64900
|
+
stateField: id
|
|
64901
|
+
},
|
|
64902
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64903
|
+
apply: "add",
|
|
64904
|
+
path: id,
|
|
64905
|
+
sources: [{
|
|
64906
|
+
kind: "numeric",
|
|
64907
|
+
requiredUnit: unit,
|
|
64908
|
+
transforms: [{ kind: "identity" }]
|
|
64909
|
+
}],
|
|
64910
|
+
companions: [{
|
|
64911
|
+
kind: "clock",
|
|
64912
|
+
path: "lastFetchedAt",
|
|
64913
|
+
when: "always"
|
|
64914
|
+
}],
|
|
64915
|
+
sourceReport: { status: "assignment-status" },
|
|
64916
|
+
advancedExpression: true
|
|
64917
|
+
};
|
|
64918
|
+
}
|
|
64919
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64920
|
+
var powerMeterCustomize = {
|
|
64921
|
+
version: 1,
|
|
64922
|
+
targets: [
|
|
64923
|
+
powerTarget("watts", "W"),
|
|
64924
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64925
|
+
powerTarget("volts", "V"),
|
|
64926
|
+
powerTarget("amps", "A")
|
|
64927
|
+
]
|
|
64928
|
+
};
|
|
63907
64929
|
var powerMeterCapability = {
|
|
63908
64930
|
name: "power-meter",
|
|
63909
64931
|
scope: "device",
|
|
63910
64932
|
deviceNative: true,
|
|
63911
64933
|
mode: "singleton",
|
|
63912
|
-
deviceTypes:
|
|
64934
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63913
64935
|
methods: {},
|
|
63914
64936
|
status: {
|
|
63915
64937
|
schema: PowerMeterStatusSchema,
|
|
@@ -63966,7 +64988,8 @@ var powerMeterCapability = {
|
|
|
63966
64988
|
} },
|
|
63967
64989
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63968
64990
|
* whether persisting is worth a SQLite commit. */
|
|
63969
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64991
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64992
|
+
customize: powerMeterCustomize
|
|
63970
64993
|
};
|
|
63971
64994
|
/**
|
|
63972
64995
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64647,6 +65670,8 @@ var runningCustomize = {
|
|
|
64647
65670
|
stateField: "running"
|
|
64648
65671
|
},
|
|
64649
65672
|
deviceTypes: [
|
|
65673
|
+
DeviceType.Washer,
|
|
65674
|
+
DeviceType.Dryer,
|
|
64650
65675
|
DeviceType.Dishwasher,
|
|
64651
65676
|
DeviceType.Vacuum,
|
|
64652
65677
|
DeviceType.LawnMower,
|
|
@@ -67136,7 +68161,8 @@ var switchCapability = {
|
|
|
67136
68161
|
deviceTypes: [
|
|
67137
68162
|
DeviceType.Switch,
|
|
67138
68163
|
DeviceType.Siren,
|
|
67139
|
-
DeviceType.Light
|
|
68164
|
+
DeviceType.Light,
|
|
68165
|
+
DeviceType.Fan
|
|
67140
68166
|
],
|
|
67141
68167
|
methods: { setState: method(object({
|
|
67142
68168
|
deviceId: number(),
|
|
@@ -69349,6 +70375,7 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69349
70375
|
kind: "mutation",
|
|
69350
70376
|
auth: "admin"
|
|
69351
70377
|
});
|
|
70378
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69352
70379
|
/**
|
|
69353
70380
|
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
69354
70381
|
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
@@ -69733,7 +70760,7 @@ function tryConvertUnit(value, from, to) {
|
|
|
69733
70760
|
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
69734
70761
|
}
|
|
69735
70762
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69736
|
-
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;
|
|
70763
|
+
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;
|
|
69737
70764
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69738
70765
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69739
70766
|
new Set(CAP_NAMES);
|
|
@@ -70062,6 +71089,9 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70062
71089
|
featureProbe: featureProbeCapability,
|
|
70063
71090
|
flood: floodCapability,
|
|
70064
71091
|
gas: gasCapability,
|
|
71092
|
+
groupActive: groupActiveCapability,
|
|
71093
|
+
groupCommands: groupCommandsCapability,
|
|
71094
|
+
groupStatus: groupStatusCapability,
|
|
70065
71095
|
heatingValve: heatingValveCapability,
|
|
70066
71096
|
humidifier: humidifierCapability,
|
|
70067
71097
|
humiditySensor: humiditySensorCapability,
|
|
@@ -70071,6 +71101,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70071
71101
|
lawnMowerControl: lawnMowerControlCapability,
|
|
70072
71102
|
lockControl: lockControlCapability,
|
|
70073
71103
|
mediaPlayer: mediaPlayerCapability,
|
|
71104
|
+
meter: meterCapability,
|
|
70074
71105
|
motion: motionCapability,
|
|
70075
71106
|
motionTrigger: motionTriggerCapability,
|
|
70076
71107
|
motionZones: motionZonesCapability,
|
|
@@ -71330,7 +72361,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71330
72361
|
return toDeviceSummary(device, this.addonId);
|
|
71331
72362
|
}
|
|
71332
72363
|
};
|
|
71333
|
-
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;
|
|
72364
|
+
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;
|
|
71334
72365
|
new Set(Object.values(DeviceType));
|
|
71335
72366
|
Object.freeze({
|
|
71336
72367
|
"accessories.getStatus": {
|
|
@@ -71438,6 +72469,13 @@ Object.freeze({
|
|
|
71438
72469
|
access: "view",
|
|
71439
72470
|
role: "admin"
|
|
71440
72471
|
},
|
|
72472
|
+
"addons.getPackageDocs": {
|
|
72473
|
+
capName: "addons",
|
|
72474
|
+
capScope: "system",
|
|
72475
|
+
addonId: null,
|
|
72476
|
+
access: "view",
|
|
72477
|
+
role: "admin"
|
|
72478
|
+
},
|
|
71441
72479
|
"addons.getVersions": {
|
|
71442
72480
|
capName: "addons",
|
|
71443
72481
|
capScope: "system",
|
|
@@ -74546,6 +75584,27 @@ Object.freeze({
|
|
|
74546
75584
|
access: "view",
|
|
74547
75585
|
role: "viewer"
|
|
74548
75586
|
},
|
|
75587
|
+
"groupActive.getStatus": {
|
|
75588
|
+
capName: "group-active",
|
|
75589
|
+
capScope: "device",
|
|
75590
|
+
addonId: null,
|
|
75591
|
+
access: "view",
|
|
75592
|
+
role: "viewer"
|
|
75593
|
+
},
|
|
75594
|
+
"groupCommands.getStatus": {
|
|
75595
|
+
capName: "group-commands",
|
|
75596
|
+
capScope: "device",
|
|
75597
|
+
addonId: null,
|
|
75598
|
+
access: "view",
|
|
75599
|
+
role: "viewer"
|
|
75600
|
+
},
|
|
75601
|
+
"groupStatus.getStatus": {
|
|
75602
|
+
capName: "group-status",
|
|
75603
|
+
capScope: "device",
|
|
75604
|
+
addonId: null,
|
|
75605
|
+
access: "view",
|
|
75606
|
+
role: "viewer"
|
|
75607
|
+
},
|
|
74549
75608
|
"heatingValve.getStatus": {
|
|
74550
75609
|
capName: "heating-valve",
|
|
74551
75610
|
capScope: "device",
|
|
@@ -75498,6 +76557,13 @@ Object.freeze({
|
|
|
75498
76557
|
access: "create",
|
|
75499
76558
|
role: "admin"
|
|
75500
76559
|
},
|
|
76560
|
+
"meter.getStatus": {
|
|
76561
|
+
capName: "meter",
|
|
76562
|
+
capScope: "device",
|
|
76563
|
+
addonId: null,
|
|
76564
|
+
access: "view",
|
|
76565
|
+
role: "viewer"
|
|
76566
|
+
},
|
|
75501
76567
|
"metricsProvider.collectSnapshot": {
|
|
75502
76568
|
capName: "metrics-provider",
|
|
75503
76569
|
capScope: "system",
|
|
@@ -83596,7 +84662,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83596
84662
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83597
84663
|
icon: "square"
|
|
83598
84664
|
}
|
|
83599
|
-
}
|
|
84665
|
+
},
|
|
84666
|
+
overrides: { byType: {
|
|
84667
|
+
[DeviceType.Washer]: {
|
|
84668
|
+
state: { running: {
|
|
84669
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
84670
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
84671
|
+
} },
|
|
84672
|
+
events: {
|
|
84673
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
84674
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
84675
|
+
}
|
|
84676
|
+
},
|
|
84677
|
+
[DeviceType.Dryer]: {
|
|
84678
|
+
state: { running: {
|
|
84679
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
84680
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
84681
|
+
} },
|
|
84682
|
+
events: {
|
|
84683
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
84684
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
84685
|
+
}
|
|
84686
|
+
},
|
|
84687
|
+
[DeviceType.Dishwasher]: {
|
|
84688
|
+
state: { running: {
|
|
84689
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
84690
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
84691
|
+
} },
|
|
84692
|
+
events: {
|
|
84693
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
84694
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
84695
|
+
}
|
|
84696
|
+
}
|
|
84697
|
+
} }
|
|
83600
84698
|
},
|
|
83601
84699
|
update: {
|
|
83602
84700
|
scope: "device",
|
|
@@ -84368,6 +85466,41 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84368
85466
|
icon: "flame"
|
|
84369
85467
|
}]
|
|
84370
85468
|
},
|
|
85469
|
+
"group-active": {
|
|
85470
|
+
scope: "device",
|
|
85471
|
+
noun: t("Group state", "Stato del gruppo")
|
|
85472
|
+
},
|
|
85473
|
+
"group-commands": {
|
|
85474
|
+
scope: "device",
|
|
85475
|
+
noun: t("Group command", "Comando di gruppo")
|
|
85476
|
+
},
|
|
85477
|
+
"group-status": {
|
|
85478
|
+
scope: "device",
|
|
85479
|
+
noun: t("Group", "Gruppo"),
|
|
85480
|
+
state: [
|
|
85481
|
+
{
|
|
85482
|
+
kind: "numeric",
|
|
85483
|
+
field: "included",
|
|
85484
|
+
quantity: t("the members reporting", "i membri che rispondono"),
|
|
85485
|
+
label: t("Reporting", "Rispondono"),
|
|
85486
|
+
icon: "users"
|
|
85487
|
+
},
|
|
85488
|
+
{
|
|
85489
|
+
kind: "numeric",
|
|
85490
|
+
field: "excluded",
|
|
85491
|
+
quantity: t("the members left out", "i membri esclusi"),
|
|
85492
|
+
label: t("Excluded", "Esclusi"),
|
|
85493
|
+
icon: "users"
|
|
85494
|
+
},
|
|
85495
|
+
{
|
|
85496
|
+
kind: "numeric",
|
|
85497
|
+
field: "total",
|
|
85498
|
+
quantity: t("the member count", "il numero di membri"),
|
|
85499
|
+
label: t("Members", "Membri"),
|
|
85500
|
+
icon: "sigma"
|
|
85501
|
+
}
|
|
85502
|
+
]
|
|
85503
|
+
},
|
|
84371
85504
|
"humidity-sensor": {
|
|
84372
85505
|
scope: "device",
|
|
84373
85506
|
noun: t("Humidity", "Umidità"),
|
|
@@ -84393,6 +85526,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84393
85526
|
}],
|
|
84394
85527
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84395
85528
|
},
|
|
85529
|
+
meter: {
|
|
85530
|
+
scope: "device",
|
|
85531
|
+
noun: t("Meter", "Contatore"),
|
|
85532
|
+
state: [{
|
|
85533
|
+
kind: "numeric",
|
|
85534
|
+
field: "value",
|
|
85535
|
+
quantity: t("the total", "il totale"),
|
|
85536
|
+
label: t("Total", "Totale"),
|
|
85537
|
+
icon: "gauge"
|
|
85538
|
+
}]
|
|
85539
|
+
},
|
|
84396
85540
|
"numeric-sensor": {
|
|
84397
85541
|
scope: "device",
|
|
84398
85542
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84865,8 +86009,47 @@ function projectAction(cap, action) {
|
|
|
84865
86009
|
};
|
|
84866
86010
|
}
|
|
84867
86011
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84868
|
-
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;
|
|
86012
|
+
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;
|
|
84869
86013
|
DeviceFeature.BatteryOperated;
|
|
86014
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
86015
|
+
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.";
|
|
86016
|
+
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.";
|
|
86017
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
86018
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
86019
|
+
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.";
|
|
86020
|
+
function withheld(reason) {
|
|
86021
|
+
return {
|
|
86022
|
+
[DeviceType.Washer]: {
|
|
86023
|
+
exported: false,
|
|
86024
|
+
reason
|
|
86025
|
+
},
|
|
86026
|
+
[DeviceType.Dryer]: {
|
|
86027
|
+
exported: false,
|
|
86028
|
+
reason
|
|
86029
|
+
},
|
|
86030
|
+
[DeviceType.Dishwasher]: {
|
|
86031
|
+
exported: false,
|
|
86032
|
+
reason
|
|
86033
|
+
}
|
|
86034
|
+
};
|
|
86035
|
+
}
|
|
86036
|
+
function offered(received) {
|
|
86037
|
+
return {
|
|
86038
|
+
[DeviceType.Washer]: {
|
|
86039
|
+
exported: true,
|
|
86040
|
+
as: received
|
|
86041
|
+
},
|
|
86042
|
+
[DeviceType.Dryer]: {
|
|
86043
|
+
exported: true,
|
|
86044
|
+
as: received
|
|
86045
|
+
},
|
|
86046
|
+
[DeviceType.Dishwasher]: {
|
|
86047
|
+
exported: true,
|
|
86048
|
+
as: received
|
|
86049
|
+
}
|
|
86050
|
+
};
|
|
86051
|
+
}
|
|
86052
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84870
86053
|
Object.freeze({
|
|
84871
86054
|
"accessories.getStatus": [{
|
|
84872
86055
|
name: "deviceId",
|
|
@@ -85833,6 +87016,21 @@ Object.freeze({
|
|
|
85833
87016
|
form: "single",
|
|
85834
87017
|
optional: false
|
|
85835
87018
|
}],
|
|
87019
|
+
"groupActive.getStatus": [{
|
|
87020
|
+
name: "deviceId",
|
|
87021
|
+
form: "single",
|
|
87022
|
+
optional: false
|
|
87023
|
+
}],
|
|
87024
|
+
"groupCommands.getStatus": [{
|
|
87025
|
+
name: "deviceId",
|
|
87026
|
+
form: "single",
|
|
87027
|
+
optional: false
|
|
87028
|
+
}],
|
|
87029
|
+
"groupStatus.getStatus": [{
|
|
87030
|
+
name: "deviceId",
|
|
87031
|
+
form: "single",
|
|
87032
|
+
optional: false
|
|
87033
|
+
}],
|
|
85836
87034
|
"heatingValve.getStatus": [{
|
|
85837
87035
|
name: "deviceId",
|
|
85838
87036
|
form: "single",
|
|
@@ -86033,6 +87231,11 @@ Object.freeze({
|
|
|
86033
87231
|
form: "single",
|
|
86034
87232
|
optional: false
|
|
86035
87233
|
}],
|
|
87234
|
+
"meter.getStatus": [{
|
|
87235
|
+
name: "deviceId",
|
|
87236
|
+
form: "single",
|
|
87237
|
+
optional: false
|
|
87238
|
+
}],
|
|
86036
87239
|
"motion.getStatus": [{
|
|
86037
87240
|
name: "deviceId",
|
|
86038
87241
|
form: "single",
|
|
@@ -87640,7 +88843,6 @@ Object.freeze({
|
|
|
87640
88843
|
"network-access": "ingress",
|
|
87641
88844
|
"smtp-provider": "email"
|
|
87642
88845
|
});
|
|
87643
|
-
DeviceType.Camera;
|
|
87644
88846
|
/**
|
|
87645
88847
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87646
88848
|
* `z.infer`, they do not restate the shape.
|
|
@@ -87817,6 +89019,8 @@ new Map(Object.entries({
|
|
|
87817
89019
|
"detection-blind": "device-events",
|
|
87818
89020
|
"motion-noisy": "device-events",
|
|
87819
89021
|
"motion-calm": "device-events",
|
|
89022
|
+
"package-llm-silent": "device-events",
|
|
89023
|
+
"package-llm-answered": "device-events",
|
|
87820
89024
|
"recording-stalled": "device-events",
|
|
87821
89025
|
"recording-healthy": "device-events",
|
|
87822
89026
|
"recording-degraded": "device-events",
|
|
@@ -87900,6 +89104,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
87900
89104
|
label: "Motion without a subject",
|
|
87901
89105
|
kinds: ["motion-noisy", "motion-calm"]
|
|
87902
89106
|
},
|
|
89107
|
+
{
|
|
89108
|
+
id: "package-llm",
|
|
89109
|
+
family: "device-events",
|
|
89110
|
+
label: "Package confirm",
|
|
89111
|
+
kinds: ["package-llm-silent", "package-llm-answered"]
|
|
89112
|
+
},
|
|
87903
89113
|
{
|
|
87904
89114
|
id: "recording",
|
|
87905
89115
|
family: "device-events",
|
|
@@ -88081,6 +89291,8 @@ var DEVICE_EVENTS = [
|
|
|
88081
89291
|
"detection-blind",
|
|
88082
89292
|
"motion-noisy",
|
|
88083
89293
|
"motion-calm",
|
|
89294
|
+
"package-llm-silent",
|
|
89295
|
+
"package-llm-answered",
|
|
88084
89296
|
"recording-stalled",
|
|
88085
89297
|
"recording-healthy",
|
|
88086
89298
|
"recording-degraded",
|
|
@@ -88349,6 +89561,15 @@ new Map([
|
|
|
88349
89561
|
snapshotLabel: "Cameras with constant motion now",
|
|
88350
89562
|
snapshotSection: null
|
|
88351
89563
|
},
|
|
89564
|
+
{
|
|
89565
|
+
id: "package-llm-confirm",
|
|
89566
|
+
family: "device-events",
|
|
89567
|
+
label: "Package confirm (not answering / answering again)",
|
|
89568
|
+
bad: ["package-llm-silent"],
|
|
89569
|
+
recovery: ["package-llm-answered"],
|
|
89570
|
+
snapshotLabel: "Cameras whose package confirm is not answering",
|
|
89571
|
+
snapshotSection: null
|
|
89572
|
+
},
|
|
88352
89573
|
{
|
|
88353
89574
|
id: "recording-health",
|
|
88354
89575
|
family: "device-events",
|