@camstack/addon-provider-dreame 0.2.156 → 0.2.158
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 +39 -0
- package/dist/addon.js +1254 -33
- package/dist/addon.mjs +1254 -33
- package/package.json +4 -2
package/dist/addon.js
CHANGED
|
@@ -44,7 +44,7 @@ let net = require("net");
|
|
|
44
44
|
net = __toESM(net, 1);
|
|
45
45
|
let zlib = require("zlib");
|
|
46
46
|
zlib = __toESM(zlib, 1);
|
|
47
|
-
//#region ../types/dist/event-category-
|
|
47
|
+
//#region ../types/dist/event-category-CT-hz5Rb.mjs
|
|
48
48
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
49
49
|
EventCategory["SystemBoot"] = "system.boot";
|
|
50
50
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -370,6 +370,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
370
370
|
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
371
371
|
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
372
372
|
/**
|
|
373
|
+
* A camera's package LLM confirm has failed closed three times in a row
|
|
374
|
+
* (D931, 2026-10-26). One edge per camera until
|
|
375
|
+
* {@link PipelinePackageLlmAnswered}.
|
|
376
|
+
*/
|
|
377
|
+
EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
|
|
378
|
+
/** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
|
|
379
|
+
EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
|
|
380
|
+
/**
|
|
373
381
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
374
382
|
* (a settings change via `setAgentInferenceDevices` /
|
|
375
383
|
* `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
|
|
@@ -5479,7 +5487,7 @@ var ZodIssueCode$1 = {
|
|
|
5479
5487
|
var ZodFirstPartyTypeKind$1;
|
|
5480
5488
|
ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
|
|
5481
5489
|
//#endregion
|
|
5482
|
-
//#region ../types/dist/sleep
|
|
5490
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5483
5491
|
/**
|
|
5484
5492
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5485
5493
|
* window to float samples (D455).
|
|
@@ -8672,6 +8680,9 @@ var CAP_NAMES = Object.freeze([
|
|
|
8672
8680
|
"filesystem-browse",
|
|
8673
8681
|
"flood",
|
|
8674
8682
|
"gas",
|
|
8683
|
+
"group-active",
|
|
8684
|
+
"group-commands",
|
|
8685
|
+
"group-status",
|
|
8675
8686
|
"heating-valve",
|
|
8676
8687
|
"humidifier",
|
|
8677
8688
|
"humidity-sensor",
|
|
@@ -8692,6 +8703,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8692
8703
|
"login-method",
|
|
8693
8704
|
"media-player",
|
|
8694
8705
|
"mesh-network",
|
|
8706
|
+
"meter",
|
|
8695
8707
|
"metrics-provider",
|
|
8696
8708
|
"model-convert",
|
|
8697
8709
|
"model-distributor",
|
|
@@ -9490,6 +9502,24 @@ Object.freeze({
|
|
|
9490
9502
|
"path": "detected",
|
|
9491
9503
|
"valueType": "boolean"
|
|
9492
9504
|
}],
|
|
9505
|
+
"group-active": [{
|
|
9506
|
+
"path": "active",
|
|
9507
|
+
"valueType": "boolean"
|
|
9508
|
+
}],
|
|
9509
|
+
"group-status": [
|
|
9510
|
+
{
|
|
9511
|
+
"path": "included",
|
|
9512
|
+
"valueType": "number"
|
|
9513
|
+
},
|
|
9514
|
+
{
|
|
9515
|
+
"path": "excluded",
|
|
9516
|
+
"valueType": "number"
|
|
9517
|
+
},
|
|
9518
|
+
{
|
|
9519
|
+
"path": "total",
|
|
9520
|
+
"valueType": "number"
|
|
9521
|
+
}
|
|
9522
|
+
],
|
|
9493
9523
|
"heating-valve": [{
|
|
9494
9524
|
"path": "position",
|
|
9495
9525
|
"valueType": "number"
|
|
@@ -9735,6 +9765,10 @@ Object.freeze({
|
|
|
9735
9765
|
]
|
|
9736
9766
|
}
|
|
9737
9767
|
],
|
|
9768
|
+
"meter": [{
|
|
9769
|
+
"path": "value",
|
|
9770
|
+
"valueType": "number"
|
|
9771
|
+
}],
|
|
9738
9772
|
"motion": [
|
|
9739
9773
|
{
|
|
9740
9774
|
"path": "detected",
|
|
@@ -10492,7 +10526,7 @@ function userError(code, params, englishFallback) {
|
|
|
10492
10526
|
return new CamstackError(code, params, englishFallback);
|
|
10493
10527
|
}
|
|
10494
10528
|
//#endregion
|
|
10495
|
-
//#region ../types/dist/err-msg-
|
|
10529
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10496
10530
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10497
10531
|
DeviceType["Camera"] = "camera";
|
|
10498
10532
|
DeviceType["Hub"] = "hub";
|
|
@@ -10586,8 +10620,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10586
10620
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10587
10621
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10588
10622
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10589
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10623
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10624
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10590
10625
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10626
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10627
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10628
|
+
DeviceType["Washer"] = "washer";
|
|
10629
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10630
|
+
DeviceType["Dryer"] = "dryer";
|
|
10591
10631
|
return DeviceType;
|
|
10592
10632
|
}({});
|
|
10593
10633
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10845,7 +10885,7 @@ function errMsg(err) {
|
|
|
10845
10885
|
return String(err);
|
|
10846
10886
|
}
|
|
10847
10887
|
//#endregion
|
|
10848
|
-
//#region ../types/dist/composition-
|
|
10888
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10849
10889
|
/**
|
|
10850
10890
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10851
10891
|
*
|
|
@@ -11160,6 +11200,13 @@ var table = {
|
|
|
11160
11200
|
apply: () => {
|
|
11161
11201
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11162
11202
|
}
|
|
11203
|
+
},
|
|
11204
|
+
schmitt: {
|
|
11205
|
+
minArgs: 3,
|
|
11206
|
+
maxArgs: 5,
|
|
11207
|
+
apply: () => {
|
|
11208
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11209
|
+
}
|
|
11163
11210
|
}
|
|
11164
11211
|
};
|
|
11165
11212
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11600,15 +11647,232 @@ function validateExpressionSource(src) {
|
|
|
11600
11647
|
}
|
|
11601
11648
|
return null;
|
|
11602
11649
|
}
|
|
11603
|
-
/**
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11650
|
+
/**
|
|
11651
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11652
|
+
*
|
|
11653
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11654
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11655
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11656
|
+
*
|
|
11657
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11658
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11659
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11660
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11661
|
+
* can move later without moving the others.
|
|
11662
|
+
*/
|
|
11663
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11664
|
+
var APPLIANCE_KINDS = [
|
|
11665
|
+
"washer",
|
|
11666
|
+
"dryer",
|
|
11667
|
+
"dishwasher"
|
|
11668
|
+
];
|
|
11669
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11670
|
+
/**
|
|
11671
|
+
* Statistics and integrals over a history read (D944).
|
|
11672
|
+
*
|
|
11673
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11674
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11675
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11676
|
+
* as zero. A truncated read is not published.
|
|
11677
|
+
*/
|
|
11678
|
+
var STATISTIC_STATS = [
|
|
11679
|
+
"min",
|
|
11680
|
+
"max",
|
|
11681
|
+
"mean",
|
|
11682
|
+
"sum",
|
|
11683
|
+
"count",
|
|
11684
|
+
"change"
|
|
11685
|
+
];
|
|
11686
|
+
/**
|
|
11687
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11688
|
+
*
|
|
11689
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11690
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11691
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11692
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11693
|
+
*/
|
|
11694
|
+
var MINUTE_MS = 6e4;
|
|
11695
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11696
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11697
|
+
var ROLLING_SPANS = [
|
|
11698
|
+
"1h",
|
|
11699
|
+
"24h",
|
|
11700
|
+
"2d",
|
|
11701
|
+
"7d",
|
|
11702
|
+
"30d",
|
|
11703
|
+
"custom"
|
|
11704
|
+
];
|
|
11705
|
+
var CALENDAR_PERIODS = [
|
|
11706
|
+
"today",
|
|
11707
|
+
"yesterday",
|
|
11708
|
+
"this-week",
|
|
11709
|
+
"this-month"
|
|
11710
|
+
];
|
|
11711
|
+
var RESET_PERIODS = [
|
|
11712
|
+
"never",
|
|
11713
|
+
"daily",
|
|
11714
|
+
"weekly",
|
|
11715
|
+
"monthly"
|
|
11716
|
+
];
|
|
11717
|
+
5 * MINUTE_MS;
|
|
11718
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11719
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11720
|
+
var rollingWindowObject = object({
|
|
11721
|
+
kind: literal("rolling"),
|
|
11722
|
+
span: _enum(ROLLING_SPANS),
|
|
11723
|
+
customMinutes: number().int().min(5).optional()
|
|
11724
|
+
}).check((payload) => {
|
|
11725
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11726
|
+
code: "custom",
|
|
11727
|
+
message: "a custom range needs a duration in minutes",
|
|
11728
|
+
path: ["customMinutes"],
|
|
11729
|
+
input: payload.value
|
|
11730
|
+
});
|
|
11731
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11732
|
+
code: "custom",
|
|
11733
|
+
message: "only a custom range carries a duration",
|
|
11734
|
+
path: ["customMinutes"],
|
|
11735
|
+
input: payload.value
|
|
11736
|
+
});
|
|
11737
|
+
});
|
|
11738
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11739
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11740
|
+
kind: literal("calendar"),
|
|
11741
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11742
|
+
})]);
|
|
11743
|
+
/**
|
|
11744
|
+
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11745
|
+
* id. Split out so helper schemas can name it without a cycle through
|
|
11746
|
+
* `composition.ts` (D659).
|
|
11747
|
+
*/
|
|
11607
11748
|
var CompositionSourceRefSchema = object({
|
|
11608
11749
|
/** The owning addon; `stableId` is unique only within it. */
|
|
11609
11750
|
addonId: string().min(1),
|
|
11610
11751
|
stableId: string().min(1)
|
|
11611
11752
|
});
|
|
11753
|
+
var GROUP_TEMPLATE_IDS = [
|
|
11754
|
+
"temperature",
|
|
11755
|
+
"humidity",
|
|
11756
|
+
"pressure",
|
|
11757
|
+
"illuminance",
|
|
11758
|
+
"power",
|
|
11759
|
+
"energy",
|
|
11760
|
+
"battery",
|
|
11761
|
+
"numeric",
|
|
11762
|
+
"motion",
|
|
11763
|
+
"contact",
|
|
11764
|
+
"leak",
|
|
11765
|
+
"smoke",
|
|
11766
|
+
"occupancy",
|
|
11767
|
+
"binary",
|
|
11768
|
+
"switch",
|
|
11769
|
+
"light",
|
|
11770
|
+
"fan",
|
|
11771
|
+
"cover",
|
|
11772
|
+
"valve",
|
|
11773
|
+
"lock",
|
|
11774
|
+
"media-player",
|
|
11775
|
+
"climate"
|
|
11776
|
+
];
|
|
11777
|
+
var NUMERIC_AGGREGATES = [
|
|
11778
|
+
"mean",
|
|
11779
|
+
"median",
|
|
11780
|
+
"min",
|
|
11781
|
+
"max",
|
|
11782
|
+
"sum"
|
|
11783
|
+
];
|
|
11784
|
+
var BINARY_AGGREGATES = ["any", "all"];
|
|
11785
|
+
/** How an actuator group decides it is on. Unknown members never count as off. */
|
|
11786
|
+
var ACTIVE_CRITERIA = ["at-least-one", "all"];
|
|
11787
|
+
var AGGREGATE_REDUCERS = [
|
|
11788
|
+
"mean",
|
|
11789
|
+
"median",
|
|
11790
|
+
"min",
|
|
11791
|
+
"max",
|
|
11792
|
+
"sum",
|
|
11793
|
+
"any",
|
|
11794
|
+
"all"
|
|
11795
|
+
];
|
|
11796
|
+
var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
|
|
11797
|
+
var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
|
|
11798
|
+
var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
|
|
11799
|
+
/** One member. The field is stored so occupancy can name motion or binary. */
|
|
11800
|
+
var HelperMemberSchema = object({
|
|
11801
|
+
source: CompositionSourceRefSchema,
|
|
11802
|
+
cap: string().min(1),
|
|
11803
|
+
fieldPath: string().min(1)
|
|
11804
|
+
});
|
|
11805
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11806
|
+
object({
|
|
11807
|
+
kind: literal("group"),
|
|
11808
|
+
templateId: GroupTemplateIdSchema,
|
|
11809
|
+
aggregate: AggregateReducerSchema,
|
|
11810
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11811
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11812
|
+
active: ActiveCriterionSchema.optional()
|
|
11813
|
+
}),
|
|
11814
|
+
object({
|
|
11815
|
+
kind: literal("appliance"),
|
|
11816
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11817
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11818
|
+
thresholdWatts: number().positive(),
|
|
11819
|
+
startDwellMs: number().int().nonnegative(),
|
|
11820
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11821
|
+
member: HelperMemberSchema
|
|
11822
|
+
}),
|
|
11823
|
+
object({
|
|
11824
|
+
kind: literal("statistic"),
|
|
11825
|
+
stat: _enum(STATISTIC_STATS),
|
|
11826
|
+
window: StatisticWindowSchema,
|
|
11827
|
+
source: HelperMemberSchema
|
|
11828
|
+
}),
|
|
11829
|
+
object({
|
|
11830
|
+
kind: literal("integral"),
|
|
11831
|
+
reset: _enum(RESET_PERIODS),
|
|
11832
|
+
output: _enum(["energy", "meter"]),
|
|
11833
|
+
source: HelperMemberSchema
|
|
11834
|
+
}),
|
|
11835
|
+
object({
|
|
11836
|
+
kind: literal("threshold"),
|
|
11837
|
+
source: HelperMemberSchema,
|
|
11838
|
+
high: number(),
|
|
11839
|
+
low: number(),
|
|
11840
|
+
onForMs: number().int().nonnegative(),
|
|
11841
|
+
offForMs: number().int().nonnegative()
|
|
11842
|
+
}),
|
|
11843
|
+
object({
|
|
11844
|
+
kind: literal("arithmetic"),
|
|
11845
|
+
op: _enum([
|
|
11846
|
+
"sum",
|
|
11847
|
+
"difference",
|
|
11848
|
+
"ratio"
|
|
11849
|
+
]),
|
|
11850
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11851
|
+
}),
|
|
11852
|
+
object({
|
|
11853
|
+
kind: literal("expression"),
|
|
11854
|
+
expr: string().min(1),
|
|
11855
|
+
inputs: array(object({
|
|
11856
|
+
name: string().min(1),
|
|
11857
|
+
member: HelperMemberSchema
|
|
11858
|
+
})).min(1).max(64),
|
|
11859
|
+
output: _enum(["number", "boolean"])
|
|
11860
|
+
}),
|
|
11861
|
+
object({
|
|
11862
|
+
kind: literal("derivative"),
|
|
11863
|
+
window: RollingWindowSchema,
|
|
11864
|
+
per: _enum([
|
|
11865
|
+
"second",
|
|
11866
|
+
"minute",
|
|
11867
|
+
"hour"
|
|
11868
|
+
]),
|
|
11869
|
+
source: HelperMemberSchema
|
|
11870
|
+
})
|
|
11871
|
+
]);
|
|
11872
|
+
/** A composed device's stableId is this prefix plus the block id. */
|
|
11873
|
+
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11874
|
+
/** Longest snippet a `code` source may carry (slice 4). */
|
|
11875
|
+
var MAX_COMPOSITION_CODE_LENGTH = 2e4;
|
|
11612
11876
|
/** One field of one capability of one source device. */
|
|
11613
11877
|
var CompositionFieldReadSchema = object({
|
|
11614
11878
|
source: CompositionSourceRefSchema,
|
|
@@ -11652,7 +11916,59 @@ var CompositionCodeSourceSchema = object({
|
|
|
11652
11916
|
var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
11653
11917
|
CompositionFromSourceSchema,
|
|
11654
11918
|
CompositionExpressionSourceSchema,
|
|
11655
|
-
CompositionCodeSourceSchema
|
|
11919
|
+
CompositionCodeSourceSchema,
|
|
11920
|
+
object({
|
|
11921
|
+
kind: literal("aggregate"),
|
|
11922
|
+
reducer: _enum([
|
|
11923
|
+
"mean",
|
|
11924
|
+
"median",
|
|
11925
|
+
"min",
|
|
11926
|
+
"max",
|
|
11927
|
+
"sum",
|
|
11928
|
+
"any",
|
|
11929
|
+
"all"
|
|
11930
|
+
]),
|
|
11931
|
+
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11932
|
+
/**
|
|
11933
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11934
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11935
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11936
|
+
*/
|
|
11937
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11938
|
+
/** `value` is the reading; the others are the member counts. */
|
|
11939
|
+
publish: _enum([
|
|
11940
|
+
"value",
|
|
11941
|
+
"included",
|
|
11942
|
+
"excluded",
|
|
11943
|
+
"total"
|
|
11944
|
+
]),
|
|
11945
|
+
/** What a `value` publish does when nobody is included. Counts ignore this. */
|
|
11946
|
+
empty: _enum([
|
|
11947
|
+
"null",
|
|
11948
|
+
"omit",
|
|
11949
|
+
"offline"
|
|
11950
|
+
])
|
|
11951
|
+
}),
|
|
11952
|
+
object({
|
|
11953
|
+
kind: literal("series"),
|
|
11954
|
+
read: CompositionFieldReadSchema,
|
|
11955
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11956
|
+
publish: _enum([
|
|
11957
|
+
"value",
|
|
11958
|
+
"included",
|
|
11959
|
+
"excluded",
|
|
11960
|
+
"total"
|
|
11961
|
+
]),
|
|
11962
|
+
/**
|
|
11963
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11964
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11965
|
+
*/
|
|
11966
|
+
empty: _enum([
|
|
11967
|
+
"null",
|
|
11968
|
+
"omit",
|
|
11969
|
+
"offline"
|
|
11970
|
+
])
|
|
11971
|
+
})
|
|
11656
11972
|
]);
|
|
11657
11973
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
11658
11974
|
kind: literal("forward"),
|
|
@@ -11698,7 +12014,13 @@ var CompositionSchema = object({
|
|
|
11698
12014
|
kind: literal("existing"),
|
|
11699
12015
|
device: CompositionSourceRefSchema
|
|
11700
12016
|
})]),
|
|
11701
|
-
features: array(CompositionFeatureSchema).min(1).max(16)
|
|
12017
|
+
features: array(CompositionFeatureSchema).min(1).max(16),
|
|
12018
|
+
/**
|
|
12019
|
+
* Present when the block is a helper template. Absent on a free
|
|
12020
|
+
* composition (the room example, device 4603). The editor reads this,
|
|
12021
|
+
* never the compiled features.
|
|
12022
|
+
*/
|
|
12023
|
+
helper: HelperSpecSchema.optional()
|
|
11702
12024
|
}).superRefine((composition, ctx) => {
|
|
11703
12025
|
const seen = /* @__PURE__ */ new Set();
|
|
11704
12026
|
composition.features.forEach((feature, index) => {
|
|
@@ -16805,7 +17127,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16805
17127
|
*/
|
|
16806
17128
|
interactiveConnectPath: string().min(1).optional(),
|
|
16807
17129
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16808
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17130
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17131
|
+
/**
|
|
17132
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17133
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17134
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17135
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17136
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17137
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17138
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17139
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17140
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17141
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17142
|
+
* offers it as the default path; the fields the session fills are
|
|
17143
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17144
|
+
*/
|
|
17145
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16809
17146
|
}))
|
|
16810
17147
|
});
|
|
16811
17148
|
var ListInputSchema = object({
|
|
@@ -17907,7 +18244,11 @@ var CompositionProblemSchema = object({
|
|
|
17907
18244
|
"target-missing",
|
|
17908
18245
|
"target-unreadable",
|
|
17909
18246
|
"not-replaceable",
|
|
17910
|
-
"native-capability-replace"
|
|
18247
|
+
"native-capability-replace",
|
|
18248
|
+
"mixed-quantity",
|
|
18249
|
+
"helper-mismatch",
|
|
18250
|
+
"member-constraint",
|
|
18251
|
+
"retention"
|
|
17911
18252
|
]),
|
|
17912
18253
|
path: string(),
|
|
17913
18254
|
message: string()
|
|
@@ -17928,7 +18269,8 @@ var CompositionUnavailableModeSchema = _enum([
|
|
|
17928
18269
|
"null",
|
|
17929
18270
|
"offline",
|
|
17930
18271
|
"unknown",
|
|
17931
|
-
"release"
|
|
18272
|
+
"release",
|
|
18273
|
+
"omit"
|
|
17932
18274
|
]);
|
|
17933
18275
|
/**
|
|
17934
18276
|
* `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
|
|
@@ -18140,8 +18482,392 @@ Object.freeze({
|
|
|
18140
18482
|
latchedAt: {
|
|
18141
18483
|
kind: "fixed",
|
|
18142
18484
|
result: ["number", "null"]
|
|
18485
|
+
},
|
|
18486
|
+
schmitt: {
|
|
18487
|
+
kind: "fixed",
|
|
18488
|
+
result: ["boolean", "null"]
|
|
18143
18489
|
}
|
|
18144
18490
|
});
|
|
18491
|
+
/**
|
|
18492
|
+
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18493
|
+
* Data, not a form default written into the block.
|
|
18494
|
+
*/
|
|
18495
|
+
var NOW$2 = {
|
|
18496
|
+
fieldPath: "lastFetchedAt",
|
|
18497
|
+
expr: "now"
|
|
18498
|
+
};
|
|
18499
|
+
var CHANGED = {
|
|
18500
|
+
fieldPath: "lastChangedAt",
|
|
18501
|
+
expr: "now"
|
|
18502
|
+
};
|
|
18503
|
+
function numeric(input) {
|
|
18504
|
+
return {
|
|
18505
|
+
...input,
|
|
18506
|
+
family: "numeric",
|
|
18507
|
+
deviceType: DeviceType.Sensor,
|
|
18508
|
+
memberDeviceType: DeviceType.Sensor,
|
|
18509
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18510
|
+
activeWhen: void 0,
|
|
18511
|
+
commandCaps: [],
|
|
18512
|
+
baseUnit: baseUnitOf(input.quantity),
|
|
18513
|
+
aggregates: NUMERIC_AGGREGATES,
|
|
18514
|
+
accept: [{
|
|
18515
|
+
cap: input.outputCap,
|
|
18516
|
+
fieldPath: input.outputField
|
|
18517
|
+
}]
|
|
18518
|
+
};
|
|
18519
|
+
}
|
|
18520
|
+
function binary(input) {
|
|
18521
|
+
return {
|
|
18522
|
+
...input,
|
|
18523
|
+
family: "binary",
|
|
18524
|
+
deviceType: DeviceType.Sensor,
|
|
18525
|
+
memberDeviceType: DeviceType.Sensor,
|
|
18526
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18527
|
+
activeWhen: void 0,
|
|
18528
|
+
commandCaps: [],
|
|
18529
|
+
quantity: "none",
|
|
18530
|
+
baseUnit: void 0,
|
|
18531
|
+
aggregates: BINARY_AGGREGATES,
|
|
18532
|
+
empty: "offline"
|
|
18533
|
+
};
|
|
18534
|
+
}
|
|
18535
|
+
var GROUP_TEMPLATES = [
|
|
18536
|
+
numeric({
|
|
18537
|
+
id: "temperature",
|
|
18538
|
+
summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
|
|
18539
|
+
role: DeviceRole.TemperatureSensor,
|
|
18540
|
+
outputCap: "temperature-sensor",
|
|
18541
|
+
outputField: "celsius",
|
|
18542
|
+
quantity: "temperature",
|
|
18543
|
+
defaultAggregate: "mean",
|
|
18544
|
+
empty: "null",
|
|
18545
|
+
companions: [NOW$2]
|
|
18546
|
+
}),
|
|
18547
|
+
numeric({
|
|
18548
|
+
id: "humidity",
|
|
18549
|
+
summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
18550
|
+
role: DeviceRole.HumiditySensor,
|
|
18551
|
+
outputCap: "humidity-sensor",
|
|
18552
|
+
outputField: "percent",
|
|
18553
|
+
quantity: "humidity",
|
|
18554
|
+
defaultAggregate: "mean",
|
|
18555
|
+
empty: "null",
|
|
18556
|
+
companions: [NOW$2]
|
|
18557
|
+
}),
|
|
18558
|
+
numeric({
|
|
18559
|
+
id: "pressure",
|
|
18560
|
+
summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
|
|
18561
|
+
role: DeviceRole.PressureSensor,
|
|
18562
|
+
outputCap: "pressure-sensor",
|
|
18563
|
+
outputField: "hpa",
|
|
18564
|
+
quantity: "pressure",
|
|
18565
|
+
defaultAggregate: "mean",
|
|
18566
|
+
empty: "null",
|
|
18567
|
+
companions: [NOW$2]
|
|
18568
|
+
}),
|
|
18569
|
+
numeric({
|
|
18570
|
+
id: "illuminance",
|
|
18571
|
+
summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
|
|
18572
|
+
role: DeviceRole.AmbientLightSensor,
|
|
18573
|
+
outputCap: "ambient-light-sensor",
|
|
18574
|
+
outputField: "lux",
|
|
18575
|
+
quantity: "illuminance",
|
|
18576
|
+
defaultAggregate: "mean",
|
|
18577
|
+
empty: "null",
|
|
18578
|
+
companions: [NOW$2]
|
|
18579
|
+
}),
|
|
18580
|
+
numeric({
|
|
18581
|
+
id: "power",
|
|
18582
|
+
summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
|
|
18583
|
+
role: DeviceRole.PowerSensor,
|
|
18584
|
+
outputCap: "power-meter",
|
|
18585
|
+
outputField: "watts",
|
|
18586
|
+
quantity: "power",
|
|
18587
|
+
defaultAggregate: "sum",
|
|
18588
|
+
empty: "omit",
|
|
18589
|
+
companions: [NOW$2]
|
|
18590
|
+
}),
|
|
18591
|
+
numeric({
|
|
18592
|
+
id: "energy",
|
|
18593
|
+
summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
|
|
18594
|
+
role: DeviceRole.EnergySensor,
|
|
18595
|
+
outputCap: "power-meter",
|
|
18596
|
+
outputField: "kwhTotal",
|
|
18597
|
+
quantity: "energy",
|
|
18598
|
+
defaultAggregate: "sum",
|
|
18599
|
+
empty: "omit",
|
|
18600
|
+
companions: [NOW$2]
|
|
18601
|
+
}),
|
|
18602
|
+
numeric({
|
|
18603
|
+
id: "battery",
|
|
18604
|
+
summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
18605
|
+
role: DeviceRole.BatterySensor,
|
|
18606
|
+
outputCap: "battery",
|
|
18607
|
+
outputField: "percentage",
|
|
18608
|
+
quantity: "percentage",
|
|
18609
|
+
defaultAggregate: "mean",
|
|
18610
|
+
empty: "null",
|
|
18611
|
+
companions: [
|
|
18612
|
+
{
|
|
18613
|
+
fieldPath: "charging",
|
|
18614
|
+
expr: "\"unknown\""
|
|
18615
|
+
},
|
|
18616
|
+
{
|
|
18617
|
+
fieldPath: "sleeping",
|
|
18618
|
+
expr: "false"
|
|
18619
|
+
},
|
|
18620
|
+
{
|
|
18621
|
+
fieldPath: "lastUpdated",
|
|
18622
|
+
expr: "now"
|
|
18623
|
+
}
|
|
18624
|
+
]
|
|
18625
|
+
}),
|
|
18626
|
+
numeric({
|
|
18627
|
+
id: "numeric",
|
|
18628
|
+
summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
|
|
18629
|
+
role: DeviceRole.NumericSensor,
|
|
18630
|
+
outputCap: "numeric-sensor",
|
|
18631
|
+
outputField: "value",
|
|
18632
|
+
quantity: "device",
|
|
18633
|
+
defaultAggregate: "mean",
|
|
18634
|
+
empty: "null",
|
|
18635
|
+
companions: [NOW$2]
|
|
18636
|
+
}),
|
|
18637
|
+
binary({
|
|
18638
|
+
id: "motion",
|
|
18639
|
+
summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
|
|
18640
|
+
role: DeviceRole.MotionSensor,
|
|
18641
|
+
outputCap: "motion",
|
|
18642
|
+
outputField: "detected",
|
|
18643
|
+
defaultAggregate: "any",
|
|
18644
|
+
accept: [{
|
|
18645
|
+
cap: "motion",
|
|
18646
|
+
fieldPath: "detected"
|
|
18647
|
+
}],
|
|
18648
|
+
companions: [{
|
|
18649
|
+
fieldPath: "lastDetectedAt",
|
|
18650
|
+
expr: "null"
|
|
18651
|
+
}, {
|
|
18652
|
+
fieldPath: "autoClearAfterMs",
|
|
18653
|
+
expr: "null"
|
|
18654
|
+
}]
|
|
18655
|
+
}),
|
|
18656
|
+
binary({
|
|
18657
|
+
id: "contact",
|
|
18658
|
+
summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
|
|
18659
|
+
role: DeviceRole.ContactSensor,
|
|
18660
|
+
outputCap: "contact",
|
|
18661
|
+
outputField: "entryOpen",
|
|
18662
|
+
defaultAggregate: "any",
|
|
18663
|
+
accept: [{
|
|
18664
|
+
cap: "contact",
|
|
18665
|
+
fieldPath: "entryOpen"
|
|
18666
|
+
}],
|
|
18667
|
+
companions: [CHANGED]
|
|
18668
|
+
}),
|
|
18669
|
+
binary({
|
|
18670
|
+
id: "leak",
|
|
18671
|
+
summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
|
|
18672
|
+
role: DeviceRole.LeakSensor,
|
|
18673
|
+
outputCap: "flood",
|
|
18674
|
+
outputField: "flooded",
|
|
18675
|
+
defaultAggregate: "any",
|
|
18676
|
+
accept: [{
|
|
18677
|
+
cap: "flood",
|
|
18678
|
+
fieldPath: "flooded"
|
|
18679
|
+
}],
|
|
18680
|
+
companions: [CHANGED]
|
|
18681
|
+
}),
|
|
18682
|
+
binary({
|
|
18683
|
+
id: "smoke",
|
|
18684
|
+
summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
|
|
18685
|
+
role: DeviceRole.SmokeSensor,
|
|
18686
|
+
outputCap: "smoke",
|
|
18687
|
+
outputField: "detected",
|
|
18688
|
+
defaultAggregate: "any",
|
|
18689
|
+
accept: [{
|
|
18690
|
+
cap: "smoke",
|
|
18691
|
+
fieldPath: "detected"
|
|
18692
|
+
}],
|
|
18693
|
+
companions: [CHANGED]
|
|
18694
|
+
}),
|
|
18695
|
+
binary({
|
|
18696
|
+
id: "occupancy",
|
|
18697
|
+
summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
|
|
18698
|
+
role: DeviceRole.BinarySensor,
|
|
18699
|
+
outputCap: "binary",
|
|
18700
|
+
outputField: "on",
|
|
18701
|
+
defaultAggregate: "any",
|
|
18702
|
+
accept: [{
|
|
18703
|
+
cap: "motion",
|
|
18704
|
+
fieldPath: "detected"
|
|
18705
|
+
}, {
|
|
18706
|
+
cap: "binary",
|
|
18707
|
+
fieldPath: "on"
|
|
18708
|
+
}],
|
|
18709
|
+
companions: [CHANGED]
|
|
18710
|
+
}),
|
|
18711
|
+
binary({
|
|
18712
|
+
id: "binary",
|
|
18713
|
+
summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
|
|
18714
|
+
role: DeviceRole.BinarySensor,
|
|
18715
|
+
outputCap: "binary",
|
|
18716
|
+
outputField: "on",
|
|
18717
|
+
defaultAggregate: "any",
|
|
18718
|
+
accept: [{
|
|
18719
|
+
cap: "binary",
|
|
18720
|
+
fieldPath: "on"
|
|
18721
|
+
}],
|
|
18722
|
+
companions: [CHANGED]
|
|
18723
|
+
}),
|
|
18724
|
+
actuator({
|
|
18725
|
+
id: "switch",
|
|
18726
|
+
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.",
|
|
18727
|
+
deviceType: DeviceType.Switch,
|
|
18728
|
+
outputCap: "switch",
|
|
18729
|
+
outputField: "on",
|
|
18730
|
+
member: {
|
|
18731
|
+
cap: "switch",
|
|
18732
|
+
fieldPath: "on"
|
|
18733
|
+
},
|
|
18734
|
+
commandCaps: ["switch"]
|
|
18735
|
+
}),
|
|
18736
|
+
actuator({
|
|
18737
|
+
id: "light",
|
|
18738
|
+
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.",
|
|
18739
|
+
deviceType: DeviceType.Light,
|
|
18740
|
+
outputCap: "switch",
|
|
18741
|
+
outputField: "on",
|
|
18742
|
+
member: {
|
|
18743
|
+
cap: "switch",
|
|
18744
|
+
fieldPath: "on"
|
|
18745
|
+
},
|
|
18746
|
+
commandCaps: [
|
|
18747
|
+
"switch",
|
|
18748
|
+
"brightness",
|
|
18749
|
+
"color"
|
|
18750
|
+
]
|
|
18751
|
+
}),
|
|
18752
|
+
actuator({
|
|
18753
|
+
id: "fan",
|
|
18754
|
+
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.",
|
|
18755
|
+
deviceType: DeviceType.Fan,
|
|
18756
|
+
outputCap: "switch",
|
|
18757
|
+
outputField: "on",
|
|
18758
|
+
member: {
|
|
18759
|
+
cap: "switch",
|
|
18760
|
+
fieldPath: "on"
|
|
18761
|
+
},
|
|
18762
|
+
commandCaps: ["switch", "fan-control"]
|
|
18763
|
+
}),
|
|
18764
|
+
actuator({
|
|
18765
|
+
id: "cover",
|
|
18766
|
+
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.",
|
|
18767
|
+
deviceType: DeviceType.Cover,
|
|
18768
|
+
outputCap: "group-active",
|
|
18769
|
+
outputField: "active",
|
|
18770
|
+
member: {
|
|
18771
|
+
cap: "cover",
|
|
18772
|
+
fieldPath: "state"
|
|
18773
|
+
},
|
|
18774
|
+
activeWhen: [
|
|
18775
|
+
"open",
|
|
18776
|
+
"opening",
|
|
18777
|
+
"stopped"
|
|
18778
|
+
],
|
|
18779
|
+
commandCaps: ["cover"]
|
|
18780
|
+
}),
|
|
18781
|
+
actuator({
|
|
18782
|
+
id: "valve",
|
|
18783
|
+
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.",
|
|
18784
|
+
deviceType: DeviceType.Valve,
|
|
18785
|
+
outputCap: "group-active",
|
|
18786
|
+
outputField: "active",
|
|
18787
|
+
member: {
|
|
18788
|
+
cap: "valve",
|
|
18789
|
+
fieldPath: "state"
|
|
18790
|
+
},
|
|
18791
|
+
activeWhen: [
|
|
18792
|
+
"open",
|
|
18793
|
+
"opening",
|
|
18794
|
+
"stopped"
|
|
18795
|
+
],
|
|
18796
|
+
commandCaps: ["valve"]
|
|
18797
|
+
}),
|
|
18798
|
+
actuator({
|
|
18799
|
+
id: "lock",
|
|
18800
|
+
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.",
|
|
18801
|
+
deviceType: DeviceType.Lock,
|
|
18802
|
+
outputCap: "group-active",
|
|
18803
|
+
outputField: "active",
|
|
18804
|
+
member: {
|
|
18805
|
+
cap: "lock-control",
|
|
18806
|
+
fieldPath: "state"
|
|
18807
|
+
},
|
|
18808
|
+
activeWhen: ["locked"],
|
|
18809
|
+
commandCaps: ["lock-control"]
|
|
18810
|
+
}),
|
|
18811
|
+
actuator({
|
|
18812
|
+
id: "media-player",
|
|
18813
|
+
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.",
|
|
18814
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18815
|
+
outputCap: "group-active",
|
|
18816
|
+
outputField: "active",
|
|
18817
|
+
member: {
|
|
18818
|
+
cap: "media-player",
|
|
18819
|
+
fieldPath: "state"
|
|
18820
|
+
},
|
|
18821
|
+
activeWhen: ["playing", "buffering"],
|
|
18822
|
+
commandCaps: ["media-player"]
|
|
18823
|
+
}),
|
|
18824
|
+
actuator({
|
|
18825
|
+
id: "climate",
|
|
18826
|
+
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.",
|
|
18827
|
+
deviceType: DeviceType.Thermostat,
|
|
18828
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18829
|
+
outputCap: "group-active",
|
|
18830
|
+
outputField: "active",
|
|
18831
|
+
member: {
|
|
18832
|
+
cap: "climate-control",
|
|
18833
|
+
fieldPath: "mode"
|
|
18834
|
+
},
|
|
18835
|
+
activeWhen: [
|
|
18836
|
+
"heat",
|
|
18837
|
+
"cool",
|
|
18838
|
+
"auto",
|
|
18839
|
+
"heat_cool",
|
|
18840
|
+
"fan_only",
|
|
18841
|
+
"dry"
|
|
18842
|
+
],
|
|
18843
|
+
commandCaps: ["climate-control"]
|
|
18844
|
+
})
|
|
18845
|
+
];
|
|
18846
|
+
function actuator(input) {
|
|
18847
|
+
return {
|
|
18848
|
+
id: input.id,
|
|
18849
|
+
summary: input.summary,
|
|
18850
|
+
deviceType: input.deviceType,
|
|
18851
|
+
outputCap: input.outputCap,
|
|
18852
|
+
outputField: input.outputField,
|
|
18853
|
+
commandCaps: input.commandCaps,
|
|
18854
|
+
family: "actuator",
|
|
18855
|
+
role: void 0,
|
|
18856
|
+
memberDeviceType: input.deviceType,
|
|
18857
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18858
|
+
activeWhen: input.activeWhen,
|
|
18859
|
+
quantity: "none",
|
|
18860
|
+
baseUnit: void 0,
|
|
18861
|
+
aggregates: BINARY_AGGREGATES,
|
|
18862
|
+
defaultAggregate: "any",
|
|
18863
|
+
empty: "offline",
|
|
18864
|
+
accept: [input.member],
|
|
18865
|
+
companions: [CHANGED]
|
|
18866
|
+
};
|
|
18867
|
+
}
|
|
18868
|
+
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18869
|
+
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18870
|
+
DeviceType.Camera;
|
|
18145
18871
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18146
18872
|
/**
|
|
18147
18873
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43451,7 +44177,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43451
44177
|
});
|
|
43452
44178
|
/**
|
|
43453
44179
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43454
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44180
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43455
44181
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43456
44182
|
* the originating provider config (mode + sourcePort) so the
|
|
43457
44183
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -45047,6 +45773,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
45047
45773
|
"detection-blind",
|
|
45048
45774
|
"motion-noisy",
|
|
45049
45775
|
"motion-calm",
|
|
45776
|
+
"package-llm-silent",
|
|
45777
|
+
"package-llm-answered",
|
|
45050
45778
|
"recording-stalled",
|
|
45051
45779
|
"recording-healthy",
|
|
45052
45780
|
"recording-degraded",
|
|
@@ -46136,7 +46864,20 @@ var NcRuleInputSchema = object({
|
|
|
46136
46864
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46137
46865
|
* path does not run Zod defaults.
|
|
46138
46866
|
*/
|
|
46139
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46867
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46868
|
+
/**
|
|
46869
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46870
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46871
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46872
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46873
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46874
|
+
*
|
|
46875
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46876
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46877
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46878
|
+
* `false`, so it needs no `clear` key.
|
|
46879
|
+
*/
|
|
46880
|
+
askVerdict: boolean().optional()
|
|
46140
46881
|
});
|
|
46141
46882
|
/**
|
|
46142
46883
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -56138,6 +56879,28 @@ var PackageVersionInfoSchema = object({
|
|
|
56138
56879
|
deprecated: string().optional(),
|
|
56139
56880
|
distTags: array(string()).readonly()
|
|
56140
56881
|
});
|
|
56882
|
+
/**
|
|
56883
|
+
* One published document. `ok` is markdown from the registry. `missing` means
|
|
56884
|
+
* the registry answered and the file was not there. `error` is a registry or
|
|
56885
|
+
* tarball failure — never an empty string standing in for either.
|
|
56886
|
+
*/
|
|
56887
|
+
var PackageDocBodySchema = discriminatedUnion("status", [
|
|
56888
|
+
object({
|
|
56889
|
+
status: literal("ok"),
|
|
56890
|
+
markdown: string()
|
|
56891
|
+
}),
|
|
56892
|
+
object({ status: literal("missing") }),
|
|
56893
|
+
object({
|
|
56894
|
+
status: literal("error"),
|
|
56895
|
+
message: string()
|
|
56896
|
+
})
|
|
56897
|
+
]);
|
|
56898
|
+
var PackageDocsSchema = object({
|
|
56899
|
+
name: string(),
|
|
56900
|
+
version: string(),
|
|
56901
|
+
readme: PackageDocBodySchema,
|
|
56902
|
+
changelog: PackageDocBodySchema
|
|
56903
|
+
});
|
|
56141
56904
|
var SearchResultSchema = object({
|
|
56142
56905
|
name: string(),
|
|
56143
56906
|
version: string(),
|
|
@@ -56356,7 +57119,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
|
|
|
56356
57119
|
}), object({ success: literal(true) }), {
|
|
56357
57120
|
kind: "mutation",
|
|
56358
57121
|
auth: "admin"
|
|
56359
|
-
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
|
|
57122
|
+
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
|
|
57123
|
+
name: string().min(1),
|
|
57124
|
+
version: string().min(1).optional()
|
|
57125
|
+
}), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
56360
57126
|
kind: "mutation",
|
|
56361
57127
|
auth: "admin"
|
|
56362
57128
|
}), method(object({ packageName: string() }), object({ success: literal(true) }), {
|
|
@@ -56831,7 +57597,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
56831
57597
|
DeviceType.Switch,
|
|
56832
57598
|
DeviceType.PetFeeder,
|
|
56833
57599
|
DeviceType.Container,
|
|
56834
|
-
DeviceType.Thermostat
|
|
57600
|
+
DeviceType.Thermostat,
|
|
57601
|
+
DeviceType.EventEmitter
|
|
56835
57602
|
];
|
|
56836
57603
|
/** Generic Customize target for the percentage reading (D936). */
|
|
56837
57604
|
var batteryCustomize = {
|
|
@@ -59704,6 +60471,148 @@ var gasCapability = {
|
|
|
59704
60471
|
* whether persisting is worth a SQLite commit. */
|
|
59705
60472
|
volatileStateFields: ["lastChangedAt"]
|
|
59706
60473
|
};
|
|
60474
|
+
var GroupCommandsSchema = object({
|
|
60475
|
+
/** One row per member that has been commanded. A later command replaces that member's row. */
|
|
60476
|
+
results: array(object({
|
|
60477
|
+
deviceId: number().int().nonnegative(),
|
|
60478
|
+
cap: string().min(1),
|
|
60479
|
+
method: string().min(1),
|
|
60480
|
+
ok: boolean(),
|
|
60481
|
+
error: string().optional(),
|
|
60482
|
+
/** Ms epoch of the attempt. */
|
|
60483
|
+
at: number()
|
|
60484
|
+
})) });
|
|
60485
|
+
var groupCommandsCapability = {
|
|
60486
|
+
name: "group-commands",
|
|
60487
|
+
scope: "device",
|
|
60488
|
+
deviceNative: true,
|
|
60489
|
+
mode: "singleton",
|
|
60490
|
+
deviceTypes: [
|
|
60491
|
+
DeviceType.Switch,
|
|
60492
|
+
DeviceType.Light,
|
|
60493
|
+
DeviceType.Fan,
|
|
60494
|
+
DeviceType.Cover,
|
|
60495
|
+
DeviceType.Valve,
|
|
60496
|
+
DeviceType.Lock,
|
|
60497
|
+
DeviceType.MediaPlayer,
|
|
60498
|
+
DeviceType.Thermostat,
|
|
60499
|
+
DeviceType.Climate
|
|
60500
|
+
],
|
|
60501
|
+
methods: {},
|
|
60502
|
+
status: {
|
|
60503
|
+
schema: GroupCommandsSchema,
|
|
60504
|
+
kind: "push"
|
|
60505
|
+
},
|
|
60506
|
+
runtimeState: GroupCommandsSchema,
|
|
60507
|
+
/**
|
|
60508
|
+
* Runtime-state durability: **session** — the last attempt. A restored
|
|
60509
|
+
* failure would outlive the command that caused it.
|
|
60510
|
+
*
|
|
60511
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60512
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60513
|
+
*/
|
|
60514
|
+
durability: "session",
|
|
60515
|
+
history: "none"
|
|
60516
|
+
};
|
|
60517
|
+
/**
|
|
60518
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60519
|
+
* included member is, or every included member is. What "active" means is the
|
|
60520
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60521
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60522
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60523
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60524
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60525
|
+
*/
|
|
60526
|
+
var GroupActiveSchema = object({
|
|
60527
|
+
active: boolean().meta({ label: "Active" }),
|
|
60528
|
+
/** Ms epoch when the slice was last updated. */
|
|
60529
|
+
lastChangedAt: number()
|
|
60530
|
+
});
|
|
60531
|
+
var groupActiveCapability = {
|
|
60532
|
+
name: "group-active",
|
|
60533
|
+
scope: "device",
|
|
60534
|
+
deviceNative: true,
|
|
60535
|
+
mode: "singleton",
|
|
60536
|
+
deviceTypes: [
|
|
60537
|
+
DeviceType.Cover,
|
|
60538
|
+
DeviceType.Valve,
|
|
60539
|
+
DeviceType.Lock,
|
|
60540
|
+
DeviceType.MediaPlayer,
|
|
60541
|
+
DeviceType.Climate,
|
|
60542
|
+
DeviceType.Thermostat
|
|
60543
|
+
],
|
|
60544
|
+
methods: {},
|
|
60545
|
+
status: {
|
|
60546
|
+
schema: GroupActiveSchema,
|
|
60547
|
+
kind: "push"
|
|
60548
|
+
},
|
|
60549
|
+
runtimeState: GroupActiveSchema,
|
|
60550
|
+
/**
|
|
60551
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60552
|
+
* next source event; a restored value would outlive the members it named.
|
|
60553
|
+
*
|
|
60554
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60555
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60556
|
+
*/
|
|
60557
|
+
durability: "session",
|
|
60558
|
+
history: "none"
|
|
60559
|
+
};
|
|
60560
|
+
/**
|
|
60561
|
+
* How many members of a helper group answered (D944). Counts are integers,
|
|
60562
|
+
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60563
|
+
* The reading itself stays on the output capability. History is none — the
|
|
60564
|
+
* series that later statistics read is the output cap's own history block.
|
|
60565
|
+
*/
|
|
60566
|
+
var GroupStatusSchema = object({
|
|
60567
|
+
/** Members whose current value entered the aggregate. */
|
|
60568
|
+
included: number().int().nonnegative().meta(readingMeta("count", {
|
|
60569
|
+
precision: 0,
|
|
60570
|
+
label: "Reporting"
|
|
60571
|
+
})),
|
|
60572
|
+
/** Members left out: offline, unknown, or not a finite reading (D393). */
|
|
60573
|
+
excluded: number().int().nonnegative().meta(readingMeta("count", {
|
|
60574
|
+
precision: 0,
|
|
60575
|
+
label: "Excluded"
|
|
60576
|
+
})),
|
|
60577
|
+
/** `included` + `excluded`. */
|
|
60578
|
+
total: number().int().nonnegative().meta(readingMeta("count", {
|
|
60579
|
+
precision: 0,
|
|
60580
|
+
label: "Members"
|
|
60581
|
+
}))
|
|
60582
|
+
});
|
|
60583
|
+
var groupStatusCapability = {
|
|
60584
|
+
name: "group-status",
|
|
60585
|
+
scope: "device",
|
|
60586
|
+
deviceNative: true,
|
|
60587
|
+
mode: "singleton",
|
|
60588
|
+
deviceTypes: [
|
|
60589
|
+
DeviceType.Sensor,
|
|
60590
|
+
DeviceType.Switch,
|
|
60591
|
+
DeviceType.Light,
|
|
60592
|
+
DeviceType.Fan,
|
|
60593
|
+
DeviceType.Cover,
|
|
60594
|
+
DeviceType.Valve,
|
|
60595
|
+
DeviceType.Lock,
|
|
60596
|
+
DeviceType.MediaPlayer,
|
|
60597
|
+
DeviceType.Thermostat,
|
|
60598
|
+
DeviceType.Climate
|
|
60599
|
+
],
|
|
60600
|
+
methods: {},
|
|
60601
|
+
status: {
|
|
60602
|
+
schema: GroupStatusSchema,
|
|
60603
|
+
kind: "push"
|
|
60604
|
+
},
|
|
60605
|
+
runtimeState: GroupStatusSchema,
|
|
60606
|
+
/**
|
|
60607
|
+
* Runtime-state durability: **session** — recomputed from members on the
|
|
60608
|
+
* next source event; a restored count would outlive the readings it named.
|
|
60609
|
+
*
|
|
60610
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60611
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60612
|
+
*/
|
|
60613
|
+
durability: "session",
|
|
60614
|
+
history: "none"
|
|
60615
|
+
};
|
|
59707
60616
|
var HeatingValveStatusSchema = object({
|
|
59708
60617
|
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
59709
60618
|
position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
|
|
@@ -60959,7 +61868,14 @@ var lockControlCapability = {
|
|
|
60959
61868
|
}),
|
|
60960
61869
|
unlock: method(object({
|
|
60961
61870
|
deviceId: number().int().nonnegative(),
|
|
60962
|
-
code: string().min(1).optional()
|
|
61871
|
+
code: string().min(1).optional(),
|
|
61872
|
+
/**
|
|
61873
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61874
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61875
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61876
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61877
|
+
*/
|
|
61878
|
+
confirm: boolean().optional()
|
|
60963
61879
|
}), _void(), {
|
|
60964
61880
|
kind: "mutation",
|
|
60965
61881
|
auth: "protected"
|
|
@@ -60996,6 +61912,44 @@ var lockControlCapability = {
|
|
|
60996
61912
|
volatileStateFields: ["lastChangedAt"]
|
|
60997
61913
|
};
|
|
60998
61914
|
/**
|
|
61915
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61916
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61917
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61918
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61919
|
+
*/
|
|
61920
|
+
var MeterStatusSchema = object({
|
|
61921
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61922
|
+
lastFetchedAt: number()
|
|
61923
|
+
});
|
|
61924
|
+
var meterCapability = {
|
|
61925
|
+
name: "meter",
|
|
61926
|
+
scope: "device",
|
|
61927
|
+
deviceNative: true,
|
|
61928
|
+
mode: "singleton",
|
|
61929
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61930
|
+
methods: {},
|
|
61931
|
+
status: {
|
|
61932
|
+
schema: MeterStatusSchema,
|
|
61933
|
+
kind: "push"
|
|
61934
|
+
},
|
|
61935
|
+
runtimeState: MeterStatusSchema,
|
|
61936
|
+
/**
|
|
61937
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61938
|
+
* history integral. A restart shows it only until the history pass
|
|
61939
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61940
|
+
*
|
|
61941
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61942
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61943
|
+
*/
|
|
61944
|
+
durability: "restored",
|
|
61945
|
+
history: { fields: { value: {
|
|
61946
|
+
kind: "counter",
|
|
61947
|
+
deadband: .001,
|
|
61948
|
+
minIntervalMs: 6e4
|
|
61949
|
+
} } },
|
|
61950
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61951
|
+
};
|
|
61952
|
+
/**
|
|
60999
61953
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61000
61954
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61001
61955
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -61473,12 +62427,18 @@ var motionCapability = {
|
|
|
61473
62427
|
methods: {
|
|
61474
62428
|
/**
|
|
61475
62429
|
* Pull the current motion state synchronously. Convenience shortcut
|
|
61476
|
-
* for consumers that don't need the full status object
|
|
61477
|
-
*
|
|
61478
|
-
* `getStatus` once the auto-injected status surface lands in every
|
|
61479
|
-
* consumer.
|
|
62430
|
+
* for consumers that don't need the full status object. A composed
|
|
62431
|
+
* group answers from its slice (D944): unknown throws, it is not off.
|
|
61480
62432
|
*/
|
|
61481
62433
|
isDetected: method(object({ deviceId: number() }), boolean()) },
|
|
62434
|
+
/**
|
|
62435
|
+
* A composed motion group serves `isDetected` from `detected` (D944).
|
|
62436
|
+
* Without this the cap stays uncomposable (`has-commands`).
|
|
62437
|
+
*/
|
|
62438
|
+
composedMethods: { isDetected: {
|
|
62439
|
+
kind: "slice",
|
|
62440
|
+
field: "detected"
|
|
62441
|
+
} },
|
|
61482
62442
|
events: {
|
|
61483
62443
|
/**
|
|
61484
62444
|
* Fires every time the runner transitions a camera between
|
|
@@ -63649,9 +64609,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63649
64609
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63650
64610
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63651
64611
|
/** Voltage in volts. */
|
|
63652
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64612
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63653
64613
|
/** Current in amperes. */
|
|
63654
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64614
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63655
64615
|
/** Apparent power in volt-amperes. */
|
|
63656
64616
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63657
64617
|
/** Power factor (0..1) if reported. */
|
|
@@ -63659,12 +64619,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63659
64619
|
/** Ms epoch when the slice was last updated. */
|
|
63660
64620
|
lastFetchedAt: number()
|
|
63661
64621
|
});
|
|
64622
|
+
/**
|
|
64623
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64624
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64625
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64626
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64627
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64628
|
+
*/
|
|
64629
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64630
|
+
DeviceType.Sensor,
|
|
64631
|
+
DeviceType.Switch,
|
|
64632
|
+
DeviceType.Light,
|
|
64633
|
+
DeviceType.Fan,
|
|
64634
|
+
DeviceType.Climate,
|
|
64635
|
+
DeviceType.Thermostat,
|
|
64636
|
+
DeviceType.Humidifier,
|
|
64637
|
+
DeviceType.WaterHeater,
|
|
64638
|
+
DeviceType.MediaPlayer,
|
|
64639
|
+
DeviceType.Washer,
|
|
64640
|
+
DeviceType.Dryer,
|
|
64641
|
+
DeviceType.Dishwasher,
|
|
64642
|
+
DeviceType.Vacuum,
|
|
64643
|
+
DeviceType.LawnMower,
|
|
64644
|
+
DeviceType.PetFeeder
|
|
64645
|
+
];
|
|
64646
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64647
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64648
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64649
|
+
function powerTarget(id, unit) {
|
|
64650
|
+
return {
|
|
64651
|
+
id,
|
|
64652
|
+
cardinality: "scalar",
|
|
64653
|
+
vocabulary: {
|
|
64654
|
+
cap: "power-meter",
|
|
64655
|
+
stateField: id
|
|
64656
|
+
},
|
|
64657
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64658
|
+
apply: "add",
|
|
64659
|
+
path: id,
|
|
64660
|
+
sources: [{
|
|
64661
|
+
kind: "numeric",
|
|
64662
|
+
requiredUnit: unit,
|
|
64663
|
+
transforms: [{ kind: "identity" }]
|
|
64664
|
+
}],
|
|
64665
|
+
companions: [{
|
|
64666
|
+
kind: "clock",
|
|
64667
|
+
path: "lastFetchedAt",
|
|
64668
|
+
when: "always"
|
|
64669
|
+
}],
|
|
64670
|
+
sourceReport: { status: "assignment-status" },
|
|
64671
|
+
advancedExpression: true
|
|
64672
|
+
};
|
|
64673
|
+
}
|
|
64674
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64675
|
+
var powerMeterCustomize = {
|
|
64676
|
+
version: 1,
|
|
64677
|
+
targets: [
|
|
64678
|
+
powerTarget("watts", "W"),
|
|
64679
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64680
|
+
powerTarget("volts", "V"),
|
|
64681
|
+
powerTarget("amps", "A")
|
|
64682
|
+
]
|
|
64683
|
+
};
|
|
63662
64684
|
var powerMeterCapability = {
|
|
63663
64685
|
name: "power-meter",
|
|
63664
64686
|
scope: "device",
|
|
63665
64687
|
deviceNative: true,
|
|
63666
64688
|
mode: "singleton",
|
|
63667
|
-
deviceTypes:
|
|
64689
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63668
64690
|
methods: {},
|
|
63669
64691
|
status: {
|
|
63670
64692
|
schema: PowerMeterStatusSchema,
|
|
@@ -63721,7 +64743,8 @@ var powerMeterCapability = {
|
|
|
63721
64743
|
} },
|
|
63722
64744
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63723
64745
|
* whether persisting is worth a SQLite commit. */
|
|
63724
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64746
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64747
|
+
customize: powerMeterCustomize
|
|
63725
64748
|
};
|
|
63726
64749
|
/**
|
|
63727
64750
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64410,6 +65433,8 @@ var runningCustomize = {
|
|
|
64410
65433
|
stateField: "running"
|
|
64411
65434
|
},
|
|
64412
65435
|
deviceTypes: [
|
|
65436
|
+
DeviceType.Washer,
|
|
65437
|
+
DeviceType.Dryer,
|
|
64413
65438
|
DeviceType.Dishwasher,
|
|
64414
65439
|
DeviceType.Vacuum,
|
|
64415
65440
|
DeviceType.LawnMower,
|
|
@@ -66899,7 +67924,8 @@ var switchCapability = {
|
|
|
66899
67924
|
deviceTypes: [
|
|
66900
67925
|
DeviceType.Switch,
|
|
66901
67926
|
DeviceType.Siren,
|
|
66902
|
-
DeviceType.Light
|
|
67927
|
+
DeviceType.Light,
|
|
67928
|
+
DeviceType.Fan
|
|
66903
67929
|
],
|
|
66904
67930
|
methods: { setState: method(object({
|
|
66905
67931
|
deviceId: number(),
|
|
@@ -69142,6 +70168,7 @@ function runningFromLawnMower(activity, previous, fetchedAt, transitionAt) {
|
|
|
69142
70168
|
if (activity === "paused") return nativeSlice(false, "paused", previous, transitionAtMs, fetchedAt, null);
|
|
69143
70169
|
return nativeSlice(false, activity, previous, transitionAtMs, fetchedAt, null);
|
|
69144
70170
|
}
|
|
70171
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69145
70172
|
/**
|
|
69146
70173
|
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
69147
70174
|
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
@@ -69541,7 +70568,7 @@ function tryConvertDelta(value, from, to) {
|
|
|
69541
70568
|
return shifted - origin;
|
|
69542
70569
|
}
|
|
69543
70570
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69544
|
-
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;
|
|
70571
|
+
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;
|
|
69545
70572
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69546
70573
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69547
70574
|
new Set(CAP_NAMES);
|
|
@@ -69870,6 +70897,9 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69870
70897
|
featureProbe: featureProbeCapability,
|
|
69871
70898
|
flood: floodCapability,
|
|
69872
70899
|
gas: gasCapability,
|
|
70900
|
+
groupActive: groupActiveCapability,
|
|
70901
|
+
groupCommands: groupCommandsCapability,
|
|
70902
|
+
groupStatus: groupStatusCapability,
|
|
69873
70903
|
heatingValve: heatingValveCapability,
|
|
69874
70904
|
humidifier: humidifierCapability,
|
|
69875
70905
|
humiditySensor: humiditySensorCapability,
|
|
@@ -69879,6 +70909,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69879
70909
|
lawnMowerControl: lawnMowerControlCapability,
|
|
69880
70910
|
lockControl: lockControlCapability,
|
|
69881
70911
|
mediaPlayer: mediaPlayerCapability,
|
|
70912
|
+
meter: meterCapability,
|
|
69882
70913
|
motion: motionCapability,
|
|
69883
70914
|
motionTrigger: motionTriggerCapability,
|
|
69884
70915
|
motionZones: motionZonesCapability,
|
|
@@ -71154,7 +72185,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71154
72185
|
return toDeviceSummary(device, this.addonId);
|
|
71155
72186
|
}
|
|
71156
72187
|
};
|
|
71157
|
-
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;
|
|
72188
|
+
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;
|
|
71158
72189
|
new Set(Object.values(DeviceType));
|
|
71159
72190
|
Object.freeze({
|
|
71160
72191
|
"accessories.getStatus": {
|
|
@@ -71262,6 +72293,13 @@ Object.freeze({
|
|
|
71262
72293
|
access: "view",
|
|
71263
72294
|
role: "admin"
|
|
71264
72295
|
},
|
|
72296
|
+
"addons.getPackageDocs": {
|
|
72297
|
+
capName: "addons",
|
|
72298
|
+
capScope: "system",
|
|
72299
|
+
addonId: null,
|
|
72300
|
+
access: "view",
|
|
72301
|
+
role: "admin"
|
|
72302
|
+
},
|
|
71265
72303
|
"addons.getVersions": {
|
|
71266
72304
|
capName: "addons",
|
|
71267
72305
|
capScope: "system",
|
|
@@ -74370,6 +75408,27 @@ Object.freeze({
|
|
|
74370
75408
|
access: "view",
|
|
74371
75409
|
role: "viewer"
|
|
74372
75410
|
},
|
|
75411
|
+
"groupActive.getStatus": {
|
|
75412
|
+
capName: "group-active",
|
|
75413
|
+
capScope: "device",
|
|
75414
|
+
addonId: null,
|
|
75415
|
+
access: "view",
|
|
75416
|
+
role: "viewer"
|
|
75417
|
+
},
|
|
75418
|
+
"groupCommands.getStatus": {
|
|
75419
|
+
capName: "group-commands",
|
|
75420
|
+
capScope: "device",
|
|
75421
|
+
addonId: null,
|
|
75422
|
+
access: "view",
|
|
75423
|
+
role: "viewer"
|
|
75424
|
+
},
|
|
75425
|
+
"groupStatus.getStatus": {
|
|
75426
|
+
capName: "group-status",
|
|
75427
|
+
capScope: "device",
|
|
75428
|
+
addonId: null,
|
|
75429
|
+
access: "view",
|
|
75430
|
+
role: "viewer"
|
|
75431
|
+
},
|
|
74373
75432
|
"heatingValve.getStatus": {
|
|
74374
75433
|
capName: "heating-valve",
|
|
74375
75434
|
capScope: "device",
|
|
@@ -75322,6 +76381,13 @@ Object.freeze({
|
|
|
75322
76381
|
access: "create",
|
|
75323
76382
|
role: "admin"
|
|
75324
76383
|
},
|
|
76384
|
+
"meter.getStatus": {
|
|
76385
|
+
capName: "meter",
|
|
76386
|
+
capScope: "device",
|
|
76387
|
+
addonId: null,
|
|
76388
|
+
access: "view",
|
|
76389
|
+
role: "viewer"
|
|
76390
|
+
},
|
|
75325
76391
|
"metricsProvider.collectSnapshot": {
|
|
75326
76392
|
capName: "metrics-provider",
|
|
75327
76393
|
capScope: "system",
|
|
@@ -83420,7 +84486,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83420
84486
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83421
84487
|
icon: "square"
|
|
83422
84488
|
}
|
|
83423
|
-
}
|
|
84489
|
+
},
|
|
84490
|
+
overrides: { byType: {
|
|
84491
|
+
[DeviceType.Washer]: {
|
|
84492
|
+
state: { running: {
|
|
84493
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
84494
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
84495
|
+
} },
|
|
84496
|
+
events: {
|
|
84497
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
84498
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
84499
|
+
}
|
|
84500
|
+
},
|
|
84501
|
+
[DeviceType.Dryer]: {
|
|
84502
|
+
state: { running: {
|
|
84503
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
84504
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
84505
|
+
} },
|
|
84506
|
+
events: {
|
|
84507
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
84508
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
84509
|
+
}
|
|
84510
|
+
},
|
|
84511
|
+
[DeviceType.Dishwasher]: {
|
|
84512
|
+
state: { running: {
|
|
84513
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
84514
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
84515
|
+
} },
|
|
84516
|
+
events: {
|
|
84517
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
84518
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
84519
|
+
}
|
|
84520
|
+
}
|
|
84521
|
+
} }
|
|
83424
84522
|
},
|
|
83425
84523
|
update: {
|
|
83426
84524
|
scope: "device",
|
|
@@ -84192,6 +85290,41 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84192
85290
|
icon: "flame"
|
|
84193
85291
|
}]
|
|
84194
85292
|
},
|
|
85293
|
+
"group-active": {
|
|
85294
|
+
scope: "device",
|
|
85295
|
+
noun: t("Group state", "Stato del gruppo")
|
|
85296
|
+
},
|
|
85297
|
+
"group-commands": {
|
|
85298
|
+
scope: "device",
|
|
85299
|
+
noun: t("Group command", "Comando di gruppo")
|
|
85300
|
+
},
|
|
85301
|
+
"group-status": {
|
|
85302
|
+
scope: "device",
|
|
85303
|
+
noun: t("Group", "Gruppo"),
|
|
85304
|
+
state: [
|
|
85305
|
+
{
|
|
85306
|
+
kind: "numeric",
|
|
85307
|
+
field: "included",
|
|
85308
|
+
quantity: t("the members reporting", "i membri che rispondono"),
|
|
85309
|
+
label: t("Reporting", "Rispondono"),
|
|
85310
|
+
icon: "users"
|
|
85311
|
+
},
|
|
85312
|
+
{
|
|
85313
|
+
kind: "numeric",
|
|
85314
|
+
field: "excluded",
|
|
85315
|
+
quantity: t("the members left out", "i membri esclusi"),
|
|
85316
|
+
label: t("Excluded", "Esclusi"),
|
|
85317
|
+
icon: "users"
|
|
85318
|
+
},
|
|
85319
|
+
{
|
|
85320
|
+
kind: "numeric",
|
|
85321
|
+
field: "total",
|
|
85322
|
+
quantity: t("the member count", "il numero di membri"),
|
|
85323
|
+
label: t("Members", "Membri"),
|
|
85324
|
+
icon: "sigma"
|
|
85325
|
+
}
|
|
85326
|
+
]
|
|
85327
|
+
},
|
|
84195
85328
|
"humidity-sensor": {
|
|
84196
85329
|
scope: "device",
|
|
84197
85330
|
noun: t("Humidity", "Umidità"),
|
|
@@ -84217,6 +85350,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84217
85350
|
}],
|
|
84218
85351
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84219
85352
|
},
|
|
85353
|
+
meter: {
|
|
85354
|
+
scope: "device",
|
|
85355
|
+
noun: t("Meter", "Contatore"),
|
|
85356
|
+
state: [{
|
|
85357
|
+
kind: "numeric",
|
|
85358
|
+
field: "value",
|
|
85359
|
+
quantity: t("the total", "il totale"),
|
|
85360
|
+
label: t("Total", "Totale"),
|
|
85361
|
+
icon: "gauge"
|
|
85362
|
+
}]
|
|
85363
|
+
},
|
|
84220
85364
|
"numeric-sensor": {
|
|
84221
85365
|
scope: "device",
|
|
84222
85366
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84689,8 +85833,47 @@ function projectAction(cap, action) {
|
|
|
84689
85833
|
};
|
|
84690
85834
|
}
|
|
84691
85835
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84692
|
-
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;
|
|
85836
|
+
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;
|
|
84693
85837
|
DeviceFeature.BatteryOperated;
|
|
85838
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85839
|
+
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.";
|
|
85840
|
+
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.";
|
|
85841
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85842
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85843
|
+
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.";
|
|
85844
|
+
function withheld(reason) {
|
|
85845
|
+
return {
|
|
85846
|
+
[DeviceType.Washer]: {
|
|
85847
|
+
exported: false,
|
|
85848
|
+
reason
|
|
85849
|
+
},
|
|
85850
|
+
[DeviceType.Dryer]: {
|
|
85851
|
+
exported: false,
|
|
85852
|
+
reason
|
|
85853
|
+
},
|
|
85854
|
+
[DeviceType.Dishwasher]: {
|
|
85855
|
+
exported: false,
|
|
85856
|
+
reason
|
|
85857
|
+
}
|
|
85858
|
+
};
|
|
85859
|
+
}
|
|
85860
|
+
function offered(received) {
|
|
85861
|
+
return {
|
|
85862
|
+
[DeviceType.Washer]: {
|
|
85863
|
+
exported: true,
|
|
85864
|
+
as: received
|
|
85865
|
+
},
|
|
85866
|
+
[DeviceType.Dryer]: {
|
|
85867
|
+
exported: true,
|
|
85868
|
+
as: received
|
|
85869
|
+
},
|
|
85870
|
+
[DeviceType.Dishwasher]: {
|
|
85871
|
+
exported: true,
|
|
85872
|
+
as: received
|
|
85873
|
+
}
|
|
85874
|
+
};
|
|
85875
|
+
}
|
|
85876
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84694
85877
|
Object.freeze({
|
|
84695
85878
|
"accessories.getStatus": [{
|
|
84696
85879
|
name: "deviceId",
|
|
@@ -85657,6 +86840,21 @@ Object.freeze({
|
|
|
85657
86840
|
form: "single",
|
|
85658
86841
|
optional: false
|
|
85659
86842
|
}],
|
|
86843
|
+
"groupActive.getStatus": [{
|
|
86844
|
+
name: "deviceId",
|
|
86845
|
+
form: "single",
|
|
86846
|
+
optional: false
|
|
86847
|
+
}],
|
|
86848
|
+
"groupCommands.getStatus": [{
|
|
86849
|
+
name: "deviceId",
|
|
86850
|
+
form: "single",
|
|
86851
|
+
optional: false
|
|
86852
|
+
}],
|
|
86853
|
+
"groupStatus.getStatus": [{
|
|
86854
|
+
name: "deviceId",
|
|
86855
|
+
form: "single",
|
|
86856
|
+
optional: false
|
|
86857
|
+
}],
|
|
85660
86858
|
"heatingValve.getStatus": [{
|
|
85661
86859
|
name: "deviceId",
|
|
85662
86860
|
form: "single",
|
|
@@ -85857,6 +87055,11 @@ Object.freeze({
|
|
|
85857
87055
|
form: "single",
|
|
85858
87056
|
optional: false
|
|
85859
87057
|
}],
|
|
87058
|
+
"meter.getStatus": [{
|
|
87059
|
+
name: "deviceId",
|
|
87060
|
+
form: "single",
|
|
87061
|
+
optional: false
|
|
87062
|
+
}],
|
|
85860
87063
|
"motion.getStatus": [{
|
|
85861
87064
|
name: "deviceId",
|
|
85862
87065
|
form: "single",
|
|
@@ -87464,7 +88667,6 @@ Object.freeze({
|
|
|
87464
88667
|
"network-access": "ingress",
|
|
87465
88668
|
"smtp-provider": "email"
|
|
87466
88669
|
});
|
|
87467
|
-
DeviceType.Camera;
|
|
87468
88670
|
/**
|
|
87469
88671
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87470
88672
|
* `z.infer`, they do not restate the shape.
|
|
@@ -87641,6 +88843,8 @@ new Map(Object.entries({
|
|
|
87641
88843
|
"detection-blind": "device-events",
|
|
87642
88844
|
"motion-noisy": "device-events",
|
|
87643
88845
|
"motion-calm": "device-events",
|
|
88846
|
+
"package-llm-silent": "device-events",
|
|
88847
|
+
"package-llm-answered": "device-events",
|
|
87644
88848
|
"recording-stalled": "device-events",
|
|
87645
88849
|
"recording-healthy": "device-events",
|
|
87646
88850
|
"recording-degraded": "device-events",
|
|
@@ -87724,6 +88928,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
87724
88928
|
label: "Motion without a subject",
|
|
87725
88929
|
kinds: ["motion-noisy", "motion-calm"]
|
|
87726
88930
|
},
|
|
88931
|
+
{
|
|
88932
|
+
id: "package-llm",
|
|
88933
|
+
family: "device-events",
|
|
88934
|
+
label: "Package confirm",
|
|
88935
|
+
kinds: ["package-llm-silent", "package-llm-answered"]
|
|
88936
|
+
},
|
|
87727
88937
|
{
|
|
87728
88938
|
id: "recording",
|
|
87729
88939
|
family: "device-events",
|
|
@@ -87905,6 +89115,8 @@ var DEVICE_EVENTS = [
|
|
|
87905
89115
|
"detection-blind",
|
|
87906
89116
|
"motion-noisy",
|
|
87907
89117
|
"motion-calm",
|
|
89118
|
+
"package-llm-silent",
|
|
89119
|
+
"package-llm-answered",
|
|
87908
89120
|
"recording-stalled",
|
|
87909
89121
|
"recording-healthy",
|
|
87910
89122
|
"recording-degraded",
|
|
@@ -88173,6 +89385,15 @@ new Map([
|
|
|
88173
89385
|
snapshotLabel: "Cameras with constant motion now",
|
|
88174
89386
|
snapshotSection: null
|
|
88175
89387
|
},
|
|
89388
|
+
{
|
|
89389
|
+
id: "package-llm-confirm",
|
|
89390
|
+
family: "device-events",
|
|
89391
|
+
label: "Package confirm (not answering / answering again)",
|
|
89392
|
+
bad: ["package-llm-silent"],
|
|
89393
|
+
recovery: ["package-llm-answered"],
|
|
89394
|
+
snapshotLabel: "Cameras whose package confirm is not answering",
|
|
89395
|
+
snapshotSection: null
|
|
89396
|
+
},
|
|
88176
89397
|
{
|
|
88177
89398
|
id: "recording-health",
|
|
88178
89399
|
family: "device-events",
|