@camstack/types 1.2.568 → 1.2.569
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 +6 -1
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/weather-station.cap.d.ts +255 -0
- package/dist/client.js +7 -0
- package/dist/client.mjs +7 -0
- package/dist/{composed-stable-id-BzXh1Swk.js → composed-stable-id-C3NfRTj8.js} +3 -0
- package/dist/{composed-stable-id-COP6zOXx.mjs → composed-stable-id-RvQIEpqg.mjs} +3 -0
- package/dist/device/device-icon.d.ts +1 -0
- package/dist/device/device-type.d.ts +3 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-scene.d.ts +1 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/{implemented-methods-0xxMOekw.mjs → implemented-methods-C5FMXLGP.mjs} +1 -1
- package/dist/{implemented-methods-D4F6RWkO.js → implemented-methods-C7ScGvEz.js} +1 -1
- package/dist/index.js +127 -15
- package/dist/index.mjs +126 -16
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-BTb3-IPb.js → sleep-DR76P1OE.js} +235 -3
- package/dist/{sleep-DEd_klYQ.mjs → sleep-DbhT0DWV.mjs} +235 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-DR76P1OE.js");
|
|
3
3
|
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
5
|
-
const require_implemented_methods = require("./implemented-methods-
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
5
|
+
const require_implemented_methods = require("./implemented-methods-C7ScGvEz.js");
|
|
6
6
|
const require_node_color = require("./node-color.js");
|
|
7
7
|
const require_convert = require("./convert-BI8iTXn6.js");
|
|
8
8
|
const require_enums = require("./enums.js");
|
|
@@ -48930,6 +48930,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
48930
48930
|
require_composed_stable_id.DeviceType.Control,
|
|
48931
48931
|
require_composed_stable_id.DeviceType.Presence,
|
|
48932
48932
|
require_composed_stable_id.DeviceType.Weather,
|
|
48933
|
+
require_composed_stable_id.DeviceType.WeatherStation,
|
|
48933
48934
|
require_composed_stable_id.DeviceType.Vacuum,
|
|
48934
48935
|
require_composed_stable_id.DeviceType.LawnMower,
|
|
48935
48936
|
require_composed_stable_id.DeviceType.Container,
|
|
@@ -50383,7 +50384,7 @@ var CHANGED = {
|
|
|
50383
50384
|
fieldPath: "lastChangedAt",
|
|
50384
50385
|
expr: "now"
|
|
50385
50386
|
};
|
|
50386
|
-
function numeric(input) {
|
|
50387
|
+
function numeric$1(input) {
|
|
50387
50388
|
const { alsoFrom, ...base } = input;
|
|
50388
50389
|
return {
|
|
50389
50390
|
...base,
|
|
@@ -50418,7 +50419,7 @@ function binary(input) {
|
|
|
50418
50419
|
};
|
|
50419
50420
|
}
|
|
50420
50421
|
var GROUP_TEMPLATES = [
|
|
50421
|
-
numeric({
|
|
50422
|
+
numeric$1({
|
|
50422
50423
|
id: "temperature",
|
|
50423
50424
|
summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
|
|
50424
50425
|
role: require_composed_stable_id.DeviceRole.TemperatureSensor,
|
|
@@ -50436,7 +50437,7 @@ var GROUP_TEMPLATES = [
|
|
|
50436
50437
|
}
|
|
50437
50438
|
}
|
|
50438
50439
|
}),
|
|
50439
|
-
numeric({
|
|
50440
|
+
numeric$1({
|
|
50440
50441
|
id: "humidity",
|
|
50441
50442
|
summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
50442
50443
|
role: require_composed_stable_id.DeviceRole.HumiditySensor,
|
|
@@ -50454,7 +50455,7 @@ var GROUP_TEMPLATES = [
|
|
|
50454
50455
|
}
|
|
50455
50456
|
}
|
|
50456
50457
|
}),
|
|
50457
|
-
numeric({
|
|
50458
|
+
numeric$1({
|
|
50458
50459
|
id: "pressure",
|
|
50459
50460
|
summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
|
|
50460
50461
|
role: require_composed_stable_id.DeviceRole.PressureSensor,
|
|
@@ -50465,7 +50466,7 @@ var GROUP_TEMPLATES = [
|
|
|
50465
50466
|
empty: "null",
|
|
50466
50467
|
companions: [NOW$3]
|
|
50467
50468
|
}),
|
|
50468
|
-
numeric({
|
|
50469
|
+
numeric$1({
|
|
50469
50470
|
id: "illuminance",
|
|
50470
50471
|
summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
|
|
50471
50472
|
role: require_composed_stable_id.DeviceRole.AmbientLightSensor,
|
|
@@ -50476,7 +50477,7 @@ var GROUP_TEMPLATES = [
|
|
|
50476
50477
|
empty: "null",
|
|
50477
50478
|
companions: [NOW$3]
|
|
50478
50479
|
}),
|
|
50479
|
-
numeric({
|
|
50480
|
+
numeric$1({
|
|
50480
50481
|
id: "power",
|
|
50481
50482
|
summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
|
|
50482
50483
|
role: require_composed_stable_id.DeviceRole.PowerSensor,
|
|
@@ -50487,7 +50488,7 @@ var GROUP_TEMPLATES = [
|
|
|
50487
50488
|
empty: "omit",
|
|
50488
50489
|
companions: [NOW$3]
|
|
50489
50490
|
}),
|
|
50490
|
-
numeric({
|
|
50491
|
+
numeric$1({
|
|
50491
50492
|
id: "energy",
|
|
50492
50493
|
summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
|
|
50493
50494
|
role: require_composed_stable_id.DeviceRole.EnergySensor,
|
|
@@ -50498,7 +50499,7 @@ var GROUP_TEMPLATES = [
|
|
|
50498
50499
|
empty: "omit",
|
|
50499
50500
|
companions: [NOW$3]
|
|
50500
50501
|
}),
|
|
50501
|
-
numeric({
|
|
50502
|
+
numeric$1({
|
|
50502
50503
|
id: "battery",
|
|
50503
50504
|
summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
50504
50505
|
role: require_composed_stable_id.DeviceRole.BatterySensor,
|
|
@@ -50522,7 +50523,7 @@ var GROUP_TEMPLATES = [
|
|
|
50522
50523
|
}
|
|
50523
50524
|
]
|
|
50524
50525
|
}),
|
|
50525
|
-
numeric({
|
|
50526
|
+
numeric$1({
|
|
50526
50527
|
id: "numeric",
|
|
50527
50528
|
summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
|
|
50528
50529
|
role: require_composed_stable_id.DeviceRole.NumericSensor,
|
|
@@ -50772,7 +50773,7 @@ function groupTemplate(id) {
|
|
|
50772
50773
|
//#region src/generated/history-catalog.ts
|
|
50773
50774
|
/**
|
|
50774
50775
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50775
|
-
* 45 caps with series (104 series),
|
|
50776
|
+
* 45 caps with series (104 series), 38 caps answered `'none'`.
|
|
50776
50777
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50777
50778
|
*/
|
|
50778
50779
|
var HISTORY_CATALOG = {
|
|
@@ -51371,6 +51372,7 @@ var HISTORY_NONE_CAPS = [
|
|
|
51371
51372
|
"stream-signals",
|
|
51372
51373
|
"timed-run",
|
|
51373
51374
|
"update",
|
|
51375
|
+
"weather-station",
|
|
51374
51376
|
"zone-analytics",
|
|
51375
51377
|
"zone-rules",
|
|
51376
51378
|
"zones"
|
|
@@ -63594,6 +63596,7 @@ var HERO_SCENE_BY_TYPE = {
|
|
|
63594
63596
|
[require_composed_stable_id.DeviceType.Control]: "control-dial",
|
|
63595
63597
|
[require_composed_stable_id.DeviceType.Presence]: "presence",
|
|
63596
63598
|
[require_composed_stable_id.DeviceType.Weather]: "weather",
|
|
63599
|
+
[require_composed_stable_id.DeviceType.WeatherStation]: "weather",
|
|
63597
63600
|
[require_composed_stable_id.DeviceType.Vacuum]: "vacuum",
|
|
63598
63601
|
[require_composed_stable_id.DeviceType.LawnMower]: "lawn-mower",
|
|
63599
63602
|
[require_composed_stable_id.DeviceType.Container]: "generic",
|
|
@@ -100142,6 +100145,71 @@ var weatherCapability = {
|
|
|
100142
100145
|
]
|
|
100143
100146
|
}
|
|
100144
100147
|
};
|
|
100148
|
+
var WeatherStationStatusSchema = zod.z.object({
|
|
100149
|
+
temperature: zod.z.number().nullable().meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100150
|
+
humidity: zod.z.number().min(0).max(100).nullable().meta(require_sleep.readingMeta("humidity")),
|
|
100151
|
+
pressure: zod.z.number().nullable().meta(require_sleep.readingMeta("pressure")),
|
|
100152
|
+
windSpeed: zod.z.number().nullable().meta(require_sleep.readingMeta("speed")),
|
|
100153
|
+
windGust: zod.z.number().nullable().meta(require_sleep.readingMeta("speed")),
|
|
100154
|
+
windBearing: zod.z.number().nullable().meta(require_sleep.readingMeta("angle")),
|
|
100155
|
+
rainRate: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation-rate", { precision: 1 })),
|
|
100156
|
+
rainDaily: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100157
|
+
rainEvent: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100158
|
+
uv: zod.z.number().nullable().meta(require_sleep.readingMeta("index", { precision: 1 })),
|
|
100159
|
+
solarRadiation: zod.z.number().nullable().meta(require_sleep.readingMeta("irradiance")),
|
|
100160
|
+
dewPoint: zod.z.number().nullable().meta(require_sleep.readingMeta("temperature", { precision: 1 }))
|
|
100161
|
+
}).extend({
|
|
100162
|
+
/** Ms epoch of the poll that produced this slice. 0 before the first one. */
|
|
100163
|
+
lastFetchedAt: zod.z.number() });
|
|
100164
|
+
var numeric = (field, quantity, label, unit, icon) => ({
|
|
100165
|
+
kind: "numeric",
|
|
100166
|
+
field,
|
|
100167
|
+
quantity,
|
|
100168
|
+
label,
|
|
100169
|
+
unit,
|
|
100170
|
+
icon
|
|
100171
|
+
});
|
|
100172
|
+
var weatherStationCapability = {
|
|
100173
|
+
name: "weather-station",
|
|
100174
|
+
scope: "device",
|
|
100175
|
+
deviceNative: true,
|
|
100176
|
+
mode: "singleton",
|
|
100177
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
100178
|
+
methods: {},
|
|
100179
|
+
status: {
|
|
100180
|
+
schema: WeatherStationStatusSchema,
|
|
100181
|
+
kind: "push"
|
|
100182
|
+
},
|
|
100183
|
+
runtimeState: WeatherStationStatusSchema,
|
|
100184
|
+
/**
|
|
100185
|
+
* The sensor children already record each reading. The station slice is the
|
|
100186
|
+
* live aggregate a template reads; it does not keep a second series.
|
|
100187
|
+
*/
|
|
100188
|
+
history: "none",
|
|
100189
|
+
/**
|
|
100190
|
+
* Runtime-state durability: **session** — a station reading is stale the
|
|
100191
|
+
* moment the hub is down; the provider re-reads on the next poll.
|
|
100192
|
+
*/
|
|
100193
|
+
durability: "session",
|
|
100194
|
+
vocabulary: {
|
|
100195
|
+
noun: require_sleep.t("Weather station", "Stazione meteo"),
|
|
100196
|
+
order: 5235,
|
|
100197
|
+
state: [
|
|
100198
|
+
numeric("temperature", require_sleep.t("the outdoor temperature", "la temperatura esterna"), require_sleep.t("Temperature", "Temperatura"), "°C", "thermometer"),
|
|
100199
|
+
numeric("humidity", require_sleep.t("the outdoor humidity", "l’umidità esterna"), require_sleep.t("Humidity", "Umidità"), "%", "droplets"),
|
|
100200
|
+
numeric("pressure", require_sleep.t("the air pressure", "la pressione atmosferica"), require_sleep.t("Pressure", "Pressione"), "hPa", "gauge"),
|
|
100201
|
+
numeric("windSpeed", require_sleep.t("the wind speed", "la velocità del vento"), require_sleep.t("Wind", "Vento"), "m/s", "wind"),
|
|
100202
|
+
numeric("windGust", require_sleep.t("the wind gust", "la raffica di vento"), require_sleep.t("Gust", "Raffica"), "m/s", "wind"),
|
|
100203
|
+
numeric("windBearing", require_sleep.t("the wind bearing", "la direzione del vento"), require_sleep.t("Wind bearing", "Direzione del vento"), "°", "wind"),
|
|
100204
|
+
numeric("rainRate", require_sleep.t("the rain rate", "l’intensità della pioggia"), require_sleep.t("Rain rate", "Intensità pioggia"), "mm/h", "droplets"),
|
|
100205
|
+
numeric("rainDaily", require_sleep.t("the rain today", "la pioggia di oggi"), require_sleep.t("Rain today", "Pioggia oggi"), "mm", "droplets"),
|
|
100206
|
+
numeric("rainEvent", require_sleep.t("the rain this event", "la pioggia di questo evento"), require_sleep.t("Rain event", "Evento di pioggia"), "mm", "droplets"),
|
|
100207
|
+
numeric("uv", require_sleep.t("the UV index", "l’indice UV"), require_sleep.t("UV", "UV"), "", "cloud-sun"),
|
|
100208
|
+
numeric("solarRadiation", require_sleep.t("the solar radiation", "la radiazione solare"), require_sleep.t("Solar", "Sole"), "W/m²", "cloud-sun"),
|
|
100209
|
+
numeric("dewPoint", require_sleep.t("the dew point", "il punto di rugiada"), require_sleep.t("Dew point", "Punto di rugiada"), "°C", "thermometer")
|
|
100210
|
+
]
|
|
100211
|
+
}
|
|
100212
|
+
};
|
|
100145
100213
|
//#endregion
|
|
100146
100214
|
//#region src/capabilities/webrtc-session.cap.ts
|
|
100147
100215
|
/**
|
|
@@ -101400,6 +101468,7 @@ var CAPABILITY_NAMES = {
|
|
|
101400
101468
|
viewerUi: "viewer-ui",
|
|
101401
101469
|
waterHeater: "water-heater",
|
|
101402
101470
|
weather: "weather",
|
|
101471
|
+
weatherStation: "weather-station",
|
|
101403
101472
|
webrtcSession: "webrtc-session",
|
|
101404
101473
|
zoneAnalytics: "zone-analytics",
|
|
101405
101474
|
zoneRules: "zone-rules",
|
|
@@ -102215,6 +102284,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
102215
102284
|
key: "weather",
|
|
102216
102285
|
name: "weather"
|
|
102217
102286
|
},
|
|
102287
|
+
{
|
|
102288
|
+
key: "weatherStation",
|
|
102289
|
+
name: "weather-station"
|
|
102290
|
+
},
|
|
102218
102291
|
{
|
|
102219
102292
|
key: "webrtcSession",
|
|
102220
102293
|
name: "webrtc-session"
|
|
@@ -102444,6 +102517,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
102444
102517
|
require_sleep.viewerUiCapability,
|
|
102445
102518
|
waterHeaterCapability,
|
|
102446
102519
|
weatherCapability,
|
|
102520
|
+
weatherStationCapability,
|
|
102447
102521
|
webrtcSessionCapability,
|
|
102448
102522
|
zoneAnalyticsCapability,
|
|
102449
102523
|
zoneRulesCapability,
|
|
@@ -110039,6 +110113,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
110039
110113
|
vibration: vibrationCapability,
|
|
110040
110114
|
waterHeater: waterHeaterCapability,
|
|
110041
110115
|
weather: weatherCapability,
|
|
110116
|
+
weatherStation: weatherStationCapability,
|
|
110042
110117
|
zoneAnalytics: zoneAnalyticsCapability,
|
|
110043
110118
|
zoneRules: zoneRulesCapability,
|
|
110044
110119
|
zones: zonesCapability
|
|
@@ -112136,6 +112211,7 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
112136
112211
|
[require_composed_stable_id.DeviceType.Control]: "control",
|
|
112137
112212
|
[require_composed_stable_id.DeviceType.Presence]: "sensor",
|
|
112138
112213
|
[require_composed_stable_id.DeviceType.Weather]: "weather",
|
|
112214
|
+
[require_composed_stable_id.DeviceType.WeatherStation]: "dummy",
|
|
112139
112215
|
[require_composed_stable_id.DeviceType.Vacuum]: "vacuum",
|
|
112140
112216
|
[require_composed_stable_id.DeviceType.LawnMower]: "lawn-mower",
|
|
112141
112217
|
[require_composed_stable_id.DeviceType.Container]: "dummy",
|
|
@@ -113630,6 +113706,17 @@ var SENSORS_FAMILY_CONTRIBUTIONS = {
|
|
|
113630
113706
|
doorbell: doorbellContribution,
|
|
113631
113707
|
meter: meterContribution,
|
|
113632
113708
|
weather: weatherContribution,
|
|
113709
|
+
"weather-station": contribution("weather-station", WeatherStationStatusSchema, (slice) => {
|
|
113710
|
+
if (slice === void 0 || slice.temperature === null) return { reading: reading("weather", "unknown") };
|
|
113711
|
+
const celsius = `${number(slice.temperature)}°C`;
|
|
113712
|
+
const facts = [fact("reading", "thermometer", require_sleep.t(celsius, celsius), "primary")];
|
|
113713
|
+
if (slice.humidity !== null) facts.push(fact("reading", "droplets", require_sleep.t(`${Math.round(slice.humidity)}%`, `${Math.round(slice.humidity)}%`)));
|
|
113714
|
+
if (slice.windSpeed !== null) facts.push(fact("reading", "wind", require_sleep.t(`${number(slice.windSpeed)} m/s`, `${number(slice.windSpeed)} m/s`)));
|
|
113715
|
+
return {
|
|
113716
|
+
reading: reading("weather", "on", false, require_sleep.t(celsius, celsius)),
|
|
113717
|
+
facts
|
|
113718
|
+
};
|
|
113719
|
+
}),
|
|
113633
113720
|
update: updateContribution,
|
|
113634
113721
|
image: imageContribution,
|
|
113635
113722
|
button: buttonContribution,
|
|
@@ -115165,6 +115252,7 @@ var HERO_LAYOUT_BY_TYPE = {
|
|
|
115165
115252
|
[require_composed_stable_id.DeviceType.Control]: CONTROL_LAYOUT,
|
|
115166
115253
|
[require_composed_stable_id.DeviceType.Presence]: HERO_LAYOUT_DEFAULT,
|
|
115167
115254
|
[require_composed_stable_id.DeviceType.Weather]: HERO_LAYOUT_DEFAULT,
|
|
115255
|
+
[require_composed_stable_id.DeviceType.WeatherStation]: HERO_LAYOUT_DEFAULT,
|
|
115168
115256
|
[require_composed_stable_id.DeviceType.Vacuum]: VACUUM_LAYOUT,
|
|
115169
115257
|
[require_composed_stable_id.DeviceType.LawnMower]: MOWER_LAYOUT,
|
|
115170
115258
|
[require_composed_stable_id.DeviceType.Container]: HERO_LAYOUT_DEFAULT,
|
|
@@ -115890,6 +115978,7 @@ var HERO_LOOK_BY_TYPE = {
|
|
|
115890
115978
|
[require_composed_stable_id.DeviceType.Control]: CONTROL_LOOK,
|
|
115891
115979
|
[require_composed_stable_id.DeviceType.Presence]: PRESENCE_LOOK,
|
|
115892
115980
|
[require_composed_stable_id.DeviceType.Weather]: WEATHER_LOOK,
|
|
115981
|
+
[require_composed_stable_id.DeviceType.WeatherStation]: WEATHER_LOOK,
|
|
115893
115982
|
[require_composed_stable_id.DeviceType.Vacuum]: VACUUM_LOOK,
|
|
115894
115983
|
[require_composed_stable_id.DeviceType.LawnMower]: MOWER_LOOK,
|
|
115895
115984
|
[require_composed_stable_id.DeviceType.Container]: HERO_LOOK_DEFAULT,
|
|
@@ -116394,6 +116483,7 @@ var HERO_CAP_COVERAGE = {
|
|
|
116394
116483
|
videoclips: { none: NOT_A_HERO_FACT },
|
|
116395
116484
|
"water-heater": "contributes",
|
|
116396
116485
|
weather: "contributes",
|
|
116486
|
+
"weather-station": "contributes",
|
|
116397
116487
|
"webrtc-session": { none: NOT_A_HERO_FACT },
|
|
116398
116488
|
"zone-analytics": { none: NOT_A_HERO_FACT },
|
|
116399
116489
|
"zone-rules": { none: NOT_A_HERO_FACT },
|
|
@@ -126700,6 +126790,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
126700
126790
|
access: "view",
|
|
126701
126791
|
role: "viewer"
|
|
126702
126792
|
},
|
|
126793
|
+
"weatherStation.getStatus": {
|
|
126794
|
+
capName: "weather-station",
|
|
126795
|
+
capScope: "device",
|
|
126796
|
+
addonId: null,
|
|
126797
|
+
access: "view",
|
|
126798
|
+
role: "viewer"
|
|
126799
|
+
},
|
|
126703
126800
|
"webrtcSession.addIceCandidate": {
|
|
126704
126801
|
capName: "webrtc-session",
|
|
126705
126802
|
capScope: "device",
|
|
@@ -127059,6 +127156,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
127059
127156
|
"viewer-ui",
|
|
127060
127157
|
"water-heater",
|
|
127061
127158
|
"weather",
|
|
127159
|
+
"weather-station",
|
|
127062
127160
|
"webrtc-session",
|
|
127063
127161
|
"zone-analytics",
|
|
127064
127162
|
"zone-rules",
|
|
@@ -127167,6 +127265,7 @@ var DEVICE_CAP_NAMES = [
|
|
|
127167
127265
|
"videoclips",
|
|
127168
127266
|
"water-heater",
|
|
127169
127267
|
"weather",
|
|
127268
|
+
"weather-station",
|
|
127170
127269
|
"webrtc-session",
|
|
127171
127270
|
"zone-analytics",
|
|
127172
127271
|
"zone-rules",
|
|
@@ -127859,6 +127958,7 @@ var DEVICE_TYPE_ICON = {
|
|
|
127859
127958
|
[require_composed_stable_id.DeviceType.Control]: "sliders-horizontal",
|
|
127860
127959
|
[require_composed_stable_id.DeviceType.Presence]: "map-pin",
|
|
127861
127960
|
[require_composed_stable_id.DeviceType.Weather]: "cloud-sun",
|
|
127961
|
+
[require_composed_stable_id.DeviceType.WeatherStation]: "cloud-sun",
|
|
127862
127962
|
[require_composed_stable_id.DeviceType.Vacuum]: "bot",
|
|
127863
127963
|
[require_composed_stable_id.DeviceType.LawnMower]: "tractor",
|
|
127864
127964
|
[require_composed_stable_id.DeviceType.Container]: "box",
|
|
@@ -129285,7 +129385,8 @@ var CAP_NAMES_WITH_STATUS = [
|
|
|
129285
129385
|
"valve",
|
|
129286
129386
|
"vibration",
|
|
129287
129387
|
"water-heater",
|
|
129288
|
-
"weather"
|
|
129388
|
+
"weather",
|
|
129389
|
+
"weather-station"
|
|
129289
129390
|
];
|
|
129290
129391
|
//#endregion
|
|
129291
129392
|
//#region src/generated/method-device-selectors.ts
|
|
@@ -132314,6 +132415,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
132314
132415
|
form: "single",
|
|
132315
132416
|
optional: false
|
|
132316
132417
|
}],
|
|
132418
|
+
"weatherStation.getStatus": [{
|
|
132419
|
+
name: "deviceId",
|
|
132420
|
+
form: "single",
|
|
132421
|
+
optional: false
|
|
132422
|
+
}],
|
|
132317
132423
|
"webrtcSession.addIceCandidate": [{
|
|
132318
132424
|
name: "deviceId",
|
|
132319
132425
|
form: "single",
|
|
@@ -132661,7 +132767,7 @@ function getCapsByProviderKind(kind) {
|
|
|
132661
132767
|
//#region src/generated/runtime-state-durability.ts
|
|
132662
132768
|
/**
|
|
132663
132769
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
132664
|
-
* `runtimeState`.
|
|
132770
|
+
* `runtimeState`. 84 caps: 42 `restored`, 42 `session`.
|
|
132665
132771
|
*
|
|
132666
132772
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
132667
132773
|
* with `durability: 'session'` has one and has decided not to keep it.
|
|
@@ -132989,6 +133095,10 @@ var RUNTIME_STATE_POLICY = {
|
|
|
132989
133095
|
durability: "session",
|
|
132990
133096
|
volatileFields: []
|
|
132991
133097
|
},
|
|
133098
|
+
"weather-station": {
|
|
133099
|
+
durability: "session",
|
|
133100
|
+
volatileFields: []
|
|
133101
|
+
},
|
|
132992
133102
|
"zone-analytics": {
|
|
132993
133103
|
durability: "session",
|
|
132994
133104
|
volatileFields: []
|
|
@@ -149151,6 +149261,7 @@ exports.WELL_KNOWN_TABS = require_sleep.WELL_KNOWN_TABS;
|
|
|
149151
149261
|
exports.WELL_KNOWN_TAB_MAP = require_sleep.WELL_KNOWN_TAB_MAP;
|
|
149152
149262
|
exports.WHEN_UNROLL_DEPTH = WHEN_UNROLL_DEPTH;
|
|
149153
149263
|
exports.WaterHeaterStatusSchema = WaterHeaterStatusSchema;
|
|
149264
|
+
exports.WeatherStationStatusSchema = WeatherStationStatusSchema;
|
|
149154
149265
|
exports.WeatherStatusSchema = WeatherStatusSchema;
|
|
149155
149266
|
exports.WebrtcClimbHoldSchema = WebrtcClimbHoldSchema;
|
|
149156
149267
|
exports.WebrtcLadderDecisionSchema = WebrtcLadderDecisionSchema;
|
|
@@ -150649,6 +150760,7 @@ exports.waitUntil = waitUntil;
|
|
|
150649
150760
|
exports.waterHeaterCapability = waterHeaterCapability;
|
|
150650
150761
|
exports.wattMillisecondsToKwh = require_implemented_methods.wattMillisecondsToKwh;
|
|
150651
150762
|
exports.weatherCapability = weatherCapability;
|
|
150763
|
+
exports.weatherStationCapability = weatherStationCapability;
|
|
150652
150764
|
exports.webrtcClientHintsSchema = webrtcClientHintsSchema;
|
|
150653
150765
|
exports.webrtcSessionCapability = webrtcSessionCapability;
|
|
150654
150766
|
exports.weekdayOfLocalDate = weekdayOfLocalDate;
|