@camstack/types 1.2.573 → 1.2.575
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 +17 -6
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +1 -1
- package/dist/capabilities/consumables.cap.d.ts +5 -14
- package/dist/capabilities/energy-system.cap.d.ts +4 -0
- package/dist/capabilities/weather-station.cap.d.ts +305 -51
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +605 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/index.js +892 -34
- package/dist/index.mjs +892 -34
- package/dist/interfaces/config-ui.d.ts +2 -2
- package/dist/{sleep-BnR9qGOv.mjs → sleep-CLDVTB5R.mjs} +150 -0
- package/dist/{sleep-Cr2-wtyQ.js → sleep-CsIzA4m_.js} +150 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-CsIzA4m_.js");
|
|
3
3
|
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
5
5
|
const require_implemented_methods = require("./implemented-methods-C7ScGvEz.js");
|
|
@@ -47192,13 +47192,14 @@ var connectivityCapability = {
|
|
|
47192
47192
|
* its device tracks consumables registers it; the provider names each item
|
|
47193
47193
|
* verbatim and says which `kind` it is.
|
|
47194
47194
|
*
|
|
47195
|
-
* The admin UI
|
|
47196
|
-
*
|
|
47197
|
-
*
|
|
47195
|
+
* The admin UI shows it in the device card's consumables chip and popover
|
|
47196
|
+
* (kind-aware level, remaining time, "Reset"), for every device bound to this
|
|
47197
|
+
* cap (D1023). It no longer has a section of its own under the hero card
|
|
47198
|
+
* (D915 on that point).
|
|
47198
47199
|
*
|
|
47199
47200
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
47200
47201
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
47201
|
-
* "No consumables reported"
|
|
47202
|
+
* "No consumables reported" line when `items` is empty.
|
|
47202
47203
|
*/
|
|
47203
47204
|
/**
|
|
47204
47205
|
* What an item IS, which decides which direction is bad:
|
|
@@ -47304,7 +47305,7 @@ var ConsumablesStatusSchema = zod.z.object({
|
|
|
47304
47305
|
});
|
|
47305
47306
|
/** Synthesize seed for a link-built status (no native provider).
|
|
47306
47307
|
*
|
|
47307
|
-
*
|
|
47308
|
+
* ! NO LIVE CALLER since 2026-08-08 (device-links deleted; see
|
|
47308
47309
|
* `CapabilityStatusSchema.empty`). The wiring guidance below was written for
|
|
47309
47310
|
* exactly the case the operator is asking about again — a Dreame's HA
|
|
47310
47311
|
* consumable-life sensors — so it is kept for that conversation, not because
|
|
@@ -47408,14 +47409,6 @@ var consumablesCapability = {
|
|
|
47408
47409
|
deviceNative: true,
|
|
47409
47410
|
mode: "singleton",
|
|
47410
47411
|
deviceTypes: Object.values(require_composed_stable_id.DeviceType),
|
|
47411
|
-
deviceConfig: { ui: {
|
|
47412
|
-
kind: "widget",
|
|
47413
|
-
widgetId: "host/consumables-panel",
|
|
47414
|
-
tab: "consumables",
|
|
47415
|
-
placement: "hero",
|
|
47416
|
-
label: "Consumables",
|
|
47417
|
-
order: 5
|
|
47418
|
-
} },
|
|
47419
47412
|
methods: {
|
|
47420
47413
|
/** Mark a consumable as replaced — resets its remaining life. Only
|
|
47421
47414
|
* meaningful when the item's `resettable` is true. */
|
|
@@ -48796,7 +48789,7 @@ var mediaPlayerCapability = {
|
|
|
48796
48789
|
//#region src/generated/customize-catalog.ts
|
|
48797
48790
|
/**
|
|
48798
48791
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
48799
|
-
*
|
|
48792
|
+
* 13 caps. Field keys are `runtimeState` paths. No Zod.
|
|
48800
48793
|
*/
|
|
48801
48794
|
var CAP_CUSTOMIZE_CATALOG = {
|
|
48802
48795
|
"battery": {
|
|
@@ -49713,6 +49706,572 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
49713
49706
|
path: "running",
|
|
49714
49707
|
by: "running"
|
|
49715
49708
|
}]
|
|
49709
|
+
},
|
|
49710
|
+
"weather-station": {
|
|
49711
|
+
version: 1,
|
|
49712
|
+
targets: [
|
|
49713
|
+
{
|
|
49714
|
+
id: "temperature",
|
|
49715
|
+
cardinality: "scalar",
|
|
49716
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49717
|
+
apply: "add",
|
|
49718
|
+
vocabularyCap: "weather-station",
|
|
49719
|
+
vocabularyStateField: "temperature",
|
|
49720
|
+
sources: [{
|
|
49721
|
+
kind: "numeric",
|
|
49722
|
+
requiredUnit: "°C",
|
|
49723
|
+
transformKinds: ["identity"],
|
|
49724
|
+
transforms: [{ kind: "identity" }]
|
|
49725
|
+
}],
|
|
49726
|
+
sourceReport: { status: "assignment-status" },
|
|
49727
|
+
advancedExpression: false,
|
|
49728
|
+
path: "temperature",
|
|
49729
|
+
valueKind: "number",
|
|
49730
|
+
nullable: true,
|
|
49731
|
+
companions: [{
|
|
49732
|
+
kind: "clock",
|
|
49733
|
+
path: "lastFetchedAt",
|
|
49734
|
+
when: "add"
|
|
49735
|
+
}]
|
|
49736
|
+
},
|
|
49737
|
+
{
|
|
49738
|
+
id: "humidity",
|
|
49739
|
+
cardinality: "scalar",
|
|
49740
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49741
|
+
apply: "add",
|
|
49742
|
+
vocabularyCap: "weather-station",
|
|
49743
|
+
vocabularyStateField: "humidity",
|
|
49744
|
+
sources: [{
|
|
49745
|
+
kind: "numeric",
|
|
49746
|
+
requiredUnit: "%",
|
|
49747
|
+
transformKinds: ["identity"],
|
|
49748
|
+
transforms: [{ kind: "identity" }]
|
|
49749
|
+
}],
|
|
49750
|
+
sourceReport: { status: "assignment-status" },
|
|
49751
|
+
advancedExpression: false,
|
|
49752
|
+
path: "humidity",
|
|
49753
|
+
valueKind: "number",
|
|
49754
|
+
nullable: true,
|
|
49755
|
+
companions: [{
|
|
49756
|
+
kind: "clock",
|
|
49757
|
+
path: "lastFetchedAt",
|
|
49758
|
+
when: "add"
|
|
49759
|
+
}]
|
|
49760
|
+
},
|
|
49761
|
+
{
|
|
49762
|
+
id: "pressure",
|
|
49763
|
+
cardinality: "scalar",
|
|
49764
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49765
|
+
apply: "add",
|
|
49766
|
+
vocabularyCap: "weather-station",
|
|
49767
|
+
vocabularyStateField: "pressure",
|
|
49768
|
+
sources: [{
|
|
49769
|
+
kind: "numeric",
|
|
49770
|
+
requiredUnit: "hPa",
|
|
49771
|
+
transformKinds: ["identity"],
|
|
49772
|
+
transforms: [{ kind: "identity" }]
|
|
49773
|
+
}],
|
|
49774
|
+
sourceReport: { status: "assignment-status" },
|
|
49775
|
+
advancedExpression: false,
|
|
49776
|
+
path: "pressure",
|
|
49777
|
+
valueKind: "number",
|
|
49778
|
+
nullable: true,
|
|
49779
|
+
companions: [{
|
|
49780
|
+
kind: "clock",
|
|
49781
|
+
path: "lastFetchedAt",
|
|
49782
|
+
when: "add"
|
|
49783
|
+
}]
|
|
49784
|
+
},
|
|
49785
|
+
{
|
|
49786
|
+
id: "windSpeed",
|
|
49787
|
+
cardinality: "scalar",
|
|
49788
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49789
|
+
apply: "add",
|
|
49790
|
+
vocabularyCap: "weather-station",
|
|
49791
|
+
vocabularyStateField: "windSpeed",
|
|
49792
|
+
sources: [{
|
|
49793
|
+
kind: "numeric",
|
|
49794
|
+
requiredUnit: "m/s",
|
|
49795
|
+
transformKinds: ["identity"],
|
|
49796
|
+
transforms: [{ kind: "identity" }]
|
|
49797
|
+
}],
|
|
49798
|
+
sourceReport: { status: "assignment-status" },
|
|
49799
|
+
advancedExpression: false,
|
|
49800
|
+
path: "windSpeed",
|
|
49801
|
+
valueKind: "number",
|
|
49802
|
+
nullable: true,
|
|
49803
|
+
companions: [{
|
|
49804
|
+
kind: "clock",
|
|
49805
|
+
path: "lastFetchedAt",
|
|
49806
|
+
when: "add"
|
|
49807
|
+
}]
|
|
49808
|
+
},
|
|
49809
|
+
{
|
|
49810
|
+
id: "windGust",
|
|
49811
|
+
cardinality: "scalar",
|
|
49812
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49813
|
+
apply: "add",
|
|
49814
|
+
vocabularyCap: "weather-station",
|
|
49815
|
+
vocabularyStateField: "windGust",
|
|
49816
|
+
sources: [{
|
|
49817
|
+
kind: "numeric",
|
|
49818
|
+
requiredUnit: "m/s",
|
|
49819
|
+
transformKinds: ["identity"],
|
|
49820
|
+
transforms: [{ kind: "identity" }]
|
|
49821
|
+
}],
|
|
49822
|
+
sourceReport: { status: "assignment-status" },
|
|
49823
|
+
advancedExpression: false,
|
|
49824
|
+
path: "windGust",
|
|
49825
|
+
valueKind: "number",
|
|
49826
|
+
nullable: true,
|
|
49827
|
+
companions: [{
|
|
49828
|
+
kind: "clock",
|
|
49829
|
+
path: "lastFetchedAt",
|
|
49830
|
+
when: "add"
|
|
49831
|
+
}]
|
|
49832
|
+
},
|
|
49833
|
+
{
|
|
49834
|
+
id: "windBearing",
|
|
49835
|
+
cardinality: "scalar",
|
|
49836
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49837
|
+
apply: "add",
|
|
49838
|
+
vocabularyCap: "weather-station",
|
|
49839
|
+
vocabularyStateField: "windBearing",
|
|
49840
|
+
sources: [{
|
|
49841
|
+
kind: "numeric",
|
|
49842
|
+
requiredUnit: "°",
|
|
49843
|
+
transformKinds: ["identity"],
|
|
49844
|
+
transforms: [{ kind: "identity" }]
|
|
49845
|
+
}],
|
|
49846
|
+
sourceReport: { status: "assignment-status" },
|
|
49847
|
+
advancedExpression: false,
|
|
49848
|
+
path: "windBearing",
|
|
49849
|
+
valueKind: "number",
|
|
49850
|
+
nullable: true,
|
|
49851
|
+
companions: [{
|
|
49852
|
+
kind: "clock",
|
|
49853
|
+
path: "lastFetchedAt",
|
|
49854
|
+
when: "add"
|
|
49855
|
+
}]
|
|
49856
|
+
},
|
|
49857
|
+
{
|
|
49858
|
+
id: "rainRate",
|
|
49859
|
+
cardinality: "scalar",
|
|
49860
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49861
|
+
apply: "add",
|
|
49862
|
+
vocabularyCap: "weather-station",
|
|
49863
|
+
vocabularyStateField: "rainRate",
|
|
49864
|
+
sources: [{
|
|
49865
|
+
kind: "numeric",
|
|
49866
|
+
requiredUnit: "mm/h",
|
|
49867
|
+
transformKinds: ["identity"],
|
|
49868
|
+
transforms: [{ kind: "identity" }]
|
|
49869
|
+
}],
|
|
49870
|
+
sourceReport: { status: "assignment-status" },
|
|
49871
|
+
advancedExpression: false,
|
|
49872
|
+
path: "rainRate",
|
|
49873
|
+
valueKind: "number",
|
|
49874
|
+
nullable: true,
|
|
49875
|
+
companions: [{
|
|
49876
|
+
kind: "clock",
|
|
49877
|
+
path: "lastFetchedAt",
|
|
49878
|
+
when: "add"
|
|
49879
|
+
}]
|
|
49880
|
+
},
|
|
49881
|
+
{
|
|
49882
|
+
id: "rainDaily",
|
|
49883
|
+
cardinality: "scalar",
|
|
49884
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49885
|
+
apply: "add",
|
|
49886
|
+
vocabularyCap: "weather-station",
|
|
49887
|
+
vocabularyStateField: "rainDaily",
|
|
49888
|
+
sources: [{
|
|
49889
|
+
kind: "numeric",
|
|
49890
|
+
requiredUnit: "mm",
|
|
49891
|
+
transformKinds: ["identity"],
|
|
49892
|
+
transforms: [{ kind: "identity" }]
|
|
49893
|
+
}],
|
|
49894
|
+
sourceReport: { status: "assignment-status" },
|
|
49895
|
+
advancedExpression: false,
|
|
49896
|
+
path: "rainDaily",
|
|
49897
|
+
valueKind: "number",
|
|
49898
|
+
nullable: true,
|
|
49899
|
+
companions: [{
|
|
49900
|
+
kind: "clock",
|
|
49901
|
+
path: "lastFetchedAt",
|
|
49902
|
+
when: "add"
|
|
49903
|
+
}]
|
|
49904
|
+
},
|
|
49905
|
+
{
|
|
49906
|
+
id: "rainEvent",
|
|
49907
|
+
cardinality: "scalar",
|
|
49908
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49909
|
+
apply: "add",
|
|
49910
|
+
vocabularyCap: "weather-station",
|
|
49911
|
+
vocabularyStateField: "rainEvent",
|
|
49912
|
+
sources: [{
|
|
49913
|
+
kind: "numeric",
|
|
49914
|
+
requiredUnit: "mm",
|
|
49915
|
+
transformKinds: ["identity"],
|
|
49916
|
+
transforms: [{ kind: "identity" }]
|
|
49917
|
+
}],
|
|
49918
|
+
sourceReport: { status: "assignment-status" },
|
|
49919
|
+
advancedExpression: false,
|
|
49920
|
+
path: "rainEvent",
|
|
49921
|
+
valueKind: "number",
|
|
49922
|
+
nullable: true,
|
|
49923
|
+
companions: [{
|
|
49924
|
+
kind: "clock",
|
|
49925
|
+
path: "lastFetchedAt",
|
|
49926
|
+
when: "add"
|
|
49927
|
+
}]
|
|
49928
|
+
},
|
|
49929
|
+
{
|
|
49930
|
+
id: "uv",
|
|
49931
|
+
cardinality: "scalar",
|
|
49932
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49933
|
+
apply: "add",
|
|
49934
|
+
vocabularyCap: "weather-station",
|
|
49935
|
+
vocabularyStateField: "uv",
|
|
49936
|
+
sources: [{
|
|
49937
|
+
kind: "numeric",
|
|
49938
|
+
transformKinds: ["identity"],
|
|
49939
|
+
transforms: [{ kind: "identity" }]
|
|
49940
|
+
}],
|
|
49941
|
+
sourceReport: { status: "assignment-status" },
|
|
49942
|
+
advancedExpression: false,
|
|
49943
|
+
path: "uv",
|
|
49944
|
+
valueKind: "number",
|
|
49945
|
+
nullable: true,
|
|
49946
|
+
companions: [{
|
|
49947
|
+
kind: "clock",
|
|
49948
|
+
path: "lastFetchedAt",
|
|
49949
|
+
when: "add"
|
|
49950
|
+
}]
|
|
49951
|
+
},
|
|
49952
|
+
{
|
|
49953
|
+
id: "solarRadiation",
|
|
49954
|
+
cardinality: "scalar",
|
|
49955
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49956
|
+
apply: "add",
|
|
49957
|
+
vocabularyCap: "weather-station",
|
|
49958
|
+
vocabularyStateField: "solarRadiation",
|
|
49959
|
+
sources: [{
|
|
49960
|
+
kind: "numeric",
|
|
49961
|
+
requiredUnit: "W/m²",
|
|
49962
|
+
transformKinds: ["identity"],
|
|
49963
|
+
transforms: [{ kind: "identity" }]
|
|
49964
|
+
}],
|
|
49965
|
+
sourceReport: { status: "assignment-status" },
|
|
49966
|
+
advancedExpression: false,
|
|
49967
|
+
path: "solarRadiation",
|
|
49968
|
+
valueKind: "number",
|
|
49969
|
+
nullable: true,
|
|
49970
|
+
companions: [{
|
|
49971
|
+
kind: "clock",
|
|
49972
|
+
path: "lastFetchedAt",
|
|
49973
|
+
when: "add"
|
|
49974
|
+
}]
|
|
49975
|
+
},
|
|
49976
|
+
{
|
|
49977
|
+
id: "dewPoint",
|
|
49978
|
+
cardinality: "scalar",
|
|
49979
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49980
|
+
apply: "add",
|
|
49981
|
+
vocabularyCap: "weather-station",
|
|
49982
|
+
vocabularyStateField: "dewPoint",
|
|
49983
|
+
sources: [{
|
|
49984
|
+
kind: "numeric",
|
|
49985
|
+
requiredUnit: "°C",
|
|
49986
|
+
transformKinds: ["identity"],
|
|
49987
|
+
transforms: [{ kind: "identity" }]
|
|
49988
|
+
}],
|
|
49989
|
+
sourceReport: { status: "assignment-status" },
|
|
49990
|
+
advancedExpression: false,
|
|
49991
|
+
path: "dewPoint",
|
|
49992
|
+
valueKind: "number",
|
|
49993
|
+
nullable: true,
|
|
49994
|
+
companions: [{
|
|
49995
|
+
kind: "clock",
|
|
49996
|
+
path: "lastFetchedAt",
|
|
49997
|
+
when: "add"
|
|
49998
|
+
}]
|
|
49999
|
+
},
|
|
50000
|
+
{
|
|
50001
|
+
id: "feelsLike",
|
|
50002
|
+
cardinality: "scalar",
|
|
50003
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50004
|
+
apply: "add",
|
|
50005
|
+
vocabularyCap: "weather-station",
|
|
50006
|
+
vocabularyStateField: "feelsLike",
|
|
50007
|
+
sources: [{
|
|
50008
|
+
kind: "numeric",
|
|
50009
|
+
requiredUnit: "°C",
|
|
50010
|
+
transformKinds: ["identity"],
|
|
50011
|
+
transforms: [{ kind: "identity" }]
|
|
50012
|
+
}],
|
|
50013
|
+
sourceReport: { status: "assignment-status" },
|
|
50014
|
+
advancedExpression: false,
|
|
50015
|
+
path: "feelsLike",
|
|
50016
|
+
valueKind: "number",
|
|
50017
|
+
nullable: true,
|
|
50018
|
+
companions: [{
|
|
50019
|
+
kind: "clock",
|
|
50020
|
+
path: "lastFetchedAt",
|
|
50021
|
+
when: "add"
|
|
50022
|
+
}]
|
|
50023
|
+
},
|
|
50024
|
+
{
|
|
50025
|
+
id: "vpd",
|
|
50026
|
+
cardinality: "scalar",
|
|
50027
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50028
|
+
apply: "add",
|
|
50029
|
+
vocabularyCap: "weather-station",
|
|
50030
|
+
vocabularyStateField: "vpd",
|
|
50031
|
+
sources: [{
|
|
50032
|
+
kind: "numeric",
|
|
50033
|
+
requiredUnit: "kPa",
|
|
50034
|
+
transformKinds: ["identity"],
|
|
50035
|
+
transforms: [{ kind: "identity" }]
|
|
50036
|
+
}],
|
|
50037
|
+
sourceReport: { status: "assignment-status" },
|
|
50038
|
+
advancedExpression: false,
|
|
50039
|
+
path: "vpd",
|
|
50040
|
+
valueKind: "number",
|
|
50041
|
+
nullable: true,
|
|
50042
|
+
companions: [{
|
|
50043
|
+
kind: "clock",
|
|
50044
|
+
path: "lastFetchedAt",
|
|
50045
|
+
when: "add"
|
|
50046
|
+
}]
|
|
50047
|
+
},
|
|
50048
|
+
{
|
|
50049
|
+
id: "windGustMax",
|
|
50050
|
+
cardinality: "scalar",
|
|
50051
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50052
|
+
apply: "add",
|
|
50053
|
+
vocabularyCap: "weather-station",
|
|
50054
|
+
vocabularyStateField: "windGustMax",
|
|
50055
|
+
sources: [{
|
|
50056
|
+
kind: "numeric",
|
|
50057
|
+
requiredUnit: "m/s",
|
|
50058
|
+
transformKinds: ["identity"],
|
|
50059
|
+
transforms: [{ kind: "identity" }]
|
|
50060
|
+
}],
|
|
50061
|
+
sourceReport: { status: "assignment-status" },
|
|
50062
|
+
advancedExpression: false,
|
|
50063
|
+
path: "windGustMax",
|
|
50064
|
+
valueKind: "number",
|
|
50065
|
+
nullable: true,
|
|
50066
|
+
companions: [{
|
|
50067
|
+
kind: "clock",
|
|
50068
|
+
path: "lastFetchedAt",
|
|
50069
|
+
when: "add"
|
|
50070
|
+
}]
|
|
50071
|
+
},
|
|
50072
|
+
{
|
|
50073
|
+
id: "windBearingAvg",
|
|
50074
|
+
cardinality: "scalar",
|
|
50075
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50076
|
+
apply: "add",
|
|
50077
|
+
vocabularyCap: "weather-station",
|
|
50078
|
+
vocabularyStateField: "windBearingAvg",
|
|
50079
|
+
sources: [{
|
|
50080
|
+
kind: "numeric",
|
|
50081
|
+
requiredUnit: "°",
|
|
50082
|
+
transformKinds: ["identity"],
|
|
50083
|
+
transforms: [{ kind: "identity" }]
|
|
50084
|
+
}],
|
|
50085
|
+
sourceReport: { status: "assignment-status" },
|
|
50086
|
+
advancedExpression: false,
|
|
50087
|
+
path: "windBearingAvg",
|
|
50088
|
+
valueKind: "number",
|
|
50089
|
+
nullable: true,
|
|
50090
|
+
companions: [{
|
|
50091
|
+
kind: "clock",
|
|
50092
|
+
path: "lastFetchedAt",
|
|
50093
|
+
when: "add"
|
|
50094
|
+
}]
|
|
50095
|
+
},
|
|
50096
|
+
{
|
|
50097
|
+
id: "rain24h",
|
|
50098
|
+
cardinality: "scalar",
|
|
50099
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50100
|
+
apply: "add",
|
|
50101
|
+
vocabularyCap: "weather-station",
|
|
50102
|
+
vocabularyStateField: "rain24h",
|
|
50103
|
+
sources: [{
|
|
50104
|
+
kind: "numeric",
|
|
50105
|
+
requiredUnit: "mm",
|
|
50106
|
+
transformKinds: ["identity"],
|
|
50107
|
+
transforms: [{ kind: "identity" }]
|
|
50108
|
+
}],
|
|
50109
|
+
sourceReport: { status: "assignment-status" },
|
|
50110
|
+
advancedExpression: false,
|
|
50111
|
+
path: "rain24h",
|
|
50112
|
+
valueKind: "number",
|
|
50113
|
+
nullable: true,
|
|
50114
|
+
companions: [{
|
|
50115
|
+
kind: "clock",
|
|
50116
|
+
path: "lastFetchedAt",
|
|
50117
|
+
when: "add"
|
|
50118
|
+
}]
|
|
50119
|
+
},
|
|
50120
|
+
{
|
|
50121
|
+
id: "rainWeekly",
|
|
50122
|
+
cardinality: "scalar",
|
|
50123
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50124
|
+
apply: "add",
|
|
50125
|
+
vocabularyCap: "weather-station",
|
|
50126
|
+
vocabularyStateField: "rainWeekly",
|
|
50127
|
+
sources: [{
|
|
50128
|
+
kind: "numeric",
|
|
50129
|
+
requiredUnit: "mm",
|
|
50130
|
+
transformKinds: ["identity"],
|
|
50131
|
+
transforms: [{ kind: "identity" }]
|
|
50132
|
+
}],
|
|
50133
|
+
sourceReport: { status: "assignment-status" },
|
|
50134
|
+
advancedExpression: false,
|
|
50135
|
+
path: "rainWeekly",
|
|
50136
|
+
valueKind: "number",
|
|
50137
|
+
nullable: true,
|
|
50138
|
+
companions: [{
|
|
50139
|
+
kind: "clock",
|
|
50140
|
+
path: "lastFetchedAt",
|
|
50141
|
+
when: "add"
|
|
50142
|
+
}]
|
|
50143
|
+
},
|
|
50144
|
+
{
|
|
50145
|
+
id: "rainMonthly",
|
|
50146
|
+
cardinality: "scalar",
|
|
50147
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50148
|
+
apply: "add",
|
|
50149
|
+
vocabularyCap: "weather-station",
|
|
50150
|
+
vocabularyStateField: "rainMonthly",
|
|
50151
|
+
sources: [{
|
|
50152
|
+
kind: "numeric",
|
|
50153
|
+
requiredUnit: "mm",
|
|
50154
|
+
transformKinds: ["identity"],
|
|
50155
|
+
transforms: [{ kind: "identity" }]
|
|
50156
|
+
}],
|
|
50157
|
+
sourceReport: { status: "assignment-status" },
|
|
50158
|
+
advancedExpression: false,
|
|
50159
|
+
path: "rainMonthly",
|
|
50160
|
+
valueKind: "number",
|
|
50161
|
+
nullable: true,
|
|
50162
|
+
companions: [{
|
|
50163
|
+
kind: "clock",
|
|
50164
|
+
path: "lastFetchedAt",
|
|
50165
|
+
when: "add"
|
|
50166
|
+
}]
|
|
50167
|
+
},
|
|
50168
|
+
{
|
|
50169
|
+
id: "rainYearly",
|
|
50170
|
+
cardinality: "scalar",
|
|
50171
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50172
|
+
apply: "add",
|
|
50173
|
+
vocabularyCap: "weather-station",
|
|
50174
|
+
vocabularyStateField: "rainYearly",
|
|
50175
|
+
sources: [{
|
|
50176
|
+
kind: "numeric",
|
|
50177
|
+
requiredUnit: "mm",
|
|
50178
|
+
transformKinds: ["identity"],
|
|
50179
|
+
transforms: [{ kind: "identity" }]
|
|
50180
|
+
}],
|
|
50181
|
+
sourceReport: { status: "assignment-status" },
|
|
50182
|
+
advancedExpression: false,
|
|
50183
|
+
path: "rainYearly",
|
|
50184
|
+
valueKind: "number",
|
|
50185
|
+
nullable: true,
|
|
50186
|
+
companions: [{
|
|
50187
|
+
kind: "clock",
|
|
50188
|
+
path: "lastFetchedAt",
|
|
50189
|
+
when: "add"
|
|
50190
|
+
}]
|
|
50191
|
+
}
|
|
50192
|
+
],
|
|
50193
|
+
overridable: [
|
|
50194
|
+
{
|
|
50195
|
+
path: "temperature",
|
|
50196
|
+
by: "temperature"
|
|
50197
|
+
},
|
|
50198
|
+
{
|
|
50199
|
+
path: "humidity",
|
|
50200
|
+
by: "humidity"
|
|
50201
|
+
},
|
|
50202
|
+
{
|
|
50203
|
+
path: "pressure",
|
|
50204
|
+
by: "pressure"
|
|
50205
|
+
},
|
|
50206
|
+
{
|
|
50207
|
+
path: "windSpeed",
|
|
50208
|
+
by: "windSpeed"
|
|
50209
|
+
},
|
|
50210
|
+
{
|
|
50211
|
+
path: "windGust",
|
|
50212
|
+
by: "windGust"
|
|
50213
|
+
},
|
|
50214
|
+
{
|
|
50215
|
+
path: "windBearing",
|
|
50216
|
+
by: "windBearing"
|
|
50217
|
+
},
|
|
50218
|
+
{
|
|
50219
|
+
path: "rainRate",
|
|
50220
|
+
by: "rainRate"
|
|
50221
|
+
},
|
|
50222
|
+
{
|
|
50223
|
+
path: "rainDaily",
|
|
50224
|
+
by: "rainDaily"
|
|
50225
|
+
},
|
|
50226
|
+
{
|
|
50227
|
+
path: "rainEvent",
|
|
50228
|
+
by: "rainEvent"
|
|
50229
|
+
},
|
|
50230
|
+
{
|
|
50231
|
+
path: "uv",
|
|
50232
|
+
by: "uv"
|
|
50233
|
+
},
|
|
50234
|
+
{
|
|
50235
|
+
path: "solarRadiation",
|
|
50236
|
+
by: "solarRadiation"
|
|
50237
|
+
},
|
|
50238
|
+
{
|
|
50239
|
+
path: "dewPoint",
|
|
50240
|
+
by: "dewPoint"
|
|
50241
|
+
},
|
|
50242
|
+
{
|
|
50243
|
+
path: "feelsLike",
|
|
50244
|
+
by: "feelsLike"
|
|
50245
|
+
},
|
|
50246
|
+
{
|
|
50247
|
+
path: "vpd",
|
|
50248
|
+
by: "vpd"
|
|
50249
|
+
},
|
|
50250
|
+
{
|
|
50251
|
+
path: "windGustMax",
|
|
50252
|
+
by: "windGustMax"
|
|
50253
|
+
},
|
|
50254
|
+
{
|
|
50255
|
+
path: "windBearingAvg",
|
|
50256
|
+
by: "windBearingAvg"
|
|
50257
|
+
},
|
|
50258
|
+
{
|
|
50259
|
+
path: "rain24h",
|
|
50260
|
+
by: "rain24h"
|
|
50261
|
+
},
|
|
50262
|
+
{
|
|
50263
|
+
path: "rainWeekly",
|
|
50264
|
+
by: "rainWeekly"
|
|
50265
|
+
},
|
|
50266
|
+
{
|
|
50267
|
+
path: "rainMonthly",
|
|
50268
|
+
by: "rainMonthly"
|
|
50269
|
+
},
|
|
50270
|
+
{
|
|
50271
|
+
path: "rainYearly",
|
|
50272
|
+
by: "rainYearly"
|
|
50273
|
+
}
|
|
50274
|
+
]
|
|
49716
50275
|
}
|
|
49717
50276
|
};
|
|
49718
50277
|
/**
|
|
@@ -50773,7 +51332,7 @@ function groupTemplate(id) {
|
|
|
50773
51332
|
//#region src/generated/history-catalog.ts
|
|
50774
51333
|
/**
|
|
50775
51334
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50776
|
-
*
|
|
51335
|
+
* 46 caps with series (124 series), 38 caps answered `'none'`.
|
|
50777
51336
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50778
51337
|
*/
|
|
50779
51338
|
var HISTORY_CATALOG = {
|
|
@@ -51275,6 +51834,108 @@ var HISTORY_CATALOG = {
|
|
|
51275
51834
|
unit: "m/s",
|
|
51276
51835
|
deadband: .5
|
|
51277
51836
|
}
|
|
51837
|
+
},
|
|
51838
|
+
"weather-station": {
|
|
51839
|
+
"temperature": {
|
|
51840
|
+
kind: "gauge",
|
|
51841
|
+
unit: "°C",
|
|
51842
|
+
deadband: .1
|
|
51843
|
+
},
|
|
51844
|
+
"humidity": {
|
|
51845
|
+
kind: "gauge",
|
|
51846
|
+
unit: "%",
|
|
51847
|
+
deadband: 1
|
|
51848
|
+
},
|
|
51849
|
+
"pressure": {
|
|
51850
|
+
kind: "gauge",
|
|
51851
|
+
unit: "hPa",
|
|
51852
|
+
deadband: .2
|
|
51853
|
+
},
|
|
51854
|
+
"windSpeed": {
|
|
51855
|
+
kind: "gauge",
|
|
51856
|
+
unit: "m/s",
|
|
51857
|
+
deadband: .2
|
|
51858
|
+
},
|
|
51859
|
+
"windGust": {
|
|
51860
|
+
kind: "gauge",
|
|
51861
|
+
unit: "m/s",
|
|
51862
|
+
deadband: .2
|
|
51863
|
+
},
|
|
51864
|
+
"windBearing": {
|
|
51865
|
+
kind: "gauge",
|
|
51866
|
+
unit: "°",
|
|
51867
|
+
deadband: 5
|
|
51868
|
+
},
|
|
51869
|
+
"rainRate": {
|
|
51870
|
+
kind: "gauge",
|
|
51871
|
+
unit: "mm/h",
|
|
51872
|
+
deadband: .1
|
|
51873
|
+
},
|
|
51874
|
+
"rainDaily": {
|
|
51875
|
+
kind: "gauge",
|
|
51876
|
+
unit: "mm",
|
|
51877
|
+
deadband: .1
|
|
51878
|
+
},
|
|
51879
|
+
"rainEvent": {
|
|
51880
|
+
kind: "gauge",
|
|
51881
|
+
unit: "mm",
|
|
51882
|
+
deadband: .1
|
|
51883
|
+
},
|
|
51884
|
+
"uv": {
|
|
51885
|
+
kind: "gauge",
|
|
51886
|
+
unit: "index",
|
|
51887
|
+
deadband: .1
|
|
51888
|
+
},
|
|
51889
|
+
"solarRadiation": {
|
|
51890
|
+
kind: "gauge",
|
|
51891
|
+
unit: "W/m²",
|
|
51892
|
+
deadband: 5
|
|
51893
|
+
},
|
|
51894
|
+
"dewPoint": {
|
|
51895
|
+
kind: "gauge",
|
|
51896
|
+
unit: "°C",
|
|
51897
|
+
deadband: .1
|
|
51898
|
+
},
|
|
51899
|
+
"feelsLike": {
|
|
51900
|
+
kind: "gauge",
|
|
51901
|
+
unit: "°C",
|
|
51902
|
+
deadband: .1
|
|
51903
|
+
},
|
|
51904
|
+
"vpd": {
|
|
51905
|
+
kind: "gauge",
|
|
51906
|
+
unit: "kPa",
|
|
51907
|
+
deadband: .05
|
|
51908
|
+
},
|
|
51909
|
+
"windGustMax": {
|
|
51910
|
+
kind: "gauge",
|
|
51911
|
+
unit: "m/s",
|
|
51912
|
+
deadband: .2
|
|
51913
|
+
},
|
|
51914
|
+
"windBearingAvg": {
|
|
51915
|
+
kind: "gauge",
|
|
51916
|
+
unit: "°",
|
|
51917
|
+
deadband: 5
|
|
51918
|
+
},
|
|
51919
|
+
"rain24h": {
|
|
51920
|
+
kind: "gauge",
|
|
51921
|
+
unit: "mm",
|
|
51922
|
+
deadband: .1
|
|
51923
|
+
},
|
|
51924
|
+
"rainWeekly": {
|
|
51925
|
+
kind: "gauge",
|
|
51926
|
+
unit: "mm",
|
|
51927
|
+
deadband: .1
|
|
51928
|
+
},
|
|
51929
|
+
"rainMonthly": {
|
|
51930
|
+
kind: "gauge",
|
|
51931
|
+
unit: "mm",
|
|
51932
|
+
deadband: .1
|
|
51933
|
+
},
|
|
51934
|
+
"rainYearly": {
|
|
51935
|
+
kind: "gauge",
|
|
51936
|
+
unit: "mm",
|
|
51937
|
+
deadband: .1
|
|
51938
|
+
}
|
|
51278
51939
|
}
|
|
51279
51940
|
};
|
|
51280
51941
|
/**
|
|
@@ -51373,7 +52034,6 @@ var HISTORY_NONE_CAPS = [
|
|
|
51373
52034
|
"stream-signals",
|
|
51374
52035
|
"timed-run",
|
|
51375
52036
|
"update",
|
|
51376
|
-
"weather-station",
|
|
51377
52037
|
"zone-analytics",
|
|
51378
52038
|
"zone-rules",
|
|
51379
52039
|
"zones"
|
|
@@ -60476,6 +61136,10 @@ var embeddingEncoderCapability = {
|
|
|
60476
61136
|
* system did not report is `null`, never `0` (D393).
|
|
60477
61137
|
*
|
|
60478
61138
|
* Signs, all in watts:
|
|
61139
|
+
* - The branches are DISJOINT: `house` is the consumption EXCLUDING the heat pump
|
|
61140
|
+
* whenever `heatPump` is reported, so solar + grid import + storage discharge =
|
|
61141
|
+
* house + heatPump + grid export + storage charge. A provider whose meter totals
|
|
61142
|
+
* include the pump subtracts it; when it cannot, `house` is null (D393).
|
|
60479
61143
|
* - `solar.powerW`, `house.powerW`, `heatPump.powerW` are magnitudes (≥ 0);
|
|
60480
61144
|
* - `grid.powerW` is + importing, − exporting;
|
|
60481
61145
|
* - `storage.powerW` is + charging, − discharging.
|
|
@@ -100305,18 +100969,30 @@ var weatherCapability = {
|
|
|
100305
100969
|
}
|
|
100306
100970
|
};
|
|
100307
100971
|
var WeatherStationStatusSchema = zod.z.object({
|
|
100308
|
-
temperature: zod.z.number().nullable().meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100309
|
-
humidity: zod.z.number().min(0).max(100).nullable().meta(require_sleep.readingMeta("humidity")),
|
|
100310
|
-
pressure: zod.z.number().nullable().meta(require_sleep.readingMeta("pressure")),
|
|
100311
|
-
windSpeed: zod.z.number().nullable().meta(require_sleep.readingMeta("speed")),
|
|
100312
|
-
windGust: zod.z.number().nullable().meta(require_sleep.readingMeta("speed")),
|
|
100313
|
-
windBearing: zod.z.number().nullable().meta(require_sleep.readingMeta("angle")),
|
|
100314
|
-
rainRate: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation-rate", { precision: 1 })),
|
|
100315
|
-
rainDaily: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100316
|
-
rainEvent: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100317
|
-
uv: zod.z.number().nullable().meta(require_sleep.readingMeta("index", { precision: 1 })),
|
|
100318
|
-
solarRadiation: zod.z.number().nullable().meta(require_sleep.readingMeta("irradiance")),
|
|
100319
|
-
dewPoint: zod.z.number().nullable().meta(require_sleep.readingMeta("temperature", { precision: 1 }))
|
|
100972
|
+
temperature: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100973
|
+
humidity: zod.z.number().min(0).max(100).nullable().default(null).meta(require_sleep.readingMeta("humidity")),
|
|
100974
|
+
pressure: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("pressure")),
|
|
100975
|
+
windSpeed: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("speed")),
|
|
100976
|
+
windGust: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("speed")),
|
|
100977
|
+
windBearing: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("angle")),
|
|
100978
|
+
rainRate: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation-rate", { precision: 1 })),
|
|
100979
|
+
rainDaily: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100980
|
+
rainEvent: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100981
|
+
uv: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("index", { precision: 1 })),
|
|
100982
|
+
solarRadiation: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("irradiance")),
|
|
100983
|
+
dewPoint: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100984
|
+
/** Apparent ("feels like") temperature. */
|
|
100985
|
+
feelsLike: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100986
|
+
/** Vapour-pressure deficit, stored in kPa (the unit stations and growers read it in). */
|
|
100987
|
+
vpd: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("none", { precision: 2 })),
|
|
100988
|
+
/** Highest wind gust since local midnight. */
|
|
100989
|
+
windGustMax: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("speed")),
|
|
100990
|
+
/** Wind bearing averaged over the station's own window. */
|
|
100991
|
+
windBearingAvg: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("angle")),
|
|
100992
|
+
rain24h: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100993
|
+
rainWeekly: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100994
|
+
rainMonthly: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100995
|
+
rainYearly: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 }))
|
|
100320
100996
|
}).extend({
|
|
100321
100997
|
/** Ms epoch of the poll that produced this slice. 0 before the first one. */
|
|
100322
100998
|
lastFetchedAt: zod.z.number() });
|
|
@@ -100328,6 +101004,75 @@ var numeric = (field, quantity, label, unit, icon) => ({
|
|
|
100328
101004
|
unit,
|
|
100329
101005
|
icon
|
|
100330
101006
|
});
|
|
101007
|
+
/** Every reading of the station with the unit a Customize source must carry ('' = dimensionless). */
|
|
101008
|
+
var STATION_FIELD_UNITS = {
|
|
101009
|
+
temperature: "°C",
|
|
101010
|
+
humidity: "%",
|
|
101011
|
+
pressure: "hPa",
|
|
101012
|
+
windSpeed: "m/s",
|
|
101013
|
+
windGust: "m/s",
|
|
101014
|
+
windBearing: "°",
|
|
101015
|
+
rainRate: "mm/h",
|
|
101016
|
+
rainDaily: "mm",
|
|
101017
|
+
rainEvent: "mm",
|
|
101018
|
+
uv: "",
|
|
101019
|
+
solarRadiation: "W/m²",
|
|
101020
|
+
dewPoint: "°C",
|
|
101021
|
+
feelsLike: "°C",
|
|
101022
|
+
vpd: "kPa",
|
|
101023
|
+
windGustMax: "m/s",
|
|
101024
|
+
windBearingAvg: "°",
|
|
101025
|
+
rain24h: "mm",
|
|
101026
|
+
rainWeekly: "mm",
|
|
101027
|
+
rainMonthly: "mm",
|
|
101028
|
+
rainYearly: "mm"
|
|
101029
|
+
};
|
|
101030
|
+
function isStationField(key) {
|
|
101031
|
+
return Object.prototype.hasOwnProperty.call(STATION_FIELD_UNITS, key);
|
|
101032
|
+
}
|
|
101033
|
+
var STATION_FIELDS = Object.keys(STATION_FIELD_UNITS).filter(isStationField);
|
|
101034
|
+
/**
|
|
101035
|
+
* One scalar target per reading, `apply: 'add'` and listed in `overridable` by its own id
|
|
101036
|
+
* (the running-state / climate-control mechanism, D984 / D990): a station that reports a
|
|
101037
|
+
* reading natively keeps it until the operator assigns another device to that ONE field,
|
|
101038
|
+
* and a device with no `weather-station` slice becomes one from the sources picked. On an
|
|
101039
|
+
* add, every other reading is absent from the claim and the schema defaults it to null
|
|
101040
|
+
* (a missing sensor is never 0, D393) — the fan-control precedent, never a cross-field companion
|
|
101041
|
+
* (the scalar merge treats a companion as owned by its target).
|
|
101042
|
+
*/
|
|
101043
|
+
function stationTarget(field) {
|
|
101044
|
+
const unit = STATION_FIELD_UNITS[field];
|
|
101045
|
+
return {
|
|
101046
|
+
id: field,
|
|
101047
|
+
cardinality: "scalar",
|
|
101048
|
+
vocabulary: {
|
|
101049
|
+
cap: "weather-station",
|
|
101050
|
+
stateField: field
|
|
101051
|
+
},
|
|
101052
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
101053
|
+
apply: "add",
|
|
101054
|
+
path: field,
|
|
101055
|
+
sources: [{
|
|
101056
|
+
kind: "numeric",
|
|
101057
|
+
...unit.length > 0 ? { requiredUnit: unit } : {},
|
|
101058
|
+
transforms: [{ kind: "identity" }]
|
|
101059
|
+
}],
|
|
101060
|
+
companions: [{
|
|
101061
|
+
kind: "clock",
|
|
101062
|
+
path: "lastFetchedAt",
|
|
101063
|
+
when: "add"
|
|
101064
|
+
}],
|
|
101065
|
+
sourceReport: { status: "assignment-status" }
|
|
101066
|
+
};
|
|
101067
|
+
}
|
|
101068
|
+
var weatherStationCustomize = {
|
|
101069
|
+
version: 1,
|
|
101070
|
+
overridable: STATION_FIELDS.map((field) => ({
|
|
101071
|
+
path: field,
|
|
101072
|
+
by: field
|
|
101073
|
+
})),
|
|
101074
|
+
targets: STATION_FIELDS.map(stationTarget)
|
|
101075
|
+
};
|
|
100331
101076
|
var weatherStationCapability = {
|
|
100332
101077
|
name: "weather-station",
|
|
100333
101078
|
scope: "device",
|
|
@@ -100341,10 +101086,115 @@ var weatherStationCapability = {
|
|
|
100341
101086
|
},
|
|
100342
101087
|
runtimeState: WeatherStationStatusSchema,
|
|
100343
101088
|
/**
|
|
100344
|
-
*
|
|
100345
|
-
*
|
|
101089
|
+
* History (D850): the station records its own readings. Rain totals that
|
|
101090
|
+
* reset (event, day, week, month, year) and the sliding 24 h total are
|
|
101091
|
+
* levels, so `gauge`; `counter` is for a monotonic meter only.
|
|
100346
101092
|
*/
|
|
100347
|
-
history:
|
|
101093
|
+
history: { fields: {
|
|
101094
|
+
temperature: {
|
|
101095
|
+
kind: "gauge",
|
|
101096
|
+
unit: "°C",
|
|
101097
|
+
deadband: .1
|
|
101098
|
+
},
|
|
101099
|
+
humidity: {
|
|
101100
|
+
kind: "gauge",
|
|
101101
|
+
unit: "%",
|
|
101102
|
+
deadband: 1
|
|
101103
|
+
},
|
|
101104
|
+
pressure: {
|
|
101105
|
+
kind: "gauge",
|
|
101106
|
+
unit: "hPa",
|
|
101107
|
+
deadband: .2
|
|
101108
|
+
},
|
|
101109
|
+
windSpeed: {
|
|
101110
|
+
kind: "gauge",
|
|
101111
|
+
unit: "m/s",
|
|
101112
|
+
deadband: .2
|
|
101113
|
+
},
|
|
101114
|
+
windGust: {
|
|
101115
|
+
kind: "gauge",
|
|
101116
|
+
unit: "m/s",
|
|
101117
|
+
deadband: .2
|
|
101118
|
+
},
|
|
101119
|
+
windBearing: {
|
|
101120
|
+
kind: "gauge",
|
|
101121
|
+
unit: "°",
|
|
101122
|
+
deadband: 5
|
|
101123
|
+
},
|
|
101124
|
+
rainRate: {
|
|
101125
|
+
kind: "gauge",
|
|
101126
|
+
unit: "mm/h",
|
|
101127
|
+
deadband: .1
|
|
101128
|
+
},
|
|
101129
|
+
rainDaily: {
|
|
101130
|
+
kind: "gauge",
|
|
101131
|
+
unit: "mm",
|
|
101132
|
+
deadband: .1
|
|
101133
|
+
},
|
|
101134
|
+
rainEvent: {
|
|
101135
|
+
kind: "gauge",
|
|
101136
|
+
unit: "mm",
|
|
101137
|
+
deadband: .1
|
|
101138
|
+
},
|
|
101139
|
+
uv: {
|
|
101140
|
+
kind: "gauge",
|
|
101141
|
+
unit: "index",
|
|
101142
|
+
deadband: .1
|
|
101143
|
+
},
|
|
101144
|
+
solarRadiation: {
|
|
101145
|
+
kind: "gauge",
|
|
101146
|
+
unit: "W/m²",
|
|
101147
|
+
deadband: 5
|
|
101148
|
+
},
|
|
101149
|
+
dewPoint: {
|
|
101150
|
+
kind: "gauge",
|
|
101151
|
+
unit: "°C",
|
|
101152
|
+
deadband: .1
|
|
101153
|
+
},
|
|
101154
|
+
feelsLike: {
|
|
101155
|
+
kind: "gauge",
|
|
101156
|
+
unit: "°C",
|
|
101157
|
+
deadband: .1
|
|
101158
|
+
},
|
|
101159
|
+
vpd: {
|
|
101160
|
+
kind: "gauge",
|
|
101161
|
+
unit: "kPa",
|
|
101162
|
+
deadband: .05
|
|
101163
|
+
},
|
|
101164
|
+
windGustMax: {
|
|
101165
|
+
kind: "gauge",
|
|
101166
|
+
unit: "m/s",
|
|
101167
|
+
deadband: .2
|
|
101168
|
+
},
|
|
101169
|
+
windBearingAvg: {
|
|
101170
|
+
kind: "gauge",
|
|
101171
|
+
unit: "°",
|
|
101172
|
+
deadband: 5
|
|
101173
|
+
},
|
|
101174
|
+
rain24h: {
|
|
101175
|
+
kind: "gauge",
|
|
101176
|
+
unit: "mm",
|
|
101177
|
+
deadband: .1
|
|
101178
|
+
},
|
|
101179
|
+
rainWeekly: {
|
|
101180
|
+
kind: "gauge",
|
|
101181
|
+
unit: "mm",
|
|
101182
|
+
deadband: .1
|
|
101183
|
+
},
|
|
101184
|
+
rainMonthly: {
|
|
101185
|
+
kind: "gauge",
|
|
101186
|
+
unit: "mm",
|
|
101187
|
+
deadband: .1
|
|
101188
|
+
},
|
|
101189
|
+
rainYearly: {
|
|
101190
|
+
kind: "gauge",
|
|
101191
|
+
unit: "mm",
|
|
101192
|
+
deadband: .1
|
|
101193
|
+
}
|
|
101194
|
+
} },
|
|
101195
|
+
customize: weatherStationCustomize,
|
|
101196
|
+
/** The poll clock is written but is no reason to commit a row. */
|
|
101197
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
100348
101198
|
/**
|
|
100349
101199
|
* Runtime-state durability: **session** — a station reading is stale the
|
|
100350
101200
|
* moment the hub is down; the provider re-reads on the next poll.
|
|
@@ -100365,7 +101215,15 @@ var weatherStationCapability = {
|
|
|
100365
101215
|
numeric("rainEvent", require_sleep.t("the rain this event", "la pioggia di questo evento"), require_sleep.t("Rain event", "Evento di pioggia"), "mm", "droplets"),
|
|
100366
101216
|
numeric("uv", require_sleep.t("the UV index", "l’indice UV"), require_sleep.t("UV", "UV"), "", "cloud-sun"),
|
|
100367
101217
|
numeric("solarRadiation", require_sleep.t("the solar radiation", "la radiazione solare"), require_sleep.t("Solar", "Sole"), "W/m²", "cloud-sun"),
|
|
100368
|
-
numeric("dewPoint", require_sleep.t("the dew point", "il punto di rugiada"), require_sleep.t("Dew point", "Punto di rugiada"), "°C", "thermometer")
|
|
101218
|
+
numeric("dewPoint", require_sleep.t("the dew point", "il punto di rugiada"), require_sleep.t("Dew point", "Punto di rugiada"), "°C", "thermometer"),
|
|
101219
|
+
numeric("feelsLike", require_sleep.t("the feels-like temperature", "la temperatura percepita"), require_sleep.t("Feels like", "Percepita"), "°C", "thermometer"),
|
|
101220
|
+
numeric("vpd", require_sleep.t("the vapour-pressure deficit", "il deficit di pressione di vapore"), require_sleep.t("VPD", "VPD"), "kPa", "gauge"),
|
|
101221
|
+
numeric("windGustMax", require_sleep.t("the highest gust today", "la raffica massima di oggi"), require_sleep.t("Max gust", "Raffica max"), "m/s", "wind"),
|
|
101222
|
+
numeric("windBearingAvg", require_sleep.t("the average wind bearing", "la direzione media del vento"), require_sleep.t("Avg bearing", "Direzione media"), "°", "wind"),
|
|
101223
|
+
numeric("rain24h", require_sleep.t("the rain in the last 24 hours", "la pioggia delle ultime 24 ore"), require_sleep.t("Rain 24 h", "Pioggia 24 h"), "mm", "droplets"),
|
|
101224
|
+
numeric("rainWeekly", require_sleep.t("the rain this week", "la pioggia di questa settimana"), require_sleep.t("Rain week", "Pioggia settimana"), "mm", "droplets"),
|
|
101225
|
+
numeric("rainMonthly", require_sleep.t("the rain this month", "la pioggia di questo mese"), require_sleep.t("Rain month", "Pioggia mese"), "mm", "droplets"),
|
|
101226
|
+
numeric("rainYearly", require_sleep.t("the rain this year", "la pioggia di quest’anno"), require_sleep.t("Rain year", "Pioggia anno"), "mm", "droplets")
|
|
100369
101227
|
]
|
|
100370
101228
|
}
|
|
100371
101229
|
};
|
|
@@ -133415,7 +134273,7 @@ var RUNTIME_STATE_POLICY = {
|
|
|
133415
134273
|
},
|
|
133416
134274
|
"weather-station": {
|
|
133417
134275
|
durability: "session",
|
|
133418
|
-
volatileFields: []
|
|
134276
|
+
volatileFields: ["lastFetchedAt"]
|
|
133419
134277
|
},
|
|
133420
134278
|
"zone-analytics": {
|
|
133421
134279
|
durability: "session",
|