@camstack/addon-provider-homeassistant 1.2.627 → 1.2.629
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 +12 -0
- package/README.md +22 -0
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +3 -1
- package/dist/{dist-BFnk4bwH.mjs → dist-DWMNvtWN.mjs} +301 -15
- package/dist/{dist-CRwUHjY7.js → dist-sQp4D2Eo.js} +306 -14
- package/dist/ha-export/ha-export.addon.js +45 -31
- package/dist/ha-export/ha-export.addon.mjs +45 -31
- package/package.json +4 -2
|
@@ -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-DWMNvtWN.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: "group-commands",
|
|
3462
|
+
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."
|
|
3463
|
+
},
|
|
3460
3464
|
{
|
|
3461
3465
|
cap: "recording-onboard",
|
|
3462
3466
|
reason: "An EDITOR of the CAMERA’s own recorder: a weekly schedule of windows per trigger, plus the facts about the card it writes to. The schedule is a document an operator authors, not a reading — an entity would publish 168 slots as a state and nothing in Home Assistant could act on it. The storage side is a reading, but it belongs to the camera’s own health rather than to this cap’s editor surface, and publishing capacity here would put the same number in two places the day a health cap carries it. ONE thing here is arguably a real binary sensor: `recordingToNowhere` — scheduled to record with no usable card. It is deliberately NOT exported yet, because exporting half a cap needs the split decided first, and the two cameras it fires on today are already a danger banner and a WARN."
|
|
@@ -6619,6 +6623,46 @@ function projectSynthetic(input, nowMs) {
|
|
|
6619
6623
|
return values;
|
|
6620
6624
|
}
|
|
6621
6625
|
//#endregion
|
|
6626
|
+
//#region src/ha-export/supported-device-kinds.ts
|
|
6627
|
+
/**
|
|
6628
|
+
* Device types the Home Assistant export picker offers.
|
|
6629
|
+
*
|
|
6630
|
+
* A UI filter. What actually travels is still the entity catalog: a washer,
|
|
6631
|
+
* dryer or dishwasher is offered because its power reading exports as a
|
|
6632
|
+
* sensor. running-state stays unmapped.
|
|
6633
|
+
*/
|
|
6634
|
+
var SUPPORTED_DEVICE_KINDS = [
|
|
6635
|
+
"camera",
|
|
6636
|
+
"light",
|
|
6637
|
+
"siren",
|
|
6638
|
+
"switch",
|
|
6639
|
+
"sensor",
|
|
6640
|
+
"thermostat",
|
|
6641
|
+
"climate",
|
|
6642
|
+
"button",
|
|
6643
|
+
"event-emitter",
|
|
6644
|
+
"update",
|
|
6645
|
+
"generic",
|
|
6646
|
+
"lock",
|
|
6647
|
+
"cover",
|
|
6648
|
+
"valve",
|
|
6649
|
+
"humidifier",
|
|
6650
|
+
"water-heater",
|
|
6651
|
+
"fan",
|
|
6652
|
+
"media-player",
|
|
6653
|
+
"alarm-panel",
|
|
6654
|
+
"control",
|
|
6655
|
+
"presence",
|
|
6656
|
+
"weather",
|
|
6657
|
+
"vacuum",
|
|
6658
|
+
"lawn-mower",
|
|
6659
|
+
"container",
|
|
6660
|
+
"image",
|
|
6661
|
+
"pet-feeder",
|
|
6662
|
+
"hub",
|
|
6663
|
+
...PLUG_APPLIANCE_TYPES
|
|
6664
|
+
];
|
|
6665
|
+
//#endregion
|
|
6622
6666
|
//#region src/ha-export/ha-export.addon.ts
|
|
6623
6667
|
/**
|
|
6624
6668
|
* Native Home Assistant export — a custom component fed by HTTP push.
|
|
@@ -9011,36 +9055,6 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
9011
9055
|
* CAPABILITIES, not its type, and restricting the picker by type is what
|
|
9012
9056
|
* confined the previous exporter to cameras.
|
|
9013
9057
|
*/
|
|
9014
|
-
var SUPPORTED_DEVICE_KINDS = [
|
|
9015
|
-
"camera",
|
|
9016
|
-
"light",
|
|
9017
|
-
"siren",
|
|
9018
|
-
"switch",
|
|
9019
|
-
"sensor",
|
|
9020
|
-
"thermostat",
|
|
9021
|
-
"climate",
|
|
9022
|
-
"button",
|
|
9023
|
-
"event-emitter",
|
|
9024
|
-
"update",
|
|
9025
|
-
"generic",
|
|
9026
|
-
"lock",
|
|
9027
|
-
"cover",
|
|
9028
|
-
"valve",
|
|
9029
|
-
"humidifier",
|
|
9030
|
-
"water-heater",
|
|
9031
|
-
"fan",
|
|
9032
|
-
"media-player",
|
|
9033
|
-
"alarm-panel",
|
|
9034
|
-
"control",
|
|
9035
|
-
"presence",
|
|
9036
|
-
"weather",
|
|
9037
|
-
"vacuum",
|
|
9038
|
-
"lawn-mower",
|
|
9039
|
-
"container",
|
|
9040
|
-
"image",
|
|
9041
|
-
"pet-feeder",
|
|
9042
|
-
"hub"
|
|
9043
|
-
];
|
|
9044
9058
|
/**
|
|
9045
9059
|
* POST one message to Home Assistant's push view.
|
|
9046
9060
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-homeassistant",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.629",
|
|
4
4
|
"description": "Home Assistant device provider addon for CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -129,7 +129,9 @@
|
|
|
129
129
|
"files": [
|
|
130
130
|
"dist",
|
|
131
131
|
"i18n",
|
|
132
|
-
"assets"
|
|
132
|
+
"assets",
|
|
133
|
+
"README.md",
|
|
134
|
+
"CHANGELOG.md"
|
|
133
135
|
],
|
|
134
136
|
"scripts": {
|
|
135
137
|
"build": "vite build",
|