@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.js
CHANGED
|
@@ -8,7 +8,7 @@ let http = require("http");
|
|
|
8
8
|
let crypto$1 = require("crypto");
|
|
9
9
|
let fs_promises = require("fs/promises");
|
|
10
10
|
let path = require("path");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-CT-hz5Rb.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -334,6 +334,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
334
334
|
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
335
335
|
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
336
336
|
/**
|
|
337
|
+
* A camera's package LLM confirm has failed closed three times in a row
|
|
338
|
+
* (D931, 2026-10-26). One edge per camera until
|
|
339
|
+
* {@link PipelinePackageLlmAnswered}.
|
|
340
|
+
*/
|
|
341
|
+
EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
|
|
342
|
+
/** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
|
|
343
|
+
EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
|
|
344
|
+
/**
|
|
337
345
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
338
346
|
* (a settings change via `setAgentInferenceDevices` /
|
|
339
347
|
* `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
|
|
@@ -5576,7 +5584,7 @@ var ZodIssueCode = {
|
|
|
5576
5584
|
var ZodFirstPartyTypeKind;
|
|
5577
5585
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5578
5586
|
//#endregion
|
|
5579
|
-
//#region ../types/dist/sleep
|
|
5587
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5580
5588
|
/**
|
|
5581
5589
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5582
5590
|
* window to float samples (D455).
|
|
@@ -8957,6 +8965,9 @@ var CAP_NAMES = Object.freeze([
|
|
|
8957
8965
|
"filesystem-browse",
|
|
8958
8966
|
"flood",
|
|
8959
8967
|
"gas",
|
|
8968
|
+
"group-active",
|
|
8969
|
+
"group-commands",
|
|
8970
|
+
"group-status",
|
|
8960
8971
|
"heating-valve",
|
|
8961
8972
|
"humidifier",
|
|
8962
8973
|
"humidity-sensor",
|
|
@@ -8977,6 +8988,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8977
8988
|
"login-method",
|
|
8978
8989
|
"media-player",
|
|
8979
8990
|
"mesh-network",
|
|
8991
|
+
"meter",
|
|
8980
8992
|
"metrics-provider",
|
|
8981
8993
|
"model-convert",
|
|
8982
8994
|
"model-distributor",
|
|
@@ -9775,6 +9787,24 @@ Object.freeze({
|
|
|
9775
9787
|
"path": "detected",
|
|
9776
9788
|
"valueType": "boolean"
|
|
9777
9789
|
}],
|
|
9790
|
+
"group-active": [{
|
|
9791
|
+
"path": "active",
|
|
9792
|
+
"valueType": "boolean"
|
|
9793
|
+
}],
|
|
9794
|
+
"group-status": [
|
|
9795
|
+
{
|
|
9796
|
+
"path": "included",
|
|
9797
|
+
"valueType": "number"
|
|
9798
|
+
},
|
|
9799
|
+
{
|
|
9800
|
+
"path": "excluded",
|
|
9801
|
+
"valueType": "number"
|
|
9802
|
+
},
|
|
9803
|
+
{
|
|
9804
|
+
"path": "total",
|
|
9805
|
+
"valueType": "number"
|
|
9806
|
+
}
|
|
9807
|
+
],
|
|
9778
9808
|
"heating-valve": [{
|
|
9779
9809
|
"path": "position",
|
|
9780
9810
|
"valueType": "number"
|
|
@@ -10020,6 +10050,10 @@ Object.freeze({
|
|
|
10020
10050
|
]
|
|
10021
10051
|
}
|
|
10022
10052
|
],
|
|
10053
|
+
"meter": [{
|
|
10054
|
+
"path": "value",
|
|
10055
|
+
"valueType": "number"
|
|
10056
|
+
}],
|
|
10023
10057
|
"motion": [
|
|
10024
10058
|
{
|
|
10025
10059
|
"path": "detected",
|
|
@@ -10763,7 +10797,7 @@ object({
|
|
|
10763
10797
|
params: record(string(), union([string(), number()])).optional()
|
|
10764
10798
|
});
|
|
10765
10799
|
//#endregion
|
|
10766
|
-
//#region ../types/dist/err-msg-
|
|
10800
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10767
10801
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10768
10802
|
DeviceType["Camera"] = "camera";
|
|
10769
10803
|
DeviceType["Hub"] = "hub";
|
|
@@ -10857,8 +10891,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10857
10891
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10858
10892
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10859
10893
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10860
|
-
* 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. */
|
|
10861
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";
|
|
10862
10902
|
return DeviceType;
|
|
10863
10903
|
}({});
|
|
10864
10904
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -11116,7 +11156,7 @@ function errMsg(err) {
|
|
|
11116
11156
|
return String(err);
|
|
11117
11157
|
}
|
|
11118
11158
|
//#endregion
|
|
11119
|
-
//#region ../types/dist/composition-
|
|
11159
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
11120
11160
|
/**
|
|
11121
11161
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
11122
11162
|
*
|
|
@@ -11431,6 +11471,13 @@ var table = {
|
|
|
11431
11471
|
apply: () => {
|
|
11432
11472
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11433
11473
|
}
|
|
11474
|
+
},
|
|
11475
|
+
schmitt: {
|
|
11476
|
+
minArgs: 3,
|
|
11477
|
+
maxArgs: 5,
|
|
11478
|
+
apply: () => {
|
|
11479
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11480
|
+
}
|
|
11434
11481
|
}
|
|
11435
11482
|
};
|
|
11436
11483
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11871,15 +11918,232 @@ function validateExpressionSource(src) {
|
|
|
11871
11918
|
}
|
|
11872
11919
|
return null;
|
|
11873
11920
|
}
|
|
11874
|
-
/**
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
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
|
+
/**
|
|
12015
|
+
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
12016
|
+
* id. Split out so helper schemas can name it without a cycle through
|
|
12017
|
+
* `composition.ts` (D659).
|
|
12018
|
+
*/
|
|
11878
12019
|
var CompositionSourceRefSchema = object({
|
|
11879
12020
|
/** The owning addon; `stableId` is unique only within it. */
|
|
11880
12021
|
addonId: string().min(1),
|
|
11881
12022
|
stableId: string().min(1)
|
|
11882
12023
|
});
|
|
12024
|
+
var GROUP_TEMPLATE_IDS = [
|
|
12025
|
+
"temperature",
|
|
12026
|
+
"humidity",
|
|
12027
|
+
"pressure",
|
|
12028
|
+
"illuminance",
|
|
12029
|
+
"power",
|
|
12030
|
+
"energy",
|
|
12031
|
+
"battery",
|
|
12032
|
+
"numeric",
|
|
12033
|
+
"motion",
|
|
12034
|
+
"contact",
|
|
12035
|
+
"leak",
|
|
12036
|
+
"smoke",
|
|
12037
|
+
"occupancy",
|
|
12038
|
+
"binary",
|
|
12039
|
+
"switch",
|
|
12040
|
+
"light",
|
|
12041
|
+
"fan",
|
|
12042
|
+
"cover",
|
|
12043
|
+
"valve",
|
|
12044
|
+
"lock",
|
|
12045
|
+
"media-player",
|
|
12046
|
+
"climate"
|
|
12047
|
+
];
|
|
12048
|
+
var NUMERIC_AGGREGATES = [
|
|
12049
|
+
"mean",
|
|
12050
|
+
"median",
|
|
12051
|
+
"min",
|
|
12052
|
+
"max",
|
|
12053
|
+
"sum"
|
|
12054
|
+
];
|
|
12055
|
+
var BINARY_AGGREGATES = ["any", "all"];
|
|
12056
|
+
/** How an actuator group decides it is on. Unknown members never count as off. */
|
|
12057
|
+
var ACTIVE_CRITERIA = ["at-least-one", "all"];
|
|
12058
|
+
var AGGREGATE_REDUCERS = [
|
|
12059
|
+
"mean",
|
|
12060
|
+
"median",
|
|
12061
|
+
"min",
|
|
12062
|
+
"max",
|
|
12063
|
+
"sum",
|
|
12064
|
+
"any",
|
|
12065
|
+
"all"
|
|
12066
|
+
];
|
|
12067
|
+
var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
|
|
12068
|
+
var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
|
|
12069
|
+
var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
|
|
12070
|
+
/** One member. The field is stored so occupancy can name motion or binary. */
|
|
12071
|
+
var HelperMemberSchema = object({
|
|
12072
|
+
source: CompositionSourceRefSchema,
|
|
12073
|
+
cap: string().min(1),
|
|
12074
|
+
fieldPath: string().min(1)
|
|
12075
|
+
});
|
|
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
|
+
]);
|
|
12143
|
+
/** A composed device's stableId is this prefix plus the block id. */
|
|
12144
|
+
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
12145
|
+
/** Longest snippet a `code` source may carry (slice 4). */
|
|
12146
|
+
var MAX_COMPOSITION_CODE_LENGTH = 2e4;
|
|
11883
12147
|
/** One field of one capability of one source device. */
|
|
11884
12148
|
var CompositionFieldReadSchema = object({
|
|
11885
12149
|
source: CompositionSourceRefSchema,
|
|
@@ -11923,7 +12187,59 @@ var CompositionCodeSourceSchema = object({
|
|
|
11923
12187
|
var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
11924
12188
|
CompositionFromSourceSchema,
|
|
11925
12189
|
CompositionExpressionSourceSchema,
|
|
11926
|
-
CompositionCodeSourceSchema
|
|
12190
|
+
CompositionCodeSourceSchema,
|
|
12191
|
+
object({
|
|
12192
|
+
kind: literal("aggregate"),
|
|
12193
|
+
reducer: _enum([
|
|
12194
|
+
"mean",
|
|
12195
|
+
"median",
|
|
12196
|
+
"min",
|
|
12197
|
+
"max",
|
|
12198
|
+
"sum",
|
|
12199
|
+
"any",
|
|
12200
|
+
"all"
|
|
12201
|
+
]),
|
|
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(),
|
|
12209
|
+
/** `value` is the reading; the others are the member counts. */
|
|
12210
|
+
publish: _enum([
|
|
12211
|
+
"value",
|
|
12212
|
+
"included",
|
|
12213
|
+
"excluded",
|
|
12214
|
+
"total"
|
|
12215
|
+
]),
|
|
12216
|
+
/** What a `value` publish does when nobody is included. Counts ignore this. */
|
|
12217
|
+
empty: _enum([
|
|
12218
|
+
"null",
|
|
12219
|
+
"omit",
|
|
12220
|
+
"offline"
|
|
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
|
+
])
|
|
12242
|
+
})
|
|
11927
12243
|
]);
|
|
11928
12244
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
11929
12245
|
kind: literal("forward"),
|
|
@@ -11969,7 +12285,13 @@ var CompositionSchema = object({
|
|
|
11969
12285
|
kind: literal("existing"),
|
|
11970
12286
|
device: CompositionSourceRefSchema
|
|
11971
12287
|
})]),
|
|
11972
|
-
features: array(CompositionFeatureSchema).min(1).max(16)
|
|
12288
|
+
features: array(CompositionFeatureSchema).min(1).max(16),
|
|
12289
|
+
/**
|
|
12290
|
+
* Present when the block is a helper template. Absent on a free
|
|
12291
|
+
* composition (the room example, device 4603). The editor reads this,
|
|
12292
|
+
* never the compiled features.
|
|
12293
|
+
*/
|
|
12294
|
+
helper: HelperSpecSchema.optional()
|
|
11973
12295
|
}).superRefine((composition, ctx) => {
|
|
11974
12296
|
const seen = /* @__PURE__ */ new Set();
|
|
11975
12297
|
composition.features.forEach((feature, index) => {
|
|
@@ -17076,7 +17398,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
17076
17398
|
*/
|
|
17077
17399
|
interactiveConnectPath: string().min(1).optional(),
|
|
17078
17400
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
17079
|
-
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()
|
|
17080
17417
|
}))
|
|
17081
17418
|
});
|
|
17082
17419
|
var ListInputSchema = object({
|
|
@@ -18227,7 +18564,11 @@ var CompositionProblemSchema = object({
|
|
|
18227
18564
|
"target-missing",
|
|
18228
18565
|
"target-unreadable",
|
|
18229
18566
|
"not-replaceable",
|
|
18230
|
-
"native-capability-replace"
|
|
18567
|
+
"native-capability-replace",
|
|
18568
|
+
"mixed-quantity",
|
|
18569
|
+
"helper-mismatch",
|
|
18570
|
+
"member-constraint",
|
|
18571
|
+
"retention"
|
|
18231
18572
|
]),
|
|
18232
18573
|
path: string(),
|
|
18233
18574
|
message: string()
|
|
@@ -18248,7 +18589,8 @@ var CompositionUnavailableModeSchema = _enum([
|
|
|
18248
18589
|
"null",
|
|
18249
18590
|
"offline",
|
|
18250
18591
|
"unknown",
|
|
18251
|
-
"release"
|
|
18592
|
+
"release",
|
|
18593
|
+
"omit"
|
|
18252
18594
|
]);
|
|
18253
18595
|
/**
|
|
18254
18596
|
* `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
|
|
@@ -18460,8 +18802,392 @@ Object.freeze({
|
|
|
18460
18802
|
latchedAt: {
|
|
18461
18803
|
kind: "fixed",
|
|
18462
18804
|
result: ["number", "null"]
|
|
18805
|
+
},
|
|
18806
|
+
schmitt: {
|
|
18807
|
+
kind: "fixed",
|
|
18808
|
+
result: ["boolean", "null"]
|
|
18463
18809
|
}
|
|
18464
18810
|
});
|
|
18811
|
+
/**
|
|
18812
|
+
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18813
|
+
* Data, not a form default written into the block.
|
|
18814
|
+
*/
|
|
18815
|
+
var NOW$2 = {
|
|
18816
|
+
fieldPath: "lastFetchedAt",
|
|
18817
|
+
expr: "now"
|
|
18818
|
+
};
|
|
18819
|
+
var CHANGED = {
|
|
18820
|
+
fieldPath: "lastChangedAt",
|
|
18821
|
+
expr: "now"
|
|
18822
|
+
};
|
|
18823
|
+
function numeric(input) {
|
|
18824
|
+
return {
|
|
18825
|
+
...input,
|
|
18826
|
+
family: "numeric",
|
|
18827
|
+
deviceType: DeviceType.Sensor,
|
|
18828
|
+
memberDeviceType: DeviceType.Sensor,
|
|
18829
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18830
|
+
activeWhen: void 0,
|
|
18831
|
+
commandCaps: [],
|
|
18832
|
+
baseUnit: baseUnitOf(input.quantity),
|
|
18833
|
+
aggregates: NUMERIC_AGGREGATES,
|
|
18834
|
+
accept: [{
|
|
18835
|
+
cap: input.outputCap,
|
|
18836
|
+
fieldPath: input.outputField
|
|
18837
|
+
}]
|
|
18838
|
+
};
|
|
18839
|
+
}
|
|
18840
|
+
function binary(input) {
|
|
18841
|
+
return {
|
|
18842
|
+
...input,
|
|
18843
|
+
family: "binary",
|
|
18844
|
+
deviceType: DeviceType.Sensor,
|
|
18845
|
+
memberDeviceType: DeviceType.Sensor,
|
|
18846
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18847
|
+
activeWhen: void 0,
|
|
18848
|
+
commandCaps: [],
|
|
18849
|
+
quantity: "none",
|
|
18850
|
+
baseUnit: void 0,
|
|
18851
|
+
aggregates: BINARY_AGGREGATES,
|
|
18852
|
+
empty: "offline"
|
|
18853
|
+
};
|
|
18854
|
+
}
|
|
18855
|
+
var GROUP_TEMPLATES = [
|
|
18856
|
+
numeric({
|
|
18857
|
+
id: "temperature",
|
|
18858
|
+
summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
|
|
18859
|
+
role: DeviceRole.TemperatureSensor,
|
|
18860
|
+
outputCap: "temperature-sensor",
|
|
18861
|
+
outputField: "celsius",
|
|
18862
|
+
quantity: "temperature",
|
|
18863
|
+
defaultAggregate: "mean",
|
|
18864
|
+
empty: "null",
|
|
18865
|
+
companions: [NOW$2]
|
|
18866
|
+
}),
|
|
18867
|
+
numeric({
|
|
18868
|
+
id: "humidity",
|
|
18869
|
+
summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
18870
|
+
role: DeviceRole.HumiditySensor,
|
|
18871
|
+
outputCap: "humidity-sensor",
|
|
18872
|
+
outputField: "percent",
|
|
18873
|
+
quantity: "humidity",
|
|
18874
|
+
defaultAggregate: "mean",
|
|
18875
|
+
empty: "null",
|
|
18876
|
+
companions: [NOW$2]
|
|
18877
|
+
}),
|
|
18878
|
+
numeric({
|
|
18879
|
+
id: "pressure",
|
|
18880
|
+
summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
|
|
18881
|
+
role: DeviceRole.PressureSensor,
|
|
18882
|
+
outputCap: "pressure-sensor",
|
|
18883
|
+
outputField: "hpa",
|
|
18884
|
+
quantity: "pressure",
|
|
18885
|
+
defaultAggregate: "mean",
|
|
18886
|
+
empty: "null",
|
|
18887
|
+
companions: [NOW$2]
|
|
18888
|
+
}),
|
|
18889
|
+
numeric({
|
|
18890
|
+
id: "illuminance",
|
|
18891
|
+
summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
|
|
18892
|
+
role: DeviceRole.AmbientLightSensor,
|
|
18893
|
+
outputCap: "ambient-light-sensor",
|
|
18894
|
+
outputField: "lux",
|
|
18895
|
+
quantity: "illuminance",
|
|
18896
|
+
defaultAggregate: "mean",
|
|
18897
|
+
empty: "null",
|
|
18898
|
+
companions: [NOW$2]
|
|
18899
|
+
}),
|
|
18900
|
+
numeric({
|
|
18901
|
+
id: "power",
|
|
18902
|
+
summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
|
|
18903
|
+
role: DeviceRole.PowerSensor,
|
|
18904
|
+
outputCap: "power-meter",
|
|
18905
|
+
outputField: "watts",
|
|
18906
|
+
quantity: "power",
|
|
18907
|
+
defaultAggregate: "sum",
|
|
18908
|
+
empty: "omit",
|
|
18909
|
+
companions: [NOW$2]
|
|
18910
|
+
}),
|
|
18911
|
+
numeric({
|
|
18912
|
+
id: "energy",
|
|
18913
|
+
summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
|
|
18914
|
+
role: DeviceRole.EnergySensor,
|
|
18915
|
+
outputCap: "power-meter",
|
|
18916
|
+
outputField: "kwhTotal",
|
|
18917
|
+
quantity: "energy",
|
|
18918
|
+
defaultAggregate: "sum",
|
|
18919
|
+
empty: "omit",
|
|
18920
|
+
companions: [NOW$2]
|
|
18921
|
+
}),
|
|
18922
|
+
numeric({
|
|
18923
|
+
id: "battery",
|
|
18924
|
+
summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
18925
|
+
role: DeviceRole.BatterySensor,
|
|
18926
|
+
outputCap: "battery",
|
|
18927
|
+
outputField: "percentage",
|
|
18928
|
+
quantity: "percentage",
|
|
18929
|
+
defaultAggregate: "mean",
|
|
18930
|
+
empty: "null",
|
|
18931
|
+
companions: [
|
|
18932
|
+
{
|
|
18933
|
+
fieldPath: "charging",
|
|
18934
|
+
expr: "\"unknown\""
|
|
18935
|
+
},
|
|
18936
|
+
{
|
|
18937
|
+
fieldPath: "sleeping",
|
|
18938
|
+
expr: "false"
|
|
18939
|
+
},
|
|
18940
|
+
{
|
|
18941
|
+
fieldPath: "lastUpdated",
|
|
18942
|
+
expr: "now"
|
|
18943
|
+
}
|
|
18944
|
+
]
|
|
18945
|
+
}),
|
|
18946
|
+
numeric({
|
|
18947
|
+
id: "numeric",
|
|
18948
|
+
summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
|
|
18949
|
+
role: DeviceRole.NumericSensor,
|
|
18950
|
+
outputCap: "numeric-sensor",
|
|
18951
|
+
outputField: "value",
|
|
18952
|
+
quantity: "device",
|
|
18953
|
+
defaultAggregate: "mean",
|
|
18954
|
+
empty: "null",
|
|
18955
|
+
companions: [NOW$2]
|
|
18956
|
+
}),
|
|
18957
|
+
binary({
|
|
18958
|
+
id: "motion",
|
|
18959
|
+
summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
|
|
18960
|
+
role: DeviceRole.MotionSensor,
|
|
18961
|
+
outputCap: "motion",
|
|
18962
|
+
outputField: "detected",
|
|
18963
|
+
defaultAggregate: "any",
|
|
18964
|
+
accept: [{
|
|
18965
|
+
cap: "motion",
|
|
18966
|
+
fieldPath: "detected"
|
|
18967
|
+
}],
|
|
18968
|
+
companions: [{
|
|
18969
|
+
fieldPath: "lastDetectedAt",
|
|
18970
|
+
expr: "null"
|
|
18971
|
+
}, {
|
|
18972
|
+
fieldPath: "autoClearAfterMs",
|
|
18973
|
+
expr: "null"
|
|
18974
|
+
}]
|
|
18975
|
+
}),
|
|
18976
|
+
binary({
|
|
18977
|
+
id: "contact",
|
|
18978
|
+
summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
|
|
18979
|
+
role: DeviceRole.ContactSensor,
|
|
18980
|
+
outputCap: "contact",
|
|
18981
|
+
outputField: "entryOpen",
|
|
18982
|
+
defaultAggregate: "any",
|
|
18983
|
+
accept: [{
|
|
18984
|
+
cap: "contact",
|
|
18985
|
+
fieldPath: "entryOpen"
|
|
18986
|
+
}],
|
|
18987
|
+
companions: [CHANGED]
|
|
18988
|
+
}),
|
|
18989
|
+
binary({
|
|
18990
|
+
id: "leak",
|
|
18991
|
+
summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
|
|
18992
|
+
role: DeviceRole.LeakSensor,
|
|
18993
|
+
outputCap: "flood",
|
|
18994
|
+
outputField: "flooded",
|
|
18995
|
+
defaultAggregate: "any",
|
|
18996
|
+
accept: [{
|
|
18997
|
+
cap: "flood",
|
|
18998
|
+
fieldPath: "flooded"
|
|
18999
|
+
}],
|
|
19000
|
+
companions: [CHANGED]
|
|
19001
|
+
}),
|
|
19002
|
+
binary({
|
|
19003
|
+
id: "smoke",
|
|
19004
|
+
summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
|
|
19005
|
+
role: DeviceRole.SmokeSensor,
|
|
19006
|
+
outputCap: "smoke",
|
|
19007
|
+
outputField: "detected",
|
|
19008
|
+
defaultAggregate: "any",
|
|
19009
|
+
accept: [{
|
|
19010
|
+
cap: "smoke",
|
|
19011
|
+
fieldPath: "detected"
|
|
19012
|
+
}],
|
|
19013
|
+
companions: [CHANGED]
|
|
19014
|
+
}),
|
|
19015
|
+
binary({
|
|
19016
|
+
id: "occupancy",
|
|
19017
|
+
summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
|
|
19018
|
+
role: DeviceRole.BinarySensor,
|
|
19019
|
+
outputCap: "binary",
|
|
19020
|
+
outputField: "on",
|
|
19021
|
+
defaultAggregate: "any",
|
|
19022
|
+
accept: [{
|
|
19023
|
+
cap: "motion",
|
|
19024
|
+
fieldPath: "detected"
|
|
19025
|
+
}, {
|
|
19026
|
+
cap: "binary",
|
|
19027
|
+
fieldPath: "on"
|
|
19028
|
+
}],
|
|
19029
|
+
companions: [CHANGED]
|
|
19030
|
+
}),
|
|
19031
|
+
binary({
|
|
19032
|
+
id: "binary",
|
|
19033
|
+
summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
|
|
19034
|
+
role: DeviceRole.BinarySensor,
|
|
19035
|
+
outputCap: "binary",
|
|
19036
|
+
outputField: "on",
|
|
19037
|
+
defaultAggregate: "any",
|
|
19038
|
+
accept: [{
|
|
19039
|
+
cap: "binary",
|
|
19040
|
+
fieldPath: "on"
|
|
19041
|
+
}],
|
|
19042
|
+
companions: [CHANGED]
|
|
19043
|
+
}),
|
|
19044
|
+
actuator({
|
|
19045
|
+
id: "switch",
|
|
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.",
|
|
19047
|
+
deviceType: DeviceType.Switch,
|
|
19048
|
+
outputCap: "switch",
|
|
19049
|
+
outputField: "on",
|
|
19050
|
+
member: {
|
|
19051
|
+
cap: "switch",
|
|
19052
|
+
fieldPath: "on"
|
|
19053
|
+
},
|
|
19054
|
+
commandCaps: ["switch"]
|
|
19055
|
+
}),
|
|
19056
|
+
actuator({
|
|
19057
|
+
id: "light",
|
|
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.",
|
|
19059
|
+
deviceType: DeviceType.Light,
|
|
19060
|
+
outputCap: "switch",
|
|
19061
|
+
outputField: "on",
|
|
19062
|
+
member: {
|
|
19063
|
+
cap: "switch",
|
|
19064
|
+
fieldPath: "on"
|
|
19065
|
+
},
|
|
19066
|
+
commandCaps: [
|
|
19067
|
+
"switch",
|
|
19068
|
+
"brightness",
|
|
19069
|
+
"color"
|
|
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"]
|
|
19164
|
+
})
|
|
19165
|
+
];
|
|
19166
|
+
function actuator(input) {
|
|
19167
|
+
return {
|
|
19168
|
+
id: input.id,
|
|
19169
|
+
summary: input.summary,
|
|
19170
|
+
deviceType: input.deviceType,
|
|
19171
|
+
outputCap: input.outputCap,
|
|
19172
|
+
outputField: input.outputField,
|
|
19173
|
+
commandCaps: input.commandCaps,
|
|
19174
|
+
family: "actuator",
|
|
19175
|
+
role: void 0,
|
|
19176
|
+
memberDeviceType: input.deviceType,
|
|
19177
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
19178
|
+
activeWhen: input.activeWhen,
|
|
19179
|
+
quantity: "none",
|
|
19180
|
+
baseUnit: void 0,
|
|
19181
|
+
aggregates: BINARY_AGGREGATES,
|
|
19182
|
+
defaultAggregate: "any",
|
|
19183
|
+
empty: "offline",
|
|
19184
|
+
accept: [input.member],
|
|
19185
|
+
companions: [CHANGED]
|
|
19186
|
+
};
|
|
19187
|
+
}
|
|
19188
|
+
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
19189
|
+
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
19190
|
+
DeviceType.Camera;
|
|
18465
19191
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18466
19192
|
/**
|
|
18467
19193
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43872,7 +44598,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43872
44598
|
});
|
|
43873
44599
|
/**
|
|
43874
44600
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43875
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44601
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43876
44602
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43877
44603
|
* the originating provider config (mode + sourcePort) so the
|
|
43878
44604
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -45468,6 +46194,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
45468
46194
|
"detection-blind",
|
|
45469
46195
|
"motion-noisy",
|
|
45470
46196
|
"motion-calm",
|
|
46197
|
+
"package-llm-silent",
|
|
46198
|
+
"package-llm-answered",
|
|
45471
46199
|
"recording-stalled",
|
|
45472
46200
|
"recording-healthy",
|
|
45473
46201
|
"recording-degraded",
|
|
@@ -46557,7 +47285,20 @@ var NcRuleInputSchema = object({
|
|
|
46557
47285
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46558
47286
|
* path does not run Zod defaults.
|
|
46559
47287
|
*/
|
|
46560
|
-
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()
|
|
46561
47302
|
});
|
|
46562
47303
|
/**
|
|
46563
47304
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -56559,6 +57300,28 @@ var PackageVersionInfoSchema = object({
|
|
|
56559
57300
|
deprecated: string().optional(),
|
|
56560
57301
|
distTags: array(string()).readonly()
|
|
56561
57302
|
});
|
|
57303
|
+
/**
|
|
57304
|
+
* One published document. `ok` is markdown from the registry. `missing` means
|
|
57305
|
+
* the registry answered and the file was not there. `error` is a registry or
|
|
57306
|
+
* tarball failure — never an empty string standing in for either.
|
|
57307
|
+
*/
|
|
57308
|
+
var PackageDocBodySchema = discriminatedUnion("status", [
|
|
57309
|
+
object({
|
|
57310
|
+
status: literal("ok"),
|
|
57311
|
+
markdown: string()
|
|
57312
|
+
}),
|
|
57313
|
+
object({ status: literal("missing") }),
|
|
57314
|
+
object({
|
|
57315
|
+
status: literal("error"),
|
|
57316
|
+
message: string()
|
|
57317
|
+
})
|
|
57318
|
+
]);
|
|
57319
|
+
var PackageDocsSchema = object({
|
|
57320
|
+
name: string(),
|
|
57321
|
+
version: string(),
|
|
57322
|
+
readme: PackageDocBodySchema,
|
|
57323
|
+
changelog: PackageDocBodySchema
|
|
57324
|
+
});
|
|
56562
57325
|
var SearchResultSchema = object({
|
|
56563
57326
|
name: string(),
|
|
56564
57327
|
version: string(),
|
|
@@ -56777,7 +57540,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
|
|
|
56777
57540
|
}), object({ success: literal(true) }), {
|
|
56778
57541
|
kind: "mutation",
|
|
56779
57542
|
auth: "admin"
|
|
56780
|
-
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
|
|
57543
|
+
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
|
|
57544
|
+
name: string().min(1),
|
|
57545
|
+
version: string().min(1).optional()
|
|
57546
|
+
}), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
56781
57547
|
kind: "mutation",
|
|
56782
57548
|
auth: "admin"
|
|
56783
57549
|
}), method(object({ packageName: string() }), object({ success: literal(true) }), {
|
|
@@ -57252,7 +58018,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57252
58018
|
DeviceType.Switch,
|
|
57253
58019
|
DeviceType.PetFeeder,
|
|
57254
58020
|
DeviceType.Container,
|
|
57255
|
-
DeviceType.Thermostat
|
|
58021
|
+
DeviceType.Thermostat,
|
|
58022
|
+
DeviceType.EventEmitter
|
|
57256
58023
|
];
|
|
57257
58024
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57258
58025
|
var batteryCustomize = {
|
|
@@ -60096,6 +60863,148 @@ var gasCapability = {
|
|
|
60096
60863
|
* whether persisting is worth a SQLite commit. */
|
|
60097
60864
|
volatileStateFields: ["lastChangedAt"]
|
|
60098
60865
|
};
|
|
60866
|
+
var GroupCommandsSchema = object({
|
|
60867
|
+
/** One row per member that has been commanded. A later command replaces that member's row. */
|
|
60868
|
+
results: array(object({
|
|
60869
|
+
deviceId: number().int().nonnegative(),
|
|
60870
|
+
cap: string().min(1),
|
|
60871
|
+
method: string().min(1),
|
|
60872
|
+
ok: boolean(),
|
|
60873
|
+
error: string().optional(),
|
|
60874
|
+
/** Ms epoch of the attempt. */
|
|
60875
|
+
at: number()
|
|
60876
|
+
})) });
|
|
60877
|
+
var groupCommandsCapability = {
|
|
60878
|
+
name: "group-commands",
|
|
60879
|
+
scope: "device",
|
|
60880
|
+
deviceNative: true,
|
|
60881
|
+
mode: "singleton",
|
|
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
|
+
],
|
|
60893
|
+
methods: {},
|
|
60894
|
+
status: {
|
|
60895
|
+
schema: GroupCommandsSchema,
|
|
60896
|
+
kind: "push"
|
|
60897
|
+
},
|
|
60898
|
+
runtimeState: GroupCommandsSchema,
|
|
60899
|
+
/**
|
|
60900
|
+
* Runtime-state durability: **session** — the last attempt. A restored
|
|
60901
|
+
* failure would outlive the command that caused it.
|
|
60902
|
+
*
|
|
60903
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60904
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60905
|
+
*/
|
|
60906
|
+
durability: "session",
|
|
60907
|
+
history: "none"
|
|
60908
|
+
};
|
|
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
|
+
/**
|
|
60953
|
+
* How many members of a helper group answered (D944). Counts are integers,
|
|
60954
|
+
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60955
|
+
* The reading itself stays on the output capability. History is none — the
|
|
60956
|
+
* series that later statistics read is the output cap's own history block.
|
|
60957
|
+
*/
|
|
60958
|
+
var GroupStatusSchema = object({
|
|
60959
|
+
/** Members whose current value entered the aggregate. */
|
|
60960
|
+
included: number().int().nonnegative().meta(readingMeta("count", {
|
|
60961
|
+
precision: 0,
|
|
60962
|
+
label: "Reporting"
|
|
60963
|
+
})),
|
|
60964
|
+
/** Members left out: offline, unknown, or not a finite reading (D393). */
|
|
60965
|
+
excluded: number().int().nonnegative().meta(readingMeta("count", {
|
|
60966
|
+
precision: 0,
|
|
60967
|
+
label: "Excluded"
|
|
60968
|
+
})),
|
|
60969
|
+
/** `included` + `excluded`. */
|
|
60970
|
+
total: number().int().nonnegative().meta(readingMeta("count", {
|
|
60971
|
+
precision: 0,
|
|
60972
|
+
label: "Members"
|
|
60973
|
+
}))
|
|
60974
|
+
});
|
|
60975
|
+
var groupStatusCapability = {
|
|
60976
|
+
name: "group-status",
|
|
60977
|
+
scope: "device",
|
|
60978
|
+
deviceNative: true,
|
|
60979
|
+
mode: "singleton",
|
|
60980
|
+
deviceTypes: [
|
|
60981
|
+
DeviceType.Sensor,
|
|
60982
|
+
DeviceType.Switch,
|
|
60983
|
+
DeviceType.Light,
|
|
60984
|
+
DeviceType.Fan,
|
|
60985
|
+
DeviceType.Cover,
|
|
60986
|
+
DeviceType.Valve,
|
|
60987
|
+
DeviceType.Lock,
|
|
60988
|
+
DeviceType.MediaPlayer,
|
|
60989
|
+
DeviceType.Thermostat,
|
|
60990
|
+
DeviceType.Climate
|
|
60991
|
+
],
|
|
60992
|
+
methods: {},
|
|
60993
|
+
status: {
|
|
60994
|
+
schema: GroupStatusSchema,
|
|
60995
|
+
kind: "push"
|
|
60996
|
+
},
|
|
60997
|
+
runtimeState: GroupStatusSchema,
|
|
60998
|
+
/**
|
|
60999
|
+
* Runtime-state durability: **session** — recomputed from members on the
|
|
61000
|
+
* next source event; a restored count would outlive the readings it named.
|
|
61001
|
+
*
|
|
61002
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61003
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61004
|
+
*/
|
|
61005
|
+
durability: "session",
|
|
61006
|
+
history: "none"
|
|
61007
|
+
};
|
|
60099
61008
|
var HeatingValveStatusSchema = object({
|
|
60100
61009
|
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
60101
61010
|
position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
|
|
@@ -61351,7 +62260,14 @@ var lockControlCapability = {
|
|
|
61351
62260
|
}),
|
|
61352
62261
|
unlock: method(object({
|
|
61353
62262
|
deviceId: number().int().nonnegative(),
|
|
61354
|
-
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()
|
|
61355
62271
|
}), _void(), {
|
|
61356
62272
|
kind: "mutation",
|
|
61357
62273
|
auth: "protected"
|
|
@@ -61388,6 +62304,44 @@ var lockControlCapability = {
|
|
|
61388
62304
|
volatileStateFields: ["lastChangedAt"]
|
|
61389
62305
|
};
|
|
61390
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
|
+
/**
|
|
61391
62345
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61392
62346
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61393
62347
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -61865,12 +62819,18 @@ var motionCapability = {
|
|
|
61865
62819
|
methods: {
|
|
61866
62820
|
/**
|
|
61867
62821
|
* Pull the current motion state synchronously. Convenience shortcut
|
|
61868
|
-
* for consumers that don't need the full status object
|
|
61869
|
-
*
|
|
61870
|
-
* `getStatus` once the auto-injected status surface lands in every
|
|
61871
|
-
* consumer.
|
|
62822
|
+
* for consumers that don't need the full status object. A composed
|
|
62823
|
+
* group answers from its slice (D944): unknown throws, it is not off.
|
|
61872
62824
|
*/
|
|
61873
62825
|
isDetected: method(object({ deviceId: number() }), boolean()) },
|
|
62826
|
+
/**
|
|
62827
|
+
* A composed motion group serves `isDetected` from `detected` (D944).
|
|
62828
|
+
* Without this the cap stays uncomposable (`has-commands`).
|
|
62829
|
+
*/
|
|
62830
|
+
composedMethods: { isDetected: {
|
|
62831
|
+
kind: "slice",
|
|
62832
|
+
field: "detected"
|
|
62833
|
+
} },
|
|
61874
62834
|
events: {
|
|
61875
62835
|
/**
|
|
61876
62836
|
* Fires every time the runner transitions a camera between
|
|
@@ -63893,9 +64853,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63893
64853
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63894
64854
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63895
64855
|
/** Voltage in volts. */
|
|
63896
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64856
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63897
64857
|
/** Current in amperes. */
|
|
63898
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64858
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63899
64859
|
/** Apparent power in volt-amperes. */
|
|
63900
64860
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63901
64861
|
/** Power factor (0..1) if reported. */
|
|
@@ -63903,12 +64863,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63903
64863
|
/** Ms epoch when the slice was last updated. */
|
|
63904
64864
|
lastFetchedAt: number()
|
|
63905
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
|
+
};
|
|
63906
64928
|
var powerMeterCapability = {
|
|
63907
64929
|
name: "power-meter",
|
|
63908
64930
|
scope: "device",
|
|
63909
64931
|
deviceNative: true,
|
|
63910
64932
|
mode: "singleton",
|
|
63911
|
-
deviceTypes:
|
|
64933
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63912
64934
|
methods: {},
|
|
63913
64935
|
status: {
|
|
63914
64936
|
schema: PowerMeterStatusSchema,
|
|
@@ -63965,7 +64987,8 @@ var powerMeterCapability = {
|
|
|
63965
64987
|
} },
|
|
63966
64988
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63967
64989
|
* whether persisting is worth a SQLite commit. */
|
|
63968
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64990
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64991
|
+
customize: powerMeterCustomize
|
|
63969
64992
|
};
|
|
63970
64993
|
/**
|
|
63971
64994
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64646,6 +65669,8 @@ var runningCustomize = {
|
|
|
64646
65669
|
stateField: "running"
|
|
64647
65670
|
},
|
|
64648
65671
|
deviceTypes: [
|
|
65672
|
+
DeviceType.Washer,
|
|
65673
|
+
DeviceType.Dryer,
|
|
64649
65674
|
DeviceType.Dishwasher,
|
|
64650
65675
|
DeviceType.Vacuum,
|
|
64651
65676
|
DeviceType.LawnMower,
|
|
@@ -67135,7 +68160,8 @@ var switchCapability = {
|
|
|
67135
68160
|
deviceTypes: [
|
|
67136
68161
|
DeviceType.Switch,
|
|
67137
68162
|
DeviceType.Siren,
|
|
67138
|
-
DeviceType.Light
|
|
68163
|
+
DeviceType.Light,
|
|
68164
|
+
DeviceType.Fan
|
|
67139
68165
|
],
|
|
67140
68166
|
methods: { setState: method(object({
|
|
67141
68167
|
deviceId: number(),
|
|
@@ -69348,6 +70374,7 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69348
70374
|
kind: "mutation",
|
|
69349
70375
|
auth: "admin"
|
|
69350
70376
|
});
|
|
70377
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69351
70378
|
/**
|
|
69352
70379
|
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
69353
70380
|
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
@@ -69732,7 +70759,7 @@ function tryConvertUnit(value, from, to) {
|
|
|
69732
70759
|
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
69733
70760
|
}
|
|
69734
70761
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69735
|
-
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;
|
|
69736
70763
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69737
70764
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69738
70765
|
new Set(CAP_NAMES);
|
|
@@ -70061,6 +71088,9 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70061
71088
|
featureProbe: featureProbeCapability,
|
|
70062
71089
|
flood: floodCapability,
|
|
70063
71090
|
gas: gasCapability,
|
|
71091
|
+
groupActive: groupActiveCapability,
|
|
71092
|
+
groupCommands: groupCommandsCapability,
|
|
71093
|
+
groupStatus: groupStatusCapability,
|
|
70064
71094
|
heatingValve: heatingValveCapability,
|
|
70065
71095
|
humidifier: humidifierCapability,
|
|
70066
71096
|
humiditySensor: humiditySensorCapability,
|
|
@@ -70070,6 +71100,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70070
71100
|
lawnMowerControl: lawnMowerControlCapability,
|
|
70071
71101
|
lockControl: lockControlCapability,
|
|
70072
71102
|
mediaPlayer: mediaPlayerCapability,
|
|
71103
|
+
meter: meterCapability,
|
|
70073
71104
|
motion: motionCapability,
|
|
70074
71105
|
motionTrigger: motionTriggerCapability,
|
|
70075
71106
|
motionZones: motionZonesCapability,
|
|
@@ -71329,7 +72360,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71329
72360
|
return toDeviceSummary(device, this.addonId);
|
|
71330
72361
|
}
|
|
71331
72362
|
};
|
|
71332
|
-
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;
|
|
71333
72364
|
new Set(Object.values(DeviceType));
|
|
71334
72365
|
Object.freeze({
|
|
71335
72366
|
"accessories.getStatus": {
|
|
@@ -71437,6 +72468,13 @@ Object.freeze({
|
|
|
71437
72468
|
access: "view",
|
|
71438
72469
|
role: "admin"
|
|
71439
72470
|
},
|
|
72471
|
+
"addons.getPackageDocs": {
|
|
72472
|
+
capName: "addons",
|
|
72473
|
+
capScope: "system",
|
|
72474
|
+
addonId: null,
|
|
72475
|
+
access: "view",
|
|
72476
|
+
role: "admin"
|
|
72477
|
+
},
|
|
71440
72478
|
"addons.getVersions": {
|
|
71441
72479
|
capName: "addons",
|
|
71442
72480
|
capScope: "system",
|
|
@@ -74545,6 +75583,27 @@ Object.freeze({
|
|
|
74545
75583
|
access: "view",
|
|
74546
75584
|
role: "viewer"
|
|
74547
75585
|
},
|
|
75586
|
+
"groupActive.getStatus": {
|
|
75587
|
+
capName: "group-active",
|
|
75588
|
+
capScope: "device",
|
|
75589
|
+
addonId: null,
|
|
75590
|
+
access: "view",
|
|
75591
|
+
role: "viewer"
|
|
75592
|
+
},
|
|
75593
|
+
"groupCommands.getStatus": {
|
|
75594
|
+
capName: "group-commands",
|
|
75595
|
+
capScope: "device",
|
|
75596
|
+
addonId: null,
|
|
75597
|
+
access: "view",
|
|
75598
|
+
role: "viewer"
|
|
75599
|
+
},
|
|
75600
|
+
"groupStatus.getStatus": {
|
|
75601
|
+
capName: "group-status",
|
|
75602
|
+
capScope: "device",
|
|
75603
|
+
addonId: null,
|
|
75604
|
+
access: "view",
|
|
75605
|
+
role: "viewer"
|
|
75606
|
+
},
|
|
74548
75607
|
"heatingValve.getStatus": {
|
|
74549
75608
|
capName: "heating-valve",
|
|
74550
75609
|
capScope: "device",
|
|
@@ -75497,6 +76556,13 @@ Object.freeze({
|
|
|
75497
76556
|
access: "create",
|
|
75498
76557
|
role: "admin"
|
|
75499
76558
|
},
|
|
76559
|
+
"meter.getStatus": {
|
|
76560
|
+
capName: "meter",
|
|
76561
|
+
capScope: "device",
|
|
76562
|
+
addonId: null,
|
|
76563
|
+
access: "view",
|
|
76564
|
+
role: "viewer"
|
|
76565
|
+
},
|
|
75500
76566
|
"metricsProvider.collectSnapshot": {
|
|
75501
76567
|
capName: "metrics-provider",
|
|
75502
76568
|
capScope: "system",
|
|
@@ -83595,7 +84661,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83595
84661
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83596
84662
|
icon: "square"
|
|
83597
84663
|
}
|
|
83598
|
-
}
|
|
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
|
+
} }
|
|
83599
84697
|
},
|
|
83600
84698
|
update: {
|
|
83601
84699
|
scope: "device",
|
|
@@ -84367,6 +85465,41 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84367
85465
|
icon: "flame"
|
|
84368
85466
|
}]
|
|
84369
85467
|
},
|
|
85468
|
+
"group-active": {
|
|
85469
|
+
scope: "device",
|
|
85470
|
+
noun: t("Group state", "Stato del gruppo")
|
|
85471
|
+
},
|
|
85472
|
+
"group-commands": {
|
|
85473
|
+
scope: "device",
|
|
85474
|
+
noun: t("Group command", "Comando di gruppo")
|
|
85475
|
+
},
|
|
85476
|
+
"group-status": {
|
|
85477
|
+
scope: "device",
|
|
85478
|
+
noun: t("Group", "Gruppo"),
|
|
85479
|
+
state: [
|
|
85480
|
+
{
|
|
85481
|
+
kind: "numeric",
|
|
85482
|
+
field: "included",
|
|
85483
|
+
quantity: t("the members reporting", "i membri che rispondono"),
|
|
85484
|
+
label: t("Reporting", "Rispondono"),
|
|
85485
|
+
icon: "users"
|
|
85486
|
+
},
|
|
85487
|
+
{
|
|
85488
|
+
kind: "numeric",
|
|
85489
|
+
field: "excluded",
|
|
85490
|
+
quantity: t("the members left out", "i membri esclusi"),
|
|
85491
|
+
label: t("Excluded", "Esclusi"),
|
|
85492
|
+
icon: "users"
|
|
85493
|
+
},
|
|
85494
|
+
{
|
|
85495
|
+
kind: "numeric",
|
|
85496
|
+
field: "total",
|
|
85497
|
+
quantity: t("the member count", "il numero di membri"),
|
|
85498
|
+
label: t("Members", "Membri"),
|
|
85499
|
+
icon: "sigma"
|
|
85500
|
+
}
|
|
85501
|
+
]
|
|
85502
|
+
},
|
|
84370
85503
|
"humidity-sensor": {
|
|
84371
85504
|
scope: "device",
|
|
84372
85505
|
noun: t("Humidity", "Umidità"),
|
|
@@ -84392,6 +85525,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84392
85525
|
}],
|
|
84393
85526
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84394
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
|
+
},
|
|
84395
85539
|
"numeric-sensor": {
|
|
84396
85540
|
scope: "device",
|
|
84397
85541
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84864,8 +86008,47 @@ function projectAction(cap, action) {
|
|
|
84864
86008
|
};
|
|
84865
86009
|
}
|
|
84866
86010
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84867
|
-
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;
|
|
84868
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);
|
|
84869
86052
|
Object.freeze({
|
|
84870
86053
|
"accessories.getStatus": [{
|
|
84871
86054
|
name: "deviceId",
|
|
@@ -85832,6 +87015,21 @@ Object.freeze({
|
|
|
85832
87015
|
form: "single",
|
|
85833
87016
|
optional: false
|
|
85834
87017
|
}],
|
|
87018
|
+
"groupActive.getStatus": [{
|
|
87019
|
+
name: "deviceId",
|
|
87020
|
+
form: "single",
|
|
87021
|
+
optional: false
|
|
87022
|
+
}],
|
|
87023
|
+
"groupCommands.getStatus": [{
|
|
87024
|
+
name: "deviceId",
|
|
87025
|
+
form: "single",
|
|
87026
|
+
optional: false
|
|
87027
|
+
}],
|
|
87028
|
+
"groupStatus.getStatus": [{
|
|
87029
|
+
name: "deviceId",
|
|
87030
|
+
form: "single",
|
|
87031
|
+
optional: false
|
|
87032
|
+
}],
|
|
85835
87033
|
"heatingValve.getStatus": [{
|
|
85836
87034
|
name: "deviceId",
|
|
85837
87035
|
form: "single",
|
|
@@ -86032,6 +87230,11 @@ Object.freeze({
|
|
|
86032
87230
|
form: "single",
|
|
86033
87231
|
optional: false
|
|
86034
87232
|
}],
|
|
87233
|
+
"meter.getStatus": [{
|
|
87234
|
+
name: "deviceId",
|
|
87235
|
+
form: "single",
|
|
87236
|
+
optional: false
|
|
87237
|
+
}],
|
|
86035
87238
|
"motion.getStatus": [{
|
|
86036
87239
|
name: "deviceId",
|
|
86037
87240
|
form: "single",
|
|
@@ -87639,7 +88842,6 @@ Object.freeze({
|
|
|
87639
88842
|
"network-access": "ingress",
|
|
87640
88843
|
"smtp-provider": "email"
|
|
87641
88844
|
});
|
|
87642
|
-
DeviceType.Camera;
|
|
87643
88845
|
/**
|
|
87644
88846
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87645
88847
|
* `z.infer`, they do not restate the shape.
|
|
@@ -87816,6 +89018,8 @@ new Map(Object.entries({
|
|
|
87816
89018
|
"detection-blind": "device-events",
|
|
87817
89019
|
"motion-noisy": "device-events",
|
|
87818
89020
|
"motion-calm": "device-events",
|
|
89021
|
+
"package-llm-silent": "device-events",
|
|
89022
|
+
"package-llm-answered": "device-events",
|
|
87819
89023
|
"recording-stalled": "device-events",
|
|
87820
89024
|
"recording-healthy": "device-events",
|
|
87821
89025
|
"recording-degraded": "device-events",
|
|
@@ -87899,6 +89103,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
87899
89103
|
label: "Motion without a subject",
|
|
87900
89104
|
kinds: ["motion-noisy", "motion-calm"]
|
|
87901
89105
|
},
|
|
89106
|
+
{
|
|
89107
|
+
id: "package-llm",
|
|
89108
|
+
family: "device-events",
|
|
89109
|
+
label: "Package confirm",
|
|
89110
|
+
kinds: ["package-llm-silent", "package-llm-answered"]
|
|
89111
|
+
},
|
|
87902
89112
|
{
|
|
87903
89113
|
id: "recording",
|
|
87904
89114
|
family: "device-events",
|
|
@@ -88080,6 +89290,8 @@ var DEVICE_EVENTS = [
|
|
|
88080
89290
|
"detection-blind",
|
|
88081
89291
|
"motion-noisy",
|
|
88082
89292
|
"motion-calm",
|
|
89293
|
+
"package-llm-silent",
|
|
89294
|
+
"package-llm-answered",
|
|
88083
89295
|
"recording-stalled",
|
|
88084
89296
|
"recording-healthy",
|
|
88085
89297
|
"recording-degraded",
|
|
@@ -88348,6 +89560,15 @@ new Map([
|
|
|
88348
89560
|
snapshotLabel: "Cameras with constant motion now",
|
|
88349
89561
|
snapshotSection: null
|
|
88350
89562
|
},
|
|
89563
|
+
{
|
|
89564
|
+
id: "package-llm-confirm",
|
|
89565
|
+
family: "device-events",
|
|
89566
|
+
label: "Package confirm (not answering / answering again)",
|
|
89567
|
+
bad: ["package-llm-silent"],
|
|
89568
|
+
recovery: ["package-llm-answered"],
|
|
89569
|
+
snapshotLabel: "Cameras whose package confirm is not answering",
|
|
89570
|
+
snapshotSection: null
|
|
89571
|
+
},
|
|
88351
89572
|
{
|
|
88352
89573
|
id: "recording-health",
|
|
88353
89574
|
family: "device-events",
|