@camstack/addon-provider-homeassistant 1.2.628 → 1.2.630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +3 -1
- package/dist/{dist-BNRaAIW1.mjs → dist-CT3sP-p0.mjs} +325 -28
- package/dist/{dist-CAyJy-Ek.js → dist-Dcmr-Isu.js} +330 -27
- package/dist/ha-export/ha-export.addon.js +45 -31
- package/dist/ha-export/ha-export.addon.mjs +45 -31
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as BaseAddon, Gt as array, Ht as isReadingQuantity, I as consumableFormOf, L as consumableKindOf, Lt as baseUnitOf, O as buildAddonRouteProvider, Qt as string, U as deviceExportCapability, Ut as nodePin, Xt as object, a as COCO_TO_MACRO, c as ConsumableItemSchema, d as FanDirectionSchema, en as unknown, f as HvacModeSchema, i as CAMERA_SWITCH_ORDER, l as ConsumableStatusSchema, m as PLUG_APPLIANCE_TYPES, nn as EventCategory, o as CameraSwitchIdSchema, p as MediaPlayerRepeatSchema, s as ConsumableFormSchema, st as oauthIntegrationCapability, t as AlarmArmModeSchema, v as addonRoutesCapability } from "../dist-CT3sP-p0.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
import "node:zlib";
|
|
4
4
|
import "node:fs";
|
|
@@ -3457,6 +3457,10 @@ var CAPS_NOT_EXPORTED = [
|
|
|
3457
3457
|
cap: "group-status",
|
|
3458
3458
|
reason: "Bookkeeping for a helper group (D944): how many members were included, excluded, or named. The value an operator automates on is the output capability (the temperature, the motion, the watts). These counts are session-only, have no history, and would publish a second entity that never means the reading."
|
|
3459
3459
|
},
|
|
3460
|
+
{
|
|
3461
|
+
cap: "meter",
|
|
3462
|
+
reason: "The integral of a gauge that is not watts (D944). The total is base-unit seconds between resets; energy from watts is power-meter.kwhTotal. The source quantity is not on this device yet, so publishing the total as a sensor would give it no unit."
|
|
3463
|
+
},
|
|
3460
3464
|
{
|
|
3461
3465
|
cap: "group-commands",
|
|
3462
3466
|
reason: "The last fan-out a helper group attempted (D944), one row per member. It is session-only and has no history. The command an automation sends is the member capability (switch, brightness, colour), not this record."
|
|
@@ -6623,6 +6627,46 @@ function projectSynthetic(input, nowMs) {
|
|
|
6623
6627
|
return values;
|
|
6624
6628
|
}
|
|
6625
6629
|
//#endregion
|
|
6630
|
+
//#region src/ha-export/supported-device-kinds.ts
|
|
6631
|
+
/**
|
|
6632
|
+
* Device types the Home Assistant export picker offers.
|
|
6633
|
+
*
|
|
6634
|
+
* A UI filter. What actually travels is still the entity catalog: a washer,
|
|
6635
|
+
* dryer or dishwasher is offered because its power reading exports as a
|
|
6636
|
+
* sensor. running-state stays unmapped.
|
|
6637
|
+
*/
|
|
6638
|
+
var SUPPORTED_DEVICE_KINDS = [
|
|
6639
|
+
"camera",
|
|
6640
|
+
"light",
|
|
6641
|
+
"siren",
|
|
6642
|
+
"switch",
|
|
6643
|
+
"sensor",
|
|
6644
|
+
"thermostat",
|
|
6645
|
+
"climate",
|
|
6646
|
+
"button",
|
|
6647
|
+
"event-emitter",
|
|
6648
|
+
"update",
|
|
6649
|
+
"generic",
|
|
6650
|
+
"lock",
|
|
6651
|
+
"cover",
|
|
6652
|
+
"valve",
|
|
6653
|
+
"humidifier",
|
|
6654
|
+
"water-heater",
|
|
6655
|
+
"fan",
|
|
6656
|
+
"media-player",
|
|
6657
|
+
"alarm-panel",
|
|
6658
|
+
"control",
|
|
6659
|
+
"presence",
|
|
6660
|
+
"weather",
|
|
6661
|
+
"vacuum",
|
|
6662
|
+
"lawn-mower",
|
|
6663
|
+
"container",
|
|
6664
|
+
"image",
|
|
6665
|
+
"pet-feeder",
|
|
6666
|
+
"hub",
|
|
6667
|
+
...PLUG_APPLIANCE_TYPES
|
|
6668
|
+
];
|
|
6669
|
+
//#endregion
|
|
6626
6670
|
//#region src/ha-export/ha-export.addon.ts
|
|
6627
6671
|
/**
|
|
6628
6672
|
* Native Home Assistant export — a custom component fed by HTTP push.
|
|
@@ -9015,36 +9059,6 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
9015
9059
|
* CAPABILITIES, not its type, and restricting the picker by type is what
|
|
9016
9060
|
* confined the previous exporter to cameras.
|
|
9017
9061
|
*/
|
|
9018
|
-
var SUPPORTED_DEVICE_KINDS = [
|
|
9019
|
-
"camera",
|
|
9020
|
-
"light",
|
|
9021
|
-
"siren",
|
|
9022
|
-
"switch",
|
|
9023
|
-
"sensor",
|
|
9024
|
-
"thermostat",
|
|
9025
|
-
"climate",
|
|
9026
|
-
"button",
|
|
9027
|
-
"event-emitter",
|
|
9028
|
-
"update",
|
|
9029
|
-
"generic",
|
|
9030
|
-
"lock",
|
|
9031
|
-
"cover",
|
|
9032
|
-
"valve",
|
|
9033
|
-
"humidifier",
|
|
9034
|
-
"water-heater",
|
|
9035
|
-
"fan",
|
|
9036
|
-
"media-player",
|
|
9037
|
-
"alarm-panel",
|
|
9038
|
-
"control",
|
|
9039
|
-
"presence",
|
|
9040
|
-
"weather",
|
|
9041
|
-
"vacuum",
|
|
9042
|
-
"lawn-mower",
|
|
9043
|
-
"container",
|
|
9044
|
-
"image",
|
|
9045
|
-
"pet-feeder",
|
|
9046
|
-
"hub"
|
|
9047
|
-
];
|
|
9048
9062
|
/**
|
|
9049
9063
|
* POST one message to Home Assistant's push view.
|
|
9050
9064
|
*
|