@camstack/addon-provider-homeassistant 1.2.640 → 1.2.642

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_ha_broker_source = require("../ha-broker-source-0HGmZj7D.js");
27
+ const require_ha_broker_source = require("../ha-broker-source-B6xSmZ6H.js");
28
28
  let node_crypto = require("node:crypto");
29
29
  require("node:zlib");
30
30
  let node_fs = require("node:fs");
@@ -1030,7 +1030,7 @@ var NATIVE_CAP_PLATFORMS = {
1030
1030
  },
1031
1031
  /**
1032
1032
  * The reason this platform exists. `LockStateSchema` is
1033
- * `locked | unlocked | locking | unlocking | jammed`, and every one of
1033
+ * `locked | unlocked | locking | unlocking | jammed | door-open`, and every one of
1034
1034
  * those is a state Home Assistant's `lock` has — including the one a
1035
1035
  * `switch` silently reports as "unlocked".
1036
1036
  *
@@ -1047,7 +1047,17 @@ var NATIVE_CAP_PLATFORMS = {
1047
1047
  controls: { open: {
1048
1048
  from: "open",
1049
1049
  commandOnly: true
1050
- } }
1050
+ } },
1051
+ /**
1052
+ * `door-open` (D984: the linked door contact reads open) is no state of
1053
+ * Home Assistant's lock, but `open` is — the platform's own word for a
1054
+ * door standing open. The enum is rewritten on the way in, so the enum
1055
+ * sensor beside it keeps the cap's own value.
1056
+ */
1057
+ constants: {
1058
+ state_open: "open",
1059
+ value_template: "{{ 'open' if value == 'door-open' else value }}"
1060
+ }
1051
1061
  },
1052
1062
  /**
1053
1063
  * `AlarmStateSchema` IS Home Assistant's alarm vocabulary, and
@@ -1,4 +1,4 @@
1
- import { B as consumableKindOf, Jt as isReadingQuantity, K as deviceExportCapability, Ut as baseUnitOf, Vt as BaseAddon, Yt as nodePin, Zt as array, _ as PLUG_APPLIANCE_TYPES, c as COCO_TO_MACRO, cn as EventCategory, d as ConsumableItemSchema, f as ConsumableStatusSchema, g as MediaPlayerRepeatSchema, gt as pruneDeletedEntities, h as HvacModeSchema, i as AlarmArmModeSchema, in as string, j as buildAddonRouteProvider, l as CameraSwitchIdSchema, m as FanDirectionSchema, nn as object, on as unknown, r as listHomeAssistantBrokers, s as CAMERA_SWITCH_ORDER, u as ConsumableFormSchema, ut as oauthIntegrationCapability, vt as runExportedAction, wt as sendToExportedTarget, x as addonRoutesCapability, z as consumableFormOf } from "../ha-broker-source-FHFpUlgq.mjs";
1
+ import { $t as array, B as consumableKindOf, Et as sendToExportedTarget, Gt as baseUnitOf, K as deviceExportCapability, Ut as BaseAddon, Xt as isReadingQuantity, Zt as nodePin, _ as PLUG_APPLIANCE_TYPES, bt as runExportedAction, c as COCO_TO_MACRO, cn as unknown, d as ConsumableItemSchema, f as ConsumableStatusSchema, g as MediaPlayerRepeatSchema, gt as pruneDeletedEntities, h as HvacModeSchema, i as AlarmArmModeSchema, in as object, j as buildAddonRouteProvider, l as CameraSwitchIdSchema, m as FanDirectionSchema, on as string, r as listHomeAssistantBrokers, s as CAMERA_SWITCH_ORDER, u as ConsumableFormSchema, un as EventCategory, ut as oauthIntegrationCapability, x as addonRoutesCapability, z as consumableFormOf } from "../ha-broker-source-D9_yzN2c.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  import "node:zlib";
4
4
  import "node:fs";
@@ -995,7 +995,7 @@ var NATIVE_CAP_PLATFORMS = {
995
995
  },
996
996
  /**
997
997
  * The reason this platform exists. `LockStateSchema` is
998
- * `locked | unlocked | locking | unlocking | jammed`, and every one of
998
+ * `locked | unlocked | locking | unlocking | jammed | door-open`, and every one of
999
999
  * those is a state Home Assistant's `lock` has — including the one a
1000
1000
  * `switch` silently reports as "unlocked".
1001
1001
  *
@@ -1012,7 +1012,17 @@ var NATIVE_CAP_PLATFORMS = {
1012
1012
  controls: { open: {
1013
1013
  from: "open",
1014
1014
  commandOnly: true
1015
- } }
1015
+ } },
1016
+ /**
1017
+ * `door-open` (D984: the linked door contact reads open) is no state of
1018
+ * Home Assistant's lock, but `open` is — the platform's own word for a
1019
+ * door standing open. The enum is rewritten on the way in, so the enum
1020
+ * sensor beside it keeps the cap's own value.
1021
+ */
1022
+ constants: {
1023
+ state_open: "open",
1024
+ value_template: "{{ 'open' if value == 'door-open' else value }}"
1025
+ }
1016
1026
  },
1017
1027
  /**
1018
1028
  * `AlarmStateSchema` IS Home Assistant's alarm vocabulary, and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.640",
3
+ "version": "1.2.642",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",