@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeviceType } from '../device/device-type.js';
|
|
2
2
|
/**
|
|
3
3
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
4
|
-
*
|
|
4
|
+
* 13 caps. Field keys are `runtimeState` paths. No Zod.
|
|
5
5
|
*/
|
|
6
6
|
export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
7
7
|
readonly battery: {
|
|
@@ -803,6 +803,610 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
803
803
|
readonly by: 'running';
|
|
804
804
|
}];
|
|
805
805
|
};
|
|
806
|
+
readonly 'weather-station': {
|
|
807
|
+
readonly version: 1;
|
|
808
|
+
readonly targets: readonly [{
|
|
809
|
+
readonly id: 'temperature';
|
|
810
|
+
readonly cardinality: 'scalar';
|
|
811
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
812
|
+
readonly apply: 'add';
|
|
813
|
+
readonly vocabularyCap: 'weather-station';
|
|
814
|
+
readonly vocabularyStateField: 'temperature';
|
|
815
|
+
readonly sources: readonly [{
|
|
816
|
+
readonly kind: 'numeric';
|
|
817
|
+
readonly requiredUnit: '°C';
|
|
818
|
+
readonly transformKinds: readonly ["identity"];
|
|
819
|
+
readonly transforms: readonly [{
|
|
820
|
+
readonly kind: 'identity';
|
|
821
|
+
}];
|
|
822
|
+
}];
|
|
823
|
+
readonly sourceReport: {
|
|
824
|
+
readonly status: 'assignment-status';
|
|
825
|
+
};
|
|
826
|
+
readonly advancedExpression: false;
|
|
827
|
+
readonly path: 'temperature';
|
|
828
|
+
readonly valueKind: 'number';
|
|
829
|
+
readonly nullable: true;
|
|
830
|
+
readonly companions: readonly [{
|
|
831
|
+
readonly kind: 'clock';
|
|
832
|
+
readonly path: 'lastFetchedAt';
|
|
833
|
+
readonly when: 'add';
|
|
834
|
+
}];
|
|
835
|
+
}, {
|
|
836
|
+
readonly id: 'humidity';
|
|
837
|
+
readonly cardinality: 'scalar';
|
|
838
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
839
|
+
readonly apply: 'add';
|
|
840
|
+
readonly vocabularyCap: 'weather-station';
|
|
841
|
+
readonly vocabularyStateField: 'humidity';
|
|
842
|
+
readonly sources: readonly [{
|
|
843
|
+
readonly kind: 'numeric';
|
|
844
|
+
readonly requiredUnit: '%';
|
|
845
|
+
readonly transformKinds: readonly ["identity"];
|
|
846
|
+
readonly transforms: readonly [{
|
|
847
|
+
readonly kind: 'identity';
|
|
848
|
+
}];
|
|
849
|
+
}];
|
|
850
|
+
readonly sourceReport: {
|
|
851
|
+
readonly status: 'assignment-status';
|
|
852
|
+
};
|
|
853
|
+
readonly advancedExpression: false;
|
|
854
|
+
readonly path: 'humidity';
|
|
855
|
+
readonly valueKind: 'number';
|
|
856
|
+
readonly nullable: true;
|
|
857
|
+
readonly companions: readonly [{
|
|
858
|
+
readonly kind: 'clock';
|
|
859
|
+
readonly path: 'lastFetchedAt';
|
|
860
|
+
readonly when: 'add';
|
|
861
|
+
}];
|
|
862
|
+
}, {
|
|
863
|
+
readonly id: 'pressure';
|
|
864
|
+
readonly cardinality: 'scalar';
|
|
865
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
866
|
+
readonly apply: 'add';
|
|
867
|
+
readonly vocabularyCap: 'weather-station';
|
|
868
|
+
readonly vocabularyStateField: 'pressure';
|
|
869
|
+
readonly sources: readonly [{
|
|
870
|
+
readonly kind: 'numeric';
|
|
871
|
+
readonly requiredUnit: 'hPa';
|
|
872
|
+
readonly transformKinds: readonly ["identity"];
|
|
873
|
+
readonly transforms: readonly [{
|
|
874
|
+
readonly kind: 'identity';
|
|
875
|
+
}];
|
|
876
|
+
}];
|
|
877
|
+
readonly sourceReport: {
|
|
878
|
+
readonly status: 'assignment-status';
|
|
879
|
+
};
|
|
880
|
+
readonly advancedExpression: false;
|
|
881
|
+
readonly path: 'pressure';
|
|
882
|
+
readonly valueKind: 'number';
|
|
883
|
+
readonly nullable: true;
|
|
884
|
+
readonly companions: readonly [{
|
|
885
|
+
readonly kind: 'clock';
|
|
886
|
+
readonly path: 'lastFetchedAt';
|
|
887
|
+
readonly when: 'add';
|
|
888
|
+
}];
|
|
889
|
+
}, {
|
|
890
|
+
readonly id: 'windSpeed';
|
|
891
|
+
readonly cardinality: 'scalar';
|
|
892
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
893
|
+
readonly apply: 'add';
|
|
894
|
+
readonly vocabularyCap: 'weather-station';
|
|
895
|
+
readonly vocabularyStateField: 'windSpeed';
|
|
896
|
+
readonly sources: readonly [{
|
|
897
|
+
readonly kind: 'numeric';
|
|
898
|
+
readonly requiredUnit: 'm/s';
|
|
899
|
+
readonly transformKinds: readonly ["identity"];
|
|
900
|
+
readonly transforms: readonly [{
|
|
901
|
+
readonly kind: 'identity';
|
|
902
|
+
}];
|
|
903
|
+
}];
|
|
904
|
+
readonly sourceReport: {
|
|
905
|
+
readonly status: 'assignment-status';
|
|
906
|
+
};
|
|
907
|
+
readonly advancedExpression: false;
|
|
908
|
+
readonly path: 'windSpeed';
|
|
909
|
+
readonly valueKind: 'number';
|
|
910
|
+
readonly nullable: true;
|
|
911
|
+
readonly companions: readonly [{
|
|
912
|
+
readonly kind: 'clock';
|
|
913
|
+
readonly path: 'lastFetchedAt';
|
|
914
|
+
readonly when: 'add';
|
|
915
|
+
}];
|
|
916
|
+
}, {
|
|
917
|
+
readonly id: 'windGust';
|
|
918
|
+
readonly cardinality: 'scalar';
|
|
919
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
920
|
+
readonly apply: 'add';
|
|
921
|
+
readonly vocabularyCap: 'weather-station';
|
|
922
|
+
readonly vocabularyStateField: 'windGust';
|
|
923
|
+
readonly sources: readonly [{
|
|
924
|
+
readonly kind: 'numeric';
|
|
925
|
+
readonly requiredUnit: 'm/s';
|
|
926
|
+
readonly transformKinds: readonly ["identity"];
|
|
927
|
+
readonly transforms: readonly [{
|
|
928
|
+
readonly kind: 'identity';
|
|
929
|
+
}];
|
|
930
|
+
}];
|
|
931
|
+
readonly sourceReport: {
|
|
932
|
+
readonly status: 'assignment-status';
|
|
933
|
+
};
|
|
934
|
+
readonly advancedExpression: false;
|
|
935
|
+
readonly path: 'windGust';
|
|
936
|
+
readonly valueKind: 'number';
|
|
937
|
+
readonly nullable: true;
|
|
938
|
+
readonly companions: readonly [{
|
|
939
|
+
readonly kind: 'clock';
|
|
940
|
+
readonly path: 'lastFetchedAt';
|
|
941
|
+
readonly when: 'add';
|
|
942
|
+
}];
|
|
943
|
+
}, {
|
|
944
|
+
readonly id: 'windBearing';
|
|
945
|
+
readonly cardinality: 'scalar';
|
|
946
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
947
|
+
readonly apply: 'add';
|
|
948
|
+
readonly vocabularyCap: 'weather-station';
|
|
949
|
+
readonly vocabularyStateField: 'windBearing';
|
|
950
|
+
readonly sources: readonly [{
|
|
951
|
+
readonly kind: 'numeric';
|
|
952
|
+
readonly requiredUnit: '°';
|
|
953
|
+
readonly transformKinds: readonly ["identity"];
|
|
954
|
+
readonly transforms: readonly [{
|
|
955
|
+
readonly kind: 'identity';
|
|
956
|
+
}];
|
|
957
|
+
}];
|
|
958
|
+
readonly sourceReport: {
|
|
959
|
+
readonly status: 'assignment-status';
|
|
960
|
+
};
|
|
961
|
+
readonly advancedExpression: false;
|
|
962
|
+
readonly path: 'windBearing';
|
|
963
|
+
readonly valueKind: 'number';
|
|
964
|
+
readonly nullable: true;
|
|
965
|
+
readonly companions: readonly [{
|
|
966
|
+
readonly kind: 'clock';
|
|
967
|
+
readonly path: 'lastFetchedAt';
|
|
968
|
+
readonly when: 'add';
|
|
969
|
+
}];
|
|
970
|
+
}, {
|
|
971
|
+
readonly id: 'rainRate';
|
|
972
|
+
readonly cardinality: 'scalar';
|
|
973
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
974
|
+
readonly apply: 'add';
|
|
975
|
+
readonly vocabularyCap: 'weather-station';
|
|
976
|
+
readonly vocabularyStateField: 'rainRate';
|
|
977
|
+
readonly sources: readonly [{
|
|
978
|
+
readonly kind: 'numeric';
|
|
979
|
+
readonly requiredUnit: 'mm/h';
|
|
980
|
+
readonly transformKinds: readonly ["identity"];
|
|
981
|
+
readonly transforms: readonly [{
|
|
982
|
+
readonly kind: 'identity';
|
|
983
|
+
}];
|
|
984
|
+
}];
|
|
985
|
+
readonly sourceReport: {
|
|
986
|
+
readonly status: 'assignment-status';
|
|
987
|
+
};
|
|
988
|
+
readonly advancedExpression: false;
|
|
989
|
+
readonly path: 'rainRate';
|
|
990
|
+
readonly valueKind: 'number';
|
|
991
|
+
readonly nullable: true;
|
|
992
|
+
readonly companions: readonly [{
|
|
993
|
+
readonly kind: 'clock';
|
|
994
|
+
readonly path: 'lastFetchedAt';
|
|
995
|
+
readonly when: 'add';
|
|
996
|
+
}];
|
|
997
|
+
}, {
|
|
998
|
+
readonly id: 'rainDaily';
|
|
999
|
+
readonly cardinality: 'scalar';
|
|
1000
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1001
|
+
readonly apply: 'add';
|
|
1002
|
+
readonly vocabularyCap: 'weather-station';
|
|
1003
|
+
readonly vocabularyStateField: 'rainDaily';
|
|
1004
|
+
readonly sources: readonly [{
|
|
1005
|
+
readonly kind: 'numeric';
|
|
1006
|
+
readonly requiredUnit: 'mm';
|
|
1007
|
+
readonly transformKinds: readonly ["identity"];
|
|
1008
|
+
readonly transforms: readonly [{
|
|
1009
|
+
readonly kind: 'identity';
|
|
1010
|
+
}];
|
|
1011
|
+
}];
|
|
1012
|
+
readonly sourceReport: {
|
|
1013
|
+
readonly status: 'assignment-status';
|
|
1014
|
+
};
|
|
1015
|
+
readonly advancedExpression: false;
|
|
1016
|
+
readonly path: 'rainDaily';
|
|
1017
|
+
readonly valueKind: 'number';
|
|
1018
|
+
readonly nullable: true;
|
|
1019
|
+
readonly companions: readonly [{
|
|
1020
|
+
readonly kind: 'clock';
|
|
1021
|
+
readonly path: 'lastFetchedAt';
|
|
1022
|
+
readonly when: 'add';
|
|
1023
|
+
}];
|
|
1024
|
+
}, {
|
|
1025
|
+
readonly id: 'rainEvent';
|
|
1026
|
+
readonly cardinality: 'scalar';
|
|
1027
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1028
|
+
readonly apply: 'add';
|
|
1029
|
+
readonly vocabularyCap: 'weather-station';
|
|
1030
|
+
readonly vocabularyStateField: 'rainEvent';
|
|
1031
|
+
readonly sources: readonly [{
|
|
1032
|
+
readonly kind: 'numeric';
|
|
1033
|
+
readonly requiredUnit: 'mm';
|
|
1034
|
+
readonly transformKinds: readonly ["identity"];
|
|
1035
|
+
readonly transforms: readonly [{
|
|
1036
|
+
readonly kind: 'identity';
|
|
1037
|
+
}];
|
|
1038
|
+
}];
|
|
1039
|
+
readonly sourceReport: {
|
|
1040
|
+
readonly status: 'assignment-status';
|
|
1041
|
+
};
|
|
1042
|
+
readonly advancedExpression: false;
|
|
1043
|
+
readonly path: 'rainEvent';
|
|
1044
|
+
readonly valueKind: 'number';
|
|
1045
|
+
readonly nullable: true;
|
|
1046
|
+
readonly companions: readonly [{
|
|
1047
|
+
readonly kind: 'clock';
|
|
1048
|
+
readonly path: 'lastFetchedAt';
|
|
1049
|
+
readonly when: 'add';
|
|
1050
|
+
}];
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly id: 'uv';
|
|
1053
|
+
readonly cardinality: 'scalar';
|
|
1054
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1055
|
+
readonly apply: 'add';
|
|
1056
|
+
readonly vocabularyCap: 'weather-station';
|
|
1057
|
+
readonly vocabularyStateField: 'uv';
|
|
1058
|
+
readonly sources: readonly [{
|
|
1059
|
+
readonly kind: 'numeric';
|
|
1060
|
+
readonly transformKinds: readonly ["identity"];
|
|
1061
|
+
readonly transforms: readonly [{
|
|
1062
|
+
readonly kind: 'identity';
|
|
1063
|
+
}];
|
|
1064
|
+
}];
|
|
1065
|
+
readonly sourceReport: {
|
|
1066
|
+
readonly status: 'assignment-status';
|
|
1067
|
+
};
|
|
1068
|
+
readonly advancedExpression: false;
|
|
1069
|
+
readonly path: 'uv';
|
|
1070
|
+
readonly valueKind: 'number';
|
|
1071
|
+
readonly nullable: true;
|
|
1072
|
+
readonly companions: readonly [{
|
|
1073
|
+
readonly kind: 'clock';
|
|
1074
|
+
readonly path: 'lastFetchedAt';
|
|
1075
|
+
readonly when: 'add';
|
|
1076
|
+
}];
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly id: 'solarRadiation';
|
|
1079
|
+
readonly cardinality: 'scalar';
|
|
1080
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1081
|
+
readonly apply: 'add';
|
|
1082
|
+
readonly vocabularyCap: 'weather-station';
|
|
1083
|
+
readonly vocabularyStateField: 'solarRadiation';
|
|
1084
|
+
readonly sources: readonly [{
|
|
1085
|
+
readonly kind: 'numeric';
|
|
1086
|
+
readonly requiredUnit: 'W/m²';
|
|
1087
|
+
readonly transformKinds: readonly ["identity"];
|
|
1088
|
+
readonly transforms: readonly [{
|
|
1089
|
+
readonly kind: 'identity';
|
|
1090
|
+
}];
|
|
1091
|
+
}];
|
|
1092
|
+
readonly sourceReport: {
|
|
1093
|
+
readonly status: 'assignment-status';
|
|
1094
|
+
};
|
|
1095
|
+
readonly advancedExpression: false;
|
|
1096
|
+
readonly path: 'solarRadiation';
|
|
1097
|
+
readonly valueKind: 'number';
|
|
1098
|
+
readonly nullable: true;
|
|
1099
|
+
readonly companions: readonly [{
|
|
1100
|
+
readonly kind: 'clock';
|
|
1101
|
+
readonly path: 'lastFetchedAt';
|
|
1102
|
+
readonly when: 'add';
|
|
1103
|
+
}];
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly id: 'dewPoint';
|
|
1106
|
+
readonly cardinality: 'scalar';
|
|
1107
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1108
|
+
readonly apply: 'add';
|
|
1109
|
+
readonly vocabularyCap: 'weather-station';
|
|
1110
|
+
readonly vocabularyStateField: 'dewPoint';
|
|
1111
|
+
readonly sources: readonly [{
|
|
1112
|
+
readonly kind: 'numeric';
|
|
1113
|
+
readonly requiredUnit: '°C';
|
|
1114
|
+
readonly transformKinds: readonly ["identity"];
|
|
1115
|
+
readonly transforms: readonly [{
|
|
1116
|
+
readonly kind: 'identity';
|
|
1117
|
+
}];
|
|
1118
|
+
}];
|
|
1119
|
+
readonly sourceReport: {
|
|
1120
|
+
readonly status: 'assignment-status';
|
|
1121
|
+
};
|
|
1122
|
+
readonly advancedExpression: false;
|
|
1123
|
+
readonly path: 'dewPoint';
|
|
1124
|
+
readonly valueKind: 'number';
|
|
1125
|
+
readonly nullable: true;
|
|
1126
|
+
readonly companions: readonly [{
|
|
1127
|
+
readonly kind: 'clock';
|
|
1128
|
+
readonly path: 'lastFetchedAt';
|
|
1129
|
+
readonly when: 'add';
|
|
1130
|
+
}];
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly id: 'feelsLike';
|
|
1133
|
+
readonly cardinality: 'scalar';
|
|
1134
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1135
|
+
readonly apply: 'add';
|
|
1136
|
+
readonly vocabularyCap: 'weather-station';
|
|
1137
|
+
readonly vocabularyStateField: 'feelsLike';
|
|
1138
|
+
readonly sources: readonly [{
|
|
1139
|
+
readonly kind: 'numeric';
|
|
1140
|
+
readonly requiredUnit: '°C';
|
|
1141
|
+
readonly transformKinds: readonly ["identity"];
|
|
1142
|
+
readonly transforms: readonly [{
|
|
1143
|
+
readonly kind: 'identity';
|
|
1144
|
+
}];
|
|
1145
|
+
}];
|
|
1146
|
+
readonly sourceReport: {
|
|
1147
|
+
readonly status: 'assignment-status';
|
|
1148
|
+
};
|
|
1149
|
+
readonly advancedExpression: false;
|
|
1150
|
+
readonly path: 'feelsLike';
|
|
1151
|
+
readonly valueKind: 'number';
|
|
1152
|
+
readonly nullable: true;
|
|
1153
|
+
readonly companions: readonly [{
|
|
1154
|
+
readonly kind: 'clock';
|
|
1155
|
+
readonly path: 'lastFetchedAt';
|
|
1156
|
+
readonly when: 'add';
|
|
1157
|
+
}];
|
|
1158
|
+
}, {
|
|
1159
|
+
readonly id: 'vpd';
|
|
1160
|
+
readonly cardinality: 'scalar';
|
|
1161
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1162
|
+
readonly apply: 'add';
|
|
1163
|
+
readonly vocabularyCap: 'weather-station';
|
|
1164
|
+
readonly vocabularyStateField: 'vpd';
|
|
1165
|
+
readonly sources: readonly [{
|
|
1166
|
+
readonly kind: 'numeric';
|
|
1167
|
+
readonly requiredUnit: 'kPa';
|
|
1168
|
+
readonly transformKinds: readonly ["identity"];
|
|
1169
|
+
readonly transforms: readonly [{
|
|
1170
|
+
readonly kind: 'identity';
|
|
1171
|
+
}];
|
|
1172
|
+
}];
|
|
1173
|
+
readonly sourceReport: {
|
|
1174
|
+
readonly status: 'assignment-status';
|
|
1175
|
+
};
|
|
1176
|
+
readonly advancedExpression: false;
|
|
1177
|
+
readonly path: 'vpd';
|
|
1178
|
+
readonly valueKind: 'number';
|
|
1179
|
+
readonly nullable: true;
|
|
1180
|
+
readonly companions: readonly [{
|
|
1181
|
+
readonly kind: 'clock';
|
|
1182
|
+
readonly path: 'lastFetchedAt';
|
|
1183
|
+
readonly when: 'add';
|
|
1184
|
+
}];
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly id: 'windGustMax';
|
|
1187
|
+
readonly cardinality: 'scalar';
|
|
1188
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1189
|
+
readonly apply: 'add';
|
|
1190
|
+
readonly vocabularyCap: 'weather-station';
|
|
1191
|
+
readonly vocabularyStateField: 'windGustMax';
|
|
1192
|
+
readonly sources: readonly [{
|
|
1193
|
+
readonly kind: 'numeric';
|
|
1194
|
+
readonly requiredUnit: 'm/s';
|
|
1195
|
+
readonly transformKinds: readonly ["identity"];
|
|
1196
|
+
readonly transforms: readonly [{
|
|
1197
|
+
readonly kind: 'identity';
|
|
1198
|
+
}];
|
|
1199
|
+
}];
|
|
1200
|
+
readonly sourceReport: {
|
|
1201
|
+
readonly status: 'assignment-status';
|
|
1202
|
+
};
|
|
1203
|
+
readonly advancedExpression: false;
|
|
1204
|
+
readonly path: 'windGustMax';
|
|
1205
|
+
readonly valueKind: 'number';
|
|
1206
|
+
readonly nullable: true;
|
|
1207
|
+
readonly companions: readonly [{
|
|
1208
|
+
readonly kind: 'clock';
|
|
1209
|
+
readonly path: 'lastFetchedAt';
|
|
1210
|
+
readonly when: 'add';
|
|
1211
|
+
}];
|
|
1212
|
+
}, {
|
|
1213
|
+
readonly id: 'windBearingAvg';
|
|
1214
|
+
readonly cardinality: 'scalar';
|
|
1215
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1216
|
+
readonly apply: 'add';
|
|
1217
|
+
readonly vocabularyCap: 'weather-station';
|
|
1218
|
+
readonly vocabularyStateField: 'windBearingAvg';
|
|
1219
|
+
readonly sources: readonly [{
|
|
1220
|
+
readonly kind: 'numeric';
|
|
1221
|
+
readonly requiredUnit: '°';
|
|
1222
|
+
readonly transformKinds: readonly ["identity"];
|
|
1223
|
+
readonly transforms: readonly [{
|
|
1224
|
+
readonly kind: 'identity';
|
|
1225
|
+
}];
|
|
1226
|
+
}];
|
|
1227
|
+
readonly sourceReport: {
|
|
1228
|
+
readonly status: 'assignment-status';
|
|
1229
|
+
};
|
|
1230
|
+
readonly advancedExpression: false;
|
|
1231
|
+
readonly path: 'windBearingAvg';
|
|
1232
|
+
readonly valueKind: 'number';
|
|
1233
|
+
readonly nullable: true;
|
|
1234
|
+
readonly companions: readonly [{
|
|
1235
|
+
readonly kind: 'clock';
|
|
1236
|
+
readonly path: 'lastFetchedAt';
|
|
1237
|
+
readonly when: 'add';
|
|
1238
|
+
}];
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly id: 'rain24h';
|
|
1241
|
+
readonly cardinality: 'scalar';
|
|
1242
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1243
|
+
readonly apply: 'add';
|
|
1244
|
+
readonly vocabularyCap: 'weather-station';
|
|
1245
|
+
readonly vocabularyStateField: 'rain24h';
|
|
1246
|
+
readonly sources: readonly [{
|
|
1247
|
+
readonly kind: 'numeric';
|
|
1248
|
+
readonly requiredUnit: 'mm';
|
|
1249
|
+
readonly transformKinds: readonly ["identity"];
|
|
1250
|
+
readonly transforms: readonly [{
|
|
1251
|
+
readonly kind: 'identity';
|
|
1252
|
+
}];
|
|
1253
|
+
}];
|
|
1254
|
+
readonly sourceReport: {
|
|
1255
|
+
readonly status: 'assignment-status';
|
|
1256
|
+
};
|
|
1257
|
+
readonly advancedExpression: false;
|
|
1258
|
+
readonly path: 'rain24h';
|
|
1259
|
+
readonly valueKind: 'number';
|
|
1260
|
+
readonly nullable: true;
|
|
1261
|
+
readonly companions: readonly [{
|
|
1262
|
+
readonly kind: 'clock';
|
|
1263
|
+
readonly path: 'lastFetchedAt';
|
|
1264
|
+
readonly when: 'add';
|
|
1265
|
+
}];
|
|
1266
|
+
}, {
|
|
1267
|
+
readonly id: 'rainWeekly';
|
|
1268
|
+
readonly cardinality: 'scalar';
|
|
1269
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1270
|
+
readonly apply: 'add';
|
|
1271
|
+
readonly vocabularyCap: 'weather-station';
|
|
1272
|
+
readonly vocabularyStateField: 'rainWeekly';
|
|
1273
|
+
readonly sources: readonly [{
|
|
1274
|
+
readonly kind: 'numeric';
|
|
1275
|
+
readonly requiredUnit: 'mm';
|
|
1276
|
+
readonly transformKinds: readonly ["identity"];
|
|
1277
|
+
readonly transforms: readonly [{
|
|
1278
|
+
readonly kind: 'identity';
|
|
1279
|
+
}];
|
|
1280
|
+
}];
|
|
1281
|
+
readonly sourceReport: {
|
|
1282
|
+
readonly status: 'assignment-status';
|
|
1283
|
+
};
|
|
1284
|
+
readonly advancedExpression: false;
|
|
1285
|
+
readonly path: 'rainWeekly';
|
|
1286
|
+
readonly valueKind: 'number';
|
|
1287
|
+
readonly nullable: true;
|
|
1288
|
+
readonly companions: readonly [{
|
|
1289
|
+
readonly kind: 'clock';
|
|
1290
|
+
readonly path: 'lastFetchedAt';
|
|
1291
|
+
readonly when: 'add';
|
|
1292
|
+
}];
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly id: 'rainMonthly';
|
|
1295
|
+
readonly cardinality: 'scalar';
|
|
1296
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1297
|
+
readonly apply: 'add';
|
|
1298
|
+
readonly vocabularyCap: 'weather-station';
|
|
1299
|
+
readonly vocabularyStateField: 'rainMonthly';
|
|
1300
|
+
readonly sources: readonly [{
|
|
1301
|
+
readonly kind: 'numeric';
|
|
1302
|
+
readonly requiredUnit: 'mm';
|
|
1303
|
+
readonly transformKinds: readonly ["identity"];
|
|
1304
|
+
readonly transforms: readonly [{
|
|
1305
|
+
readonly kind: 'identity';
|
|
1306
|
+
}];
|
|
1307
|
+
}];
|
|
1308
|
+
readonly sourceReport: {
|
|
1309
|
+
readonly status: 'assignment-status';
|
|
1310
|
+
};
|
|
1311
|
+
readonly advancedExpression: false;
|
|
1312
|
+
readonly path: 'rainMonthly';
|
|
1313
|
+
readonly valueKind: 'number';
|
|
1314
|
+
readonly nullable: true;
|
|
1315
|
+
readonly companions: readonly [{
|
|
1316
|
+
readonly kind: 'clock';
|
|
1317
|
+
readonly path: 'lastFetchedAt';
|
|
1318
|
+
readonly when: 'add';
|
|
1319
|
+
}];
|
|
1320
|
+
}, {
|
|
1321
|
+
readonly id: 'rainYearly';
|
|
1322
|
+
readonly cardinality: 'scalar';
|
|
1323
|
+
readonly deviceTypes: readonly [DeviceType.WeatherStation];
|
|
1324
|
+
readonly apply: 'add';
|
|
1325
|
+
readonly vocabularyCap: 'weather-station';
|
|
1326
|
+
readonly vocabularyStateField: 'rainYearly';
|
|
1327
|
+
readonly sources: readonly [{
|
|
1328
|
+
readonly kind: 'numeric';
|
|
1329
|
+
readonly requiredUnit: 'mm';
|
|
1330
|
+
readonly transformKinds: readonly ["identity"];
|
|
1331
|
+
readonly transforms: readonly [{
|
|
1332
|
+
readonly kind: 'identity';
|
|
1333
|
+
}];
|
|
1334
|
+
}];
|
|
1335
|
+
readonly sourceReport: {
|
|
1336
|
+
readonly status: 'assignment-status';
|
|
1337
|
+
};
|
|
1338
|
+
readonly advancedExpression: false;
|
|
1339
|
+
readonly path: 'rainYearly';
|
|
1340
|
+
readonly valueKind: 'number';
|
|
1341
|
+
readonly nullable: true;
|
|
1342
|
+
readonly companions: readonly [{
|
|
1343
|
+
readonly kind: 'clock';
|
|
1344
|
+
readonly path: 'lastFetchedAt';
|
|
1345
|
+
readonly when: 'add';
|
|
1346
|
+
}];
|
|
1347
|
+
}];
|
|
1348
|
+
readonly overridable: readonly [{
|
|
1349
|
+
readonly path: 'temperature';
|
|
1350
|
+
readonly by: 'temperature';
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly path: 'humidity';
|
|
1353
|
+
readonly by: 'humidity';
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly path: 'pressure';
|
|
1356
|
+
readonly by: 'pressure';
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly path: 'windSpeed';
|
|
1359
|
+
readonly by: 'windSpeed';
|
|
1360
|
+
}, {
|
|
1361
|
+
readonly path: 'windGust';
|
|
1362
|
+
readonly by: 'windGust';
|
|
1363
|
+
}, {
|
|
1364
|
+
readonly path: 'windBearing';
|
|
1365
|
+
readonly by: 'windBearing';
|
|
1366
|
+
}, {
|
|
1367
|
+
readonly path: 'rainRate';
|
|
1368
|
+
readonly by: 'rainRate';
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly path: 'rainDaily';
|
|
1371
|
+
readonly by: 'rainDaily';
|
|
1372
|
+
}, {
|
|
1373
|
+
readonly path: 'rainEvent';
|
|
1374
|
+
readonly by: 'rainEvent';
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly path: 'uv';
|
|
1377
|
+
readonly by: 'uv';
|
|
1378
|
+
}, {
|
|
1379
|
+
readonly path: 'solarRadiation';
|
|
1380
|
+
readonly by: 'solarRadiation';
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly path: 'dewPoint';
|
|
1383
|
+
readonly by: 'dewPoint';
|
|
1384
|
+
}, {
|
|
1385
|
+
readonly path: 'feelsLike';
|
|
1386
|
+
readonly by: 'feelsLike';
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly path: 'vpd';
|
|
1389
|
+
readonly by: 'vpd';
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly path: 'windGustMax';
|
|
1392
|
+
readonly by: 'windGustMax';
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly path: 'windBearingAvg';
|
|
1395
|
+
readonly by: 'windBearingAvg';
|
|
1396
|
+
}, {
|
|
1397
|
+
readonly path: 'rain24h';
|
|
1398
|
+
readonly by: 'rain24h';
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly path: 'rainWeekly';
|
|
1401
|
+
readonly by: 'rainWeekly';
|
|
1402
|
+
}, {
|
|
1403
|
+
readonly path: 'rainMonthly';
|
|
1404
|
+
readonly by: 'rainMonthly';
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly path: 'rainYearly';
|
|
1407
|
+
readonly by: 'rainYearly';
|
|
1408
|
+
}];
|
|
1409
|
+
};
|
|
806
1410
|
};
|
|
807
1411
|
/**
|
|
808
1412
|
* Unit meta on runtime-state fields. The composed-device row reads this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapabilityHistoryField, CapabilityHistoryItems } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
*
|
|
4
|
+
* 46 caps with series (124 series), 38 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|