@camstack/addon-provider-bosch 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/README.md +20 -13
- package/dist/{account-integration-offline-DKaazSyb.mjs → account-integration-offline-C-XbrgLs.mjs} +1 -1
- package/dist/{account-integration-offline-2MI94wOE.js → account-integration-offline-DMtMWixt.js} +1 -1
- package/dist/{dist-DEZDBpGW.js → dist-CyLs51d2.js} +680 -45
- package/dist/{dist-Cbcvh8mB.mjs → dist-DzSesBKb.mjs} +680 -45
- package/dist/home-connect/addon.js +2 -2
- package/dist/home-connect/addon.mjs +2 -2
- package/dist/homecom/addon.js +748 -202
- package/dist/homecom/addon.mjs +748 -202
- package/dist/shc/addon.js +1 -1
- package/dist/shc/addon.mjs +1 -1
- package/i18n/en.json +5 -3
- package/i18n/it.json +5 -3
- package/package.json +2 -2
|
@@ -5442,7 +5442,7 @@ var ZodIssueCode = {
|
|
|
5442
5442
|
var ZodFirstPartyTypeKind;
|
|
5443
5443
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5444
5444
|
//#endregion
|
|
5445
|
-
//#region ../types/dist/sleep
|
|
5445
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5446
5446
|
/**
|
|
5447
5447
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5448
5448
|
* window to float samples (D455).
|
|
@@ -8661,6 +8661,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8661
8661
|
"filesystem-browse",
|
|
8662
8662
|
"flood",
|
|
8663
8663
|
"gas",
|
|
8664
|
+
"group-active",
|
|
8664
8665
|
"group-commands",
|
|
8665
8666
|
"group-status",
|
|
8666
8667
|
"heating-valve",
|
|
@@ -8683,6 +8684,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8683
8684
|
"login-method",
|
|
8684
8685
|
"media-player",
|
|
8685
8686
|
"mesh-network",
|
|
8687
|
+
"meter",
|
|
8686
8688
|
"metrics-provider",
|
|
8687
8689
|
"model-convert",
|
|
8688
8690
|
"model-distributor",
|
|
@@ -9481,6 +9483,10 @@ Object.freeze({
|
|
|
9481
9483
|
"path": "detected",
|
|
9482
9484
|
"valueType": "boolean"
|
|
9483
9485
|
}],
|
|
9486
|
+
"group-active": [{
|
|
9487
|
+
"path": "active",
|
|
9488
|
+
"valueType": "boolean"
|
|
9489
|
+
}],
|
|
9484
9490
|
"group-status": [
|
|
9485
9491
|
{
|
|
9486
9492
|
"path": "included",
|
|
@@ -9740,6 +9746,10 @@ Object.freeze({
|
|
|
9740
9746
|
]
|
|
9741
9747
|
}
|
|
9742
9748
|
],
|
|
9749
|
+
"meter": [{
|
|
9750
|
+
"path": "value",
|
|
9751
|
+
"valueType": "number"
|
|
9752
|
+
}],
|
|
9743
9753
|
"motion": [
|
|
9744
9754
|
{
|
|
9745
9755
|
"path": "detected",
|
|
@@ -10483,7 +10493,7 @@ object({
|
|
|
10483
10493
|
params: record(string(), union([string(), number()])).optional()
|
|
10484
10494
|
});
|
|
10485
10495
|
//#endregion
|
|
10486
|
-
//#region ../types/dist/err-msg-
|
|
10496
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10487
10497
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10488
10498
|
DeviceType["Camera"] = "camera";
|
|
10489
10499
|
DeviceType["Hub"] = "hub";
|
|
@@ -10577,8 +10587,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10577
10587
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10578
10588
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10579
10589
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10580
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10590
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10591
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10581
10592
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10593
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10594
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10595
|
+
DeviceType["Washer"] = "washer";
|
|
10596
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10597
|
+
DeviceType["Dryer"] = "dryer";
|
|
10582
10598
|
return DeviceType;
|
|
10583
10599
|
}({});
|
|
10584
10600
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10836,7 +10852,7 @@ function errMsg(err) {
|
|
|
10836
10852
|
return String(err);
|
|
10837
10853
|
}
|
|
10838
10854
|
//#endregion
|
|
10839
|
-
//#region ../types/dist/composition-
|
|
10855
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10840
10856
|
/**
|
|
10841
10857
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10842
10858
|
*
|
|
@@ -11151,6 +11167,13 @@ var table = {
|
|
|
11151
11167
|
apply: () => {
|
|
11152
11168
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11153
11169
|
}
|
|
11170
|
+
},
|
|
11171
|
+
schmitt: {
|
|
11172
|
+
minArgs: 3,
|
|
11173
|
+
maxArgs: 5,
|
|
11174
|
+
apply: () => {
|
|
11175
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11176
|
+
}
|
|
11154
11177
|
}
|
|
11155
11178
|
};
|
|
11156
11179
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11592,6 +11615,99 @@ function validateExpressionSource(src) {
|
|
|
11592
11615
|
return null;
|
|
11593
11616
|
}
|
|
11594
11617
|
/**
|
|
11618
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11619
|
+
*
|
|
11620
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11621
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11622
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11623
|
+
*
|
|
11624
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11625
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11626
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11627
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11628
|
+
* can move later without moving the others.
|
|
11629
|
+
*/
|
|
11630
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11631
|
+
var APPLIANCE_KINDS = [
|
|
11632
|
+
"washer",
|
|
11633
|
+
"dryer",
|
|
11634
|
+
"dishwasher"
|
|
11635
|
+
];
|
|
11636
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11637
|
+
/**
|
|
11638
|
+
* Statistics and integrals over a history read (D944).
|
|
11639
|
+
*
|
|
11640
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11641
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11642
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11643
|
+
* as zero. A truncated read is not published.
|
|
11644
|
+
*/
|
|
11645
|
+
var STATISTIC_STATS = [
|
|
11646
|
+
"min",
|
|
11647
|
+
"max",
|
|
11648
|
+
"mean",
|
|
11649
|
+
"sum",
|
|
11650
|
+
"count",
|
|
11651
|
+
"change"
|
|
11652
|
+
];
|
|
11653
|
+
/**
|
|
11654
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11655
|
+
*
|
|
11656
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11657
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11658
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11659
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11660
|
+
*/
|
|
11661
|
+
var MINUTE_MS = 6e4;
|
|
11662
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11663
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11664
|
+
var ROLLING_SPANS = [
|
|
11665
|
+
"1h",
|
|
11666
|
+
"24h",
|
|
11667
|
+
"2d",
|
|
11668
|
+
"7d",
|
|
11669
|
+
"30d",
|
|
11670
|
+
"custom"
|
|
11671
|
+
];
|
|
11672
|
+
var CALENDAR_PERIODS = [
|
|
11673
|
+
"today",
|
|
11674
|
+
"yesterday",
|
|
11675
|
+
"this-week",
|
|
11676
|
+
"this-month"
|
|
11677
|
+
];
|
|
11678
|
+
var RESET_PERIODS = [
|
|
11679
|
+
"never",
|
|
11680
|
+
"daily",
|
|
11681
|
+
"weekly",
|
|
11682
|
+
"monthly"
|
|
11683
|
+
];
|
|
11684
|
+
5 * MINUTE_MS;
|
|
11685
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11686
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11687
|
+
var rollingWindowObject = object({
|
|
11688
|
+
kind: literal("rolling"),
|
|
11689
|
+
span: _enum(ROLLING_SPANS),
|
|
11690
|
+
customMinutes: number().int().min(5).optional()
|
|
11691
|
+
}).check((payload) => {
|
|
11692
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11693
|
+
code: "custom",
|
|
11694
|
+
message: "a custom range needs a duration in minutes",
|
|
11695
|
+
path: ["customMinutes"],
|
|
11696
|
+
input: payload.value
|
|
11697
|
+
});
|
|
11698
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11699
|
+
code: "custom",
|
|
11700
|
+
message: "only a custom range carries a duration",
|
|
11701
|
+
path: ["customMinutes"],
|
|
11702
|
+
input: payload.value
|
|
11703
|
+
});
|
|
11704
|
+
});
|
|
11705
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11706
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11707
|
+
kind: literal("calendar"),
|
|
11708
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11709
|
+
})]);
|
|
11710
|
+
/**
|
|
11595
11711
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11596
11712
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11597
11713
|
* `composition.ts` (D659).
|
|
@@ -11617,7 +11733,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11617
11733
|
"occupancy",
|
|
11618
11734
|
"binary",
|
|
11619
11735
|
"switch",
|
|
11620
|
-
"light"
|
|
11736
|
+
"light",
|
|
11737
|
+
"fan",
|
|
11738
|
+
"cover",
|
|
11739
|
+
"valve",
|
|
11740
|
+
"lock",
|
|
11741
|
+
"media-player",
|
|
11742
|
+
"climate"
|
|
11621
11743
|
];
|
|
11622
11744
|
var NUMERIC_AGGREGATES = [
|
|
11623
11745
|
"mean",
|
|
@@ -11647,14 +11769,73 @@ var HelperMemberSchema = object({
|
|
|
11647
11769
|
cap: string().min(1),
|
|
11648
11770
|
fieldPath: string().min(1)
|
|
11649
11771
|
});
|
|
11650
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11772
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11773
|
+
object({
|
|
11774
|
+
kind: literal("group"),
|
|
11775
|
+
templateId: GroupTemplateIdSchema,
|
|
11776
|
+
aggregate: AggregateReducerSchema,
|
|
11777
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11778
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11779
|
+
active: ActiveCriterionSchema.optional()
|
|
11780
|
+
}),
|
|
11781
|
+
object({
|
|
11782
|
+
kind: literal("appliance"),
|
|
11783
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11784
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11785
|
+
thresholdWatts: number().positive(),
|
|
11786
|
+
startDwellMs: number().int().nonnegative(),
|
|
11787
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11788
|
+
member: HelperMemberSchema
|
|
11789
|
+
}),
|
|
11790
|
+
object({
|
|
11791
|
+
kind: literal("statistic"),
|
|
11792
|
+
stat: _enum(STATISTIC_STATS),
|
|
11793
|
+
window: StatisticWindowSchema,
|
|
11794
|
+
source: HelperMemberSchema
|
|
11795
|
+
}),
|
|
11796
|
+
object({
|
|
11797
|
+
kind: literal("integral"),
|
|
11798
|
+
reset: _enum(RESET_PERIODS),
|
|
11799
|
+
output: _enum(["energy", "meter"]),
|
|
11800
|
+
source: HelperMemberSchema
|
|
11801
|
+
}),
|
|
11802
|
+
object({
|
|
11803
|
+
kind: literal("threshold"),
|
|
11804
|
+
source: HelperMemberSchema,
|
|
11805
|
+
high: number(),
|
|
11806
|
+
low: number(),
|
|
11807
|
+
onForMs: number().int().nonnegative(),
|
|
11808
|
+
offForMs: number().int().nonnegative()
|
|
11809
|
+
}),
|
|
11810
|
+
object({
|
|
11811
|
+
kind: literal("arithmetic"),
|
|
11812
|
+
op: _enum([
|
|
11813
|
+
"sum",
|
|
11814
|
+
"difference",
|
|
11815
|
+
"ratio"
|
|
11816
|
+
]),
|
|
11817
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11818
|
+
}),
|
|
11819
|
+
object({
|
|
11820
|
+
kind: literal("expression"),
|
|
11821
|
+
expr: string().min(1),
|
|
11822
|
+
inputs: array(object({
|
|
11823
|
+
name: string().min(1),
|
|
11824
|
+
member: HelperMemberSchema
|
|
11825
|
+
})).min(1).max(64),
|
|
11826
|
+
output: _enum(["number", "boolean"])
|
|
11827
|
+
}),
|
|
11828
|
+
object({
|
|
11829
|
+
kind: literal("derivative"),
|
|
11830
|
+
window: RollingWindowSchema,
|
|
11831
|
+
per: _enum([
|
|
11832
|
+
"second",
|
|
11833
|
+
"minute",
|
|
11834
|
+
"hour"
|
|
11835
|
+
]),
|
|
11836
|
+
source: HelperMemberSchema
|
|
11837
|
+
})
|
|
11838
|
+
]);
|
|
11658
11839
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11659
11840
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11660
11841
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11715,6 +11896,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11715
11896
|
"all"
|
|
11716
11897
|
]),
|
|
11717
11898
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11899
|
+
/**
|
|
11900
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11901
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11902
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11903
|
+
*/
|
|
11904
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11718
11905
|
/** `value` is the reading; the others are the member counts. */
|
|
11719
11906
|
publish: _enum([
|
|
11720
11907
|
"value",
|
|
@@ -11728,6 +11915,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11728
11915
|
"omit",
|
|
11729
11916
|
"offline"
|
|
11730
11917
|
])
|
|
11918
|
+
}),
|
|
11919
|
+
object({
|
|
11920
|
+
kind: literal("series"),
|
|
11921
|
+
read: CompositionFieldReadSchema,
|
|
11922
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11923
|
+
publish: _enum([
|
|
11924
|
+
"value",
|
|
11925
|
+
"included",
|
|
11926
|
+
"excluded",
|
|
11927
|
+
"total"
|
|
11928
|
+
]),
|
|
11929
|
+
/**
|
|
11930
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11931
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11932
|
+
*/
|
|
11933
|
+
empty: _enum([
|
|
11934
|
+
"null",
|
|
11935
|
+
"omit",
|
|
11936
|
+
"offline"
|
|
11937
|
+
])
|
|
11731
11938
|
})
|
|
11732
11939
|
]);
|
|
11733
11940
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16887,7 +17094,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16887
17094
|
*/
|
|
16888
17095
|
interactiveConnectPath: string().min(1).optional(),
|
|
16889
17096
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16890
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17097
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17098
|
+
/**
|
|
17099
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17100
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17101
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17102
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17103
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17104
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17105
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17106
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17107
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17108
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17109
|
+
* offers it as the default path; the fields the session fills are
|
|
17110
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17111
|
+
*/
|
|
17112
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16891
17113
|
}))
|
|
16892
17114
|
});
|
|
16893
17115
|
var ListInputSchema = object({
|
|
@@ -17992,7 +18214,8 @@ var CompositionProblemSchema = object({
|
|
|
17992
18214
|
"native-capability-replace",
|
|
17993
18215
|
"mixed-quantity",
|
|
17994
18216
|
"helper-mismatch",
|
|
17995
|
-
"member-constraint"
|
|
18217
|
+
"member-constraint",
|
|
18218
|
+
"retention"
|
|
17996
18219
|
]),
|
|
17997
18220
|
path: string(),
|
|
17998
18221
|
message: string()
|
|
@@ -18226,13 +18449,17 @@ Object.freeze({
|
|
|
18226
18449
|
latchedAt: {
|
|
18227
18450
|
kind: "fixed",
|
|
18228
18451
|
result: ["number", "null"]
|
|
18452
|
+
},
|
|
18453
|
+
schmitt: {
|
|
18454
|
+
kind: "fixed",
|
|
18455
|
+
result: ["boolean", "null"]
|
|
18229
18456
|
}
|
|
18230
18457
|
});
|
|
18231
18458
|
/**
|
|
18232
18459
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18233
18460
|
* Data, not a form default written into the block.
|
|
18234
18461
|
*/
|
|
18235
|
-
var NOW = {
|
|
18462
|
+
var NOW$2 = {
|
|
18236
18463
|
fieldPath: "lastFetchedAt",
|
|
18237
18464
|
expr: "now"
|
|
18238
18465
|
};
|
|
@@ -18246,6 +18473,8 @@ function numeric(input) {
|
|
|
18246
18473
|
family: "numeric",
|
|
18247
18474
|
deviceType: DeviceType.Sensor,
|
|
18248
18475
|
memberDeviceType: DeviceType.Sensor,
|
|
18476
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18477
|
+
activeWhen: void 0,
|
|
18249
18478
|
commandCaps: [],
|
|
18250
18479
|
baseUnit: baseUnitOf(input.quantity),
|
|
18251
18480
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18261,6 +18490,8 @@ function binary(input) {
|
|
|
18261
18490
|
family: "binary",
|
|
18262
18491
|
deviceType: DeviceType.Sensor,
|
|
18263
18492
|
memberDeviceType: DeviceType.Sensor,
|
|
18493
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18494
|
+
activeWhen: void 0,
|
|
18264
18495
|
commandCaps: [],
|
|
18265
18496
|
quantity: "none",
|
|
18266
18497
|
baseUnit: void 0,
|
|
@@ -18278,7 +18509,7 @@ var GROUP_TEMPLATES = [
|
|
|
18278
18509
|
quantity: "temperature",
|
|
18279
18510
|
defaultAggregate: "mean",
|
|
18280
18511
|
empty: "null",
|
|
18281
|
-
companions: [NOW]
|
|
18512
|
+
companions: [NOW$2]
|
|
18282
18513
|
}),
|
|
18283
18514
|
numeric({
|
|
18284
18515
|
id: "humidity",
|
|
@@ -18289,7 +18520,7 @@ var GROUP_TEMPLATES = [
|
|
|
18289
18520
|
quantity: "humidity",
|
|
18290
18521
|
defaultAggregate: "mean",
|
|
18291
18522
|
empty: "null",
|
|
18292
|
-
companions: [NOW]
|
|
18523
|
+
companions: [NOW$2]
|
|
18293
18524
|
}),
|
|
18294
18525
|
numeric({
|
|
18295
18526
|
id: "pressure",
|
|
@@ -18300,7 +18531,7 @@ var GROUP_TEMPLATES = [
|
|
|
18300
18531
|
quantity: "pressure",
|
|
18301
18532
|
defaultAggregate: "mean",
|
|
18302
18533
|
empty: "null",
|
|
18303
|
-
companions: [NOW]
|
|
18534
|
+
companions: [NOW$2]
|
|
18304
18535
|
}),
|
|
18305
18536
|
numeric({
|
|
18306
18537
|
id: "illuminance",
|
|
@@ -18311,7 +18542,7 @@ var GROUP_TEMPLATES = [
|
|
|
18311
18542
|
quantity: "illuminance",
|
|
18312
18543
|
defaultAggregate: "mean",
|
|
18313
18544
|
empty: "null",
|
|
18314
|
-
companions: [NOW]
|
|
18545
|
+
companions: [NOW$2]
|
|
18315
18546
|
}),
|
|
18316
18547
|
numeric({
|
|
18317
18548
|
id: "power",
|
|
@@ -18322,7 +18553,7 @@ var GROUP_TEMPLATES = [
|
|
|
18322
18553
|
quantity: "power",
|
|
18323
18554
|
defaultAggregate: "sum",
|
|
18324
18555
|
empty: "omit",
|
|
18325
|
-
companions: [NOW]
|
|
18556
|
+
companions: [NOW$2]
|
|
18326
18557
|
}),
|
|
18327
18558
|
numeric({
|
|
18328
18559
|
id: "energy",
|
|
@@ -18333,7 +18564,7 @@ var GROUP_TEMPLATES = [
|
|
|
18333
18564
|
quantity: "energy",
|
|
18334
18565
|
defaultAggregate: "sum",
|
|
18335
18566
|
empty: "omit",
|
|
18336
|
-
companions: [NOW]
|
|
18567
|
+
companions: [NOW$2]
|
|
18337
18568
|
}),
|
|
18338
18569
|
numeric({
|
|
18339
18570
|
id: "battery",
|
|
@@ -18368,7 +18599,7 @@ var GROUP_TEMPLATES = [
|
|
|
18368
18599
|
quantity: "device",
|
|
18369
18600
|
defaultAggregate: "mean",
|
|
18370
18601
|
empty: "null",
|
|
18371
|
-
companions: [NOW]
|
|
18602
|
+
companions: [NOW$2]
|
|
18372
18603
|
}),
|
|
18373
18604
|
binary({
|
|
18374
18605
|
id: "motion",
|
|
@@ -18462,6 +18693,11 @@ var GROUP_TEMPLATES = [
|
|
|
18462
18693
|
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.",
|
|
18463
18694
|
deviceType: DeviceType.Switch,
|
|
18464
18695
|
outputCap: "switch",
|
|
18696
|
+
outputField: "on",
|
|
18697
|
+
member: {
|
|
18698
|
+
cap: "switch",
|
|
18699
|
+
fieldPath: "on"
|
|
18700
|
+
},
|
|
18465
18701
|
commandCaps: ["switch"]
|
|
18466
18702
|
}),
|
|
18467
18703
|
actuator({
|
|
@@ -18469,34 +18705,136 @@ var GROUP_TEMPLATES = [
|
|
|
18469
18705
|
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.",
|
|
18470
18706
|
deviceType: DeviceType.Light,
|
|
18471
18707
|
outputCap: "switch",
|
|
18708
|
+
outputField: "on",
|
|
18709
|
+
member: {
|
|
18710
|
+
cap: "switch",
|
|
18711
|
+
fieldPath: "on"
|
|
18712
|
+
},
|
|
18472
18713
|
commandCaps: [
|
|
18473
18714
|
"switch",
|
|
18474
18715
|
"brightness",
|
|
18475
18716
|
"color"
|
|
18476
18717
|
]
|
|
18718
|
+
}),
|
|
18719
|
+
actuator({
|
|
18720
|
+
id: "fan",
|
|
18721
|
+
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.",
|
|
18722
|
+
deviceType: DeviceType.Fan,
|
|
18723
|
+
outputCap: "switch",
|
|
18724
|
+
outputField: "on",
|
|
18725
|
+
member: {
|
|
18726
|
+
cap: "switch",
|
|
18727
|
+
fieldPath: "on"
|
|
18728
|
+
},
|
|
18729
|
+
commandCaps: ["switch", "fan-control"]
|
|
18730
|
+
}),
|
|
18731
|
+
actuator({
|
|
18732
|
+
id: "cover",
|
|
18733
|
+
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.",
|
|
18734
|
+
deviceType: DeviceType.Cover,
|
|
18735
|
+
outputCap: "group-active",
|
|
18736
|
+
outputField: "active",
|
|
18737
|
+
member: {
|
|
18738
|
+
cap: "cover",
|
|
18739
|
+
fieldPath: "state"
|
|
18740
|
+
},
|
|
18741
|
+
activeWhen: [
|
|
18742
|
+
"open",
|
|
18743
|
+
"opening",
|
|
18744
|
+
"stopped"
|
|
18745
|
+
],
|
|
18746
|
+
commandCaps: ["cover"]
|
|
18747
|
+
}),
|
|
18748
|
+
actuator({
|
|
18749
|
+
id: "valve",
|
|
18750
|
+
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.",
|
|
18751
|
+
deviceType: DeviceType.Valve,
|
|
18752
|
+
outputCap: "group-active",
|
|
18753
|
+
outputField: "active",
|
|
18754
|
+
member: {
|
|
18755
|
+
cap: "valve",
|
|
18756
|
+
fieldPath: "state"
|
|
18757
|
+
},
|
|
18758
|
+
activeWhen: [
|
|
18759
|
+
"open",
|
|
18760
|
+
"opening",
|
|
18761
|
+
"stopped"
|
|
18762
|
+
],
|
|
18763
|
+
commandCaps: ["valve"]
|
|
18764
|
+
}),
|
|
18765
|
+
actuator({
|
|
18766
|
+
id: "lock",
|
|
18767
|
+
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.",
|
|
18768
|
+
deviceType: DeviceType.Lock,
|
|
18769
|
+
outputCap: "group-active",
|
|
18770
|
+
outputField: "active",
|
|
18771
|
+
member: {
|
|
18772
|
+
cap: "lock-control",
|
|
18773
|
+
fieldPath: "state"
|
|
18774
|
+
},
|
|
18775
|
+
activeWhen: ["locked"],
|
|
18776
|
+
commandCaps: ["lock-control"]
|
|
18777
|
+
}),
|
|
18778
|
+
actuator({
|
|
18779
|
+
id: "media-player",
|
|
18780
|
+
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.",
|
|
18781
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18782
|
+
outputCap: "group-active",
|
|
18783
|
+
outputField: "active",
|
|
18784
|
+
member: {
|
|
18785
|
+
cap: "media-player",
|
|
18786
|
+
fieldPath: "state"
|
|
18787
|
+
},
|
|
18788
|
+
activeWhen: ["playing", "buffering"],
|
|
18789
|
+
commandCaps: ["media-player"]
|
|
18790
|
+
}),
|
|
18791
|
+
actuator({
|
|
18792
|
+
id: "climate",
|
|
18793
|
+
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.",
|
|
18794
|
+
deviceType: DeviceType.Thermostat,
|
|
18795
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18796
|
+
outputCap: "group-active",
|
|
18797
|
+
outputField: "active",
|
|
18798
|
+
member: {
|
|
18799
|
+
cap: "climate-control",
|
|
18800
|
+
fieldPath: "mode"
|
|
18801
|
+
},
|
|
18802
|
+
activeWhen: [
|
|
18803
|
+
"heat",
|
|
18804
|
+
"cool",
|
|
18805
|
+
"auto",
|
|
18806
|
+
"heat_cool",
|
|
18807
|
+
"fan_only",
|
|
18808
|
+
"dry"
|
|
18809
|
+
],
|
|
18810
|
+
commandCaps: ["climate-control"]
|
|
18477
18811
|
})
|
|
18478
18812
|
];
|
|
18479
18813
|
function actuator(input) {
|
|
18480
18814
|
return {
|
|
18481
|
-
|
|
18815
|
+
id: input.id,
|
|
18816
|
+
summary: input.summary,
|
|
18817
|
+
deviceType: input.deviceType,
|
|
18818
|
+
outputCap: input.outputCap,
|
|
18819
|
+
outputField: input.outputField,
|
|
18820
|
+
commandCaps: input.commandCaps,
|
|
18482
18821
|
family: "actuator",
|
|
18483
18822
|
role: void 0,
|
|
18484
18823
|
memberDeviceType: input.deviceType,
|
|
18485
|
-
|
|
18824
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18825
|
+
activeWhen: input.activeWhen,
|
|
18486
18826
|
quantity: "none",
|
|
18487
18827
|
baseUnit: void 0,
|
|
18488
18828
|
aggregates: BINARY_AGGREGATES,
|
|
18489
18829
|
defaultAggregate: "any",
|
|
18490
18830
|
empty: "offline",
|
|
18491
|
-
accept: [
|
|
18492
|
-
cap: "switch",
|
|
18493
|
-
fieldPath: "on"
|
|
18494
|
-
}],
|
|
18831
|
+
accept: [input.member],
|
|
18495
18832
|
companions: [CHANGED]
|
|
18496
18833
|
};
|
|
18497
18834
|
}
|
|
18498
18835
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18499
18836
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18837
|
+
DeviceType.Camera;
|
|
18500
18838
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18501
18839
|
/**
|
|
18502
18840
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43794,7 +44132,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43794
44132
|
});
|
|
43795
44133
|
/**
|
|
43796
44134
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43797
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44135
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43798
44136
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43799
44137
|
* the originating provider config (mode + sourcePort) so the
|
|
43800
44138
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46481,7 +46819,20 @@ var NcRuleInputSchema = object({
|
|
|
46481
46819
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46482
46820
|
* path does not run Zod defaults.
|
|
46483
46821
|
*/
|
|
46484
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46822
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46823
|
+
/**
|
|
46824
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46825
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46826
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46827
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46828
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46829
|
+
*
|
|
46830
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46831
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46832
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46833
|
+
* `false`, so it needs no `clear` key.
|
|
46834
|
+
*/
|
|
46835
|
+
askVerdict: boolean().optional()
|
|
46485
46836
|
});
|
|
46486
46837
|
/**
|
|
46487
46838
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57201,7 +57552,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57201
57552
|
DeviceType.Switch,
|
|
57202
57553
|
DeviceType.PetFeeder,
|
|
57203
57554
|
DeviceType.Container,
|
|
57204
|
-
DeviceType.Thermostat
|
|
57555
|
+
DeviceType.Thermostat,
|
|
57556
|
+
DeviceType.EventEmitter
|
|
57205
57557
|
];
|
|
57206
57558
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57207
57559
|
var batteryCustomize = {
|
|
@@ -60069,7 +60421,17 @@ var groupCommandsCapability = {
|
|
|
60069
60421
|
scope: "device",
|
|
60070
60422
|
deviceNative: true,
|
|
60071
60423
|
mode: "singleton",
|
|
60072
|
-
deviceTypes: [
|
|
60424
|
+
deviceTypes: [
|
|
60425
|
+
DeviceType.Switch,
|
|
60426
|
+
DeviceType.Light,
|
|
60427
|
+
DeviceType.Fan,
|
|
60428
|
+
DeviceType.Cover,
|
|
60429
|
+
DeviceType.Valve,
|
|
60430
|
+
DeviceType.Lock,
|
|
60431
|
+
DeviceType.MediaPlayer,
|
|
60432
|
+
DeviceType.Thermostat,
|
|
60433
|
+
DeviceType.Climate
|
|
60434
|
+
],
|
|
60073
60435
|
methods: {},
|
|
60074
60436
|
status: {
|
|
60075
60437
|
schema: GroupCommandsSchema,
|
|
@@ -60087,6 +60449,49 @@ var groupCommandsCapability = {
|
|
|
60087
60449
|
history: "none"
|
|
60088
60450
|
};
|
|
60089
60451
|
/**
|
|
60452
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60453
|
+
* included member is, or every included member is. What "active" means is the
|
|
60454
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60455
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60456
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60457
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60458
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60459
|
+
*/
|
|
60460
|
+
var GroupActiveSchema = object({
|
|
60461
|
+
active: boolean().meta({ label: "Active" }),
|
|
60462
|
+
/** Ms epoch when the slice was last updated. */
|
|
60463
|
+
lastChangedAt: number()
|
|
60464
|
+
});
|
|
60465
|
+
var groupActiveCapability = {
|
|
60466
|
+
name: "group-active",
|
|
60467
|
+
scope: "device",
|
|
60468
|
+
deviceNative: true,
|
|
60469
|
+
mode: "singleton",
|
|
60470
|
+
deviceTypes: [
|
|
60471
|
+
DeviceType.Cover,
|
|
60472
|
+
DeviceType.Valve,
|
|
60473
|
+
DeviceType.Lock,
|
|
60474
|
+
DeviceType.MediaPlayer,
|
|
60475
|
+
DeviceType.Climate,
|
|
60476
|
+
DeviceType.Thermostat
|
|
60477
|
+
],
|
|
60478
|
+
methods: {},
|
|
60479
|
+
status: {
|
|
60480
|
+
schema: GroupActiveSchema,
|
|
60481
|
+
kind: "push"
|
|
60482
|
+
},
|
|
60483
|
+
runtimeState: GroupActiveSchema,
|
|
60484
|
+
/**
|
|
60485
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60486
|
+
* next source event; a restored value would outlive the members it named.
|
|
60487
|
+
*
|
|
60488
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60489
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60490
|
+
*/
|
|
60491
|
+
durability: "session",
|
|
60492
|
+
history: "none"
|
|
60493
|
+
};
|
|
60494
|
+
/**
|
|
60090
60495
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60091
60496
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60092
60497
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60117,7 +60522,14 @@ var groupStatusCapability = {
|
|
|
60117
60522
|
deviceTypes: [
|
|
60118
60523
|
DeviceType.Sensor,
|
|
60119
60524
|
DeviceType.Switch,
|
|
60120
|
-
DeviceType.Light
|
|
60525
|
+
DeviceType.Light,
|
|
60526
|
+
DeviceType.Fan,
|
|
60527
|
+
DeviceType.Cover,
|
|
60528
|
+
DeviceType.Valve,
|
|
60529
|
+
DeviceType.Lock,
|
|
60530
|
+
DeviceType.MediaPlayer,
|
|
60531
|
+
DeviceType.Thermostat,
|
|
60532
|
+
DeviceType.Climate
|
|
60121
60533
|
],
|
|
60122
60534
|
methods: {},
|
|
60123
60535
|
status: {
|
|
@@ -61390,7 +61802,14 @@ var lockControlCapability = {
|
|
|
61390
61802
|
}),
|
|
61391
61803
|
unlock: method(object({
|
|
61392
61804
|
deviceId: number().int().nonnegative(),
|
|
61393
|
-
code: string().min(1).optional()
|
|
61805
|
+
code: string().min(1).optional(),
|
|
61806
|
+
/**
|
|
61807
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61808
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61809
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61810
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61811
|
+
*/
|
|
61812
|
+
confirm: boolean().optional()
|
|
61394
61813
|
}), _void(), {
|
|
61395
61814
|
kind: "mutation",
|
|
61396
61815
|
auth: "protected"
|
|
@@ -61427,6 +61846,44 @@ var lockControlCapability = {
|
|
|
61427
61846
|
volatileStateFields: ["lastChangedAt"]
|
|
61428
61847
|
};
|
|
61429
61848
|
/**
|
|
61849
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61850
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61851
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61852
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61853
|
+
*/
|
|
61854
|
+
var MeterStatusSchema = object({
|
|
61855
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61856
|
+
lastFetchedAt: number()
|
|
61857
|
+
});
|
|
61858
|
+
var meterCapability = {
|
|
61859
|
+
name: "meter",
|
|
61860
|
+
scope: "device",
|
|
61861
|
+
deviceNative: true,
|
|
61862
|
+
mode: "singleton",
|
|
61863
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61864
|
+
methods: {},
|
|
61865
|
+
status: {
|
|
61866
|
+
schema: MeterStatusSchema,
|
|
61867
|
+
kind: "push"
|
|
61868
|
+
},
|
|
61869
|
+
runtimeState: MeterStatusSchema,
|
|
61870
|
+
/**
|
|
61871
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61872
|
+
* history integral. A restart shows it only until the history pass
|
|
61873
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61874
|
+
*
|
|
61875
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61876
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61877
|
+
*/
|
|
61878
|
+
durability: "restored",
|
|
61879
|
+
history: { fields: { value: {
|
|
61880
|
+
kind: "counter",
|
|
61881
|
+
deadband: .001,
|
|
61882
|
+
minIntervalMs: 6e4
|
|
61883
|
+
} } },
|
|
61884
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61885
|
+
};
|
|
61886
|
+
/**
|
|
61430
61887
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61431
61888
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61432
61889
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -63938,9 +64395,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63938
64395
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63939
64396
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63940
64397
|
/** Voltage in volts. */
|
|
63941
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64398
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63942
64399
|
/** Current in amperes. */
|
|
63943
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64400
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63944
64401
|
/** Apparent power in volt-amperes. */
|
|
63945
64402
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63946
64403
|
/** Power factor (0..1) if reported. */
|
|
@@ -63948,12 +64405,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63948
64405
|
/** Ms epoch when the slice was last updated. */
|
|
63949
64406
|
lastFetchedAt: number()
|
|
63950
64407
|
});
|
|
64408
|
+
/**
|
|
64409
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64410
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64411
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64412
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64413
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64414
|
+
*/
|
|
64415
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64416
|
+
DeviceType.Sensor,
|
|
64417
|
+
DeviceType.Switch,
|
|
64418
|
+
DeviceType.Light,
|
|
64419
|
+
DeviceType.Fan,
|
|
64420
|
+
DeviceType.Climate,
|
|
64421
|
+
DeviceType.Thermostat,
|
|
64422
|
+
DeviceType.Humidifier,
|
|
64423
|
+
DeviceType.WaterHeater,
|
|
64424
|
+
DeviceType.MediaPlayer,
|
|
64425
|
+
DeviceType.Washer,
|
|
64426
|
+
DeviceType.Dryer,
|
|
64427
|
+
DeviceType.Dishwasher,
|
|
64428
|
+
DeviceType.Vacuum,
|
|
64429
|
+
DeviceType.LawnMower,
|
|
64430
|
+
DeviceType.PetFeeder
|
|
64431
|
+
];
|
|
64432
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64433
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64434
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64435
|
+
function powerTarget(id, unit) {
|
|
64436
|
+
return {
|
|
64437
|
+
id,
|
|
64438
|
+
cardinality: "scalar",
|
|
64439
|
+
vocabulary: {
|
|
64440
|
+
cap: "power-meter",
|
|
64441
|
+
stateField: id
|
|
64442
|
+
},
|
|
64443
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64444
|
+
apply: "add",
|
|
64445
|
+
path: id,
|
|
64446
|
+
sources: [{
|
|
64447
|
+
kind: "numeric",
|
|
64448
|
+
requiredUnit: unit,
|
|
64449
|
+
transforms: [{ kind: "identity" }]
|
|
64450
|
+
}],
|
|
64451
|
+
companions: [{
|
|
64452
|
+
kind: "clock",
|
|
64453
|
+
path: "lastFetchedAt",
|
|
64454
|
+
when: "always"
|
|
64455
|
+
}],
|
|
64456
|
+
sourceReport: { status: "assignment-status" },
|
|
64457
|
+
advancedExpression: true
|
|
64458
|
+
};
|
|
64459
|
+
}
|
|
64460
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64461
|
+
var powerMeterCustomize = {
|
|
64462
|
+
version: 1,
|
|
64463
|
+
targets: [
|
|
64464
|
+
powerTarget("watts", "W"),
|
|
64465
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64466
|
+
powerTarget("volts", "V"),
|
|
64467
|
+
powerTarget("amps", "A")
|
|
64468
|
+
]
|
|
64469
|
+
};
|
|
63951
64470
|
var powerMeterCapability = {
|
|
63952
64471
|
name: "power-meter",
|
|
63953
64472
|
scope: "device",
|
|
63954
64473
|
deviceNative: true,
|
|
63955
64474
|
mode: "singleton",
|
|
63956
|
-
deviceTypes:
|
|
64475
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63957
64476
|
methods: {},
|
|
63958
64477
|
status: {
|
|
63959
64478
|
schema: PowerMeterStatusSchema,
|
|
@@ -64010,7 +64529,8 @@ var powerMeterCapability = {
|
|
|
64010
64529
|
} },
|
|
64011
64530
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64012
64531
|
* whether persisting is worth a SQLite commit. */
|
|
64013
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64532
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64533
|
+
customize: powerMeterCustomize
|
|
64014
64534
|
};
|
|
64015
64535
|
/**
|
|
64016
64536
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64699,6 +65219,8 @@ var runningCustomize = {
|
|
|
64699
65219
|
stateField: "running"
|
|
64700
65220
|
},
|
|
64701
65221
|
deviceTypes: [
|
|
65222
|
+
DeviceType.Washer,
|
|
65223
|
+
DeviceType.Dryer,
|
|
64702
65224
|
DeviceType.Dishwasher,
|
|
64703
65225
|
DeviceType.Vacuum,
|
|
64704
65226
|
DeviceType.LawnMower,
|
|
@@ -67188,7 +67710,8 @@ var switchCapability = {
|
|
|
67188
67710
|
deviceTypes: [
|
|
67189
67711
|
DeviceType.Switch,
|
|
67190
67712
|
DeviceType.Siren,
|
|
67191
|
-
DeviceType.Light
|
|
67713
|
+
DeviceType.Light,
|
|
67714
|
+
DeviceType.Fan
|
|
67192
67715
|
],
|
|
67193
67716
|
methods: { setState: method(object({
|
|
67194
67717
|
deviceId: number(),
|
|
@@ -69432,6 +69955,7 @@ function runningFromDishwasherOperation(operation, program, previous, fetchedAt,
|
|
|
69432
69955
|
if (operation === "Pause") return nativeSlice(false, "Pause", previous, transitionAtMs, fetchedAt, null);
|
|
69433
69956
|
return nativeSlice(false, operation, previous, transitionAtMs, fetchedAt, null);
|
|
69434
69957
|
}
|
|
69958
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69435
69959
|
/**
|
|
69436
69960
|
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
69437
69961
|
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
@@ -69816,7 +70340,7 @@ function tryConvertUnit(value, from, to) {
|
|
|
69816
70340
|
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
69817
70341
|
}
|
|
69818
70342
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69819
|
-
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;
|
|
70343
|
+
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;
|
|
69820
70344
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69821
70345
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69822
70346
|
new Set(CAP_NAMES);
|
|
@@ -70145,6 +70669,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70145
70669
|
featureProbe: featureProbeCapability,
|
|
70146
70670
|
flood: floodCapability,
|
|
70147
70671
|
gas: gasCapability,
|
|
70672
|
+
groupActive: groupActiveCapability,
|
|
70148
70673
|
groupCommands: groupCommandsCapability,
|
|
70149
70674
|
groupStatus: groupStatusCapability,
|
|
70150
70675
|
heatingValve: heatingValveCapability,
|
|
@@ -70156,6 +70681,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
70156
70681
|
lawnMowerControl: lawnMowerControlCapability,
|
|
70157
70682
|
lockControl: lockControlCapability,
|
|
70158
70683
|
mediaPlayer: mediaPlayerCapability,
|
|
70684
|
+
meter: meterCapability,
|
|
70159
70685
|
motion: motionCapability,
|
|
70160
70686
|
motionTrigger: motionTriggerCapability,
|
|
70161
70687
|
motionZones: motionZonesCapability,
|
|
@@ -71415,7 +71941,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71415
71941
|
return toDeviceSummary(device, this.addonId);
|
|
71416
71942
|
}
|
|
71417
71943
|
};
|
|
71418
|
-
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;
|
|
71944
|
+
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;
|
|
71419
71945
|
new Set(Object.values(DeviceType));
|
|
71420
71946
|
Object.freeze({
|
|
71421
71947
|
"accessories.getStatus": {
|
|
@@ -74638,6 +75164,13 @@ Object.freeze({
|
|
|
74638
75164
|
access: "view",
|
|
74639
75165
|
role: "viewer"
|
|
74640
75166
|
},
|
|
75167
|
+
"groupActive.getStatus": {
|
|
75168
|
+
capName: "group-active",
|
|
75169
|
+
capScope: "device",
|
|
75170
|
+
addonId: null,
|
|
75171
|
+
access: "view",
|
|
75172
|
+
role: "viewer"
|
|
75173
|
+
},
|
|
74641
75174
|
"groupCommands.getStatus": {
|
|
74642
75175
|
capName: "group-commands",
|
|
74643
75176
|
capScope: "device",
|
|
@@ -75604,6 +76137,13 @@ Object.freeze({
|
|
|
75604
76137
|
access: "create",
|
|
75605
76138
|
role: "admin"
|
|
75606
76139
|
},
|
|
76140
|
+
"meter.getStatus": {
|
|
76141
|
+
capName: "meter",
|
|
76142
|
+
capScope: "device",
|
|
76143
|
+
addonId: null,
|
|
76144
|
+
access: "view",
|
|
76145
|
+
role: "viewer"
|
|
76146
|
+
},
|
|
75607
76147
|
"metricsProvider.collectSnapshot": {
|
|
75608
76148
|
capName: "metrics-provider",
|
|
75609
76149
|
capScope: "system",
|
|
@@ -83702,7 +84242,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83702
84242
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83703
84243
|
icon: "square"
|
|
83704
84244
|
}
|
|
83705
|
-
}
|
|
84245
|
+
},
|
|
84246
|
+
overrides: { byType: {
|
|
84247
|
+
[DeviceType.Washer]: {
|
|
84248
|
+
state: { running: {
|
|
84249
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
84250
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
84251
|
+
} },
|
|
84252
|
+
events: {
|
|
84253
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
84254
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
84255
|
+
}
|
|
84256
|
+
},
|
|
84257
|
+
[DeviceType.Dryer]: {
|
|
84258
|
+
state: { running: {
|
|
84259
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
84260
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
84261
|
+
} },
|
|
84262
|
+
events: {
|
|
84263
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
84264
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
84265
|
+
}
|
|
84266
|
+
},
|
|
84267
|
+
[DeviceType.Dishwasher]: {
|
|
84268
|
+
state: { running: {
|
|
84269
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
84270
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
84271
|
+
} },
|
|
84272
|
+
events: {
|
|
84273
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
84274
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
84275
|
+
}
|
|
84276
|
+
}
|
|
84277
|
+
} }
|
|
83706
84278
|
},
|
|
83707
84279
|
update: {
|
|
83708
84280
|
scope: "device",
|
|
@@ -84474,6 +85046,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84474
85046
|
icon: "flame"
|
|
84475
85047
|
}]
|
|
84476
85048
|
},
|
|
85049
|
+
"group-active": {
|
|
85050
|
+
scope: "device",
|
|
85051
|
+
noun: t("Group state", "Stato del gruppo")
|
|
85052
|
+
},
|
|
84477
85053
|
"group-commands": {
|
|
84478
85054
|
scope: "device",
|
|
84479
85055
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84530,6 +85106,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84530
85106
|
}],
|
|
84531
85107
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84532
85108
|
},
|
|
85109
|
+
meter: {
|
|
85110
|
+
scope: "device",
|
|
85111
|
+
noun: t("Meter", "Contatore"),
|
|
85112
|
+
state: [{
|
|
85113
|
+
kind: "numeric",
|
|
85114
|
+
field: "value",
|
|
85115
|
+
quantity: t("the total", "il totale"),
|
|
85116
|
+
label: t("Total", "Totale"),
|
|
85117
|
+
icon: "gauge"
|
|
85118
|
+
}]
|
|
85119
|
+
},
|
|
84533
85120
|
"numeric-sensor": {
|
|
84534
85121
|
scope: "device",
|
|
84535
85122
|
noun: t("Sensor", "Sensore"),
|
|
@@ -85002,8 +85589,47 @@ function projectAction(cap, action) {
|
|
|
85002
85589
|
};
|
|
85003
85590
|
}
|
|
85004
85591
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
85005
|
-
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;
|
|
85592
|
+
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;
|
|
85006
85593
|
DeviceFeature.BatteryOperated;
|
|
85594
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85595
|
+
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.";
|
|
85596
|
+
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.";
|
|
85597
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85598
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85599
|
+
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.";
|
|
85600
|
+
function withheld(reason) {
|
|
85601
|
+
return {
|
|
85602
|
+
[DeviceType.Washer]: {
|
|
85603
|
+
exported: false,
|
|
85604
|
+
reason
|
|
85605
|
+
},
|
|
85606
|
+
[DeviceType.Dryer]: {
|
|
85607
|
+
exported: false,
|
|
85608
|
+
reason
|
|
85609
|
+
},
|
|
85610
|
+
[DeviceType.Dishwasher]: {
|
|
85611
|
+
exported: false,
|
|
85612
|
+
reason
|
|
85613
|
+
}
|
|
85614
|
+
};
|
|
85615
|
+
}
|
|
85616
|
+
function offered(received) {
|
|
85617
|
+
return {
|
|
85618
|
+
[DeviceType.Washer]: {
|
|
85619
|
+
exported: true,
|
|
85620
|
+
as: received
|
|
85621
|
+
},
|
|
85622
|
+
[DeviceType.Dryer]: {
|
|
85623
|
+
exported: true,
|
|
85624
|
+
as: received
|
|
85625
|
+
},
|
|
85626
|
+
[DeviceType.Dishwasher]: {
|
|
85627
|
+
exported: true,
|
|
85628
|
+
as: received
|
|
85629
|
+
}
|
|
85630
|
+
};
|
|
85631
|
+
}
|
|
85632
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
85007
85633
|
Object.freeze({
|
|
85008
85634
|
"accessories.getStatus": [{
|
|
85009
85635
|
name: "deviceId",
|
|
@@ -85970,6 +86596,11 @@ Object.freeze({
|
|
|
85970
86596
|
form: "single",
|
|
85971
86597
|
optional: false
|
|
85972
86598
|
}],
|
|
86599
|
+
"groupActive.getStatus": [{
|
|
86600
|
+
name: "deviceId",
|
|
86601
|
+
form: "single",
|
|
86602
|
+
optional: false
|
|
86603
|
+
}],
|
|
85973
86604
|
"groupCommands.getStatus": [{
|
|
85974
86605
|
name: "deviceId",
|
|
85975
86606
|
form: "single",
|
|
@@ -86180,6 +86811,11 @@ Object.freeze({
|
|
|
86180
86811
|
form: "single",
|
|
86181
86812
|
optional: false
|
|
86182
86813
|
}],
|
|
86814
|
+
"meter.getStatus": [{
|
|
86815
|
+
name: "deviceId",
|
|
86816
|
+
form: "single",
|
|
86817
|
+
optional: false
|
|
86818
|
+
}],
|
|
86183
86819
|
"motion.getStatus": [{
|
|
86184
86820
|
name: "deviceId",
|
|
86185
86821
|
form: "single",
|
|
@@ -87787,7 +88423,6 @@ Object.freeze({
|
|
|
87787
88423
|
"network-access": "ingress",
|
|
87788
88424
|
"smtp-provider": "email"
|
|
87789
88425
|
});
|
|
87790
|
-
DeviceType.Camera;
|
|
87791
88426
|
/**
|
|
87792
88427
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87793
88428
|
* `z.infer`, they do not restate the shape.
|