@camstack/types 1.2.576 → 1.2.577
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 -0
- package/dist/capabilities/air-quality-sensor.cap.d.ts +2 -0
- package/dist/capabilities/capability-definition.d.ts +22 -0
- package/dist/capabilities/climate-control.cap.d.ts +6 -0
- package/dist/capabilities/energy-system.cap.d.ts +7 -0
- package/dist/capabilities/heat-pump-status.cap.d.ts +4 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +2 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/power-meter.cap.d.ts +2 -0
- package/dist/capabilities/stream-params.cap.d.ts +4 -0
- package/dist/capabilities/temperature-sensor.cap.d.ts +2 -0
- package/dist/capabilities/water-heater.cap.d.ts +2 -0
- package/dist/capabilities/weather-station.cap.d.ts +10 -0
- package/dist/generated/history-catalog.d.ts +6 -1
- package/dist/history/primary-series.d.ts +10 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +403 -264
- package/dist/index.mjs +401 -265
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41432,11 +41432,13 @@ var airQualitySensorCapability = {
|
|
|
41432
41432
|
deadband: 5
|
|
41433
41433
|
},
|
|
41434
41434
|
pm25: {
|
|
41435
|
+
group: "particulates",
|
|
41435
41436
|
kind: "gauge",
|
|
41436
41437
|
unit: "µg/m³",
|
|
41437
41438
|
deadband: 1
|
|
41438
41439
|
},
|
|
41439
41440
|
pm10: {
|
|
41441
|
+
group: "particulates",
|
|
41440
41442
|
kind: "gauge",
|
|
41441
41443
|
unit: "µg/m³",
|
|
41442
41444
|
deadband: 1
|
|
@@ -46333,33 +46335,41 @@ var climateControlCapability = {
|
|
|
46333
46335
|
/**
|
|
46334
46336
|
* History (D850): recorded series. Celsius by contract; setpoints keep every change (`minIntervalMs: 0`).
|
|
46335
46337
|
*/
|
|
46336
|
-
history: {
|
|
46337
|
-
|
|
46338
|
-
|
|
46339
|
-
|
|
46340
|
-
|
|
46341
|
-
|
|
46342
|
-
|
|
46343
|
-
|
|
46344
|
-
|
|
46345
|
-
|
|
46346
|
-
|
|
46347
|
-
|
|
46348
|
-
|
|
46349
|
-
|
|
46350
|
-
|
|
46351
|
-
|
|
46352
|
-
|
|
46353
|
-
|
|
46354
|
-
|
|
46355
|
-
|
|
46356
|
-
|
|
46357
|
-
|
|
46358
|
-
|
|
46359
|
-
|
|
46360
|
-
|
|
46338
|
+
history: {
|
|
46339
|
+
primary: "currentTemp",
|
|
46340
|
+
priority: 70,
|
|
46341
|
+
fields: {
|
|
46342
|
+
currentTemp: {
|
|
46343
|
+
group: "temperature",
|
|
46344
|
+
kind: "gauge",
|
|
46345
|
+
unit: "°C",
|
|
46346
|
+
deadband: .1
|
|
46347
|
+
},
|
|
46348
|
+
currentHumidity: {
|
|
46349
|
+
kind: "gauge",
|
|
46350
|
+
unit: "%",
|
|
46351
|
+
deadband: .5
|
|
46352
|
+
},
|
|
46353
|
+
target: {
|
|
46354
|
+
group: "temperature",
|
|
46355
|
+
kind: "gauge",
|
|
46356
|
+
unit: "°C",
|
|
46357
|
+
minIntervalMs: 0
|
|
46358
|
+
},
|
|
46359
|
+
targetHigh: {
|
|
46360
|
+
group: "target-range",
|
|
46361
|
+
kind: "gauge",
|
|
46362
|
+
unit: "°C",
|
|
46363
|
+
minIntervalMs: 0
|
|
46364
|
+
},
|
|
46365
|
+
targetLow: {
|
|
46366
|
+
group: "target-range",
|
|
46367
|
+
kind: "gauge",
|
|
46368
|
+
unit: "°C",
|
|
46369
|
+
minIntervalMs: 0
|
|
46370
|
+
}
|
|
46361
46371
|
}
|
|
46362
|
-
}
|
|
46372
|
+
},
|
|
46363
46373
|
vocabulary: {
|
|
46364
46374
|
noun: require_sleep.t("Climate", "Clima"),
|
|
46365
46375
|
order: 1070,
|
|
@@ -51433,11 +51443,13 @@ var HISTORY_CATALOG = {
|
|
|
51433
51443
|
deadband: 5
|
|
51434
51444
|
},
|
|
51435
51445
|
"pm25": {
|
|
51446
|
+
group: "particulates",
|
|
51436
51447
|
kind: "gauge",
|
|
51437
51448
|
unit: "µg/m³",
|
|
51438
51449
|
deadband: 1
|
|
51439
51450
|
},
|
|
51440
51451
|
"pm10": {
|
|
51452
|
+
group: "particulates",
|
|
51441
51453
|
kind: "gauge",
|
|
51442
51454
|
unit: "µg/m³",
|
|
51443
51455
|
deadband: 1
|
|
@@ -51488,6 +51500,7 @@ var HISTORY_CATALOG = {
|
|
|
51488
51500
|
"carbon-monoxide": { "detected": { kind: "boolean" } },
|
|
51489
51501
|
"climate-control": {
|
|
51490
51502
|
"currentTemp": {
|
|
51503
|
+
group: "temperature",
|
|
51491
51504
|
kind: "gauge",
|
|
51492
51505
|
unit: "°C",
|
|
51493
51506
|
deadband: .1
|
|
@@ -51498,16 +51511,19 @@ var HISTORY_CATALOG = {
|
|
|
51498
51511
|
deadband: .5
|
|
51499
51512
|
},
|
|
51500
51513
|
"target": {
|
|
51514
|
+
group: "temperature",
|
|
51501
51515
|
kind: "gauge",
|
|
51502
51516
|
unit: "°C",
|
|
51503
51517
|
minIntervalMs: 0
|
|
51504
51518
|
},
|
|
51505
51519
|
"targetHigh": {
|
|
51520
|
+
group: "target-range",
|
|
51506
51521
|
kind: "gauge",
|
|
51507
51522
|
unit: "°C",
|
|
51508
51523
|
minIntervalMs: 0
|
|
51509
51524
|
},
|
|
51510
51525
|
"targetLow": {
|
|
51526
|
+
group: "target-range",
|
|
51511
51527
|
kind: "gauge",
|
|
51512
51528
|
unit: "°C",
|
|
51513
51529
|
minIntervalMs: 0
|
|
@@ -51563,6 +51579,7 @@ var HISTORY_CATALOG = {
|
|
|
51563
51579
|
"do-not-disturb": { "enabled": { kind: "boolean" } },
|
|
51564
51580
|
"energy-system": {
|
|
51565
51581
|
"solar.powerW": {
|
|
51582
|
+
group: "power-flow",
|
|
51566
51583
|
kind: "gauge",
|
|
51567
51584
|
unit: "W",
|
|
51568
51585
|
deadband: 50,
|
|
@@ -51574,6 +51591,7 @@ var HISTORY_CATALOG = {
|
|
|
51574
51591
|
displayName: "Solar energy"
|
|
51575
51592
|
},
|
|
51576
51593
|
"grid.powerW": {
|
|
51594
|
+
group: "power-flow",
|
|
51577
51595
|
kind: "gauge",
|
|
51578
51596
|
unit: "W",
|
|
51579
51597
|
deadband: 50,
|
|
@@ -51590,6 +51608,7 @@ var HISTORY_CATALOG = {
|
|
|
51590
51608
|
displayName: "Grid export"
|
|
51591
51609
|
},
|
|
51592
51610
|
"house.powerW": {
|
|
51611
|
+
group: "power-flow",
|
|
51593
51612
|
kind: "gauge",
|
|
51594
51613
|
unit: "W",
|
|
51595
51614
|
deadband: 50,
|
|
@@ -51601,6 +51620,7 @@ var HISTORY_CATALOG = {
|
|
|
51601
51620
|
displayName: "House energy"
|
|
51602
51621
|
},
|
|
51603
51622
|
"heatPump.powerW": {
|
|
51623
|
+
group: "power-flow",
|
|
51604
51624
|
kind: "gauge",
|
|
51605
51625
|
unit: "W",
|
|
51606
51626
|
deadband: 50,
|
|
@@ -51624,6 +51644,7 @@ var HISTORY_CATALOG = {
|
|
|
51624
51644
|
displayName: "Stored energy"
|
|
51625
51645
|
},
|
|
51626
51646
|
"storage.powerW": {
|
|
51647
|
+
group: "power-flow",
|
|
51627
51648
|
kind: "gauge",
|
|
51628
51649
|
unit: "W",
|
|
51629
51650
|
deadband: 50,
|
|
@@ -51662,12 +51683,14 @@ var HISTORY_CATALOG = {
|
|
|
51662
51683
|
"gas": { "detected": { kind: "boolean" } },
|
|
51663
51684
|
"heat-pump-status": {
|
|
51664
51685
|
"power.thermalW": {
|
|
51686
|
+
group: "power",
|
|
51665
51687
|
kind: "gauge",
|
|
51666
51688
|
unit: "W",
|
|
51667
51689
|
deadband: 50,
|
|
51668
51690
|
displayName: "Thermal power"
|
|
51669
51691
|
},
|
|
51670
51692
|
"power.electricalW": {
|
|
51693
|
+
group: "power",
|
|
51671
51694
|
kind: "gauge",
|
|
51672
51695
|
unit: "W",
|
|
51673
51696
|
deadband: 50,
|
|
@@ -51680,12 +51703,14 @@ var HISTORY_CATALOG = {
|
|
|
51680
51703
|
displayName: "Compressor"
|
|
51681
51704
|
},
|
|
51682
51705
|
"temperatures.supply": {
|
|
51706
|
+
group: "loop",
|
|
51683
51707
|
kind: "gauge",
|
|
51684
51708
|
unit: "°C",
|
|
51685
51709
|
deadband: .5,
|
|
51686
51710
|
displayName: "Supply"
|
|
51687
51711
|
},
|
|
51688
51712
|
"temperatures.return": {
|
|
51713
|
+
group: "loop",
|
|
51689
51714
|
kind: "gauge",
|
|
51690
51715
|
unit: "°C",
|
|
51691
51716
|
deadband: .5,
|
|
@@ -51852,18 +51877,22 @@ var HISTORY_CATALOG = {
|
|
|
51852
51877
|
"smoke": { "detected": { kind: "boolean" } },
|
|
51853
51878
|
"stream-params": {
|
|
51854
51879
|
"main.bitrate": {
|
|
51880
|
+
group: "bitrate",
|
|
51855
51881
|
kind: "gauge",
|
|
51856
51882
|
unit: "kbps"
|
|
51857
51883
|
},
|
|
51858
51884
|
"main.framerate": {
|
|
51885
|
+
group: "framerate",
|
|
51859
51886
|
kind: "gauge",
|
|
51860
51887
|
unit: "fps"
|
|
51861
51888
|
},
|
|
51862
51889
|
"sub.bitrate": {
|
|
51890
|
+
group: "bitrate",
|
|
51863
51891
|
kind: "gauge",
|
|
51864
51892
|
unit: "kbps"
|
|
51865
51893
|
},
|
|
51866
51894
|
"sub.framerate": {
|
|
51895
|
+
group: "framerate",
|
|
51867
51896
|
kind: "gauge",
|
|
51868
51897
|
unit: "fps"
|
|
51869
51898
|
}
|
|
@@ -51888,11 +51917,13 @@ var HISTORY_CATALOG = {
|
|
|
51888
51917
|
"vibration": { "detected": { kind: "boolean" } },
|
|
51889
51918
|
"water-heater": {
|
|
51890
51919
|
"currentTemp": {
|
|
51920
|
+
group: "temperature",
|
|
51891
51921
|
kind: "gauge",
|
|
51892
51922
|
unit: "°C",
|
|
51893
51923
|
deadband: .5
|
|
51894
51924
|
},
|
|
51895
51925
|
"targetTemp": {
|
|
51926
|
+
group: "temperature",
|
|
51896
51927
|
kind: "gauge",
|
|
51897
51928
|
unit: "°C",
|
|
51898
51929
|
minIntervalMs: 0
|
|
@@ -51922,6 +51953,7 @@ var HISTORY_CATALOG = {
|
|
|
51922
51953
|
},
|
|
51923
51954
|
"weather-station": {
|
|
51924
51955
|
"temperature": {
|
|
51956
|
+
group: "temperature",
|
|
51925
51957
|
kind: "gauge",
|
|
51926
51958
|
unit: "°C",
|
|
51927
51959
|
deadband: .1
|
|
@@ -51937,16 +51969,19 @@ var HISTORY_CATALOG = {
|
|
|
51937
51969
|
deadband: .2
|
|
51938
51970
|
},
|
|
51939
51971
|
"windSpeed": {
|
|
51972
|
+
group: "wind-speed",
|
|
51940
51973
|
kind: "gauge",
|
|
51941
51974
|
unit: "m/s",
|
|
51942
51975
|
deadband: .2
|
|
51943
51976
|
},
|
|
51944
51977
|
"windGust": {
|
|
51978
|
+
group: "wind-speed",
|
|
51945
51979
|
kind: "gauge",
|
|
51946
51980
|
unit: "m/s",
|
|
51947
51981
|
deadband: .2
|
|
51948
51982
|
},
|
|
51949
51983
|
"windBearing": {
|
|
51984
|
+
group: "wind-bearing",
|
|
51950
51985
|
kind: "gauge",
|
|
51951
51986
|
unit: "°",
|
|
51952
51987
|
deadband: 5
|
|
@@ -51977,11 +52012,13 @@ var HISTORY_CATALOG = {
|
|
|
51977
52012
|
deadband: 5
|
|
51978
52013
|
},
|
|
51979
52014
|
"dewPoint": {
|
|
52015
|
+
group: "temperature",
|
|
51980
52016
|
kind: "gauge",
|
|
51981
52017
|
unit: "°C",
|
|
51982
52018
|
deadband: .1
|
|
51983
52019
|
},
|
|
51984
52020
|
"feelsLike": {
|
|
52021
|
+
group: "temperature",
|
|
51985
52022
|
kind: "gauge",
|
|
51986
52023
|
unit: "°C",
|
|
51987
52024
|
deadband: .1
|
|
@@ -51992,11 +52029,13 @@ var HISTORY_CATALOG = {
|
|
|
51992
52029
|
deadband: .05
|
|
51993
52030
|
},
|
|
51994
52031
|
"windGustMax": {
|
|
52032
|
+
group: "wind-speed",
|
|
51995
52033
|
kind: "gauge",
|
|
51996
52034
|
unit: "m/s",
|
|
51997
52035
|
deadband: .2
|
|
51998
52036
|
},
|
|
51999
52037
|
"windBearingAvg": {
|
|
52038
|
+
group: "wind-bearing",
|
|
52000
52039
|
kind: "gauge",
|
|
52001
52040
|
unit: "°",
|
|
52002
52041
|
deadband: 5
|
|
@@ -52082,6 +52121,36 @@ var HISTORY_ITEM_CATALOG = {
|
|
|
52082
52121
|
}
|
|
52083
52122
|
}
|
|
52084
52123
|
};
|
|
52124
|
+
/**
|
|
52125
|
+
* The series a device card trends, per cap (`history.primary` + `history.priority`):
|
|
52126
|
+
* 6 caps. The card shows the primary of the enabled cap with the highest priority.
|
|
52127
|
+
*/
|
|
52128
|
+
var HISTORY_PRIMARY = {
|
|
52129
|
+
"climate-control": {
|
|
52130
|
+
field: "currentTemp",
|
|
52131
|
+
priority: 70
|
|
52132
|
+
},
|
|
52133
|
+
"energy-system": {
|
|
52134
|
+
field: "house.powerW",
|
|
52135
|
+
priority: 50
|
|
52136
|
+
},
|
|
52137
|
+
"humidity-sensor": {
|
|
52138
|
+
field: "humidity",
|
|
52139
|
+
priority: 90
|
|
52140
|
+
},
|
|
52141
|
+
"power-meter": {
|
|
52142
|
+
field: "power",
|
|
52143
|
+
priority: 80
|
|
52144
|
+
},
|
|
52145
|
+
"temperature-sensor": {
|
|
52146
|
+
field: "temperature",
|
|
52147
|
+
priority: 100
|
|
52148
|
+
},
|
|
52149
|
+
"weather-station": {
|
|
52150
|
+
field: "temperature",
|
|
52151
|
+
priority: 60
|
|
52152
|
+
}
|
|
52153
|
+
};
|
|
52085
52154
|
/** Caps that declared `history: 'none'`, sorted. */
|
|
52086
52155
|
var HISTORY_NONE_CAPS = [
|
|
52087
52156
|
"audio-metrics",
|
|
@@ -61320,91 +61389,100 @@ var energySystemCapability = {
|
|
|
61320
61389
|
* have is null and records nothing. Day totals are not recorded: they are the
|
|
61321
61390
|
* counters' difference over the day.
|
|
61322
61391
|
*/
|
|
61323
|
-
history: {
|
|
61324
|
-
"
|
|
61325
|
-
|
|
61326
|
-
|
|
61327
|
-
|
|
61328
|
-
|
|
61329
|
-
|
|
61330
|
-
|
|
61331
|
-
|
|
61332
|
-
|
|
61333
|
-
|
|
61334
|
-
|
|
61335
|
-
|
|
61336
|
-
|
|
61337
|
-
|
|
61338
|
-
|
|
61339
|
-
|
|
61340
|
-
|
|
61341
|
-
|
|
61342
|
-
|
|
61343
|
-
|
|
61344
|
-
|
|
61345
|
-
|
|
61346
|
-
|
|
61347
|
-
|
|
61348
|
-
|
|
61349
|
-
|
|
61350
|
-
|
|
61351
|
-
|
|
61352
|
-
|
|
61353
|
-
|
|
61354
|
-
|
|
61355
|
-
|
|
61356
|
-
|
|
61357
|
-
|
|
61358
|
-
|
|
61359
|
-
|
|
61360
|
-
|
|
61361
|
-
|
|
61362
|
-
|
|
61363
|
-
|
|
61364
|
-
|
|
61365
|
-
|
|
61366
|
-
|
|
61367
|
-
|
|
61368
|
-
|
|
61369
|
-
|
|
61370
|
-
|
|
61371
|
-
|
|
61372
|
-
|
|
61373
|
-
|
|
61374
|
-
|
|
61375
|
-
|
|
61376
|
-
|
|
61377
|
-
|
|
61378
|
-
|
|
61379
|
-
|
|
61380
|
-
|
|
61381
|
-
|
|
61382
|
-
|
|
61383
|
-
|
|
61384
|
-
|
|
61385
|
-
|
|
61386
|
-
|
|
61387
|
-
|
|
61388
|
-
|
|
61389
|
-
|
|
61390
|
-
|
|
61391
|
-
|
|
61392
|
-
|
|
61393
|
-
|
|
61394
|
-
|
|
61395
|
-
|
|
61396
|
-
|
|
61397
|
-
|
|
61398
|
-
|
|
61399
|
-
|
|
61400
|
-
|
|
61401
|
-
|
|
61402
|
-
|
|
61403
|
-
|
|
61404
|
-
|
|
61405
|
-
|
|
61392
|
+
history: {
|
|
61393
|
+
primary: "house.powerW",
|
|
61394
|
+
priority: 50,
|
|
61395
|
+
fields: {
|
|
61396
|
+
"solar.powerW": {
|
|
61397
|
+
group: "power-flow",
|
|
61398
|
+
kind: "gauge",
|
|
61399
|
+
unit: "W",
|
|
61400
|
+
deadband: 50,
|
|
61401
|
+
displayName: "Solar power"
|
|
61402
|
+
},
|
|
61403
|
+
"solar.energyKwh": {
|
|
61404
|
+
kind: "counter",
|
|
61405
|
+
unit: "kWh",
|
|
61406
|
+
displayName: "Solar energy"
|
|
61407
|
+
},
|
|
61408
|
+
"grid.powerW": {
|
|
61409
|
+
group: "power-flow",
|
|
61410
|
+
kind: "gauge",
|
|
61411
|
+
unit: "W",
|
|
61412
|
+
deadband: 50,
|
|
61413
|
+
displayName: "Grid power"
|
|
61414
|
+
},
|
|
61415
|
+
"grid.importKwh": {
|
|
61416
|
+
kind: "counter",
|
|
61417
|
+
unit: "kWh",
|
|
61418
|
+
displayName: "Grid import"
|
|
61419
|
+
},
|
|
61420
|
+
"grid.exportKwh": {
|
|
61421
|
+
kind: "counter",
|
|
61422
|
+
unit: "kWh",
|
|
61423
|
+
displayName: "Grid export"
|
|
61424
|
+
},
|
|
61425
|
+
"house.powerW": {
|
|
61426
|
+
group: "power-flow",
|
|
61427
|
+
kind: "gauge",
|
|
61428
|
+
unit: "W",
|
|
61429
|
+
deadband: 50,
|
|
61430
|
+
displayName: "House power"
|
|
61431
|
+
},
|
|
61432
|
+
"house.energyKwh": {
|
|
61433
|
+
kind: "counter",
|
|
61434
|
+
unit: "kWh",
|
|
61435
|
+
displayName: "House energy"
|
|
61436
|
+
},
|
|
61437
|
+
"heatPump.powerW": {
|
|
61438
|
+
group: "power-flow",
|
|
61439
|
+
kind: "gauge",
|
|
61440
|
+
unit: "W",
|
|
61441
|
+
deadband: 50,
|
|
61442
|
+
displayName: "Heat pump power"
|
|
61443
|
+
},
|
|
61444
|
+
"heatPump.energyKwh": {
|
|
61445
|
+
kind: "counter",
|
|
61446
|
+
unit: "kWh",
|
|
61447
|
+
displayName: "Heat pump energy"
|
|
61448
|
+
},
|
|
61449
|
+
"storage.stateOfChargePct": {
|
|
61450
|
+
kind: "gauge",
|
|
61451
|
+
unit: "%",
|
|
61452
|
+
deadband: 1,
|
|
61453
|
+
displayName: "Storage charge"
|
|
61454
|
+
},
|
|
61455
|
+
"storage.storedKwh": {
|
|
61456
|
+
kind: "gauge",
|
|
61457
|
+
unit: "kWh",
|
|
61458
|
+
deadband: .05,
|
|
61459
|
+
displayName: "Stored energy"
|
|
61460
|
+
},
|
|
61461
|
+
"storage.powerW": {
|
|
61462
|
+
group: "power-flow",
|
|
61463
|
+
kind: "gauge",
|
|
61464
|
+
unit: "W",
|
|
61465
|
+
deadband: 50,
|
|
61466
|
+
displayName: "Storage power"
|
|
61467
|
+
},
|
|
61468
|
+
"storage.chargedKwh": {
|
|
61469
|
+
kind: "counter",
|
|
61470
|
+
unit: "kWh",
|
|
61471
|
+
displayName: "Storage charged"
|
|
61472
|
+
},
|
|
61473
|
+
"storage.dischargedKwh": {
|
|
61474
|
+
kind: "counter",
|
|
61475
|
+
unit: "kWh",
|
|
61476
|
+
displayName: "Storage discharged"
|
|
61477
|
+
},
|
|
61478
|
+
"storage.healthPct": {
|
|
61479
|
+
kind: "gauge",
|
|
61480
|
+
unit: "%",
|
|
61481
|
+
deadband: 1,
|
|
61482
|
+
displayName: "Storage health"
|
|
61483
|
+
}
|
|
61406
61484
|
}
|
|
61407
|
-
}
|
|
61485
|
+
},
|
|
61408
61486
|
volatileStateFields: ["lastFetchedAt"],
|
|
61409
61487
|
vocabulary: {
|
|
61410
61488
|
noun: require_sleep.t("Energy system", "Sistema energetico"),
|
|
@@ -63693,12 +63771,14 @@ var heatPumpStatusCapability = {
|
|
|
63693
63771
|
history: {
|
|
63694
63772
|
fields: {
|
|
63695
63773
|
"power.thermalW": {
|
|
63774
|
+
group: "power",
|
|
63696
63775
|
kind: "gauge",
|
|
63697
63776
|
unit: "W",
|
|
63698
63777
|
deadband: 50,
|
|
63699
63778
|
displayName: "Thermal power"
|
|
63700
63779
|
},
|
|
63701
63780
|
"power.electricalW": {
|
|
63781
|
+
group: "power",
|
|
63702
63782
|
kind: "gauge",
|
|
63703
63783
|
unit: "W",
|
|
63704
63784
|
deadband: 50,
|
|
@@ -63711,12 +63791,14 @@ var heatPumpStatusCapability = {
|
|
|
63711
63791
|
displayName: "Compressor"
|
|
63712
63792
|
},
|
|
63713
63793
|
"temperatures.supply": {
|
|
63794
|
+
group: "loop",
|
|
63714
63795
|
kind: "gauge",
|
|
63715
63796
|
unit: "°C",
|
|
63716
63797
|
deadband: .5,
|
|
63717
63798
|
displayName: "Supply"
|
|
63718
63799
|
},
|
|
63719
63800
|
"temperatures.return": {
|
|
63801
|
+
group: "loop",
|
|
63720
63802
|
kind: "gauge",
|
|
63721
63803
|
unit: "°C",
|
|
63722
63804
|
deadband: .5,
|
|
@@ -64102,6 +64184,30 @@ var StateLookSchema = zod.z.object({
|
|
|
64102
64184
|
animation: HeroAnimationSchema
|
|
64103
64185
|
});
|
|
64104
64186
|
//#endregion
|
|
64187
|
+
//#region src/history/primary-series.ts
|
|
64188
|
+
/**
|
|
64189
|
+
* Which history series a device card trends. Each cap declares its own
|
|
64190
|
+
* (`history.primary` + `history.priority`, projected into `HISTORY_PRIMARY`);
|
|
64191
|
+
* a device shows the primary of the ENABLED cap with the highest priority that
|
|
64192
|
+
* has data, falling back to the next.
|
|
64193
|
+
*/
|
|
64194
|
+
/** The history series key of a cap's declared primary field; `null` when it declares none. */
|
|
64195
|
+
function primarySeriesKey(cap) {
|
|
64196
|
+
const primary = HISTORY_PRIMARY[cap];
|
|
64197
|
+
return primary === void 0 ? null : `cap:${cap}.${primary.field}`;
|
|
64198
|
+
}
|
|
64199
|
+
/** The card series of a device: the data-bearing primary of the highest-priority enabled cap. */
|
|
64200
|
+
function pickPrimarySeriesKey(input) {
|
|
64201
|
+
return input.enabledCaps.flatMap((cap) => {
|
|
64202
|
+
const key = primarySeriesKey(cap);
|
|
64203
|
+
const primary = HISTORY_PRIMARY[cap];
|
|
64204
|
+
return key === null || primary === void 0 ? [] : [{
|
|
64205
|
+
key,
|
|
64206
|
+
priority: primary.priority
|
|
64207
|
+
}];
|
|
64208
|
+
}).sort((a, b) => b.priority - a.priority).find((c) => input.hasData(c.key))?.key ?? null;
|
|
64209
|
+
}
|
|
64210
|
+
//#endregion
|
|
64105
64211
|
//#region src/device/hero/hero-text.ts
|
|
64106
64212
|
/** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
|
|
64107
64213
|
var HeroTextSchema = zod.z.object({
|
|
@@ -64202,7 +64308,7 @@ function temperatureMeasurement(celsius, since) {
|
|
|
64202
64308
|
tone: BAND_TONE[band],
|
|
64203
64309
|
since,
|
|
64204
64310
|
sinceKind: "updated",
|
|
64205
|
-
historyKey: "
|
|
64311
|
+
historyKey: primarySeriesKey("temperature-sensor")
|
|
64206
64312
|
};
|
|
64207
64313
|
}
|
|
64208
64314
|
function humidityMeasurement(percent, since) {
|
|
@@ -64223,7 +64329,7 @@ function humidityMeasurement(percent, since) {
|
|
|
64223
64329
|
tone: dry || humid ? "warning" : "info",
|
|
64224
64330
|
since,
|
|
64225
64331
|
sinceKind: "updated",
|
|
64226
|
-
historyKey: "
|
|
64332
|
+
historyKey: primarySeriesKey("humidity-sensor")
|
|
64227
64333
|
};
|
|
64228
64334
|
}
|
|
64229
64335
|
function powerMeasurement(watts, since) {
|
|
@@ -64243,7 +64349,7 @@ function powerMeasurement(watts, since) {
|
|
|
64243
64349
|
tone: active ? "primary" : "muted",
|
|
64244
64350
|
since,
|
|
64245
64351
|
sinceKind: "updated",
|
|
64246
|
-
historyKey: "
|
|
64352
|
+
historyKey: primarySeriesKey("power-meter")
|
|
64247
64353
|
};
|
|
64248
64354
|
}
|
|
64249
64355
|
function contactMeasurement(open, since) {
|
|
@@ -64284,19 +64390,19 @@ var QUANTITY_FACE = {
|
|
|
64284
64390
|
icon: "thermometer",
|
|
64285
64391
|
unit: "°C",
|
|
64286
64392
|
sinceKind: "updated",
|
|
64287
|
-
historyKey: "
|
|
64393
|
+
historyKey: primarySeriesKey("temperature-sensor")
|
|
64288
64394
|
},
|
|
64289
64395
|
humidity: {
|
|
64290
64396
|
icon: "droplets",
|
|
64291
64397
|
unit: "%",
|
|
64292
64398
|
sinceKind: "updated",
|
|
64293
|
-
historyKey: "
|
|
64399
|
+
historyKey: primarySeriesKey("humidity-sensor")
|
|
64294
64400
|
},
|
|
64295
64401
|
power: {
|
|
64296
64402
|
icon: "zap",
|
|
64297
64403
|
unit: "W",
|
|
64298
64404
|
sinceKind: "updated",
|
|
64299
|
-
historyKey: "
|
|
64405
|
+
historyKey: primarySeriesKey("power-meter")
|
|
64300
64406
|
},
|
|
64301
64407
|
contact: {
|
|
64302
64408
|
icon: null,
|
|
@@ -65478,11 +65584,15 @@ var humiditySensorCapability = {
|
|
|
65478
65584
|
/**
|
|
65479
65585
|
* History (D850): recorded series.
|
|
65480
65586
|
*/
|
|
65481
|
-
history: {
|
|
65482
|
-
|
|
65483
|
-
|
|
65484
|
-
|
|
65485
|
-
|
|
65587
|
+
history: {
|
|
65588
|
+
primary: "humidity",
|
|
65589
|
+
priority: 90,
|
|
65590
|
+
fields: { humidity: {
|
|
65591
|
+
kind: "gauge",
|
|
65592
|
+
unit: "%",
|
|
65593
|
+
deadband: .5
|
|
65594
|
+
} }
|
|
65595
|
+
},
|
|
65486
65596
|
/** Clock fields: written, but excluded from the compare that decides
|
|
65487
65597
|
* whether persisting is worth a SQLite commit. */
|
|
65488
65598
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -88163,44 +88273,48 @@ var powerMeterCapability = {
|
|
|
88163
88273
|
/**
|
|
88164
88274
|
* History (D850): recorded series. Gauges are floored at 30 s; `energy` is the one monotonic meter (counter).
|
|
88165
88275
|
*/
|
|
88166
|
-
history: {
|
|
88167
|
-
|
|
88168
|
-
|
|
88169
|
-
|
|
88170
|
-
|
|
88171
|
-
|
|
88172
|
-
|
|
88173
|
-
|
|
88174
|
-
|
|
88175
|
-
|
|
88176
|
-
|
|
88177
|
-
|
|
88178
|
-
|
|
88179
|
-
|
|
88180
|
-
|
|
88181
|
-
|
|
88182
|
-
|
|
88183
|
-
|
|
88184
|
-
|
|
88185
|
-
|
|
88186
|
-
|
|
88187
|
-
|
|
88188
|
-
|
|
88189
|
-
|
|
88190
|
-
|
|
88191
|
-
|
|
88192
|
-
|
|
88193
|
-
|
|
88194
|
-
|
|
88195
|
-
|
|
88196
|
-
|
|
88197
|
-
|
|
88198
|
-
|
|
88199
|
-
|
|
88200
|
-
|
|
88201
|
-
|
|
88276
|
+
history: {
|
|
88277
|
+
primary: "power",
|
|
88278
|
+
priority: 80,
|
|
88279
|
+
fields: {
|
|
88280
|
+
power: {
|
|
88281
|
+
kind: "gauge",
|
|
88282
|
+
unit: "W",
|
|
88283
|
+
deadband: 1,
|
|
88284
|
+
minIntervalMs: 3e4
|
|
88285
|
+
},
|
|
88286
|
+
energy: {
|
|
88287
|
+
kind: "counter",
|
|
88288
|
+
unit: "kWh",
|
|
88289
|
+
deadband: .01,
|
|
88290
|
+
minIntervalMs: 6e4
|
|
88291
|
+
},
|
|
88292
|
+
voltage: {
|
|
88293
|
+
kind: "gauge",
|
|
88294
|
+
unit: "V",
|
|
88295
|
+
deadband: 1,
|
|
88296
|
+
minIntervalMs: 3e4
|
|
88297
|
+
},
|
|
88298
|
+
current: {
|
|
88299
|
+
kind: "gauge",
|
|
88300
|
+
unit: "A",
|
|
88301
|
+
deadband: .05,
|
|
88302
|
+
minIntervalMs: 3e4
|
|
88303
|
+
},
|
|
88304
|
+
apparentPower: {
|
|
88305
|
+
kind: "gauge",
|
|
88306
|
+
unit: "VA",
|
|
88307
|
+
deadband: 1,
|
|
88308
|
+
minIntervalMs: 3e4
|
|
88309
|
+
},
|
|
88310
|
+
powerFactor: {
|
|
88311
|
+
kind: "gauge",
|
|
88312
|
+
unit: "ratio",
|
|
88313
|
+
deadband: .01,
|
|
88314
|
+
minIntervalMs: 6e4
|
|
88315
|
+
}
|
|
88202
88316
|
}
|
|
88203
|
-
}
|
|
88317
|
+
},
|
|
88204
88318
|
/** Clock fields: written, but excluded from the compare that decides
|
|
88205
88319
|
* whether persisting is worth a SQLite commit. */
|
|
88206
88320
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -96422,18 +96536,22 @@ var streamParamsCapability = {
|
|
|
96422
96536
|
*/
|
|
96423
96537
|
history: { fields: {
|
|
96424
96538
|
"main.bitrate": {
|
|
96539
|
+
group: "bitrate",
|
|
96425
96540
|
kind: "gauge",
|
|
96426
96541
|
unit: "kbps"
|
|
96427
96542
|
},
|
|
96428
96543
|
"main.framerate": {
|
|
96544
|
+
group: "framerate",
|
|
96429
96545
|
kind: "gauge",
|
|
96430
96546
|
unit: "fps"
|
|
96431
96547
|
},
|
|
96432
96548
|
"sub.bitrate": {
|
|
96549
|
+
group: "bitrate",
|
|
96433
96550
|
kind: "gauge",
|
|
96434
96551
|
unit: "kbps"
|
|
96435
96552
|
},
|
|
96436
96553
|
"sub.framerate": {
|
|
96554
|
+
group: "framerate",
|
|
96437
96555
|
kind: "gauge",
|
|
96438
96556
|
unit: "fps"
|
|
96439
96557
|
}
|
|
@@ -97712,11 +97830,15 @@ var temperatureSensorCapability = {
|
|
|
97712
97830
|
/**
|
|
97713
97831
|
* History (D850): recorded series.
|
|
97714
97832
|
*/
|
|
97715
|
-
history: {
|
|
97716
|
-
|
|
97717
|
-
|
|
97718
|
-
|
|
97719
|
-
|
|
97833
|
+
history: {
|
|
97834
|
+
primary: "temperature",
|
|
97835
|
+
priority: 100,
|
|
97836
|
+
fields: { temperature: {
|
|
97837
|
+
kind: "gauge",
|
|
97838
|
+
unit: "°C",
|
|
97839
|
+
deadband: .1
|
|
97840
|
+
} }
|
|
97841
|
+
},
|
|
97720
97842
|
/** Clock fields: written, but excluded from the compare that decides
|
|
97721
97843
|
* whether persisting is worth a SQLite commit. */
|
|
97722
97844
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -100942,11 +101064,13 @@ var waterHeaterCapability = {
|
|
|
100942
101064
|
*/
|
|
100943
101065
|
history: { fields: {
|
|
100944
101066
|
currentTemp: {
|
|
101067
|
+
group: "temperature",
|
|
100945
101068
|
kind: "gauge",
|
|
100946
101069
|
unit: "°C",
|
|
100947
101070
|
deadband: .5
|
|
100948
101071
|
},
|
|
100949
101072
|
targetTemp: {
|
|
101073
|
+
group: "temperature",
|
|
100950
101074
|
kind: "gauge",
|
|
100951
101075
|
unit: "°C",
|
|
100952
101076
|
minIntervalMs: 0
|
|
@@ -101239,108 +101363,120 @@ var weatherStationCapability = {
|
|
|
101239
101363
|
* reset (event, day, week, month, year) and the sliding 24 h total are
|
|
101240
101364
|
* levels, so `gauge`; `counter` is for a monotonic meter only.
|
|
101241
101365
|
*/
|
|
101242
|
-
history: {
|
|
101243
|
-
|
|
101244
|
-
|
|
101245
|
-
|
|
101246
|
-
|
|
101247
|
-
|
|
101248
|
-
|
|
101249
|
-
|
|
101250
|
-
|
|
101251
|
-
|
|
101252
|
-
|
|
101253
|
-
|
|
101254
|
-
|
|
101255
|
-
|
|
101256
|
-
|
|
101257
|
-
|
|
101258
|
-
|
|
101259
|
-
|
|
101260
|
-
|
|
101261
|
-
|
|
101262
|
-
|
|
101263
|
-
|
|
101264
|
-
|
|
101265
|
-
|
|
101266
|
-
|
|
101267
|
-
|
|
101268
|
-
|
|
101269
|
-
|
|
101270
|
-
|
|
101271
|
-
|
|
101272
|
-
|
|
101273
|
-
|
|
101274
|
-
|
|
101275
|
-
|
|
101276
|
-
|
|
101277
|
-
|
|
101278
|
-
|
|
101279
|
-
|
|
101280
|
-
|
|
101281
|
-
|
|
101282
|
-
|
|
101283
|
-
|
|
101284
|
-
|
|
101285
|
-
|
|
101286
|
-
|
|
101287
|
-
|
|
101288
|
-
|
|
101289
|
-
|
|
101290
|
-
|
|
101291
|
-
|
|
101292
|
-
|
|
101293
|
-
|
|
101294
|
-
|
|
101295
|
-
|
|
101296
|
-
|
|
101297
|
-
|
|
101298
|
-
|
|
101299
|
-
|
|
101300
|
-
|
|
101301
|
-
|
|
101302
|
-
|
|
101303
|
-
|
|
101304
|
-
|
|
101305
|
-
|
|
101306
|
-
|
|
101307
|
-
|
|
101308
|
-
|
|
101309
|
-
|
|
101310
|
-
|
|
101311
|
-
|
|
101312
|
-
|
|
101313
|
-
|
|
101314
|
-
|
|
101315
|
-
|
|
101316
|
-
|
|
101317
|
-
|
|
101318
|
-
|
|
101319
|
-
|
|
101320
|
-
|
|
101321
|
-
|
|
101322
|
-
|
|
101323
|
-
|
|
101324
|
-
|
|
101325
|
-
|
|
101326
|
-
|
|
101327
|
-
|
|
101328
|
-
|
|
101329
|
-
|
|
101330
|
-
|
|
101331
|
-
|
|
101332
|
-
|
|
101333
|
-
|
|
101334
|
-
|
|
101335
|
-
|
|
101336
|
-
|
|
101337
|
-
|
|
101338
|
-
|
|
101339
|
-
|
|
101340
|
-
|
|
101341
|
-
|
|
101366
|
+
history: {
|
|
101367
|
+
primary: "temperature",
|
|
101368
|
+
priority: 60,
|
|
101369
|
+
fields: {
|
|
101370
|
+
temperature: {
|
|
101371
|
+
group: "temperature",
|
|
101372
|
+
kind: "gauge",
|
|
101373
|
+
unit: "°C",
|
|
101374
|
+
deadband: .1
|
|
101375
|
+
},
|
|
101376
|
+
humidity: {
|
|
101377
|
+
kind: "gauge",
|
|
101378
|
+
unit: "%",
|
|
101379
|
+
deadband: 1
|
|
101380
|
+
},
|
|
101381
|
+
pressure: {
|
|
101382
|
+
kind: "gauge",
|
|
101383
|
+
unit: "hPa",
|
|
101384
|
+
deadband: .2
|
|
101385
|
+
},
|
|
101386
|
+
windSpeed: {
|
|
101387
|
+
group: "wind-speed",
|
|
101388
|
+
kind: "gauge",
|
|
101389
|
+
unit: "m/s",
|
|
101390
|
+
deadband: .2
|
|
101391
|
+
},
|
|
101392
|
+
windGust: {
|
|
101393
|
+
group: "wind-speed",
|
|
101394
|
+
kind: "gauge",
|
|
101395
|
+
unit: "m/s",
|
|
101396
|
+
deadband: .2
|
|
101397
|
+
},
|
|
101398
|
+
windBearing: {
|
|
101399
|
+
group: "wind-bearing",
|
|
101400
|
+
kind: "gauge",
|
|
101401
|
+
unit: "°",
|
|
101402
|
+
deadband: 5
|
|
101403
|
+
},
|
|
101404
|
+
rainRate: {
|
|
101405
|
+
kind: "gauge",
|
|
101406
|
+
unit: "mm/h",
|
|
101407
|
+
deadband: .1
|
|
101408
|
+
},
|
|
101409
|
+
rainDaily: {
|
|
101410
|
+
kind: "gauge",
|
|
101411
|
+
unit: "mm",
|
|
101412
|
+
deadband: .1
|
|
101413
|
+
},
|
|
101414
|
+
rainEvent: {
|
|
101415
|
+
kind: "gauge",
|
|
101416
|
+
unit: "mm",
|
|
101417
|
+
deadband: .1
|
|
101418
|
+
},
|
|
101419
|
+
uv: {
|
|
101420
|
+
kind: "gauge",
|
|
101421
|
+
unit: "index",
|
|
101422
|
+
deadband: .1
|
|
101423
|
+
},
|
|
101424
|
+
solarRadiation: {
|
|
101425
|
+
kind: "gauge",
|
|
101426
|
+
unit: "W/m²",
|
|
101427
|
+
deadband: 5
|
|
101428
|
+
},
|
|
101429
|
+
dewPoint: {
|
|
101430
|
+
group: "temperature",
|
|
101431
|
+
kind: "gauge",
|
|
101432
|
+
unit: "°C",
|
|
101433
|
+
deadband: .1
|
|
101434
|
+
},
|
|
101435
|
+
feelsLike: {
|
|
101436
|
+
group: "temperature",
|
|
101437
|
+
kind: "gauge",
|
|
101438
|
+
unit: "°C",
|
|
101439
|
+
deadband: .1
|
|
101440
|
+
},
|
|
101441
|
+
vpd: {
|
|
101442
|
+
kind: "gauge",
|
|
101443
|
+
unit: "kPa",
|
|
101444
|
+
deadband: .05
|
|
101445
|
+
},
|
|
101446
|
+
windGustMax: {
|
|
101447
|
+
group: "wind-speed",
|
|
101448
|
+
kind: "gauge",
|
|
101449
|
+
unit: "m/s",
|
|
101450
|
+
deadband: .2
|
|
101451
|
+
},
|
|
101452
|
+
windBearingAvg: {
|
|
101453
|
+
group: "wind-bearing",
|
|
101454
|
+
kind: "gauge",
|
|
101455
|
+
unit: "°",
|
|
101456
|
+
deadband: 5
|
|
101457
|
+
},
|
|
101458
|
+
rain24h: {
|
|
101459
|
+
kind: "gauge",
|
|
101460
|
+
unit: "mm",
|
|
101461
|
+
deadband: .1
|
|
101462
|
+
},
|
|
101463
|
+
rainWeekly: {
|
|
101464
|
+
kind: "gauge",
|
|
101465
|
+
unit: "mm",
|
|
101466
|
+
deadband: .1
|
|
101467
|
+
},
|
|
101468
|
+
rainMonthly: {
|
|
101469
|
+
kind: "gauge",
|
|
101470
|
+
unit: "mm",
|
|
101471
|
+
deadband: .1
|
|
101472
|
+
},
|
|
101473
|
+
rainYearly: {
|
|
101474
|
+
kind: "gauge",
|
|
101475
|
+
unit: "mm",
|
|
101476
|
+
deadband: .1
|
|
101477
|
+
}
|
|
101342
101478
|
}
|
|
101343
|
-
}
|
|
101479
|
+
},
|
|
101344
101480
|
customize: weatherStationCustomize,
|
|
101345
101481
|
/** The poll clock is written but is no reason to commit a row. */
|
|
101346
101482
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -149209,6 +149345,7 @@ exports.HISTORY_DEFAULT_MIN_INTERVAL_MS = require_sleep.HISTORY_DEFAULT_MIN_INTE
|
|
|
149209
149345
|
exports.HISTORY_FAST_MS = require_implemented_methods.HISTORY_FAST_MS;
|
|
149210
149346
|
exports.HISTORY_ITEM_CATALOG = HISTORY_ITEM_CATALOG;
|
|
149211
149347
|
exports.HISTORY_NONE_CAPS = HISTORY_NONE_CAPS;
|
|
149348
|
+
exports.HISTORY_PRIMARY = HISTORY_PRIMARY;
|
|
149212
149349
|
exports.HISTORY_SLOW_MS = require_implemented_methods.HISTORY_SLOW_MS;
|
|
149213
149350
|
exports.HISTORY_TIERS = require_implemented_methods.HISTORY_TIERS;
|
|
149214
149351
|
exports.HISTORY_UNIT_LABELS = require_sleep.HISTORY_UNIT_LABELS;
|
|
@@ -151840,6 +151977,7 @@ exports.pickFaceRescoreIntervalMinutes = pickFaceRescoreIntervalMinutes;
|
|
|
151840
151977
|
exports.pickInvalidClusterStepModels = pickInvalidClusterStepModels;
|
|
151841
151978
|
exports.pickNativeLeaseOverride = pickNativeLeaseOverride;
|
|
151842
151979
|
exports.pickPreferredRtspEntry = pickPreferredRtspEntry;
|
|
151980
|
+
exports.pickPrimarySeriesKey = pickPrimarySeriesKey;
|
|
151843
151981
|
exports.pickRequestOrigin = pickRequestOrigin;
|
|
151844
151982
|
exports.pickRestartCandidate = pickRestartCandidate;
|
|
151845
151983
|
exports.pickVideoEncoder = require_implemented_methods.pickVideoEncoder;
|
|
@@ -151880,6 +152018,7 @@ exports.presetById = presetById;
|
|
|
151880
152018
|
exports.pressureSensorCapability = pressureSensorCapability;
|
|
151881
152019
|
exports.primaryCapForRole = primaryCapForRole;
|
|
151882
152020
|
exports.primaryChildPreferenceOf = primaryChildPreferenceOf;
|
|
152021
|
+
exports.primarySeriesKey = primarySeriesKey;
|
|
151883
152022
|
exports.principalMayReachAddon = principalMayReachAddon;
|
|
151884
152023
|
exports.priorityLevelsOf = priorityLevelsOf;
|
|
151885
152024
|
exports.privacyMaskCapability = privacyMaskCapability;
|