@camstack/addon-training 0.1.91 → 0.1.92
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/dist/{MotionZonesSettings-kbJlg0c5.mjs → MotionZonesSettings-Cli21_S4.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-B3gzWS6Y.mjs → PrivacyMaskSettings-BqMnLgR4.mjs} +2 -2
- package/dist/{SceneMonitorEditor-CjxaItjN.mjs → SceneMonitorEditor-TOlMkkSx.mjs} +1 -1
- package/dist/_stub.js +55 -54
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-Cer78kD4.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-Ki3rRnXi.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-COkV6wxS.mjs +26 -0
- package/dist/{dist-B3Dz3xDZ.mjs → dist-BLeIfxL-.mjs} +243 -24
- package/dist/{dist-uLc6FQWF.js → dist-BYGiAfO5.js} +243 -24
- package/dist/{hostInit-C-l48gwp.mjs → hostInit-SSLNnzqp.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/orchestrator/training.addon.js +1 -1
- package/dist/orchestrator/training.addon.mjs +1 -1
- package/dist/{player-overlays-DrA4TUe3.mjs → player-overlays-CpnLw8Tf.mjs} +1 -1
- package/dist/providers/modal/training-modal.addon.js +1 -1
- package/dist/providers/modal/training-modal.addon.mjs +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-C46lpRSX.mjs → responsive-wZ7jMF7F.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-qVIpiQZD.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-CG3LeBz1.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DM1LS5rC.mjs +0 -26
|
@@ -5575,7 +5575,7 @@ var ZodIssueCode = {
|
|
|
5575
5575
|
var ZodFirstPartyTypeKind;
|
|
5576
5576
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5577
5577
|
//#endregion
|
|
5578
|
-
//#region ../types/dist/sleep
|
|
5578
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5579
5579
|
/**
|
|
5580
5580
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5581
5581
|
* window to float samples (D455).
|
|
@@ -8945,6 +8945,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8945
8945
|
"filesystem-browse",
|
|
8946
8946
|
"flood",
|
|
8947
8947
|
"gas",
|
|
8948
|
+
"group-active",
|
|
8948
8949
|
"group-commands",
|
|
8949
8950
|
"group-status",
|
|
8950
8951
|
"heating-valve",
|
|
@@ -9766,6 +9767,10 @@ Object.freeze({
|
|
|
9766
9767
|
"path": "detected",
|
|
9767
9768
|
"valueType": "boolean"
|
|
9768
9769
|
}],
|
|
9770
|
+
"group-active": [{
|
|
9771
|
+
"path": "active",
|
|
9772
|
+
"valueType": "boolean"
|
|
9773
|
+
}],
|
|
9769
9774
|
"group-status": [
|
|
9770
9775
|
{
|
|
9771
9776
|
"path": "included",
|
|
@@ -11121,7 +11126,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
11121
11126
|
return DeviceRole;
|
|
11122
11127
|
}({});
|
|
11123
11128
|
//#endregion
|
|
11124
|
-
//#region ../types/dist/composition-
|
|
11129
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
11125
11130
|
/**
|
|
11126
11131
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
11127
11132
|
*
|
|
@@ -11436,6 +11441,13 @@ var table = {
|
|
|
11436
11441
|
apply: () => {
|
|
11437
11442
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11438
11443
|
}
|
|
11444
|
+
},
|
|
11445
|
+
schmitt: {
|
|
11446
|
+
minArgs: 3,
|
|
11447
|
+
maxArgs: 5,
|
|
11448
|
+
apply: () => {
|
|
11449
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11450
|
+
}
|
|
11439
11451
|
}
|
|
11440
11452
|
};
|
|
11441
11453
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11946,7 +11958,7 @@ var RESET_PERIODS = [
|
|
|
11946
11958
|
5 * MINUTE_MS;
|
|
11947
11959
|
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11948
11960
|
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11949
|
-
var
|
|
11961
|
+
var rollingWindowObject = object({
|
|
11950
11962
|
kind: literal("rolling"),
|
|
11951
11963
|
span: _enum(ROLLING_SPANS),
|
|
11952
11964
|
customMinutes: number().int().min(5).optional()
|
|
@@ -11963,7 +11975,9 @@ var StatisticWindowSchema = discriminatedUnion("kind", [object({
|
|
|
11963
11975
|
path: ["customMinutes"],
|
|
11964
11976
|
input: payload.value
|
|
11965
11977
|
});
|
|
11966
|
-
})
|
|
11978
|
+
});
|
|
11979
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11980
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11967
11981
|
kind: literal("calendar"),
|
|
11968
11982
|
period: _enum(CALENDAR_PERIODS)
|
|
11969
11983
|
})]);
|
|
@@ -11993,7 +12007,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11993
12007
|
"occupancy",
|
|
11994
12008
|
"binary",
|
|
11995
12009
|
"switch",
|
|
11996
|
-
"light"
|
|
12010
|
+
"light",
|
|
12011
|
+
"fan",
|
|
12012
|
+
"cover",
|
|
12013
|
+
"valve",
|
|
12014
|
+
"lock",
|
|
12015
|
+
"media-player",
|
|
12016
|
+
"climate"
|
|
11997
12017
|
];
|
|
11998
12018
|
var NUMERIC_AGGREGATES = [
|
|
11999
12019
|
"mean",
|
|
@@ -12052,6 +12072,42 @@ var HelperSpecSchema = discriminatedUnion("kind", [
|
|
|
12052
12072
|
reset: _enum(RESET_PERIODS),
|
|
12053
12073
|
output: _enum(["energy", "meter"]),
|
|
12054
12074
|
source: HelperMemberSchema
|
|
12075
|
+
}),
|
|
12076
|
+
object({
|
|
12077
|
+
kind: literal("threshold"),
|
|
12078
|
+
source: HelperMemberSchema,
|
|
12079
|
+
high: number(),
|
|
12080
|
+
low: number(),
|
|
12081
|
+
onForMs: number().int().nonnegative(),
|
|
12082
|
+
offForMs: number().int().nonnegative()
|
|
12083
|
+
}),
|
|
12084
|
+
object({
|
|
12085
|
+
kind: literal("arithmetic"),
|
|
12086
|
+
op: _enum([
|
|
12087
|
+
"sum",
|
|
12088
|
+
"difference",
|
|
12089
|
+
"ratio"
|
|
12090
|
+
]),
|
|
12091
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
12092
|
+
}),
|
|
12093
|
+
object({
|
|
12094
|
+
kind: literal("expression"),
|
|
12095
|
+
expr: string().min(1),
|
|
12096
|
+
inputs: array(object({
|
|
12097
|
+
name: string().min(1),
|
|
12098
|
+
member: HelperMemberSchema
|
|
12099
|
+
})).min(1).max(64),
|
|
12100
|
+
output: _enum(["number", "boolean"])
|
|
12101
|
+
}),
|
|
12102
|
+
object({
|
|
12103
|
+
kind: literal("derivative"),
|
|
12104
|
+
window: RollingWindowSchema,
|
|
12105
|
+
per: _enum([
|
|
12106
|
+
"second",
|
|
12107
|
+
"minute",
|
|
12108
|
+
"hour"
|
|
12109
|
+
]),
|
|
12110
|
+
source: HelperMemberSchema
|
|
12055
12111
|
})
|
|
12056
12112
|
]);
|
|
12057
12113
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
@@ -12114,6 +12170,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
12114
12170
|
"all"
|
|
12115
12171
|
]),
|
|
12116
12172
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
12173
|
+
/**
|
|
12174
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
12175
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
12176
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
12177
|
+
*/
|
|
12178
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
12117
12179
|
/** `value` is the reading; the others are the member counts. */
|
|
12118
12180
|
publish: _enum([
|
|
12119
12181
|
"value",
|
|
@@ -18575,13 +18637,17 @@ Object.freeze({
|
|
|
18575
18637
|
latchedAt: {
|
|
18576
18638
|
kind: "fixed",
|
|
18577
18639
|
result: ["number", "null"]
|
|
18640
|
+
},
|
|
18641
|
+
schmitt: {
|
|
18642
|
+
kind: "fixed",
|
|
18643
|
+
result: ["boolean", "null"]
|
|
18578
18644
|
}
|
|
18579
18645
|
});
|
|
18580
18646
|
/**
|
|
18581
18647
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18582
18648
|
* Data, not a form default written into the block.
|
|
18583
18649
|
*/
|
|
18584
|
-
var NOW$
|
|
18650
|
+
var NOW$2 = {
|
|
18585
18651
|
fieldPath: "lastFetchedAt",
|
|
18586
18652
|
expr: "now"
|
|
18587
18653
|
};
|
|
@@ -18595,6 +18661,8 @@ function numeric(input) {
|
|
|
18595
18661
|
family: "numeric",
|
|
18596
18662
|
deviceType: DeviceType.Sensor,
|
|
18597
18663
|
memberDeviceType: DeviceType.Sensor,
|
|
18664
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18665
|
+
activeWhen: void 0,
|
|
18598
18666
|
commandCaps: [],
|
|
18599
18667
|
baseUnit: baseUnitOf(input.quantity),
|
|
18600
18668
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18610,6 +18678,8 @@ function binary(input) {
|
|
|
18610
18678
|
family: "binary",
|
|
18611
18679
|
deviceType: DeviceType.Sensor,
|
|
18612
18680
|
memberDeviceType: DeviceType.Sensor,
|
|
18681
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18682
|
+
activeWhen: void 0,
|
|
18613
18683
|
commandCaps: [],
|
|
18614
18684
|
quantity: "none",
|
|
18615
18685
|
baseUnit: void 0,
|
|
@@ -18627,7 +18697,7 @@ var GROUP_TEMPLATES = [
|
|
|
18627
18697
|
quantity: "temperature",
|
|
18628
18698
|
defaultAggregate: "mean",
|
|
18629
18699
|
empty: "null",
|
|
18630
|
-
companions: [NOW$
|
|
18700
|
+
companions: [NOW$2]
|
|
18631
18701
|
}),
|
|
18632
18702
|
numeric({
|
|
18633
18703
|
id: "humidity",
|
|
@@ -18638,7 +18708,7 @@ var GROUP_TEMPLATES = [
|
|
|
18638
18708
|
quantity: "humidity",
|
|
18639
18709
|
defaultAggregate: "mean",
|
|
18640
18710
|
empty: "null",
|
|
18641
|
-
companions: [NOW$
|
|
18711
|
+
companions: [NOW$2]
|
|
18642
18712
|
}),
|
|
18643
18713
|
numeric({
|
|
18644
18714
|
id: "pressure",
|
|
@@ -18649,7 +18719,7 @@ var GROUP_TEMPLATES = [
|
|
|
18649
18719
|
quantity: "pressure",
|
|
18650
18720
|
defaultAggregate: "mean",
|
|
18651
18721
|
empty: "null",
|
|
18652
|
-
companions: [NOW$
|
|
18722
|
+
companions: [NOW$2]
|
|
18653
18723
|
}),
|
|
18654
18724
|
numeric({
|
|
18655
18725
|
id: "illuminance",
|
|
@@ -18660,7 +18730,7 @@ var GROUP_TEMPLATES = [
|
|
|
18660
18730
|
quantity: "illuminance",
|
|
18661
18731
|
defaultAggregate: "mean",
|
|
18662
18732
|
empty: "null",
|
|
18663
|
-
companions: [NOW$
|
|
18733
|
+
companions: [NOW$2]
|
|
18664
18734
|
}),
|
|
18665
18735
|
numeric({
|
|
18666
18736
|
id: "power",
|
|
@@ -18671,7 +18741,7 @@ var GROUP_TEMPLATES = [
|
|
|
18671
18741
|
quantity: "power",
|
|
18672
18742
|
defaultAggregate: "sum",
|
|
18673
18743
|
empty: "omit",
|
|
18674
|
-
companions: [NOW$
|
|
18744
|
+
companions: [NOW$2]
|
|
18675
18745
|
}),
|
|
18676
18746
|
numeric({
|
|
18677
18747
|
id: "energy",
|
|
@@ -18682,7 +18752,7 @@ var GROUP_TEMPLATES = [
|
|
|
18682
18752
|
quantity: "energy",
|
|
18683
18753
|
defaultAggregate: "sum",
|
|
18684
18754
|
empty: "omit",
|
|
18685
|
-
companions: [NOW$
|
|
18755
|
+
companions: [NOW$2]
|
|
18686
18756
|
}),
|
|
18687
18757
|
numeric({
|
|
18688
18758
|
id: "battery",
|
|
@@ -18717,7 +18787,7 @@ var GROUP_TEMPLATES = [
|
|
|
18717
18787
|
quantity: "device",
|
|
18718
18788
|
defaultAggregate: "mean",
|
|
18719
18789
|
empty: "null",
|
|
18720
|
-
companions: [NOW$
|
|
18790
|
+
companions: [NOW$2]
|
|
18721
18791
|
}),
|
|
18722
18792
|
binary({
|
|
18723
18793
|
id: "motion",
|
|
@@ -18811,6 +18881,11 @@ var GROUP_TEMPLATES = [
|
|
|
18811
18881
|
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.",
|
|
18812
18882
|
deviceType: DeviceType.Switch,
|
|
18813
18883
|
outputCap: "switch",
|
|
18884
|
+
outputField: "on",
|
|
18885
|
+
member: {
|
|
18886
|
+
cap: "switch",
|
|
18887
|
+
fieldPath: "on"
|
|
18888
|
+
},
|
|
18814
18889
|
commandCaps: ["switch"]
|
|
18815
18890
|
}),
|
|
18816
18891
|
actuator({
|
|
@@ -18818,29 +18893,130 @@ var GROUP_TEMPLATES = [
|
|
|
18818
18893
|
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.",
|
|
18819
18894
|
deviceType: DeviceType.Light,
|
|
18820
18895
|
outputCap: "switch",
|
|
18896
|
+
outputField: "on",
|
|
18897
|
+
member: {
|
|
18898
|
+
cap: "switch",
|
|
18899
|
+
fieldPath: "on"
|
|
18900
|
+
},
|
|
18821
18901
|
commandCaps: [
|
|
18822
18902
|
"switch",
|
|
18823
18903
|
"brightness",
|
|
18824
18904
|
"color"
|
|
18825
18905
|
]
|
|
18906
|
+
}),
|
|
18907
|
+
actuator({
|
|
18908
|
+
id: "fan",
|
|
18909
|
+
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.",
|
|
18910
|
+
deviceType: DeviceType.Fan,
|
|
18911
|
+
outputCap: "switch",
|
|
18912
|
+
outputField: "on",
|
|
18913
|
+
member: {
|
|
18914
|
+
cap: "switch",
|
|
18915
|
+
fieldPath: "on"
|
|
18916
|
+
},
|
|
18917
|
+
commandCaps: ["switch", "fan-control"]
|
|
18918
|
+
}),
|
|
18919
|
+
actuator({
|
|
18920
|
+
id: "cover",
|
|
18921
|
+
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.",
|
|
18922
|
+
deviceType: DeviceType.Cover,
|
|
18923
|
+
outputCap: "group-active",
|
|
18924
|
+
outputField: "active",
|
|
18925
|
+
member: {
|
|
18926
|
+
cap: "cover",
|
|
18927
|
+
fieldPath: "state"
|
|
18928
|
+
},
|
|
18929
|
+
activeWhen: [
|
|
18930
|
+
"open",
|
|
18931
|
+
"opening",
|
|
18932
|
+
"stopped"
|
|
18933
|
+
],
|
|
18934
|
+
commandCaps: ["cover"]
|
|
18935
|
+
}),
|
|
18936
|
+
actuator({
|
|
18937
|
+
id: "valve",
|
|
18938
|
+
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.",
|
|
18939
|
+
deviceType: DeviceType.Valve,
|
|
18940
|
+
outputCap: "group-active",
|
|
18941
|
+
outputField: "active",
|
|
18942
|
+
member: {
|
|
18943
|
+
cap: "valve",
|
|
18944
|
+
fieldPath: "state"
|
|
18945
|
+
},
|
|
18946
|
+
activeWhen: [
|
|
18947
|
+
"open",
|
|
18948
|
+
"opening",
|
|
18949
|
+
"stopped"
|
|
18950
|
+
],
|
|
18951
|
+
commandCaps: ["valve"]
|
|
18952
|
+
}),
|
|
18953
|
+
actuator({
|
|
18954
|
+
id: "lock",
|
|
18955
|
+
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.",
|
|
18956
|
+
deviceType: DeviceType.Lock,
|
|
18957
|
+
outputCap: "group-active",
|
|
18958
|
+
outputField: "active",
|
|
18959
|
+
member: {
|
|
18960
|
+
cap: "lock-control",
|
|
18961
|
+
fieldPath: "state"
|
|
18962
|
+
},
|
|
18963
|
+
activeWhen: ["locked"],
|
|
18964
|
+
commandCaps: ["lock-control"]
|
|
18965
|
+
}),
|
|
18966
|
+
actuator({
|
|
18967
|
+
id: "media-player",
|
|
18968
|
+
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.",
|
|
18969
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18970
|
+
outputCap: "group-active",
|
|
18971
|
+
outputField: "active",
|
|
18972
|
+
member: {
|
|
18973
|
+
cap: "media-player",
|
|
18974
|
+
fieldPath: "state"
|
|
18975
|
+
},
|
|
18976
|
+
activeWhen: ["playing", "buffering"],
|
|
18977
|
+
commandCaps: ["media-player"]
|
|
18978
|
+
}),
|
|
18979
|
+
actuator({
|
|
18980
|
+
id: "climate",
|
|
18981
|
+
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.",
|
|
18982
|
+
deviceType: DeviceType.Thermostat,
|
|
18983
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18984
|
+
outputCap: "group-active",
|
|
18985
|
+
outputField: "active",
|
|
18986
|
+
member: {
|
|
18987
|
+
cap: "climate-control",
|
|
18988
|
+
fieldPath: "mode"
|
|
18989
|
+
},
|
|
18990
|
+
activeWhen: [
|
|
18991
|
+
"heat",
|
|
18992
|
+
"cool",
|
|
18993
|
+
"auto",
|
|
18994
|
+
"heat_cool",
|
|
18995
|
+
"fan_only",
|
|
18996
|
+
"dry"
|
|
18997
|
+
],
|
|
18998
|
+
commandCaps: ["climate-control"]
|
|
18826
18999
|
})
|
|
18827
19000
|
];
|
|
18828
19001
|
function actuator(input) {
|
|
18829
19002
|
return {
|
|
18830
|
-
|
|
19003
|
+
id: input.id,
|
|
19004
|
+
summary: input.summary,
|
|
19005
|
+
deviceType: input.deviceType,
|
|
19006
|
+
outputCap: input.outputCap,
|
|
19007
|
+
outputField: input.outputField,
|
|
19008
|
+
commandCaps: input.commandCaps,
|
|
18831
19009
|
family: "actuator",
|
|
18832
19010
|
role: void 0,
|
|
18833
19011
|
memberDeviceType: input.deviceType,
|
|
18834
|
-
|
|
19012
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
19013
|
+
activeWhen: input.activeWhen,
|
|
18835
19014
|
quantity: "none",
|
|
18836
19015
|
baseUnit: void 0,
|
|
18837
19016
|
aggregates: BINARY_AGGREGATES,
|
|
18838
19017
|
defaultAggregate: "any",
|
|
18839
19018
|
empty: "offline",
|
|
18840
|
-
accept: [
|
|
18841
|
-
cap: "switch",
|
|
18842
|
-
fieldPath: "on"
|
|
18843
|
-
}],
|
|
19019
|
+
accept: [input.member],
|
|
18844
19020
|
companions: [CHANGED]
|
|
18845
19021
|
};
|
|
18846
19022
|
}
|
|
@@ -46504,7 +46680,20 @@ var NcRuleInputSchema = object({
|
|
|
46504
46680
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46505
46681
|
* path does not run Zod defaults.
|
|
46506
46682
|
*/
|
|
46507
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46683
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46684
|
+
/**
|
|
46685
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46686
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46687
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46688
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46689
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46690
|
+
*
|
|
46691
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46692
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46693
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46694
|
+
* `false`, so it needs no `clear` key.
|
|
46695
|
+
*/
|
|
46696
|
+
askVerdict: boolean().optional()
|
|
46508
46697
|
});
|
|
46509
46698
|
/**
|
|
46510
46699
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -58705,7 +58894,13 @@ results: array(object({
|
|
|
58705
58894
|
/** Ms epoch of the attempt. */
|
|
58706
58895
|
at: number()
|
|
58707
58896
|
})) });
|
|
58708
|
-
DeviceType.Switch, DeviceType.Light;
|
|
58897
|
+
DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
|
|
58898
|
+
object({
|
|
58899
|
+
active: boolean().meta({ label: "Active" }),
|
|
58900
|
+
/** Ms epoch when the slice was last updated. */
|
|
58901
|
+
lastChangedAt: number()
|
|
58902
|
+
});
|
|
58903
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate, DeviceType.Thermostat;
|
|
58709
58904
|
object({
|
|
58710
58905
|
/** Members whose current value entered the aggregate. */
|
|
58711
58906
|
included: number().int().nonnegative().meta(readingMeta("count", {
|
|
@@ -58723,7 +58918,7 @@ object({
|
|
|
58723
58918
|
label: "Members"
|
|
58724
58919
|
}))
|
|
58725
58920
|
});
|
|
58726
|
-
DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
|
|
58921
|
+
DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
|
|
58727
58922
|
object({
|
|
58728
58923
|
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
58729
58924
|
position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
|
|
@@ -59630,7 +59825,14 @@ DeviceType.Lock, method(object({
|
|
|
59630
59825
|
auth: "protected"
|
|
59631
59826
|
}), method(object({
|
|
59632
59827
|
deviceId: number().int().nonnegative(),
|
|
59633
|
-
code: string().min(1).optional()
|
|
59828
|
+
code: string().min(1).optional(),
|
|
59829
|
+
/**
|
|
59830
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
59831
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
59832
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
59833
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
59834
|
+
*/
|
|
59835
|
+
confirm: boolean().optional()
|
|
59634
59836
|
}), _void(), {
|
|
59635
59837
|
kind: "mutation",
|
|
59636
59838
|
auth: "protected"
|
|
@@ -64046,7 +64248,7 @@ object({
|
|
|
64046
64248
|
/** Ms epoch of the last state change. Useful for UI "X minutes ago". */
|
|
64047
64249
|
lastChangedAt: number()
|
|
64048
64250
|
});
|
|
64049
|
-
DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
|
|
64251
|
+
DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
|
|
64050
64252
|
deviceId: number(),
|
|
64051
64253
|
on: boolean()
|
|
64052
64254
|
}), _void(), {
|
|
@@ -65840,6 +66042,7 @@ var trainingCapability = {
|
|
|
65840
66042
|
})
|
|
65841
66043
|
}
|
|
65842
66044
|
};
|
|
66045
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
65843
66046
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
65844
66047
|
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.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
65845
66048
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
@@ -69117,6 +69320,13 @@ Object.freeze({
|
|
|
69117
69320
|
access: "view",
|
|
69118
69321
|
role: "viewer"
|
|
69119
69322
|
},
|
|
69323
|
+
"groupActive.getStatus": {
|
|
69324
|
+
capName: "group-active",
|
|
69325
|
+
capScope: "device",
|
|
69326
|
+
addonId: null,
|
|
69327
|
+
access: "view",
|
|
69328
|
+
role: "viewer"
|
|
69329
|
+
},
|
|
69120
69330
|
"groupCommands.getStatus": {
|
|
69121
69331
|
capName: "group-commands",
|
|
69122
69332
|
capScope: "device",
|
|
@@ -78992,6 +79202,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
78992
79202
|
icon: "flame"
|
|
78993
79203
|
}]
|
|
78994
79204
|
},
|
|
79205
|
+
"group-active": {
|
|
79206
|
+
scope: "device",
|
|
79207
|
+
noun: t("Group state", "Stato del gruppo")
|
|
79208
|
+
},
|
|
78995
79209
|
"group-commands": {
|
|
78996
79210
|
scope: "device",
|
|
78997
79211
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -80538,6 +80752,11 @@ Object.freeze({
|
|
|
80538
80752
|
form: "single",
|
|
80539
80753
|
optional: false
|
|
80540
80754
|
}],
|
|
80755
|
+
"groupActive.getStatus": [{
|
|
80756
|
+
name: "deviceId",
|
|
80757
|
+
form: "single",
|
|
80758
|
+
optional: false
|
|
80759
|
+
}],
|
|
80541
80760
|
"groupCommands.getStatus": [{
|
|
80542
80761
|
name: "deviceId",
|
|
80543
80762
|
form: "single",
|