@camstack/types 1.2.536 → 1.2.537

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/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CCAQ_PEp.js");
2
+ const require_sleep = require("./sleep-DIg2Mx82.js");
3
3
  const require_event_category = require("./event-category-BC4RRerT.js");
4
- const require_device_type = require("./device-type-BfvqqzRp.js");
5
- const require_composition = require("./composition-BxalDSTt.js");
4
+ const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
5
+ const require_composition = require("./composition-BcVAbtBc.js");
6
6
  const require_node_color = require("./node-color.js");
7
7
  const require_convert = require("./convert-BmtM6K-5.js");
8
8
  const require_enums = require("./enums.js");
@@ -10025,7 +10025,7 @@ var DeviceSelectorSchema = zod.z.discriminatedUnion("kind", [
10025
10025
  }),
10026
10026
  zod.z.object({
10027
10027
  kind: zod.z.literal("types"),
10028
- types: zod.z.array(zod.z.enum(require_device_type.DeviceType)).min(1)
10028
+ types: zod.z.array(zod.z.enum(require_composed_stable_id.DeviceType)).min(1)
10029
10029
  }),
10030
10030
  zod.z.object({
10031
10031
  kind: zod.z.literal("locations"),
@@ -30980,7 +30980,7 @@ var ActionTargetSchema = zod.z.discriminatedUnion("kind", [
30980
30980
  zod.z.object({
30981
30981
  kind: zod.z.literal("domain"),
30982
30982
  /** Narrow to one kind of device. */
30983
- deviceType: zod.z.enum(require_device_type.DeviceType).optional(),
30983
+ deviceType: zod.z.enum(require_composed_stable_id.DeviceType).optional(),
30984
30984
  /** Narrow to one room: the `location` label devices carry. */
30985
30985
  roomId: zod.z.string().min(1).optional()
30986
30986
  }),
@@ -36686,18 +36686,18 @@ var accessoriesCapability = {
36686
36686
  deviceNative: true,
36687
36687
  mode: "singleton",
36688
36688
  deviceTypes: [
36689
- require_device_type.DeviceType.Camera,
36690
- require_device_type.DeviceType.Hub,
36691
- require_device_type.DeviceType.Switch,
36692
- require_device_type.DeviceType.Light,
36693
- require_device_type.DeviceType.Sensor,
36694
- require_device_type.DeviceType.Thermostat,
36695
- require_device_type.DeviceType.Cover,
36696
- require_device_type.DeviceType.Lock,
36697
- require_device_type.DeviceType.Fan,
36698
- require_device_type.DeviceType.MediaPlayer,
36699
- require_device_type.DeviceType.AlarmPanel,
36700
- require_device_type.DeviceType.Generic
36689
+ require_composed_stable_id.DeviceType.Camera,
36690
+ require_composed_stable_id.DeviceType.Hub,
36691
+ require_composed_stable_id.DeviceType.Switch,
36692
+ require_composed_stable_id.DeviceType.Light,
36693
+ require_composed_stable_id.DeviceType.Sensor,
36694
+ require_composed_stable_id.DeviceType.Thermostat,
36695
+ require_composed_stable_id.DeviceType.Cover,
36696
+ require_composed_stable_id.DeviceType.Lock,
36697
+ require_composed_stable_id.DeviceType.Fan,
36698
+ require_composed_stable_id.DeviceType.MediaPlayer,
36699
+ require_composed_stable_id.DeviceType.AlarmPanel,
36700
+ require_composed_stable_id.DeviceType.Generic
36701
36701
  ],
36702
36702
  methods: {
36703
36703
  /**
@@ -38087,7 +38087,7 @@ var airQualitySensorCapability = {
38087
38087
  scope: "device",
38088
38088
  deviceNative: true,
38089
38089
  mode: "singleton",
38090
- deviceTypes: [require_device_type.DeviceType.Sensor],
38090
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
38091
38091
  methods: {},
38092
38092
  status: {
38093
38093
  schema: AirQualitySensorStatusSchema,
@@ -38198,7 +38198,7 @@ var alarmPanelCapability = {
38198
38198
  scope: "device",
38199
38199
  deviceNative: true,
38200
38200
  mode: "singleton",
38201
- deviceTypes: [require_device_type.DeviceType.AlarmPanel],
38201
+ deviceTypes: [require_composed_stable_id.DeviceType.AlarmPanel],
38202
38202
  methods: {
38203
38203
  arm: require_sleep.method(zod.z.object({
38204
38204
  deviceId: zod.z.number().int().nonnegative(),
@@ -38361,7 +38361,7 @@ var ambientLightSensorCapability = {
38361
38361
  scope: "device",
38362
38362
  deviceNative: true,
38363
38363
  mode: "singleton",
38364
- deviceTypes: [require_device_type.DeviceType.Sensor],
38364
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
38365
38365
  methods: {},
38366
38366
  status: {
38367
38367
  schema: AmbientLightSensorStatusSchema,
@@ -38412,7 +38412,7 @@ var audioAnalysisCapability = {
38412
38412
  mode: "singleton",
38413
38413
  kind: "wrapper",
38414
38414
  defaultActive: true,
38415
- deviceTypes: [require_device_type.DeviceType.Camera],
38415
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
38416
38416
  exposesDeviceSettings: true,
38417
38417
  methods: {
38418
38418
  /**
@@ -38905,7 +38905,7 @@ var audioMetricsCapability = {
38905
38905
  name: "audio-metrics",
38906
38906
  scope: "device",
38907
38907
  mode: "singleton",
38908
- deviceTypes: [require_device_type.DeviceType.Camera],
38908
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
38909
38909
  methods: {
38910
38910
  /** Latest snapshot for this device. Null until the analytics
38911
38911
  * pipeline has processed at least one audio window. */
@@ -39010,7 +39010,7 @@ var automationControlCapability = {
39010
39010
  scope: "device",
39011
39011
  deviceNative: true,
39012
39012
  mode: "singleton",
39013
- deviceTypes: [require_device_type.DeviceType.Automation],
39013
+ deviceTypes: [require_composed_stable_id.DeviceType.Automation],
39014
39014
  methods: {
39015
39015
  enable: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
39016
39016
  kind: "mutation",
@@ -39814,14 +39814,14 @@ var BatteryStatusSchema = zod.z.object({
39814
39814
  binary: zod.z.boolean().optional().meta({ label: "Binary indicator" })
39815
39815
  });
39816
39816
  var BATTERY_DEVICE_TYPES = [
39817
- require_device_type.DeviceType.Camera,
39818
- require_device_type.DeviceType.Sensor,
39819
- require_device_type.DeviceType.Button,
39820
- require_device_type.DeviceType.Switch,
39821
- require_device_type.DeviceType.PetFeeder,
39822
- require_device_type.DeviceType.Container,
39823
- require_device_type.DeviceType.Thermostat,
39824
- require_device_type.DeviceType.EventEmitter
39817
+ require_composed_stable_id.DeviceType.Camera,
39818
+ require_composed_stable_id.DeviceType.Sensor,
39819
+ require_composed_stable_id.DeviceType.Button,
39820
+ require_composed_stable_id.DeviceType.Switch,
39821
+ require_composed_stable_id.DeviceType.PetFeeder,
39822
+ require_composed_stable_id.DeviceType.Container,
39823
+ require_composed_stable_id.DeviceType.Thermostat,
39824
+ require_composed_stable_id.DeviceType.EventEmitter
39825
39825
  ];
39826
39826
  /** Generic Customize target for the percentage reading (D936). */
39827
39827
  var batteryCustomize = {
@@ -39993,7 +39993,7 @@ var binaryCapability = {
39993
39993
  scope: "device",
39994
39994
  deviceNative: true,
39995
39995
  mode: "singleton",
39996
- deviceTypes: [require_device_type.DeviceType.Sensor],
39996
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
39997
39997
  methods: {},
39998
39998
  status: {
39999
39999
  schema: BinaryStatusSchema,
@@ -40099,7 +40099,7 @@ var brightnessCapability = {
40099
40099
  scope: "device",
40100
40100
  deviceNative: true,
40101
40101
  mode: "singleton",
40102
- deviceTypes: [require_device_type.DeviceType.Light],
40102
+ deviceTypes: [require_composed_stable_id.DeviceType.Light],
40103
40103
  methods: { setBrightness: require_sleep.method(zod.z.object({
40104
40104
  deviceId: zod.z.number().int().nonnegative(),
40105
40105
  level: zod.z.number().min(0).max(100)
@@ -40263,7 +40263,7 @@ var buttonCapability = {
40263
40263
  scope: "device",
40264
40264
  deviceNative: true,
40265
40265
  mode: "singleton",
40266
- deviceTypes: [require_device_type.DeviceType.Button],
40266
+ deviceTypes: [require_composed_stable_id.DeviceType.Button],
40267
40267
  methods: { press: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
40268
40268
  kind: "mutation",
40269
40269
  auth: "protected"
@@ -40506,7 +40506,7 @@ var cameraCredentialsCapability = {
40506
40506
  scope: "device",
40507
40507
  deviceNative: true,
40508
40508
  mode: "singleton",
40509
- deviceTypes: [require_device_type.DeviceType.Camera],
40509
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
40510
40510
  methods: {
40511
40511
  /**
40512
40512
  * Return the camera's full credential bundle for admin consumers.
@@ -40663,7 +40663,7 @@ var cameraGridLayoutCapability = {
40663
40663
  scope: "device",
40664
40664
  deviceNative: true,
40665
40665
  mode: "singleton",
40666
- deviceTypes: [require_device_type.DeviceType.Camera],
40666
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
40667
40667
  /**
40668
40668
  * The section is built by the ADDON and returned from
40669
40669
  * `getDeviceSettingsContribution`, not derived by the framework from a
@@ -40735,7 +40735,7 @@ var cameraPipelineConfigCapability = {
40735
40735
  mode: "singleton",
40736
40736
  kind: "wrapper",
40737
40737
  defaultActive: true,
40738
- deviceTypes: [require_device_type.DeviceType.Camera],
40738
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
40739
40739
  exposesDeviceSettings: true,
40740
40740
  methods: {}
40741
40741
  };
@@ -41836,7 +41836,7 @@ var cameraStreamsCapability = {
41836
41836
  mode: "singleton",
41837
41837
  kind: "wrapper",
41838
41838
  defaultActive: true,
41839
- deviceTypes: [require_device_type.DeviceType.Camera],
41839
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
41840
41840
  methods: {
41841
41841
  getCameraStreams: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.array(require_sleep.CameraStreamSchema).readonly()),
41842
41842
  getBrokerStreams: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.array(require_sleep.ProfileSlotSchema).readonly()),
@@ -41966,7 +41966,7 @@ var carbonMonoxideCapability = {
41966
41966
  scope: "device",
41967
41967
  deviceNative: true,
41968
41968
  mode: "singleton",
41969
- deviceTypes: [require_device_type.DeviceType.Sensor],
41969
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
41970
41970
  methods: {},
41971
41971
  status: {
41972
41972
  schema: CarbonMonoxideStatusSchema,
@@ -42091,7 +42091,7 @@ var climateControlCapability = {
42091
42091
  scope: "device",
42092
42092
  deviceNative: true,
42093
42093
  mode: "singleton",
42094
- deviceTypes: [require_device_type.DeviceType.Thermostat, require_device_type.DeviceType.Climate],
42094
+ deviceTypes: [require_composed_stable_id.DeviceType.Thermostat, require_composed_stable_id.DeviceType.Climate],
42095
42095
  methods: {
42096
42096
  setMode: require_sleep.method(zod.z.object({
42097
42097
  deviceId: zod.z.number().int().nonnegative(),
@@ -42279,7 +42279,7 @@ var colorCapability = {
42279
42279
  scope: "device",
42280
42280
  deviceNative: true,
42281
42281
  mode: "singleton",
42282
- deviceTypes: [require_device_type.DeviceType.Light],
42282
+ deviceTypes: [require_composed_stable_id.DeviceType.Light],
42283
42283
  methods: { setColor: require_sleep.method(zod.z.object({
42284
42284
  deviceId: zod.z.number().int().nonnegative(),
42285
42285
  color: ColorInputSchema
@@ -42745,7 +42745,7 @@ var connectivityCapability = {
42745
42745
  scope: "device",
42746
42746
  deviceNative: true,
42747
42747
  mode: "singleton",
42748
- deviceTypes: [require_device_type.DeviceType.Sensor],
42748
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
42749
42749
  methods: {},
42750
42750
  status: {
42751
42751
  schema: ConnectivityStatusSchema,
@@ -42925,7 +42925,7 @@ var consumablesCustomize = {
42925
42925
  id: "items",
42926
42926
  cardinality: "keyedArray",
42927
42927
  vocabulary: { cap: "consumables" },
42928
- deviceTypes: Object.values(require_device_type.DeviceType),
42928
+ deviceTypes: Object.values(require_composed_stable_id.DeviceType),
42929
42929
  apply: "add",
42930
42930
  path: "items",
42931
42931
  keyField: "key",
@@ -42996,7 +42996,7 @@ var consumablesCapability = {
42996
42996
  scope: "device",
42997
42997
  deviceNative: true,
42998
42998
  mode: "singleton",
42999
- deviceTypes: Object.values(require_device_type.DeviceType),
42999
+ deviceTypes: Object.values(require_composed_stable_id.DeviceType),
43000
43000
  deviceConfig: { ui: {
43001
43001
  kind: "widget",
43002
43002
  widgetId: "host/consumables-panel",
@@ -43117,7 +43117,7 @@ var contactCapability = {
43117
43117
  scope: "device",
43118
43118
  deviceNative: true,
43119
43119
  mode: "singleton",
43120
- deviceTypes: [require_device_type.DeviceType.Sensor],
43120
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
43121
43121
  methods: {},
43122
43122
  status: {
43123
43123
  schema: ContactStatusSchema,
@@ -43229,7 +43229,7 @@ var controlCapability = {
43229
43229
  scope: "device",
43230
43230
  deviceNative: true,
43231
43231
  mode: "singleton",
43232
- deviceTypes: [require_device_type.DeviceType.Control],
43232
+ deviceTypes: [require_composed_stable_id.DeviceType.Control],
43233
43233
  methods: { setValue: require_sleep.method(zod.z.object({
43234
43234
  deviceId: zod.z.number().int().nonnegative(),
43235
43235
  control: ControlSetValueInputSchema
@@ -43673,7 +43673,7 @@ var mediaPlayerCapability = {
43673
43673
  scope: "device",
43674
43674
  deviceNative: true,
43675
43675
  mode: "singleton",
43676
- deviceTypes: [require_device_type.DeviceType.MediaPlayer],
43676
+ deviceTypes: [require_composed_stable_id.DeviceType.MediaPlayer],
43677
43677
  methods: {
43678
43678
  turnOn: require_sleep.method(deviceOnly, zod.z.void(), {
43679
43679
  kind: "mutation",
@@ -43817,14 +43817,14 @@ var CAP_CUSTOMIZE_CATALOG = {
43817
43817
  id: "level",
43818
43818
  cardinality: "scalar",
43819
43819
  deviceTypes: [
43820
- require_device_type.DeviceType.Camera,
43821
- require_device_type.DeviceType.Sensor,
43822
- require_device_type.DeviceType.Button,
43823
- require_device_type.DeviceType.Switch,
43824
- require_device_type.DeviceType.PetFeeder,
43825
- require_device_type.DeviceType.Container,
43826
- require_device_type.DeviceType.Thermostat,
43827
- require_device_type.DeviceType.EventEmitter
43820
+ require_composed_stable_id.DeviceType.Camera,
43821
+ require_composed_stable_id.DeviceType.Sensor,
43822
+ require_composed_stable_id.DeviceType.Button,
43823
+ require_composed_stable_id.DeviceType.Switch,
43824
+ require_composed_stable_id.DeviceType.PetFeeder,
43825
+ require_composed_stable_id.DeviceType.Container,
43826
+ require_composed_stable_id.DeviceType.Thermostat,
43827
+ require_composed_stable_id.DeviceType.EventEmitter
43828
43828
  ],
43829
43829
  apply: "add",
43830
43830
  vocabularyCap: "battery",
@@ -43873,44 +43873,44 @@ var CAP_CUSTOMIZE_CATALOG = {
43873
43873
  id: "items",
43874
43874
  cardinality: "keyedArray",
43875
43875
  deviceTypes: [
43876
- require_device_type.DeviceType.Camera,
43877
- require_device_type.DeviceType.Hub,
43878
- require_device_type.DeviceType.Light,
43879
- require_device_type.DeviceType.Siren,
43880
- require_device_type.DeviceType.Switch,
43881
- require_device_type.DeviceType.Sensor,
43882
- require_device_type.DeviceType.Thermostat,
43883
- require_device_type.DeviceType.Climate,
43884
- require_device_type.DeviceType.Button,
43885
- require_device_type.DeviceType.EventEmitter,
43886
- require_device_type.DeviceType.Update,
43887
- require_device_type.DeviceType.Generic,
43888
- require_device_type.DeviceType.Notifier,
43889
- require_device_type.DeviceType.Script,
43890
- require_device_type.DeviceType.Automation,
43891
- require_device_type.DeviceType.Lock,
43892
- require_device_type.DeviceType.Cover,
43893
- require_device_type.DeviceType.Valve,
43894
- require_device_type.DeviceType.Humidifier,
43895
- require_device_type.DeviceType.WaterHeater,
43896
- require_device_type.DeviceType.Fan,
43897
- require_device_type.DeviceType.MediaPlayer,
43898
- require_device_type.DeviceType.AlarmPanel,
43899
- require_device_type.DeviceType.Control,
43900
- require_device_type.DeviceType.Presence,
43901
- require_device_type.DeviceType.Weather,
43902
- require_device_type.DeviceType.Vacuum,
43903
- require_device_type.DeviceType.LawnMower,
43904
- require_device_type.DeviceType.Container,
43905
- require_device_type.DeviceType.Image,
43906
- require_device_type.DeviceType.PetFeeder,
43907
- require_device_type.DeviceType.PetFountain,
43908
- require_device_type.DeviceType.Dishwasher,
43909
- require_device_type.DeviceType.Washer,
43910
- require_device_type.DeviceType.Heater,
43911
- require_device_type.DeviceType.Dryer,
43912
- require_device_type.DeviceType.Gateway,
43913
- require_device_type.DeviceType.HeatPump
43876
+ require_composed_stable_id.DeviceType.Camera,
43877
+ require_composed_stable_id.DeviceType.Hub,
43878
+ require_composed_stable_id.DeviceType.Light,
43879
+ require_composed_stable_id.DeviceType.Siren,
43880
+ require_composed_stable_id.DeviceType.Switch,
43881
+ require_composed_stable_id.DeviceType.Sensor,
43882
+ require_composed_stable_id.DeviceType.Thermostat,
43883
+ require_composed_stable_id.DeviceType.Climate,
43884
+ require_composed_stable_id.DeviceType.Button,
43885
+ require_composed_stable_id.DeviceType.EventEmitter,
43886
+ require_composed_stable_id.DeviceType.Update,
43887
+ require_composed_stable_id.DeviceType.Generic,
43888
+ require_composed_stable_id.DeviceType.Notifier,
43889
+ require_composed_stable_id.DeviceType.Script,
43890
+ require_composed_stable_id.DeviceType.Automation,
43891
+ require_composed_stable_id.DeviceType.Lock,
43892
+ require_composed_stable_id.DeviceType.Cover,
43893
+ require_composed_stable_id.DeviceType.Valve,
43894
+ require_composed_stable_id.DeviceType.Humidifier,
43895
+ require_composed_stable_id.DeviceType.WaterHeater,
43896
+ require_composed_stable_id.DeviceType.Fan,
43897
+ require_composed_stable_id.DeviceType.MediaPlayer,
43898
+ require_composed_stable_id.DeviceType.AlarmPanel,
43899
+ require_composed_stable_id.DeviceType.Control,
43900
+ require_composed_stable_id.DeviceType.Presence,
43901
+ require_composed_stable_id.DeviceType.Weather,
43902
+ require_composed_stable_id.DeviceType.Vacuum,
43903
+ require_composed_stable_id.DeviceType.LawnMower,
43904
+ require_composed_stable_id.DeviceType.Container,
43905
+ require_composed_stable_id.DeviceType.Image,
43906
+ require_composed_stable_id.DeviceType.PetFeeder,
43907
+ require_composed_stable_id.DeviceType.PetFountain,
43908
+ require_composed_stable_id.DeviceType.Dishwasher,
43909
+ require_composed_stable_id.DeviceType.Washer,
43910
+ require_composed_stable_id.DeviceType.Heater,
43911
+ require_composed_stable_id.DeviceType.Dryer,
43912
+ require_composed_stable_id.DeviceType.Gateway,
43913
+ require_composed_stable_id.DeviceType.HeatPump
43914
43914
  ],
43915
43915
  apply: "add",
43916
43916
  vocabularyCap: "consumables",
@@ -44014,7 +44014,7 @@ var CAP_CUSTOMIZE_CATALOG = {
44014
44014
  targets: [{
44015
44015
  id: "pressed",
44016
44016
  cardinality: "event",
44017
- deviceTypes: [require_device_type.DeviceType.Camera],
44017
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
44018
44018
  apply: "add",
44019
44019
  vocabularyCap: "doorbell",
44020
44020
  vocabularyEvent: "onPressed",
@@ -44046,7 +44046,7 @@ var CAP_CUSTOMIZE_CATALOG = {
44046
44046
  targets: [{
44047
44047
  id: "presets",
44048
44048
  cardinality: "config",
44049
- deviceTypes: [require_device_type.DeviceType.Fan],
44049
+ deviceTypes: [require_composed_stable_id.DeviceType.Fan],
44050
44050
  apply: "add",
44051
44051
  readMethod: "getPresets",
44052
44052
  writeMethod: "setPresets",
@@ -44061,7 +44061,7 @@ var CAP_CUSTOMIZE_CATALOG = {
44061
44061
  targets: [{
44062
44062
  id: "door-contact",
44063
44063
  cardinality: "scalar",
44064
- deviceTypes: [require_device_type.DeviceType.Lock],
44064
+ deviceTypes: [require_composed_stable_id.DeviceType.Lock],
44065
44065
  apply: "replace",
44066
44066
  vocabularyCap: "lock-control",
44067
44067
  vocabularyStateField: "state",
@@ -44098,7 +44098,7 @@ var CAP_CUSTOMIZE_CATALOG = {
44098
44098
  targets: [{
44099
44099
  id: "detected",
44100
44100
  cardinality: "event",
44101
- deviceTypes: [require_device_type.DeviceType.Camera],
44101
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
44102
44102
  apply: "add",
44103
44103
  vocabularyCap: "motion",
44104
44104
  vocabularyEvent: "onMotionChanged",
@@ -44137,21 +44137,21 @@ var CAP_CUSTOMIZE_CATALOG = {
44137
44137
  id: "power",
44138
44138
  cardinality: "scalar",
44139
44139
  deviceTypes: [
44140
- require_device_type.DeviceType.Switch,
44141
- require_device_type.DeviceType.Light,
44142
- require_device_type.DeviceType.Fan,
44143
- require_device_type.DeviceType.Climate,
44144
- require_device_type.DeviceType.Thermostat,
44145
- require_device_type.DeviceType.Humidifier,
44146
- require_device_type.DeviceType.WaterHeater,
44147
- require_device_type.DeviceType.MediaPlayer,
44148
- require_device_type.DeviceType.Washer,
44149
- require_device_type.DeviceType.Dryer,
44150
- require_device_type.DeviceType.Dishwasher,
44151
- require_device_type.DeviceType.Vacuum,
44152
- require_device_type.DeviceType.LawnMower,
44153
- require_device_type.DeviceType.PetFeeder,
44154
- require_device_type.DeviceType.Heater
44140
+ require_composed_stable_id.DeviceType.Switch,
44141
+ require_composed_stable_id.DeviceType.Light,
44142
+ require_composed_stable_id.DeviceType.Fan,
44143
+ require_composed_stable_id.DeviceType.Climate,
44144
+ require_composed_stable_id.DeviceType.Thermostat,
44145
+ require_composed_stable_id.DeviceType.Humidifier,
44146
+ require_composed_stable_id.DeviceType.WaterHeater,
44147
+ require_composed_stable_id.DeviceType.MediaPlayer,
44148
+ require_composed_stable_id.DeviceType.Washer,
44149
+ require_composed_stable_id.DeviceType.Dryer,
44150
+ require_composed_stable_id.DeviceType.Dishwasher,
44151
+ require_composed_stable_id.DeviceType.Vacuum,
44152
+ require_composed_stable_id.DeviceType.LawnMower,
44153
+ require_composed_stable_id.DeviceType.PetFeeder,
44154
+ require_composed_stable_id.DeviceType.Heater
44155
44155
  ],
44156
44156
  apply: "add",
44157
44157
  vocabularyCap: "power-meter",
@@ -44177,21 +44177,21 @@ var CAP_CUSTOMIZE_CATALOG = {
44177
44177
  id: "energy",
44178
44178
  cardinality: "scalar",
44179
44179
  deviceTypes: [
44180
- require_device_type.DeviceType.Switch,
44181
- require_device_type.DeviceType.Light,
44182
- require_device_type.DeviceType.Fan,
44183
- require_device_type.DeviceType.Climate,
44184
- require_device_type.DeviceType.Thermostat,
44185
- require_device_type.DeviceType.Humidifier,
44186
- require_device_type.DeviceType.WaterHeater,
44187
- require_device_type.DeviceType.MediaPlayer,
44188
- require_device_type.DeviceType.Washer,
44189
- require_device_type.DeviceType.Dryer,
44190
- require_device_type.DeviceType.Dishwasher,
44191
- require_device_type.DeviceType.Vacuum,
44192
- require_device_type.DeviceType.LawnMower,
44193
- require_device_type.DeviceType.PetFeeder,
44194
- require_device_type.DeviceType.Heater
44180
+ require_composed_stable_id.DeviceType.Switch,
44181
+ require_composed_stable_id.DeviceType.Light,
44182
+ require_composed_stable_id.DeviceType.Fan,
44183
+ require_composed_stable_id.DeviceType.Climate,
44184
+ require_composed_stable_id.DeviceType.Thermostat,
44185
+ require_composed_stable_id.DeviceType.Humidifier,
44186
+ require_composed_stable_id.DeviceType.WaterHeater,
44187
+ require_composed_stable_id.DeviceType.MediaPlayer,
44188
+ require_composed_stable_id.DeviceType.Washer,
44189
+ require_composed_stable_id.DeviceType.Dryer,
44190
+ require_composed_stable_id.DeviceType.Dishwasher,
44191
+ require_composed_stable_id.DeviceType.Vacuum,
44192
+ require_composed_stable_id.DeviceType.LawnMower,
44193
+ require_composed_stable_id.DeviceType.PetFeeder,
44194
+ require_composed_stable_id.DeviceType.Heater
44195
44195
  ],
44196
44196
  apply: "add",
44197
44197
  vocabularyCap: "power-meter",
@@ -44217,21 +44217,21 @@ var CAP_CUSTOMIZE_CATALOG = {
44217
44217
  id: "voltage",
44218
44218
  cardinality: "scalar",
44219
44219
  deviceTypes: [
44220
- require_device_type.DeviceType.Switch,
44221
- require_device_type.DeviceType.Light,
44222
- require_device_type.DeviceType.Fan,
44223
- require_device_type.DeviceType.Climate,
44224
- require_device_type.DeviceType.Thermostat,
44225
- require_device_type.DeviceType.Humidifier,
44226
- require_device_type.DeviceType.WaterHeater,
44227
- require_device_type.DeviceType.MediaPlayer,
44228
- require_device_type.DeviceType.Washer,
44229
- require_device_type.DeviceType.Dryer,
44230
- require_device_type.DeviceType.Dishwasher,
44231
- require_device_type.DeviceType.Vacuum,
44232
- require_device_type.DeviceType.LawnMower,
44233
- require_device_type.DeviceType.PetFeeder,
44234
- require_device_type.DeviceType.Heater
44220
+ require_composed_stable_id.DeviceType.Switch,
44221
+ require_composed_stable_id.DeviceType.Light,
44222
+ require_composed_stable_id.DeviceType.Fan,
44223
+ require_composed_stable_id.DeviceType.Climate,
44224
+ require_composed_stable_id.DeviceType.Thermostat,
44225
+ require_composed_stable_id.DeviceType.Humidifier,
44226
+ require_composed_stable_id.DeviceType.WaterHeater,
44227
+ require_composed_stable_id.DeviceType.MediaPlayer,
44228
+ require_composed_stable_id.DeviceType.Washer,
44229
+ require_composed_stable_id.DeviceType.Dryer,
44230
+ require_composed_stable_id.DeviceType.Dishwasher,
44231
+ require_composed_stable_id.DeviceType.Vacuum,
44232
+ require_composed_stable_id.DeviceType.LawnMower,
44233
+ require_composed_stable_id.DeviceType.PetFeeder,
44234
+ require_composed_stable_id.DeviceType.Heater
44235
44235
  ],
44236
44236
  apply: "add",
44237
44237
  vocabularyCap: "power-meter",
@@ -44257,21 +44257,21 @@ var CAP_CUSTOMIZE_CATALOG = {
44257
44257
  id: "current",
44258
44258
  cardinality: "scalar",
44259
44259
  deviceTypes: [
44260
- require_device_type.DeviceType.Switch,
44261
- require_device_type.DeviceType.Light,
44262
- require_device_type.DeviceType.Fan,
44263
- require_device_type.DeviceType.Climate,
44264
- require_device_type.DeviceType.Thermostat,
44265
- require_device_type.DeviceType.Humidifier,
44266
- require_device_type.DeviceType.WaterHeater,
44267
- require_device_type.DeviceType.MediaPlayer,
44268
- require_device_type.DeviceType.Washer,
44269
- require_device_type.DeviceType.Dryer,
44270
- require_device_type.DeviceType.Dishwasher,
44271
- require_device_type.DeviceType.Vacuum,
44272
- require_device_type.DeviceType.LawnMower,
44273
- require_device_type.DeviceType.PetFeeder,
44274
- require_device_type.DeviceType.Heater
44260
+ require_composed_stable_id.DeviceType.Switch,
44261
+ require_composed_stable_id.DeviceType.Light,
44262
+ require_composed_stable_id.DeviceType.Fan,
44263
+ require_composed_stable_id.DeviceType.Climate,
44264
+ require_composed_stable_id.DeviceType.Thermostat,
44265
+ require_composed_stable_id.DeviceType.Humidifier,
44266
+ require_composed_stable_id.DeviceType.WaterHeater,
44267
+ require_composed_stable_id.DeviceType.MediaPlayer,
44268
+ require_composed_stable_id.DeviceType.Washer,
44269
+ require_composed_stable_id.DeviceType.Dryer,
44270
+ require_composed_stable_id.DeviceType.Dishwasher,
44271
+ require_composed_stable_id.DeviceType.Vacuum,
44272
+ require_composed_stable_id.DeviceType.LawnMower,
44273
+ require_composed_stable_id.DeviceType.PetFeeder,
44274
+ require_composed_stable_id.DeviceType.Heater
44275
44275
  ],
44276
44276
  apply: "add",
44277
44277
  vocabularyCap: "power-meter",
@@ -44301,21 +44301,21 @@ var CAP_CUSTOMIZE_CATALOG = {
44301
44301
  id: "switch",
44302
44302
  cardinality: "scalar",
44303
44303
  deviceTypes: [
44304
- require_device_type.DeviceType.Gateway,
44305
- require_device_type.DeviceType.Hub,
44306
- require_device_type.DeviceType.Camera,
44307
- require_device_type.DeviceType.Sensor,
44308
- require_device_type.DeviceType.MediaPlayer,
44309
- require_device_type.DeviceType.Vacuum,
44310
- require_device_type.DeviceType.Generic,
44311
- require_device_type.DeviceType.Washer,
44312
- require_device_type.DeviceType.Dryer,
44313
- require_device_type.DeviceType.Dishwasher,
44314
- require_device_type.DeviceType.PetFountain,
44315
- require_device_type.DeviceType.Fan,
44316
- require_device_type.DeviceType.Humidifier,
44317
- require_device_type.DeviceType.Climate,
44318
- require_device_type.DeviceType.WaterHeater
44304
+ require_composed_stable_id.DeviceType.Gateway,
44305
+ require_composed_stable_id.DeviceType.Hub,
44306
+ require_composed_stable_id.DeviceType.Camera,
44307
+ require_composed_stable_id.DeviceType.Sensor,
44308
+ require_composed_stable_id.DeviceType.MediaPlayer,
44309
+ require_composed_stable_id.DeviceType.Vacuum,
44310
+ require_composed_stable_id.DeviceType.Generic,
44311
+ require_composed_stable_id.DeviceType.Washer,
44312
+ require_composed_stable_id.DeviceType.Dryer,
44313
+ require_composed_stable_id.DeviceType.Dishwasher,
44314
+ require_composed_stable_id.DeviceType.PetFountain,
44315
+ require_composed_stable_id.DeviceType.Fan,
44316
+ require_composed_stable_id.DeviceType.Humidifier,
44317
+ require_composed_stable_id.DeviceType.Climate,
44318
+ require_composed_stable_id.DeviceType.WaterHeater
44319
44319
  ],
44320
44320
  apply: "add",
44321
44321
  vocabularyCap: "power-source",
@@ -44348,7 +44348,7 @@ var CAP_CUSTOMIZE_CATALOG = {
44348
44348
  targets: [{
44349
44349
  id: "remote",
44350
44350
  cardinality: "config",
44351
- deviceTypes: [require_device_type.DeviceType.MediaPlayer],
44351
+ deviceTypes: [require_composed_stable_id.DeviceType.MediaPlayer],
44352
44352
  apply: "add",
44353
44353
  readMethod: "getConfig",
44354
44354
  writeMethod: "setConfig",
@@ -44364,19 +44364,19 @@ var CAP_CUSTOMIZE_CATALOG = {
44364
44364
  id: "running",
44365
44365
  cardinality: "scalar",
44366
44366
  deviceTypes: [
44367
- require_device_type.DeviceType.Washer,
44368
- require_device_type.DeviceType.Dryer,
44369
- require_device_type.DeviceType.Dishwasher,
44370
- require_device_type.DeviceType.Vacuum,
44371
- require_device_type.DeviceType.LawnMower,
44372
- require_device_type.DeviceType.MediaPlayer,
44373
- require_device_type.DeviceType.WaterHeater,
44374
- require_device_type.DeviceType.Humidifier,
44375
- require_device_type.DeviceType.Fan,
44376
- require_device_type.DeviceType.Climate,
44377
- require_device_type.DeviceType.Thermostat,
44378
- require_device_type.DeviceType.PetFeeder,
44379
- require_device_type.DeviceType.Heater
44367
+ require_composed_stable_id.DeviceType.Washer,
44368
+ require_composed_stable_id.DeviceType.Dryer,
44369
+ require_composed_stable_id.DeviceType.Dishwasher,
44370
+ require_composed_stable_id.DeviceType.Vacuum,
44371
+ require_composed_stable_id.DeviceType.LawnMower,
44372
+ require_composed_stable_id.DeviceType.MediaPlayer,
44373
+ require_composed_stable_id.DeviceType.WaterHeater,
44374
+ require_composed_stable_id.DeviceType.Humidifier,
44375
+ require_composed_stable_id.DeviceType.Fan,
44376
+ require_composed_stable_id.DeviceType.Climate,
44377
+ require_composed_stable_id.DeviceType.Thermostat,
44378
+ require_composed_stable_id.DeviceType.PetFeeder,
44379
+ require_composed_stable_id.DeviceType.Heater
44380
44380
  ],
44381
44381
  apply: "add",
44382
44382
  vocabularyCap: "running-state",
@@ -44403,7 +44403,7 @@ var CAP_CUSTOMIZE_CATALOG = {
44403
44403
  defaultThreshold: 5,
44404
44404
  defaultStartDwellMs: 3e4,
44405
44405
  defaultStopDwellMs: 18e4,
44406
- deviceTypeDefaults: { [require_device_type.DeviceType.MediaPlayer]: {
44406
+ deviceTypeDefaults: { [require_composed_stable_id.DeviceType.MediaPlayer]: {
44407
44407
  startDwellMs: 1e4,
44408
44408
  stopDwellMs: 1e4,
44409
44409
  minSamples: 1
@@ -45092,9 +45092,9 @@ function numeric(input) {
45092
45092
  return {
45093
45093
  ...base,
45094
45094
  family: "numeric",
45095
- deviceType: require_device_type.DeviceType.Sensor,
45096
- memberDeviceType: require_device_type.DeviceType.Sensor,
45097
- memberDeviceTypes: [require_device_type.DeviceType.Sensor, ...alsoFrom?.deviceTypes ?? []],
45095
+ deviceType: require_composed_stable_id.DeviceType.Sensor,
45096
+ memberDeviceType: require_composed_stable_id.DeviceType.Sensor,
45097
+ memberDeviceTypes: [require_composed_stable_id.DeviceType.Sensor, ...alsoFrom?.deviceTypes ?? []],
45098
45098
  activeWhen: void 0,
45099
45099
  commandCaps: [],
45100
45100
  baseUnit: require_sleep.baseUnitOf(input.quantity),
@@ -45105,14 +45105,14 @@ function numeric(input) {
45105
45105
  }, ...alsoFrom === void 0 ? [] : [alsoFrom.accept]]
45106
45106
  };
45107
45107
  }
45108
- var CLIMATE_DEVICES = [require_device_type.DeviceType.Thermostat, require_device_type.DeviceType.Climate];
45108
+ var CLIMATE_DEVICES = [require_composed_stable_id.DeviceType.Thermostat, require_composed_stable_id.DeviceType.Climate];
45109
45109
  function binary(input) {
45110
45110
  return {
45111
45111
  ...input,
45112
45112
  family: "binary",
45113
- deviceType: require_device_type.DeviceType.Sensor,
45114
- memberDeviceType: require_device_type.DeviceType.Sensor,
45115
- memberDeviceTypes: [require_device_type.DeviceType.Sensor],
45113
+ deviceType: require_composed_stable_id.DeviceType.Sensor,
45114
+ memberDeviceType: require_composed_stable_id.DeviceType.Sensor,
45115
+ memberDeviceTypes: [require_composed_stable_id.DeviceType.Sensor],
45116
45116
  activeWhen: void 0,
45117
45117
  commandCaps: [],
45118
45118
  quantity: "none",
@@ -45125,7 +45125,7 @@ var GROUP_TEMPLATES = [
45125
45125
  numeric({
45126
45126
  id: "temperature",
45127
45127
  summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
45128
- role: require_device_type.DeviceRole.TemperatureSensor,
45128
+ role: require_composed_stable_id.DeviceRole.TemperatureSensor,
45129
45129
  outputCap: "temperature-sensor",
45130
45130
  outputField: "temperature",
45131
45131
  quantity: "temperature",
@@ -45143,7 +45143,7 @@ var GROUP_TEMPLATES = [
45143
45143
  numeric({
45144
45144
  id: "humidity",
45145
45145
  summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
45146
- role: require_device_type.DeviceRole.HumiditySensor,
45146
+ role: require_composed_stable_id.DeviceRole.HumiditySensor,
45147
45147
  outputCap: "humidity-sensor",
45148
45148
  outputField: "humidity",
45149
45149
  quantity: "humidity",
@@ -45161,7 +45161,7 @@ var GROUP_TEMPLATES = [
45161
45161
  numeric({
45162
45162
  id: "pressure",
45163
45163
  summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
45164
- role: require_device_type.DeviceRole.PressureSensor,
45164
+ role: require_composed_stable_id.DeviceRole.PressureSensor,
45165
45165
  outputCap: "pressure-sensor",
45166
45166
  outputField: "pressure",
45167
45167
  quantity: "pressure",
@@ -45172,7 +45172,7 @@ var GROUP_TEMPLATES = [
45172
45172
  numeric({
45173
45173
  id: "illuminance",
45174
45174
  summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
45175
- role: require_device_type.DeviceRole.AmbientLightSensor,
45175
+ role: require_composed_stable_id.DeviceRole.AmbientLightSensor,
45176
45176
  outputCap: "ambient-light-sensor",
45177
45177
  outputField: "illuminance",
45178
45178
  quantity: "illuminance",
@@ -45183,7 +45183,7 @@ var GROUP_TEMPLATES = [
45183
45183
  numeric({
45184
45184
  id: "power",
45185
45185
  summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
45186
- role: require_device_type.DeviceRole.PowerSensor,
45186
+ role: require_composed_stable_id.DeviceRole.PowerSensor,
45187
45187
  outputCap: "power-meter",
45188
45188
  outputField: "power",
45189
45189
  quantity: "power",
@@ -45194,7 +45194,7 @@ var GROUP_TEMPLATES = [
45194
45194
  numeric({
45195
45195
  id: "energy",
45196
45196
  summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
45197
- role: require_device_type.DeviceRole.EnergySensor,
45197
+ role: require_composed_stable_id.DeviceRole.EnergySensor,
45198
45198
  outputCap: "power-meter",
45199
45199
  outputField: "energy",
45200
45200
  quantity: "energy",
@@ -45205,7 +45205,7 @@ var GROUP_TEMPLATES = [
45205
45205
  numeric({
45206
45206
  id: "battery",
45207
45207
  summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
45208
- role: require_device_type.DeviceRole.BatterySensor,
45208
+ role: require_composed_stable_id.DeviceRole.BatterySensor,
45209
45209
  outputCap: "battery",
45210
45210
  outputField: "level",
45211
45211
  quantity: "percentage",
@@ -45229,7 +45229,7 @@ var GROUP_TEMPLATES = [
45229
45229
  numeric({
45230
45230
  id: "numeric",
45231
45231
  summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
45232
- role: require_device_type.DeviceRole.NumericSensor,
45232
+ role: require_composed_stable_id.DeviceRole.NumericSensor,
45233
45233
  outputCap: "numeric-sensor",
45234
45234
  outputField: "value",
45235
45235
  quantity: "device",
@@ -45240,7 +45240,7 @@ var GROUP_TEMPLATES = [
45240
45240
  binary({
45241
45241
  id: "motion",
45242
45242
  summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
45243
- role: require_device_type.DeviceRole.MotionSensor,
45243
+ role: require_composed_stable_id.DeviceRole.MotionSensor,
45244
45244
  outputCap: "motion",
45245
45245
  outputField: "detected",
45246
45246
  defaultAggregate: "any",
@@ -45259,7 +45259,7 @@ var GROUP_TEMPLATES = [
45259
45259
  binary({
45260
45260
  id: "contact",
45261
45261
  summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
45262
- role: require_device_type.DeviceRole.ContactSensor,
45262
+ role: require_composed_stable_id.DeviceRole.ContactSensor,
45263
45263
  outputCap: "contact",
45264
45264
  outputField: "entryOpen",
45265
45265
  defaultAggregate: "any",
@@ -45272,7 +45272,7 @@ var GROUP_TEMPLATES = [
45272
45272
  binary({
45273
45273
  id: "leak",
45274
45274
  summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
45275
- role: require_device_type.DeviceRole.LeakSensor,
45275
+ role: require_composed_stable_id.DeviceRole.LeakSensor,
45276
45276
  outputCap: "flood",
45277
45277
  outputField: "flooded",
45278
45278
  defaultAggregate: "any",
@@ -45285,7 +45285,7 @@ var GROUP_TEMPLATES = [
45285
45285
  binary({
45286
45286
  id: "smoke",
45287
45287
  summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
45288
- role: require_device_type.DeviceRole.SmokeSensor,
45288
+ role: require_composed_stable_id.DeviceRole.SmokeSensor,
45289
45289
  outputCap: "smoke",
45290
45290
  outputField: "detected",
45291
45291
  defaultAggregate: "any",
@@ -45298,7 +45298,7 @@ var GROUP_TEMPLATES = [
45298
45298
  binary({
45299
45299
  id: "occupancy",
45300
45300
  summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
45301
- role: require_device_type.DeviceRole.BinarySensor,
45301
+ role: require_composed_stable_id.DeviceRole.BinarySensor,
45302
45302
  outputCap: "binary",
45303
45303
  outputField: "on",
45304
45304
  defaultAggregate: "any",
@@ -45314,7 +45314,7 @@ var GROUP_TEMPLATES = [
45314
45314
  binary({
45315
45315
  id: "binary",
45316
45316
  summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
45317
- role: require_device_type.DeviceRole.BinarySensor,
45317
+ role: require_composed_stable_id.DeviceRole.BinarySensor,
45318
45318
  outputCap: "binary",
45319
45319
  outputField: "on",
45320
45320
  defaultAggregate: "any",
@@ -45327,7 +45327,7 @@ var GROUP_TEMPLATES = [
45327
45327
  actuator({
45328
45328
  id: "switch",
45329
45329
  summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
45330
- deviceType: require_device_type.DeviceType.Switch,
45330
+ deviceType: require_composed_stable_id.DeviceType.Switch,
45331
45331
  outputCap: "switch",
45332
45332
  outputField: "on",
45333
45333
  member: {
@@ -45339,7 +45339,7 @@ var GROUP_TEMPLATES = [
45339
45339
  actuator({
45340
45340
  id: "light",
45341
45341
  summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
45342
- deviceType: require_device_type.DeviceType.Light,
45342
+ deviceType: require_composed_stable_id.DeviceType.Light,
45343
45343
  outputCap: "switch",
45344
45344
  outputField: "on",
45345
45345
  member: {
@@ -45355,7 +45355,7 @@ var GROUP_TEMPLATES = [
45355
45355
  actuator({
45356
45356
  id: "fan",
45357
45357
  summary: "On when at least one fan is on, or when all of them are. Speed, preset, direction and oscillation are offered only when every fan has them. A command is not sent to a fan that lacks it.",
45358
- deviceType: require_device_type.DeviceType.Fan,
45358
+ deviceType: require_composed_stable_id.DeviceType.Fan,
45359
45359
  outputCap: "switch",
45360
45360
  outputField: "on",
45361
45361
  member: {
@@ -45367,7 +45367,7 @@ var GROUP_TEMPLATES = [
45367
45367
  actuator({
45368
45368
  id: "cover",
45369
45369
  summary: "Open when at least one cover is open or part-open, or only when all of them are. Position and tilt are offered only when every cover has them. A cover that reports nothing is left out, never read as closed.",
45370
- deviceType: require_device_type.DeviceType.Cover,
45370
+ deviceType: require_composed_stable_id.DeviceType.Cover,
45371
45371
  outputCap: "group-active",
45372
45372
  outputField: "active",
45373
45373
  member: {
@@ -45384,7 +45384,7 @@ var GROUP_TEMPLATES = [
45384
45384
  actuator({
45385
45385
  id: "valve",
45386
45386
  summary: "Open when at least one valve is open or part-open, or only when all of them are. Position is offered only when every valve has it. A valve that reports nothing is left out, never read as closed.",
45387
- deviceType: require_device_type.DeviceType.Valve,
45387
+ deviceType: require_composed_stable_id.DeviceType.Valve,
45388
45388
  outputCap: "group-active",
45389
45389
  outputField: "active",
45390
45390
  member: {
@@ -45401,7 +45401,7 @@ var GROUP_TEMPLATES = [
45401
45401
  actuator({
45402
45402
  id: "lock",
45403
45403
  summary: "Locked when at least one lock is locked, or only when all of them are. A jammed or moving lock is not locked. Locking is one tap; unlocking the group needs a confirmation every time, and nothing is sent without it.",
45404
- deviceType: require_device_type.DeviceType.Lock,
45404
+ deviceType: require_composed_stable_id.DeviceType.Lock,
45405
45405
  outputCap: "group-active",
45406
45406
  outputField: "active",
45407
45407
  member: {
@@ -45414,7 +45414,7 @@ var GROUP_TEMPLATES = [
45414
45414
  actuator({
45415
45415
  id: "media-player",
45416
45416
  summary: "Playing when at least one player is playing, or only when all of them are. Volume is offered only when every player has it. A player that reports nothing is left out, never read as stopped.",
45417
- deviceType: require_device_type.DeviceType.MediaPlayer,
45417
+ deviceType: require_composed_stable_id.DeviceType.MediaPlayer,
45418
45418
  outputCap: "group-active",
45419
45419
  outputField: "active",
45420
45420
  member: {
@@ -45427,8 +45427,8 @@ var GROUP_TEMPLATES = [
45427
45427
  actuator({
45428
45428
  id: "climate",
45429
45429
  summary: "Running when at least one thermostat or air conditioner is not off, or only when all of them are. Target temperature and fan are offered only when every device has them. A device that reports nothing is left out, never read as off.",
45430
- deviceType: require_device_type.DeviceType.Thermostat,
45431
- memberDeviceTypes: [require_device_type.DeviceType.Thermostat, require_device_type.DeviceType.Climate],
45430
+ deviceType: require_composed_stable_id.DeviceType.Thermostat,
45431
+ memberDeviceTypes: [require_composed_stable_id.DeviceType.Thermostat, require_composed_stable_id.DeviceType.Climate],
45432
45432
  outputCap: "group-active",
45433
45433
  outputField: "active",
45434
45434
  member: {
@@ -45487,9 +45487,9 @@ var LIGHT_SHARED_CAPS = [
45487
45487
  "color"
45488
45488
  ];
45489
45489
  var COLOR_MODE_FEATURES = [
45490
- require_device_type.DeviceFeature.LightColorRgb,
45491
- require_device_type.DeviceFeature.LightColorHsv,
45492
- require_device_type.DeviceFeature.LightColorMired
45490
+ require_composed_stable_id.DeviceFeature.LightColorRgb,
45491
+ require_composed_stable_id.DeviceFeature.LightColorHsv,
45492
+ require_composed_stable_id.DeviceFeature.LightColorMired
45493
45493
  ];
45494
45494
  /** How many member calls run at once. The rest wait; none are dropped. */
45495
45495
  var FAN_OUT_CONCURRENCY = 4;
@@ -45820,7 +45820,7 @@ var HISTORY_CATALOG = {
45820
45820
  } },
45821
45821
  "motion": { "detected": {
45822
45822
  kind: "boolean",
45823
- excludeDeviceTypes: [require_device_type.DeviceType.Camera]
45823
+ excludeDeviceTypes: [require_composed_stable_id.DeviceType.Camera]
45824
45824
  } },
45825
45825
  "network-link": {
45826
45826
  "signal": {
@@ -46142,7 +46142,7 @@ function draft(input) {
46142
46142
  return {
46143
46143
  target: {
46144
46144
  kind: "new",
46145
- type: require_device_type.DeviceType.Sensor,
46145
+ type: require_composed_stable_id.DeviceType.Sensor,
46146
46146
  role: input.role
46147
46147
  },
46148
46148
  helper: input.spec,
@@ -46170,7 +46170,7 @@ function statisticDraft(spec, retention = require_composition.DEFAULT_HISTORY_RE
46170
46170
  return {
46171
46171
  problems,
46172
46172
  draft: draft({
46173
- role: require_device_type.DeviceRole.NumericSensor,
46173
+ role: require_composed_stable_id.DeviceRole.NumericSensor,
46174
46174
  cap: "numeric-sensor",
46175
46175
  field: "value",
46176
46176
  empty: "null",
@@ -46193,7 +46193,7 @@ function derivativeDraft(spec, retention = require_composition.DEFAULT_HISTORY_R
46193
46193
  return {
46194
46194
  problems,
46195
46195
  draft: draft({
46196
- role: require_device_type.DeviceRole.NumericSensor,
46196
+ role: require_composed_stable_id.DeviceRole.NumericSensor,
46197
46197
  cap: "numeric-sensor",
46198
46198
  field: "value",
46199
46199
  empty: "null",
@@ -46215,7 +46215,7 @@ function integralDraft(spec, retention = require_composition.DEFAULT_HISTORY_RET
46215
46215
  return {
46216
46216
  problems,
46217
46217
  draft: draft({
46218
- role: energy ? require_device_type.DeviceRole.EnergySensor : require_device_type.DeviceRole.NumericSensor,
46218
+ role: energy ? require_composed_stable_id.DeviceRole.EnergySensor : require_composed_stable_id.DeviceRole.NumericSensor,
46219
46219
  cap: energy ? "power-meter" : "meter",
46220
46220
  field: energy ? "energy" : "value",
46221
46221
  empty: "offline",
@@ -46371,8 +46371,8 @@ function numericSensor(helper, value, extra = []) {
46371
46371
  return {
46372
46372
  target: {
46373
46373
  kind: "new",
46374
- type: require_device_type.DeviceType.Sensor,
46375
- role: require_device_type.DeviceRole.NumericSensor
46374
+ type: require_composed_stable_id.DeviceType.Sensor,
46375
+ role: require_composed_stable_id.DeviceRole.NumericSensor
46376
46376
  },
46377
46377
  helper,
46378
46378
  features: [{
@@ -46389,8 +46389,8 @@ function binarySensor(helper, on) {
46389
46389
  return {
46390
46390
  target: {
46391
46391
  kind: "new",
46392
- type: require_device_type.DeviceType.Sensor,
46393
- role: require_device_type.DeviceRole.BinarySensor
46392
+ type: require_composed_stable_id.DeviceType.Sensor,
46393
+ role: require_composed_stable_id.DeviceRole.BinarySensor
46394
46394
  },
46395
46395
  helper,
46396
46396
  features: [{
@@ -46900,7 +46900,7 @@ function buildCapabilityLookup(defs) {
46900
46900
  var BASE_DEVICE_CAPS = new Set(["device-status", "feature-probe"]);
46901
46901
  var PENDING_SELF = {
46902
46902
  addonId: require_composition.COMPOSER_ADDON_ID,
46903
- stableId: `${require_composition.COMPOSED_DEVICE_STABLE_ID_PREFIX}(unsaved)`
46903
+ stableId: `${require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX}(unsaved)`
46904
46904
  };
46905
46905
  /** The candidate's block id before its first save. Stored block ids are `randomUUID()`, so none can carry it. */
46906
46906
  var PENDING_BLOCK_ID = "(unsaved)";
@@ -48023,7 +48023,7 @@ var coreBlocksCapability = {
48023
48023
  * from the validator's own blockers; a replace of a BOUND cap is not
48024
48024
  * listed here (the device's bindings say what it has).
48025
48025
  */
48026
- listComposableCaps: require_sleep.method(zod.z.object({ deviceType: zod.z.enum(require_device_type.DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }),
48026
+ listComposableCaps: require_sleep.method(zod.z.object({ deviceType: zod.z.enum(require_composed_stable_id.DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }),
48027
48027
  /**
48028
48028
  * Validate without saving — the same verdict the save reaches. A mutation
48029
48029
  * for its body size; it writes nothing, so its access is `view`.
@@ -48046,7 +48046,7 @@ var coreBlocksCapability = {
48046
48046
  deviceId: zod.z.number().int(),
48047
48047
  cap: zod.z.string().min(1),
48048
48048
  fieldPath: zod.z.string().min(1),
48049
- deviceType: zod.z.enum(require_device_type.DeviceType).optional()
48049
+ deviceType: zod.z.enum(require_composed_stable_id.DeviceType).optional()
48050
48050
  }), RunningThresholdProposalSchema, {
48051
48051
  auth: "admin",
48052
48052
  access: "view"
@@ -48122,7 +48122,7 @@ var coverCapability = {
48122
48122
  scope: "device",
48123
48123
  deviceNative: true,
48124
48124
  mode: "singleton",
48125
- deviceTypes: [require_device_type.DeviceType.Cover],
48125
+ deviceTypes: [require_composed_stable_id.DeviceType.Cover],
48126
48126
  methods: {
48127
48127
  open: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
48128
48128
  kind: "mutation",
@@ -48613,7 +48613,7 @@ var dayNightCapability = {
48613
48613
  scope: "device",
48614
48614
  deviceNative: true,
48615
48615
  mode: "singleton",
48616
- deviceTypes: [require_device_type.DeviceType.Camera],
48616
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
48617
48617
  deviceConfig: { ui: {
48618
48618
  kind: "derived-form",
48619
48619
  builderId: "day-night",
@@ -48771,7 +48771,7 @@ var detectionPipelineCapability = {
48771
48771
  mode: "singleton",
48772
48772
  kind: "wrapper",
48773
48773
  defaultActive: true,
48774
- deviceTypes: [require_device_type.DeviceType.Camera],
48774
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
48775
48775
  exposesDeviceSettings: true,
48776
48776
  methods: {}
48777
48777
  };
@@ -48927,7 +48927,7 @@ var DiscoveredChildDeviceSchema = zod.z.lazy(() => zod.z.object({
48927
48927
  /** Friendly name as reported by the source (Reolink camera name, ONVIF profile, ...). */
48928
48928
  name: zod.z.string(),
48929
48929
  /** DeviceType the child should be created with on adopt. */
48930
- type: zod.z.enum(require_device_type.DeviceType),
48930
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
48931
48931
  status: DiscoveredChildStatusSchema,
48932
48932
  /** Free-form integration-specific metadata surfaced in the panel. */
48933
48933
  metadata: zod.z.object({
@@ -48985,7 +48985,7 @@ var deviceDiscoveryCapability = {
48985
48985
  scope: "device",
48986
48986
  deviceNative: true,
48987
48987
  mode: "singleton",
48988
- deviceTypes: [require_device_type.DeviceType.Hub],
48988
+ deviceTypes: [require_composed_stable_id.DeviceType.Hub],
48989
48989
  status: {
48990
48990
  schema: DeviceDiscoveryStatusSchema,
48991
48991
  kind: "poll"
@@ -49988,7 +49988,7 @@ var DiscoveryHitSchema = zod.z.object({
49988
49988
  */
49989
49989
  var DiscoveryCandidateSchema = zod.z.object({
49990
49990
  stableId: zod.z.string(),
49991
- type: zod.z.enum(require_device_type.DeviceType),
49991
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
49992
49992
  suggestedName: zod.z.string(),
49993
49993
  prefilledConfig: zod.z.record(zod.z.string(), zod.z.unknown()),
49994
49994
  /**
@@ -50162,7 +50162,7 @@ var deviceProviderCapability = {
50162
50162
  */
50163
50163
  getManualCreationType: require_sleep.method(zod.z.object({
50164
50164
  /** The integration asked about; a provider whose integrations differ answers per one. */
50165
- integrationId: zod.z.string().optional() }), zod.z.object({ deviceType: zod.z.enum(require_device_type.DeviceType).nullable() })),
50165
+ integrationId: zod.z.string().optional() }), zod.z.object({ deviceType: zod.z.enum(require_composed_stable_id.DeviceType).nullable() })),
50166
50166
  adoptDiscoveredDevice: require_sleep.method(zod.z.object({
50167
50167
  candidate: DiscoveryCandidateSchema,
50168
50168
  /** The integration the operator adopts into; a provider with several instances needs it. */
@@ -50179,12 +50179,12 @@ integrationId: zod.z.string().optional() }), zod.z.object({ deviceType: zod.z.en
50179
50179
  * router type-asserts it at the boundary.
50180
50180
  */
50181
50181
  getChildCreationSchema: require_sleep.method(zod.z.object({
50182
- type: zod.z.enum(require_device_type.DeviceType),
50182
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
50183
50183
  /** The integration asked about; a provider whose integrations differ answers per one. */
50184
50184
  integrationId: zod.z.string().optional()
50185
50185
  }), CreationSchemaOutputSchema),
50186
50186
  createDevice: require_sleep.method(zod.z.object({
50187
- type: zod.z.enum(require_device_type.DeviceType),
50187
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
50188
50188
  config: zod.z.record(zod.z.string(), zod.z.unknown()),
50189
50189
  /** The integration the operator adds the device to; a provider with several instances needs it. */
50190
50190
  integrationId: zod.z.string().optional()
@@ -50205,7 +50205,7 @@ integrationId: zod.z.string().optional() }), zod.z.object({ deviceType: zod.z.en
50205
50205
  * for backwards compatibility; providers free to ignore it.
50206
50206
  */
50207
50207
  testCreationField: require_sleep.method(zod.z.object({
50208
- type: zod.z.enum(require_device_type.DeviceType),
50208
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
50209
50209
  key: zod.z.string(),
50210
50210
  value: zod.z.unknown(),
50211
50211
  formValues: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
@@ -50326,7 +50326,7 @@ var DeviceInfoSchema = zod.z.object({
50326
50326
  id: zod.z.number(),
50327
50327
  stableId: zod.z.string(),
50328
50328
  addonId: zod.z.string(),
50329
- type: zod.z.enum(require_device_type.DeviceType),
50329
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
50330
50330
  name: zod.z.string(),
50331
50331
  /** The name a value template uses for this device (`{{ stufa_veranda.temperature }}`),
50332
50332
  * entity_id style. Generated once from the name at first registration, unique
@@ -50429,7 +50429,7 @@ var LINKED_DEVICES_SLOT = {
50429
50429
  label: "Linked devices",
50430
50430
  description: "Companion devices of this camera: their controls appear with it, and the ones you opt in produce tracked events on it.",
50431
50431
  shape: "association",
50432
- hostDeviceTypes: [require_device_type.DeviceType.Camera],
50432
+ hostDeviceTypes: [require_composed_stable_id.DeviceType.Camera],
50433
50433
  sourceCaps: "any",
50434
50434
  cardinality: "many",
50435
50435
  value: LinkedDevicesSlotValueSchema
@@ -50724,7 +50724,13 @@ var deviceManagerCapability = {
50724
50724
  * row + emits `EventCategory.DeviceMetaChanged`. */
50725
50725
  setName: require_sleep.method(zod.z.object({
50726
50726
  deviceId: zod.z.number(),
50727
- name: zod.z.string()
50727
+ name: zod.z.string(),
50728
+ /**
50729
+ * Absent or true: an operator rename, which stamps `userNamed`.
50730
+ * False: the system copying a block name onto the device. That write
50731
+ * must not look like the operator's, or the next reconcile freezes it.
50732
+ */
50733
+ stampUserNamed: zod.z.boolean().optional()
50728
50734
  }), zod.z.void(), {
50729
50735
  kind: "mutation",
50730
50736
  auth: "admin"
@@ -50801,7 +50807,7 @@ var deviceManagerCapability = {
50801
50807
  * placeholder `'generic'`. */
50802
50808
  setType: require_sleep.method(zod.z.object({
50803
50809
  deviceId: zod.z.number(),
50804
- type: zod.z.enum(require_device_type.DeviceType)
50810
+ type: zod.z.enum(require_composed_stable_id.DeviceType)
50805
50811
  }), zod.z.void(), {
50806
50812
  kind: "mutation",
50807
50813
  auth: "admin"
@@ -50933,7 +50939,7 @@ var deviceManagerCapability = {
50933
50939
  deviceId: zod.z.number(),
50934
50940
  name: zod.z.string().optional(),
50935
50941
  location: zod.z.string().nullable().optional(),
50936
- type: zod.z.enum(require_device_type.DeviceType).optional(),
50942
+ type: zod.z.enum(require_composed_stable_id.DeviceType).optional(),
50937
50943
  integrationId: zod.z.string().optional(),
50938
50944
  linkDeviceId: zod.z.number().nullable().optional(),
50939
50945
  role: zod.z.string().nullable().optional()
@@ -51520,7 +51526,7 @@ var deviceManagerCapability = {
51520
51526
  */
51521
51527
  getCreationSchema: require_sleep.method(zod.z.object({
51522
51528
  addonId: zod.z.string(),
51523
- type: zod.z.enum(require_device_type.DeviceType),
51529
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
51524
51530
  /** The integration the form is for; a provider whose integrations differ (a hub
51525
51531
  * integration takes no manual add) answers per integration. Absent = the addon's own. */
51526
51532
  integrationId: zod.z.string().optional()
@@ -51528,7 +51534,7 @@ var deviceManagerCapability = {
51528
51534
  /** Create a new device via the device-provider capability. */
51529
51535
  createDevice: require_sleep.method(zod.z.object({
51530
51536
  addonId: zod.z.string(),
51531
- type: zod.z.enum(require_device_type.DeviceType),
51537
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
51532
51538
  config: zod.z.record(zod.z.string(), zod.z.unknown()),
51533
51539
  /** Owning integration id, stamped onto the new device's meta by the
51534
51540
  * device-manager forwarder so `removeByIntegration` can cascade it.
@@ -51548,7 +51554,7 @@ var deviceManagerCapability = {
51548
51554
  */
51549
51555
  testCreationField: require_sleep.method(zod.z.object({
51550
51556
  addonId: zod.z.string(),
51551
- type: zod.z.enum(require_device_type.DeviceType),
51557
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
51552
51558
  key: zod.z.string(),
51553
51559
  value: zod.z.unknown(),
51554
51560
  formValues: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
@@ -51674,7 +51680,7 @@ var deviceManagerCapability = {
51674
51680
  addonId: zod.z.string(),
51675
51681
  /** The integration the Add-Device dialog is open on; absent = the addon's own. */
51676
51682
  integrationId: zod.z.string().optional()
51677
- }), zod.z.object({ deviceType: zod.z.enum(require_device_type.DeviceType).nullable() }), { auth: "admin" }),
51683
+ }), zod.z.object({ deviceType: zod.z.enum(require_composed_stable_id.DeviceType).nullable() }), { auth: "admin" }),
51678
51684
  /** A provider's extra per-scan param form (ConfigUISchema) for the
51679
51685
  * per-integration scan, or null when it takes none. */
51680
51686
  providerDiscoveryParamsSchema: require_sleep.method(zod.z.object({ addonId: zod.z.string() }), zod.z.unknown(), { auth: "admin" }),
@@ -51755,12 +51761,12 @@ var ExtensionSlotIdSchema = zod.z.enum(EXTENSION_SLOT_IDS);
51755
51761
  var EXTENSION_SLOTS = { "linked-devices": {
51756
51762
  descriptor: LINKED_DEVICES_SLOT,
51757
51763
  declaringCap: "device-manager",
51758
- hostDeviceTypes: [require_device_type.DeviceType.Camera]
51764
+ hostDeviceTypes: [require_composed_stable_id.DeviceType.Camera]
51759
51765
  } };
51760
51766
  /** A slot's editable value, discriminated on `slot`. */
51761
51767
  var ExtensionSlotValueSchema = zod.z.discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: zod.z.literal("linked-devices") })]);
51762
51768
  /** Every device type at least one slot is offered on — `device-extension`'s `deviceTypes`. */
51763
- var EXTENSION_HOST_DEVICE_TYPES = [require_device_type.DeviceType.Camera];
51769
+ var EXTENSION_HOST_DEVICE_TYPES = [require_composed_stable_id.DeviceType.Camera];
51764
51770
  //#endregion
51765
51771
  //#region src/capabilities/device-extension.cap.ts
51766
51772
  /**
@@ -52510,9 +52516,9 @@ var DeviceRunSchema = zod.z.object({
52510
52516
  });
52511
52517
  /** Runs of these types are recorded in P1. */
52512
52518
  var DEVICE_RUNS_DEVICE_TYPES = [
52513
- require_device_type.DeviceType.Washer,
52514
- require_device_type.DeviceType.Dryer,
52515
- require_device_type.DeviceType.Dishwasher
52519
+ require_composed_stable_id.DeviceType.Washer,
52520
+ require_composed_stable_id.DeviceType.Dryer,
52521
+ require_composed_stable_id.DeviceType.Dishwasher
52516
52522
  ];
52517
52523
  var DEVICE_RUNS_MAX_PAGE = 200;
52518
52524
  var deviceRunsCapability = {
@@ -52854,7 +52860,7 @@ var deviceTransitionsCapability = {
52854
52860
  mode: "singleton",
52855
52861
  kind: "wrapper",
52856
52862
  defaultActive: true,
52857
- deviceTypes: Object.values(require_device_type.DeviceType).filter((type) => type !== require_device_type.DeviceType.Hub && type !== require_device_type.DeviceType.Container),
52863
+ deviceTypes: Object.values(require_composed_stable_id.DeviceType).filter((type) => type !== require_composed_stable_id.DeviceType.Hub && type !== require_composed_stable_id.DeviceType.Container),
52858
52864
  methods: {
52859
52865
  /**
52860
52866
  * Transitions of a device, newest first. `limit` is bounded; page with `cursor`.
@@ -53080,7 +53086,7 @@ var dishwasherCapability = {
53080
53086
  scope: "device",
53081
53087
  deviceNative: true,
53082
53088
  mode: "singleton",
53083
- deviceTypes: [require_device_type.DeviceType.Dishwasher],
53089
+ deviceTypes: [require_composed_stable_id.DeviceType.Dishwasher],
53084
53090
  methods: {
53085
53091
  /**
53086
53092
  * Start a program. Without `program` the selected one starts. `options` are
@@ -53930,7 +53936,7 @@ var doNotDisturbCapability = {
53930
53936
  scope: "device",
53931
53937
  deviceNative: true,
53932
53938
  mode: "singleton",
53933
- deviceTypes: [require_device_type.DeviceType.MediaPlayer],
53939
+ deviceTypes: [require_composed_stable_id.DeviceType.MediaPlayer],
53934
53940
  methods: { setEnabled: require_sleep.method(zod.z.object({
53935
53941
  deviceId: zod.z.number().int(),
53936
53942
  enabled: zod.z.boolean()
@@ -53969,7 +53975,7 @@ var doorbellCustomize = {
53969
53975
  cap: "doorbell",
53970
53976
  eventName: "onPressed"
53971
53977
  },
53972
- deviceTypes: [require_device_type.DeviceType.Camera],
53978
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
53973
53979
  apply: "add",
53974
53980
  applyAuthority: { kind: "composition-claim" },
53975
53981
  eventName: "onPressed",
@@ -54019,7 +54025,7 @@ var doorbellCapability = {
54019
54025
  scope: "device",
54020
54026
  deviceNative: true,
54021
54027
  mode: "singleton",
54022
- deviceTypes: [require_device_type.DeviceType.Button, require_device_type.DeviceType.Camera],
54028
+ deviceTypes: [require_composed_stable_id.DeviceType.Button, require_composed_stable_id.DeviceType.Camera],
54023
54029
  methods: {},
54024
54030
  events: {
54025
54031
  /**
@@ -54285,7 +54291,7 @@ var enumSensorCapability = {
54285
54291
  scope: "device",
54286
54292
  deviceNative: true,
54287
54293
  mode: "singleton",
54288
- deviceTypes: [require_device_type.DeviceType.Sensor],
54294
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
54289
54295
  methods: {},
54290
54296
  status: {
54291
54297
  schema: EnumSensorStatusSchema,
@@ -54342,7 +54348,7 @@ var eventEmitterCapability = {
54342
54348
  scope: "device",
54343
54349
  deviceNative: true,
54344
54350
  mode: "singleton",
54345
- deviceTypes: [require_device_type.DeviceType.EventEmitter],
54351
+ deviceTypes: [require_composed_stable_id.DeviceType.EventEmitter],
54346
54352
  methods: {},
54347
54353
  events: { onEvent: { data: EventFireSchema } },
54348
54354
  status: {
@@ -54944,7 +54950,7 @@ var fanControlCapability = {
54944
54950
  scope: "device",
54945
54951
  deviceNative: true,
54946
54952
  mode: "singleton",
54947
- deviceTypes: [require_device_type.DeviceType.Fan],
54953
+ deviceTypes: [require_composed_stable_id.DeviceType.Fan],
54948
54954
  methods: {
54949
54955
  setPercentage: require_sleep.method(zod.z.object({
54950
54956
  deviceId: zod.z.number().int().nonnegative(),
@@ -55109,7 +55115,7 @@ var fanPresetsCustomize = {
55109
55115
  id: "presets",
55110
55116
  cardinality: "config",
55111
55117
  vocabulary: { cap: "fan-presets" },
55112
- deviceTypes: [require_device_type.DeviceType.Fan],
55118
+ deviceTypes: [require_composed_stable_id.DeviceType.Fan],
55113
55119
  apply: "add",
55114
55120
  readMethod: "getPresets",
55115
55121
  writeMethod: "setPresets"
@@ -55292,7 +55298,7 @@ var floodCapability = {
55292
55298
  scope: "device",
55293
55299
  deviceNative: true,
55294
55300
  mode: "singleton",
55295
- deviceTypes: [require_device_type.DeviceType.Sensor],
55301
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
55296
55302
  methods: {},
55297
55303
  status: {
55298
55304
  schema: FloodStatusSchema,
@@ -55331,7 +55337,7 @@ var gasCapability = {
55331
55337
  scope: "device",
55332
55338
  deviceNative: true,
55333
55339
  mode: "singleton",
55334
- deviceTypes: [require_device_type.DeviceType.Sensor],
55340
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
55335
55341
  methods: {},
55336
55342
  status: {
55337
55343
  schema: GasStatusSchema,
@@ -55375,12 +55381,12 @@ var groupActiveCapability = {
55375
55381
  deviceNative: true,
55376
55382
  mode: "singleton",
55377
55383
  deviceTypes: [
55378
- require_device_type.DeviceType.Cover,
55379
- require_device_type.DeviceType.Valve,
55380
- require_device_type.DeviceType.Lock,
55381
- require_device_type.DeviceType.MediaPlayer,
55382
- require_device_type.DeviceType.Climate,
55383
- require_device_type.DeviceType.Thermostat
55384
+ require_composed_stable_id.DeviceType.Cover,
55385
+ require_composed_stable_id.DeviceType.Valve,
55386
+ require_composed_stable_id.DeviceType.Lock,
55387
+ require_composed_stable_id.DeviceType.MediaPlayer,
55388
+ require_composed_stable_id.DeviceType.Climate,
55389
+ require_composed_stable_id.DeviceType.Thermostat
55384
55390
  ],
55385
55391
  methods: {},
55386
55392
  status: {
@@ -55424,15 +55430,15 @@ var groupCommandsCapability = {
55424
55430
  deviceNative: true,
55425
55431
  mode: "singleton",
55426
55432
  deviceTypes: [
55427
- require_device_type.DeviceType.Switch,
55428
- require_device_type.DeviceType.Light,
55429
- require_device_type.DeviceType.Fan,
55430
- require_device_type.DeviceType.Cover,
55431
- require_device_type.DeviceType.Valve,
55432
- require_device_type.DeviceType.Lock,
55433
- require_device_type.DeviceType.MediaPlayer,
55434
- require_device_type.DeviceType.Thermostat,
55435
- require_device_type.DeviceType.Climate
55433
+ require_composed_stable_id.DeviceType.Switch,
55434
+ require_composed_stable_id.DeviceType.Light,
55435
+ require_composed_stable_id.DeviceType.Fan,
55436
+ require_composed_stable_id.DeviceType.Cover,
55437
+ require_composed_stable_id.DeviceType.Valve,
55438
+ require_composed_stable_id.DeviceType.Lock,
55439
+ require_composed_stable_id.DeviceType.MediaPlayer,
55440
+ require_composed_stable_id.DeviceType.Thermostat,
55441
+ require_composed_stable_id.DeviceType.Climate
55436
55442
  ],
55437
55443
  methods: {},
55438
55444
  status: {
@@ -55481,16 +55487,16 @@ var groupStatusCapability = {
55481
55487
  deviceNative: true,
55482
55488
  mode: "singleton",
55483
55489
  deviceTypes: [
55484
- require_device_type.DeviceType.Sensor,
55485
- require_device_type.DeviceType.Switch,
55486
- require_device_type.DeviceType.Light,
55487
- require_device_type.DeviceType.Fan,
55488
- require_device_type.DeviceType.Cover,
55489
- require_device_type.DeviceType.Valve,
55490
- require_device_type.DeviceType.Lock,
55491
- require_device_type.DeviceType.MediaPlayer,
55492
- require_device_type.DeviceType.Thermostat,
55493
- require_device_type.DeviceType.Climate
55490
+ require_composed_stable_id.DeviceType.Sensor,
55491
+ require_composed_stable_id.DeviceType.Switch,
55492
+ require_composed_stable_id.DeviceType.Light,
55493
+ require_composed_stable_id.DeviceType.Fan,
55494
+ require_composed_stable_id.DeviceType.Cover,
55495
+ require_composed_stable_id.DeviceType.Valve,
55496
+ require_composed_stable_id.DeviceType.Lock,
55497
+ require_composed_stable_id.DeviceType.MediaPlayer,
55498
+ require_composed_stable_id.DeviceType.Thermostat,
55499
+ require_composed_stable_id.DeviceType.Climate
55494
55500
  ],
55495
55501
  methods: {},
55496
55502
  status: {
@@ -55526,7 +55532,7 @@ var heatPumpControlCapability = {
55526
55532
  scope: "device",
55527
55533
  deviceNative: true,
55528
55534
  mode: "singleton",
55529
- deviceTypes: [require_device_type.DeviceType.HeatPump],
55535
+ deviceTypes: [require_composed_stable_id.DeviceType.HeatPump],
55530
55536
  methods: {
55531
55537
  /** off / auto / on. */
55532
55538
  setSilentMode: require_sleep.method(zod.z.object({
@@ -55758,7 +55764,7 @@ var heatPumpStatusCapability = {
55758
55764
  scope: "device",
55759
55765
  deviceNative: true,
55760
55766
  mode: "singleton",
55761
- deviceTypes: [require_device_type.DeviceType.HeatPump],
55767
+ deviceTypes: [require_composed_stable_id.DeviceType.HeatPump],
55762
55768
  methods: {},
55763
55769
  status: {
55764
55770
  schema: HeatPumpStatusSchema,
@@ -55865,7 +55871,7 @@ var heatingValveCapability = {
55865
55871
  scope: "device",
55866
55872
  deviceNative: true,
55867
55873
  mode: "singleton",
55868
- deviceTypes: [require_device_type.DeviceType.Thermostat],
55874
+ deviceTypes: [require_composed_stable_id.DeviceType.Thermostat],
55869
55875
  methods: {},
55870
55876
  status: {
55871
55877
  schema: HeatingValveStatusSchema,
@@ -55905,20 +55911,20 @@ var TimedRunUnitSchema = zod.z.enum(["s", "min"]);
55905
55911
  var TimedRunActuatorSchema = zod.z.enum(["switch", "pet-fountain"]);
55906
55912
  /** The longest run, per device type. Only these types are offered `timed-run`. */
55907
55913
  var TIMED_RUN_LIMITS = {
55908
- [require_device_type.DeviceType.Heater]: {
55914
+ [require_composed_stable_id.DeviceType.Heater]: {
55909
55915
  actuator: "switch",
55910
55916
  maxSeconds: 10800,
55911
55917
  unit: "min",
55912
55918
  quickRunDefault: 30
55913
55919
  },
55914
- [require_device_type.DeviceType.PetFountain]: {
55920
+ [require_composed_stable_id.DeviceType.PetFountain]: {
55915
55921
  actuator: "pet-fountain",
55916
55922
  maxSeconds: 300,
55917
55923
  unit: "s",
55918
55924
  quickRunDefault: 60
55919
55925
  }
55920
55926
  };
55921
- var TIMED_RUN_DEVICE_TYPES = [require_device_type.DeviceType.Heater, require_device_type.DeviceType.PetFountain];
55927
+ var TIMED_RUN_DEVICE_TYPES = [require_composed_stable_id.DeviceType.Heater, require_composed_stable_id.DeviceType.PetFountain];
55922
55928
  function timedRunLimitOf(deviceType) {
55923
55929
  return TIMED_RUN_LIMITS[deviceType] ?? null;
55924
55930
  }
@@ -56187,111 +56193,111 @@ var HeroSceneSchema = zod.z.object({
56187
56193
  level: zod.z.number().min(0).max(1).nullable()
56188
56194
  });
56189
56195
  var HERO_SCENE_BY_TYPE = {
56190
- [require_device_type.DeviceType.Camera]: "camera",
56191
- [require_device_type.DeviceType.Hub]: "gateway",
56192
- [require_device_type.DeviceType.Light]: "light",
56193
- [require_device_type.DeviceType.Siren]: "siren",
56194
- [require_device_type.DeviceType.Switch]: "plug",
56195
- [require_device_type.DeviceType.Sensor]: "sensor-sparkline",
56196
- [require_device_type.DeviceType.Thermostat]: "thermostat",
56197
- [require_device_type.DeviceType.Climate]: "ac",
56198
- [require_device_type.DeviceType.Button]: "button",
56199
- [require_device_type.DeviceType.EventEmitter]: "event-stream",
56200
- [require_device_type.DeviceType.Update]: "update",
56201
- [require_device_type.DeviceType.Generic]: "generic",
56202
- [require_device_type.DeviceType.Notifier]: "event-stream",
56203
- [require_device_type.DeviceType.Script]: "event-stream",
56204
- [require_device_type.DeviceType.Automation]: "event-stream",
56205
- [require_device_type.DeviceType.Lock]: "lock",
56206
- [require_device_type.DeviceType.Cover]: "cover",
56207
- [require_device_type.DeviceType.Valve]: "control-dial",
56208
- [require_device_type.DeviceType.Humidifier]: "control-dial",
56209
- [require_device_type.DeviceType.WaterHeater]: "heater",
56210
- [require_device_type.DeviceType.HeatPump]: "heat-pump",
56211
- [require_device_type.DeviceType.Fan]: "fan",
56212
- [require_device_type.DeviceType.MediaPlayer]: "tv",
56213
- [require_device_type.DeviceType.AlarmPanel]: "alarm",
56214
- [require_device_type.DeviceType.Control]: "control-dial",
56215
- [require_device_type.DeviceType.Presence]: "presence",
56216
- [require_device_type.DeviceType.Weather]: "weather",
56217
- [require_device_type.DeviceType.Vacuum]: "vacuum",
56218
- [require_device_type.DeviceType.LawnMower]: "lawn-mower",
56219
- [require_device_type.DeviceType.Container]: "generic",
56220
- [require_device_type.DeviceType.Image]: "camera",
56221
- [require_device_type.DeviceType.PetFeeder]: "pet-feeder",
56222
- [require_device_type.DeviceType.PetFountain]: "pet-fountain",
56223
- [require_device_type.DeviceType.Dishwasher]: "dishwasher",
56224
- [require_device_type.DeviceType.Washer]: "washer",
56225
- [require_device_type.DeviceType.Heater]: "heater",
56226
- [require_device_type.DeviceType.Dryer]: "dryer",
56227
- [require_device_type.DeviceType.Gateway]: "gateway"
56196
+ [require_composed_stable_id.DeviceType.Camera]: "camera",
56197
+ [require_composed_stable_id.DeviceType.Hub]: "gateway",
56198
+ [require_composed_stable_id.DeviceType.Light]: "light",
56199
+ [require_composed_stable_id.DeviceType.Siren]: "siren",
56200
+ [require_composed_stable_id.DeviceType.Switch]: "plug",
56201
+ [require_composed_stable_id.DeviceType.Sensor]: "sensor-sparkline",
56202
+ [require_composed_stable_id.DeviceType.Thermostat]: "thermostat",
56203
+ [require_composed_stable_id.DeviceType.Climate]: "ac",
56204
+ [require_composed_stable_id.DeviceType.Button]: "button",
56205
+ [require_composed_stable_id.DeviceType.EventEmitter]: "event-stream",
56206
+ [require_composed_stable_id.DeviceType.Update]: "update",
56207
+ [require_composed_stable_id.DeviceType.Generic]: "generic",
56208
+ [require_composed_stable_id.DeviceType.Notifier]: "event-stream",
56209
+ [require_composed_stable_id.DeviceType.Script]: "event-stream",
56210
+ [require_composed_stable_id.DeviceType.Automation]: "event-stream",
56211
+ [require_composed_stable_id.DeviceType.Lock]: "lock",
56212
+ [require_composed_stable_id.DeviceType.Cover]: "cover",
56213
+ [require_composed_stable_id.DeviceType.Valve]: "control-dial",
56214
+ [require_composed_stable_id.DeviceType.Humidifier]: "control-dial",
56215
+ [require_composed_stable_id.DeviceType.WaterHeater]: "heater",
56216
+ [require_composed_stable_id.DeviceType.HeatPump]: "heat-pump",
56217
+ [require_composed_stable_id.DeviceType.Fan]: "fan",
56218
+ [require_composed_stable_id.DeviceType.MediaPlayer]: "tv",
56219
+ [require_composed_stable_id.DeviceType.AlarmPanel]: "alarm",
56220
+ [require_composed_stable_id.DeviceType.Control]: "control-dial",
56221
+ [require_composed_stable_id.DeviceType.Presence]: "presence",
56222
+ [require_composed_stable_id.DeviceType.Weather]: "weather",
56223
+ [require_composed_stable_id.DeviceType.Vacuum]: "vacuum",
56224
+ [require_composed_stable_id.DeviceType.LawnMower]: "lawn-mower",
56225
+ [require_composed_stable_id.DeviceType.Container]: "generic",
56226
+ [require_composed_stable_id.DeviceType.Image]: "camera",
56227
+ [require_composed_stable_id.DeviceType.PetFeeder]: "pet-feeder",
56228
+ [require_composed_stable_id.DeviceType.PetFountain]: "pet-fountain",
56229
+ [require_composed_stable_id.DeviceType.Dishwasher]: "dishwasher",
56230
+ [require_composed_stable_id.DeviceType.Washer]: "washer",
56231
+ [require_composed_stable_id.DeviceType.Heater]: "heater",
56232
+ [require_composed_stable_id.DeviceType.Dryer]: "dryer",
56233
+ [require_composed_stable_id.DeviceType.Gateway]: "gateway"
56228
56234
  };
56229
56235
  /** `inherit` = the type's scene. A role only refines a type. */
56230
56236
  var HERO_SCENE_BY_ROLE = {
56231
- [require_device_type.DeviceRole.Siren]: "siren",
56232
- [require_device_type.DeviceRole.Floodlight]: "light",
56233
- [require_device_type.DeviceRole.Spotlight]: "light",
56234
- [require_device_type.DeviceRole.PirSensor]: "presence",
56235
- [require_device_type.DeviceRole.Chime]: "speaker",
56236
- [require_device_type.DeviceRole.Autotrack]: "inherit",
56237
- [require_device_type.DeviceRole.Nightvision]: "inherit",
56238
- [require_device_type.DeviceRole.PrivacyMask]: "inherit",
56239
- [require_device_type.DeviceRole.Doorbell]: "inherit",
56240
- [require_device_type.DeviceRole.CoverBlind]: "inherit",
56241
- [require_device_type.DeviceRole.CoverShutter]: "inherit",
56242
- [require_device_type.DeviceRole.CoverAwning]: "inherit",
56243
- [require_device_type.DeviceRole.CoverCurtain]: "inherit",
56244
- [require_device_type.DeviceRole.CoverGarage]: "inherit",
56245
- [require_device_type.DeviceRole.CoverGate]: "inherit",
56246
- [require_device_type.DeviceRole.CoverDoor]: "inherit",
56247
- [require_device_type.DeviceRole.CoverWindow]: "inherit",
56248
- [require_device_type.DeviceRole.BinaryHelper]: "inherit",
56249
- [require_device_type.DeviceRole.Outlet]: "plug",
56250
- [require_device_type.DeviceRole.MotionSensor]: "presence",
56251
- [require_device_type.DeviceRole.ContactSensor]: "contact",
56252
- [require_device_type.DeviceRole.LeakSensor]: "inherit",
56253
- [require_device_type.DeviceRole.SmokeSensor]: "alarm",
56254
- [require_device_type.DeviceRole.COSensor]: "alarm",
56255
- [require_device_type.DeviceRole.GasSensor]: "alarm",
56256
- [require_device_type.DeviceRole.TamperSensor]: "inherit",
56257
- [require_device_type.DeviceRole.VibrationSensor]: "inherit",
56258
- [require_device_type.DeviceRole.ConnectivitySensor]: "inherit",
56259
- [require_device_type.DeviceRole.SoundSensor]: "inherit",
56260
- [require_device_type.DeviceRole.BinarySensor]: "inherit",
56261
- [require_device_type.DeviceRole.TemperatureSensor]: "sensor-sparkline",
56262
- [require_device_type.DeviceRole.HumiditySensor]: "sensor-sparkline",
56263
- [require_device_type.DeviceRole.AmbientLightSensor]: "inherit",
56264
- [require_device_type.DeviceRole.PressureSensor]: "weather",
56265
- [require_device_type.DeviceRole.WindSensor]: "weather",
56266
- [require_device_type.DeviceRole.RainSensor]: "weather",
56267
- [require_device_type.DeviceRole.UvSensor]: "weather",
56268
- [require_device_type.DeviceRole.SolarRadiationSensor]: "weather",
56269
- [require_device_type.DeviceRole.SoilMoistureSensor]: "inherit",
56270
- [require_device_type.DeviceRole.PowerSensor]: "plug",
56271
- [require_device_type.DeviceRole.EnergySensor]: "plug",
56272
- [require_device_type.DeviceRole.VoltageSensor]: "plug",
56273
- [require_device_type.DeviceRole.CurrentSensor]: "plug",
56274
- [require_device_type.DeviceRole.AirQualitySensor]: "inherit",
56275
- [require_device_type.DeviceRole.BatterySensor]: "inherit",
56276
- [require_device_type.DeviceRole.NumericSensor]: "inherit",
56277
- [require_device_type.DeviceRole.EnumSensor]: "inherit",
56278
- [require_device_type.DeviceRole.DateTimeSensor]: "inherit",
56279
- [require_device_type.DeviceRole.GenericSensor]: "inherit",
56280
- [require_device_type.DeviceRole.NumericControl]: "control-dial",
56281
- [require_device_type.DeviceRole.SelectControl]: "control-dial",
56282
- [require_device_type.DeviceRole.TextControl]: "inherit",
56283
- [require_device_type.DeviceRole.DateTimeControl]: "inherit",
56284
- [require_device_type.DeviceRole.MobilePushNotifier]: "inherit",
56285
- [require_device_type.DeviceRole.MessagingNotifier]: "inherit",
56286
- [require_device_type.DeviceRole.EmailNotifier]: "inherit",
56287
- [require_device_type.DeviceRole.GenericNotifier]: "inherit",
56288
- [require_device_type.DeviceRole.IrTransmitter]: "inherit"
56237
+ [require_composed_stable_id.DeviceRole.Siren]: "siren",
56238
+ [require_composed_stable_id.DeviceRole.Floodlight]: "light",
56239
+ [require_composed_stable_id.DeviceRole.Spotlight]: "light",
56240
+ [require_composed_stable_id.DeviceRole.PirSensor]: "presence",
56241
+ [require_composed_stable_id.DeviceRole.Chime]: "speaker",
56242
+ [require_composed_stable_id.DeviceRole.Autotrack]: "inherit",
56243
+ [require_composed_stable_id.DeviceRole.Nightvision]: "inherit",
56244
+ [require_composed_stable_id.DeviceRole.PrivacyMask]: "inherit",
56245
+ [require_composed_stable_id.DeviceRole.Doorbell]: "inherit",
56246
+ [require_composed_stable_id.DeviceRole.CoverBlind]: "inherit",
56247
+ [require_composed_stable_id.DeviceRole.CoverShutter]: "inherit",
56248
+ [require_composed_stable_id.DeviceRole.CoverAwning]: "inherit",
56249
+ [require_composed_stable_id.DeviceRole.CoverCurtain]: "inherit",
56250
+ [require_composed_stable_id.DeviceRole.CoverGarage]: "inherit",
56251
+ [require_composed_stable_id.DeviceRole.CoverGate]: "inherit",
56252
+ [require_composed_stable_id.DeviceRole.CoverDoor]: "inherit",
56253
+ [require_composed_stable_id.DeviceRole.CoverWindow]: "inherit",
56254
+ [require_composed_stable_id.DeviceRole.BinaryHelper]: "inherit",
56255
+ [require_composed_stable_id.DeviceRole.Outlet]: "plug",
56256
+ [require_composed_stable_id.DeviceRole.MotionSensor]: "presence",
56257
+ [require_composed_stable_id.DeviceRole.ContactSensor]: "contact",
56258
+ [require_composed_stable_id.DeviceRole.LeakSensor]: "inherit",
56259
+ [require_composed_stable_id.DeviceRole.SmokeSensor]: "alarm",
56260
+ [require_composed_stable_id.DeviceRole.COSensor]: "alarm",
56261
+ [require_composed_stable_id.DeviceRole.GasSensor]: "alarm",
56262
+ [require_composed_stable_id.DeviceRole.TamperSensor]: "inherit",
56263
+ [require_composed_stable_id.DeviceRole.VibrationSensor]: "inherit",
56264
+ [require_composed_stable_id.DeviceRole.ConnectivitySensor]: "inherit",
56265
+ [require_composed_stable_id.DeviceRole.SoundSensor]: "inherit",
56266
+ [require_composed_stable_id.DeviceRole.BinarySensor]: "inherit",
56267
+ [require_composed_stable_id.DeviceRole.TemperatureSensor]: "sensor-sparkline",
56268
+ [require_composed_stable_id.DeviceRole.HumiditySensor]: "sensor-sparkline",
56269
+ [require_composed_stable_id.DeviceRole.AmbientLightSensor]: "inherit",
56270
+ [require_composed_stable_id.DeviceRole.PressureSensor]: "weather",
56271
+ [require_composed_stable_id.DeviceRole.WindSensor]: "weather",
56272
+ [require_composed_stable_id.DeviceRole.RainSensor]: "weather",
56273
+ [require_composed_stable_id.DeviceRole.UvSensor]: "weather",
56274
+ [require_composed_stable_id.DeviceRole.SolarRadiationSensor]: "weather",
56275
+ [require_composed_stable_id.DeviceRole.SoilMoistureSensor]: "inherit",
56276
+ [require_composed_stable_id.DeviceRole.PowerSensor]: "plug",
56277
+ [require_composed_stable_id.DeviceRole.EnergySensor]: "plug",
56278
+ [require_composed_stable_id.DeviceRole.VoltageSensor]: "plug",
56279
+ [require_composed_stable_id.DeviceRole.CurrentSensor]: "plug",
56280
+ [require_composed_stable_id.DeviceRole.AirQualitySensor]: "inherit",
56281
+ [require_composed_stable_id.DeviceRole.BatterySensor]: "inherit",
56282
+ [require_composed_stable_id.DeviceRole.NumericSensor]: "inherit",
56283
+ [require_composed_stable_id.DeviceRole.EnumSensor]: "inherit",
56284
+ [require_composed_stable_id.DeviceRole.DateTimeSensor]: "inherit",
56285
+ [require_composed_stable_id.DeviceRole.GenericSensor]: "inherit",
56286
+ [require_composed_stable_id.DeviceRole.NumericControl]: "control-dial",
56287
+ [require_composed_stable_id.DeviceRole.SelectControl]: "control-dial",
56288
+ [require_composed_stable_id.DeviceRole.TextControl]: "inherit",
56289
+ [require_composed_stable_id.DeviceRole.DateTimeControl]: "inherit",
56290
+ [require_composed_stable_id.DeviceRole.MobilePushNotifier]: "inherit",
56291
+ [require_composed_stable_id.DeviceRole.MessagingNotifier]: "inherit",
56292
+ [require_composed_stable_id.DeviceRole.EmailNotifier]: "inherit",
56293
+ [require_composed_stable_id.DeviceRole.GenericNotifier]: "inherit",
56294
+ [require_composed_stable_id.DeviceRole.IrTransmitter]: "inherit"
56289
56295
  };
56290
56296
  function isDeviceType$2(type) {
56291
- return Object.values(require_device_type.DeviceType).includes(type);
56297
+ return Object.values(require_composed_stable_id.DeviceType).includes(type);
56292
56298
  }
56293
56299
  function isDeviceRole$1(role) {
56294
- return Object.values(require_device_type.DeviceRole).includes(role);
56300
+ return Object.values(require_composed_stable_id.DeviceRole).includes(role);
56295
56301
  }
56296
56302
  /** The scene id of a (role, type) pair. Role beats type; a type this build does not know gets the terminal. */
56297
56303
  function resolveHeroSceneId(role, type) {
@@ -56930,7 +56936,7 @@ var humidifierCapability = {
56930
56936
  scope: "device",
56931
56937
  deviceNative: true,
56932
56938
  mode: "singleton",
56933
- deviceTypes: [require_device_type.DeviceType.Humidifier],
56939
+ deviceTypes: [require_composed_stable_id.DeviceType.Humidifier],
56934
56940
  methods: {
56935
56941
  setOn: require_sleep.method(zod.z.object({
56936
56942
  deviceId: zod.z.number().int().nonnegative(),
@@ -57006,7 +57012,7 @@ var humiditySensorCapability = {
57006
57012
  scope: "device",
57007
57013
  deviceNative: true,
57008
57014
  mode: "singleton",
57009
- deviceTypes: [require_device_type.DeviceType.Sensor, require_device_type.DeviceType.Thermostat],
57015
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor, require_composed_stable_id.DeviceType.Thermostat],
57010
57016
  methods: {},
57011
57017
  status: {
57012
57018
  schema: HumiditySensorStatusSchema,
@@ -57060,7 +57066,7 @@ var imageCapability = {
57060
57066
  scope: "device",
57061
57067
  deviceNative: true,
57062
57068
  mode: "singleton",
57063
- deviceTypes: [require_device_type.DeviceType.Image],
57069
+ deviceTypes: [require_composed_stable_id.DeviceType.Image],
57064
57070
  methods: {},
57065
57071
  status: {
57066
57072
  schema: ImageStatusSchema,
@@ -57212,7 +57218,7 @@ var imageSettingsCapability = {
57212
57218
  scope: "device",
57213
57219
  deviceNative: true,
57214
57220
  mode: "singleton",
57215
- deviceTypes: [require_device_type.DeviceType.Camera],
57221
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
57216
57222
  deviceConfig: { ui: {
57217
57223
  kind: "derived-form",
57218
57224
  builderId: "image-settings",
@@ -57783,7 +57789,7 @@ var intercomCapability = {
57783
57789
  scope: "device",
57784
57790
  deviceNative: true,
57785
57791
  mode: "singleton",
57786
- deviceTypes: [require_device_type.DeviceType.Camera],
57792
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
57787
57793
  /**
57788
57794
  * **Auth tier: `protected` on every method — deliberate, and load-bearing.**
57789
57795
  *
@@ -57978,7 +57984,7 @@ var irTransmitterCapability = {
57978
57984
  scope: "device",
57979
57985
  deviceNative: true,
57980
57986
  mode: "singleton",
57981
- deviceTypes: [require_device_type.DeviceType.Generic],
57987
+ deviceTypes: [require_composed_stable_id.DeviceType.Generic],
57982
57988
  methods: {
57983
57989
  send: require_sleep.method(zod.z.object({
57984
57990
  deviceId: zod.z.number().int().nonnegative(),
@@ -58437,7 +58443,7 @@ var lawnMowerControlCapability = {
58437
58443
  scope: "device",
58438
58444
  deviceNative: true,
58439
58445
  mode: "singleton",
58440
- deviceTypes: [require_device_type.DeviceType.LawnMower],
58446
+ deviceTypes: [require_composed_stable_id.DeviceType.LawnMower],
58441
58447
  methods: {
58442
58448
  startMowing: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
58443
58449
  kind: "mutation",
@@ -60560,7 +60566,7 @@ var lockControlCustomize = {
60560
60566
  cap: "lock-control",
60561
60567
  stateField: "state"
60562
60568
  },
60563
- deviceTypes: [require_device_type.DeviceType.Lock],
60569
+ deviceTypes: [require_composed_stable_id.DeviceType.Lock],
60564
60570
  apply: "replace",
60565
60571
  path: "state",
60566
60572
  override: {
@@ -60579,7 +60585,7 @@ var lockControlCapability = {
60579
60585
  scope: "device",
60580
60586
  deviceNative: true,
60581
60587
  mode: "singleton",
60582
- deviceTypes: [require_device_type.DeviceType.Lock],
60588
+ deviceTypes: [require_composed_stable_id.DeviceType.Lock],
60583
60589
  methods: {
60584
60590
  lock: require_sleep.method(zod.z.object({
60585
60591
  deviceId: zod.z.number().int().nonnegative(),
@@ -61210,7 +61216,7 @@ var meterCapability = {
61210
61216
  scope: "device",
61211
61217
  deviceNative: true,
61212
61218
  mode: "singleton",
61213
- deviceTypes: [require_device_type.DeviceType.Sensor],
61219
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
61214
61220
  methods: {},
61215
61221
  status: {
61216
61222
  schema: MeterStatusSchema,
@@ -62616,7 +62622,7 @@ var motionDetectionCapability = {
62616
62622
  /** Frame-differencing motion analysis over a video stream — only a camera
62617
62623
  * produces the frames. Read by the `defaultActive` auto-bind in
62618
62624
  * `device-manager.getBindings` to decide which devices it may claim. */
62619
- deviceTypes: [require_device_type.DeviceType.Camera],
62625
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
62620
62626
  exposesDeviceSettings: true,
62621
62627
  methods: {
62622
62628
  analyze: require_sleep.method(zod.z.object({
@@ -65193,7 +65199,7 @@ var pipelineAnalyticsCapability = {
65193
65199
  mode: "singleton",
65194
65200
  kind: "wrapper",
65195
65201
  defaultActive: true,
65196
- deviceTypes: [require_device_type.DeviceType.Camera],
65202
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
65197
65203
  exposesDeviceSettings: true,
65198
65204
  methods: {
65199
65205
  getActiveTracks: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), zod.z.array(TrackSchema).readonly()),
@@ -67144,7 +67150,7 @@ var zonesCapability = {
67144
67150
  name: "zones",
67145
67151
  scope: "device",
67146
67152
  mode: "singleton",
67147
- deviceTypes: [require_device_type.DeviceType.Camera],
67153
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
67148
67154
  methods: {
67149
67155
  listZones: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), zod.z.array(ZoneSchema).readonly()),
67150
67156
  addZone: require_sleep.method(zod.z.object({
@@ -68976,7 +68982,7 @@ var motionCustomize = {
68976
68982
  cap: "motion",
68977
68983
  eventName: "onMotionChanged"
68978
68984
  },
68979
- deviceTypes: [require_device_type.DeviceType.Camera],
68985
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
68980
68986
  apply: "add",
68981
68987
  applyAuthority: {
68982
68988
  kind: "camera-sensors",
@@ -69107,7 +69113,7 @@ var motionCapability = {
69107
69113
  * `snapshot` and every other per-device native cap.
69108
69114
  */
69109
69115
  deviceNative: true,
69110
- deviceTypes: [require_device_type.DeviceType.Camera, require_device_type.DeviceType.Sensor],
69116
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera, require_composed_stable_id.DeviceType.Sensor],
69111
69117
  methods: {
69112
69118
  /**
69113
69119
  * Pull the current motion state synchronously. Convenience shortcut
@@ -69166,7 +69172,7 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
69166
69172
  */
69167
69173
  history: { fields: { detected: {
69168
69174
  kind: "boolean",
69169
- excludeDeviceTypes: [require_device_type.DeviceType.Camera]
69175
+ excludeDeviceTypes: [require_composed_stable_id.DeviceType.Camera]
69170
69176
  } } },
69171
69177
  customize: motionCustomize
69172
69178
  };
@@ -69215,9 +69221,9 @@ var motionTriggerCapability = {
69215
69221
  deviceNative: true,
69216
69222
  mode: "singleton",
69217
69223
  deviceTypes: [
69218
- require_device_type.DeviceType.Light,
69219
- require_device_type.DeviceType.Siren,
69220
- require_device_type.DeviceType.Switch
69224
+ require_composed_stable_id.DeviceType.Light,
69225
+ require_composed_stable_id.DeviceType.Siren,
69226
+ require_composed_stable_id.DeviceType.Switch
69221
69227
  ],
69222
69228
  methods: { setMotionTrigger: require_sleep.method(zod.z.object({
69223
69229
  deviceId: zod.z.number().int().nonnegative(),
@@ -69294,7 +69300,7 @@ var motionZonesCapability = {
69294
69300
  scope: "device",
69295
69301
  deviceNative: true,
69296
69302
  mode: "singleton",
69297
- deviceTypes: [require_device_type.DeviceType.Camera],
69303
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
69298
69304
  deviceConfig: { ui: {
69299
69305
  kind: "widget",
69300
69306
  widgetId: "host/motion-zones-grid",
@@ -69554,7 +69560,7 @@ var nativeObjectDetectionCapability = {
69554
69560
  scope: "device",
69555
69561
  deviceNative: true,
69556
69562
  mode: "singleton",
69557
- deviceTypes: [require_device_type.DeviceType.Camera],
69563
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
69558
69564
  methods: {
69559
69565
  getOptions: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), NativeObjectDetectionOptionsSchema),
69560
69566
  setSettings: require_sleep.method(zod.z.object({
@@ -69927,7 +69933,7 @@ var navigationCapability = {
69927
69933
  scope: "device",
69928
69934
  deviceNative: true,
69929
69935
  mode: "singleton",
69930
- deviceTypes: [require_device_type.DeviceType.Camera],
69936
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
69931
69937
  deviceConfig: { ui: {
69932
69938
  kind: "widget",
69933
69939
  widgetId: "host/navigation-panel",
@@ -70171,13 +70177,13 @@ var networkLinkCapability = {
70171
70177
  deviceNative: true,
70172
70178
  mode: "singleton",
70173
70179
  deviceTypes: [
70174
- require_device_type.DeviceType.Camera,
70175
- require_device_type.DeviceType.Sensor,
70176
- require_device_type.DeviceType.Button,
70177
- require_device_type.DeviceType.Switch,
70178
- require_device_type.DeviceType.Light,
70179
- require_device_type.DeviceType.Lock,
70180
- require_device_type.DeviceType.Siren
70180
+ require_composed_stable_id.DeviceType.Camera,
70181
+ require_composed_stable_id.DeviceType.Sensor,
70182
+ require_composed_stable_id.DeviceType.Button,
70183
+ require_composed_stable_id.DeviceType.Switch,
70184
+ require_composed_stable_id.DeviceType.Light,
70185
+ require_composed_stable_id.DeviceType.Lock,
70186
+ require_composed_stable_id.DeviceType.Siren
70181
70187
  ],
70182
70188
  methods: {},
70183
70189
  events: {
@@ -74694,7 +74700,7 @@ var notifierCapability = {
74694
74700
  scope: "device",
74695
74701
  deviceNative: true,
74696
74702
  mode: "singleton",
74697
- deviceTypes: [require_device_type.DeviceType.Notifier],
74703
+ deviceTypes: [require_composed_stable_id.DeviceType.Notifier],
74698
74704
  methods: {
74699
74705
  send: require_sleep.method(NotifierSendInputSchema, NotifierSendResultSchema, {
74700
74706
  kind: "mutation",
@@ -74771,7 +74777,7 @@ var numericSensorCapability = {
74771
74777
  scope: "device",
74772
74778
  deviceNative: true,
74773
74779
  mode: "singleton",
74774
- deviceTypes: [require_device_type.DeviceType.Sensor],
74780
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
74775
74781
  methods: {},
74776
74782
  status: {
74777
74783
  schema: NumericSensorStatusSchema,
@@ -75004,7 +75010,7 @@ var osdCapability = {
75004
75010
  scope: "device",
75005
75011
  deviceNative: true,
75006
75012
  mode: "singleton",
75007
- deviceTypes: [require_device_type.DeviceType.Camera],
75013
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
75008
75014
  methods: {
75009
75015
  /**
75010
75016
  * Patch a single overlay by id. Provider handles read-modify-write
@@ -75478,7 +75484,7 @@ var petFeederCapability = {
75478
75484
  scope: "device",
75479
75485
  deviceNative: true,
75480
75486
  mode: "singleton",
75481
- deviceTypes: [require_device_type.DeviceType.PetFeeder],
75487
+ deviceTypes: [require_composed_stable_id.DeviceType.PetFeeder],
75482
75488
  methods: {
75483
75489
  /**
75484
75490
  * Dispense food now. Single-hopper feeders take `grams`; dual-hopper
@@ -75662,7 +75668,7 @@ var petFountainCapability = {
75662
75668
  scope: "device",
75663
75669
  deviceNative: true,
75664
75670
  mode: "singleton",
75665
- deviceTypes: [require_device_type.DeviceType.PetFountain],
75671
+ deviceTypes: [require_composed_stable_id.DeviceType.PetFountain],
75666
75672
  methods: {
75667
75673
  /** Start or stop the pump. */
75668
75674
  setPump: require_sleep.method(zod.z.object({
@@ -78572,25 +78578,25 @@ var PowerMeterStatusSchema = zod.z.object({
78572
78578
  * camera and the like are left out: their draw is not what anyone meters.
78573
78579
  */
78574
78580
  var POWER_METER_DEVICE_TYPES = [
78575
- require_device_type.DeviceType.Sensor,
78576
- require_device_type.DeviceType.Switch,
78577
- require_device_type.DeviceType.Light,
78578
- require_device_type.DeviceType.Fan,
78579
- require_device_type.DeviceType.Climate,
78580
- require_device_type.DeviceType.Thermostat,
78581
- require_device_type.DeviceType.Humidifier,
78582
- require_device_type.DeviceType.WaterHeater,
78583
- require_device_type.DeviceType.MediaPlayer,
78584
- require_device_type.DeviceType.Washer,
78585
- require_device_type.DeviceType.Dryer,
78586
- require_device_type.DeviceType.Dishwasher,
78587
- require_device_type.DeviceType.Vacuum,
78588
- require_device_type.DeviceType.LawnMower,
78589
- require_device_type.DeviceType.PetFeeder,
78590
- require_device_type.DeviceType.Heater
78581
+ require_composed_stable_id.DeviceType.Sensor,
78582
+ require_composed_stable_id.DeviceType.Switch,
78583
+ require_composed_stable_id.DeviceType.Light,
78584
+ require_composed_stable_id.DeviceType.Fan,
78585
+ require_composed_stable_id.DeviceType.Climate,
78586
+ require_composed_stable_id.DeviceType.Thermostat,
78587
+ require_composed_stable_id.DeviceType.Humidifier,
78588
+ require_composed_stable_id.DeviceType.WaterHeater,
78589
+ require_composed_stable_id.DeviceType.MediaPlayer,
78590
+ require_composed_stable_id.DeviceType.Washer,
78591
+ require_composed_stable_id.DeviceType.Dryer,
78592
+ require_composed_stable_id.DeviceType.Dishwasher,
78593
+ require_composed_stable_id.DeviceType.Vacuum,
78594
+ require_composed_stable_id.DeviceType.LawnMower,
78595
+ require_composed_stable_id.DeviceType.PetFeeder,
78596
+ require_composed_stable_id.DeviceType.Heater
78591
78597
  ];
78592
78598
  /** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
78593
- var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== require_device_type.DeviceType.Sensor);
78599
+ var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== require_composed_stable_id.DeviceType.Sensor);
78594
78600
  /** One scalar target per reading; each is sourced from a device of its own (D951). */
78595
78601
  function powerTarget(id, unit) {
78596
78602
  return {
@@ -78762,21 +78768,21 @@ var PowerSourceStateSchema = zod.z.object({
78762
78768
  lastFetchedAt: zod.z.number()
78763
78769
  });
78764
78770
  var POWER_SOURCE_DEVICE_TYPES = [
78765
- require_device_type.DeviceType.Gateway,
78766
- require_device_type.DeviceType.Hub,
78767
- require_device_type.DeviceType.Camera,
78768
- require_device_type.DeviceType.Sensor,
78769
- require_device_type.DeviceType.MediaPlayer,
78770
- require_device_type.DeviceType.Vacuum,
78771
- require_device_type.DeviceType.Generic,
78772
- require_device_type.DeviceType.Washer,
78773
- require_device_type.DeviceType.Dryer,
78774
- require_device_type.DeviceType.Dishwasher,
78775
- require_device_type.DeviceType.PetFountain,
78776
- require_device_type.DeviceType.Fan,
78777
- require_device_type.DeviceType.Humidifier,
78778
- require_device_type.DeviceType.Climate,
78779
- require_device_type.DeviceType.WaterHeater
78771
+ require_composed_stable_id.DeviceType.Gateway,
78772
+ require_composed_stable_id.DeviceType.Hub,
78773
+ require_composed_stable_id.DeviceType.Camera,
78774
+ require_composed_stable_id.DeviceType.Sensor,
78775
+ require_composed_stable_id.DeviceType.MediaPlayer,
78776
+ require_composed_stable_id.DeviceType.Vacuum,
78777
+ require_composed_stable_id.DeviceType.Generic,
78778
+ require_composed_stable_id.DeviceType.Washer,
78779
+ require_composed_stable_id.DeviceType.Dryer,
78780
+ require_composed_stable_id.DeviceType.Dishwasher,
78781
+ require_composed_stable_id.DeviceType.PetFountain,
78782
+ require_composed_stable_id.DeviceType.Fan,
78783
+ require_composed_stable_id.DeviceType.Humidifier,
78784
+ require_composed_stable_id.DeviceType.Climate,
78785
+ require_composed_stable_id.DeviceType.WaterHeater
78780
78786
  ];
78781
78787
  var powerSourceCustomize = {
78782
78788
  version: 1,
@@ -78883,7 +78889,7 @@ var presenceCapability = {
78883
78889
  scope: "device",
78884
78890
  deviceNative: true,
78885
78891
  mode: "singleton",
78886
- deviceTypes: [require_device_type.DeviceType.Presence],
78892
+ deviceTypes: [require_composed_stable_id.DeviceType.Presence],
78887
78893
  methods: {},
78888
78894
  status: {
78889
78895
  schema: PresenceStatusSchema,
@@ -78929,7 +78935,7 @@ var pressureSensorCapability = {
78929
78935
  scope: "device",
78930
78936
  deviceNative: true,
78931
78937
  mode: "singleton",
78932
- deviceTypes: [require_device_type.DeviceType.Sensor],
78938
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
78933
78939
  methods: {},
78934
78940
  status: {
78935
78941
  schema: PressureSensorStatusSchema,
@@ -79062,7 +79068,7 @@ var privacyMaskCapability = {
79062
79068
  scope: "device",
79063
79069
  deviceNative: true,
79064
79070
  mode: "singleton",
79065
- deviceTypes: [require_device_type.DeviceType.Camera],
79071
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
79066
79072
  deviceConfig: { ui: {
79067
79073
  kind: "widget",
79068
79074
  widgetId: "host/privacy-mask-grid",
@@ -79330,7 +79336,7 @@ var ptzCapability = {
79330
79336
  scope: "device",
79331
79337
  deviceNative: true,
79332
79338
  mode: "singleton",
79333
- deviceTypes: [require_device_type.DeviceType.Camera],
79339
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
79334
79340
  deviceConfig: { ui: {
79335
79341
  kind: "widget",
79336
79342
  widgetId: "host/ptz-panel",
@@ -79561,7 +79567,7 @@ var ptzAutotrackCapability = {
79561
79567
  */
79562
79568
  kind: "wrapper",
79563
79569
  defaultActive: false,
79564
- deviceTypes: [require_device_type.DeviceType.Camera],
79570
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
79565
79571
  deviceConfig: { ui: {
79566
79572
  kind: "widget",
79567
79573
  widgetId: "host/ptz-autotrack",
@@ -79669,7 +79675,7 @@ var pumpCycleCapability = {
79669
79675
  scope: "device",
79670
79676
  deviceNative: true,
79671
79677
  mode: "singleton",
79672
- deviceTypes: [require_device_type.DeviceType.PetFountain],
79678
+ deviceTypes: [require_composed_stable_id.DeviceType.PetFountain],
79673
79679
  methods: {
79674
79680
  /** Switch the on/off duty cycle on or off (off = the pump runs continuously). */
79675
79681
  setEnabled: require_sleep.method(zod.z.object({
@@ -79734,10 +79740,10 @@ var rebootCapability = {
79734
79740
  deviceNative: true,
79735
79741
  mode: "singleton",
79736
79742
  deviceTypes: [
79737
- require_device_type.DeviceType.Camera,
79738
- require_device_type.DeviceType.Sensor,
79739
- require_device_type.DeviceType.Switch,
79740
- require_device_type.DeviceType.Gateway
79743
+ require_composed_stable_id.DeviceType.Camera,
79744
+ require_composed_stable_id.DeviceType.Sensor,
79745
+ require_composed_stable_id.DeviceType.Switch,
79746
+ require_composed_stable_id.DeviceType.Gateway
79741
79747
  ],
79742
79748
  methods: { reboot: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.object({ success: zod.z.literal(true) }), {
79743
79749
  kind: "mutation",
@@ -80085,7 +80091,7 @@ var recordingCapability = {
80085
80091
  /** Recorded coverage is a property of a camera — the cap is meaningless on a
80086
80092
  * sensor, a button or an event emitter, and the `defaultActive` auto-bind
80087
80093
  * reads this to decide which devices it may claim. */
80088
- deviceTypes: [require_device_type.DeviceType.Camera],
80094
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
80089
80095
  methods: {
80090
80096
  /**
80091
80097
  * The sources this camera has, WITH the reason any of them cannot answer.
@@ -81682,7 +81688,7 @@ var videoclipsCapability = {
81682
81688
  /** A clip is a window over a camera's footage — the cap is meaningless on a
81683
81689
  * sensor, a button or an event emitter, and the `defaultActive` auto-bind
81684
81690
  * reads this to decide which devices it may claim. */
81685
- deviceTypes: [require_device_type.DeviceType.Camera],
81691
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
81686
81692
  /**
81687
81693
  * The Clips section of a camera's device details is FRAMEWORK-DERIVED (D14):
81688
81694
  * the aggregator turns this declaration into the `type:'widget'` section and
@@ -82917,7 +82923,7 @@ var recordingOnboardCapability = {
82917
82923
  scope: "device",
82918
82924
  deviceNative: true,
82919
82925
  mode: "singleton",
82920
- deviceTypes: [require_device_type.DeviceType.Camera],
82926
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
82921
82927
  deviceConfig: { ui: {
82922
82928
  kind: "derived-form",
82923
82929
  builderId: "recording-onboard",
@@ -83003,7 +83009,7 @@ var recordingSignalCapability = {
83003
83009
  scope: "device",
83004
83010
  deviceNative: true,
83005
83011
  mode: "singleton",
83006
- deviceTypes: [require_device_type.DeviceType.Camera],
83012
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
83007
83013
  methods: {
83008
83014
  /** The current level, straight from the slice the provider keeps fresh. */
83009
83015
  getStatus: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), RecordingSignalStatusSchema) },
@@ -83561,7 +83567,7 @@ var remoteCustomize = {
83561
83567
  id: "remote",
83562
83568
  cardinality: "config",
83563
83569
  vocabulary: { cap: "remote" },
83564
- deviceTypes: [require_device_type.DeviceType.MediaPlayer],
83570
+ deviceTypes: [require_composed_stable_id.DeviceType.MediaPlayer],
83565
83571
  apply: "add",
83566
83572
  readMethod: "getConfig",
83567
83573
  writeMethod: "setConfig"
@@ -83751,7 +83757,7 @@ var RUNNING_POWER_GLOBAL_DEFAULTS = {
83751
83757
  * moment it is on and stops drawing the moment it is off, so it needs neither
83752
83758
  * a long dwell nor a second sample. A type absent here keeps the global values.
83753
83759
  */
83754
- var RUNNING_POWER_DEFAULTS_BY_TYPE = { [require_device_type.DeviceType.MediaPlayer]: {
83760
+ var RUNNING_POWER_DEFAULTS_BY_TYPE = { [require_composed_stable_id.DeviceType.MediaPlayer]: {
83755
83761
  startDwellMs: 1e4,
83756
83762
  stopDwellMs: 1e4,
83757
83763
  minSamples: 1
@@ -83791,7 +83797,7 @@ var RunningFlipEventDataSchema = zod.z.object({
83791
83797
  since: zod.z.number().nullable(),
83792
83798
  phase: zod.z.string().nullable()
83793
83799
  });
83794
- var RUNNING_DEVICE_TYPES = Object.values(require_device_type.DeviceType);
83800
+ var RUNNING_DEVICE_TYPES = Object.values(require_composed_stable_id.DeviceType);
83795
83801
  /**
83796
83802
  * Customize offers "running" only where a job makes sense (D933): a cycle,
83797
83803
  * a clean, a mow, playback, or another appliance that is on and working.
@@ -83799,19 +83805,19 @@ var RUNNING_DEVICE_TYPES = Object.values(require_device_type.DeviceType);
83799
83805
  * natively; it just has no card.
83800
83806
  */
83801
83807
  var RUNNING_CUSTOMIZE_DEVICE_TYPES = [
83802
- require_device_type.DeviceType.Washer,
83803
- require_device_type.DeviceType.Dryer,
83804
- require_device_type.DeviceType.Dishwasher,
83805
- require_device_type.DeviceType.Vacuum,
83806
- require_device_type.DeviceType.LawnMower,
83807
- require_device_type.DeviceType.MediaPlayer,
83808
- require_device_type.DeviceType.WaterHeater,
83809
- require_device_type.DeviceType.Humidifier,
83810
- require_device_type.DeviceType.Fan,
83811
- require_device_type.DeviceType.Climate,
83812
- require_device_type.DeviceType.Thermostat,
83813
- require_device_type.DeviceType.PetFeeder,
83814
- require_device_type.DeviceType.Heater
83808
+ require_composed_stable_id.DeviceType.Washer,
83809
+ require_composed_stable_id.DeviceType.Dryer,
83810
+ require_composed_stable_id.DeviceType.Dishwasher,
83811
+ require_composed_stable_id.DeviceType.Vacuum,
83812
+ require_composed_stable_id.DeviceType.LawnMower,
83813
+ require_composed_stable_id.DeviceType.MediaPlayer,
83814
+ require_composed_stable_id.DeviceType.WaterHeater,
83815
+ require_composed_stable_id.DeviceType.Humidifier,
83816
+ require_composed_stable_id.DeviceType.Fan,
83817
+ require_composed_stable_id.DeviceType.Climate,
83818
+ require_composed_stable_id.DeviceType.Thermostat,
83819
+ require_composed_stable_id.DeviceType.PetFeeder,
83820
+ require_composed_stable_id.DeviceType.Heater
83815
83821
  ];
83816
83822
  var runningStateCapability = {
83817
83823
  name: "running-state",
@@ -84178,7 +84184,7 @@ var sceneMonitorCapability = {
84178
84184
  mode: "singleton",
84179
84185
  kind: "wrapper",
84180
84186
  defaultActive: true,
84181
- deviceTypes: [require_device_type.DeviceType.Camera],
84187
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
84182
84188
  methods: {
84183
84189
  listScenes: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), SceneMonitorStatusSchema),
84184
84190
  /**
@@ -84413,7 +84419,7 @@ var scriptRunnerCapability = {
84413
84419
  scope: "device",
84414
84420
  deviceNative: true,
84415
84421
  mode: "singleton",
84416
- deviceTypes: [require_device_type.DeviceType.Script],
84422
+ deviceTypes: [require_composed_stable_id.DeviceType.Script],
84417
84423
  methods: {
84418
84424
  run: require_sleep.method(zod.z.object({
84419
84425
  deviceId: zod.z.number().int().nonnegative(),
@@ -85010,7 +85016,7 @@ var smokeCapability = {
85010
85016
  scope: "device",
85011
85017
  deviceNative: true,
85012
85018
  mode: "singleton",
85013
- deviceTypes: [require_device_type.DeviceType.Sensor],
85019
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
85014
85020
  methods: {},
85015
85021
  status: {
85016
85022
  schema: SmokeStatusSchema,
@@ -85164,7 +85170,7 @@ var snapshotCapability = {
85164
85170
  mode: "singleton",
85165
85171
  kind: "wrapper",
85166
85172
  defaultActive: true,
85167
- deviceTypes: [require_device_type.DeviceType.Camera],
85173
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
85168
85174
  exposesDeviceSettings: true,
85169
85175
  methods: {
85170
85176
  getSnapshot: require_sleep.method(zod.z.object({
@@ -86186,7 +86192,7 @@ var streamCatalogCapability = {
86186
86192
  scope: "device",
86187
86193
  deviceNative: true,
86188
86194
  mode: "singleton",
86189
- deviceTypes: [require_device_type.DeviceType.Camera],
86195
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
86190
86196
  methods: { getCatalog: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.array(CamStreamDescriptorSchema).readonly()) },
86191
86197
  runtimeState: StreamCatalogStateSchema,
86192
86198
  /**
@@ -86308,7 +86314,7 @@ var streamParamsCapability = {
86308
86314
  scope: "device",
86309
86315
  deviceNative: true,
86310
86316
  mode: "singleton",
86311
- deviceTypes: [require_device_type.DeviceType.Camera],
86317
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
86312
86318
  deviceConfig: { ui: {
86313
86319
  kind: "derived-form",
86314
86320
  builderId: "stream-params",
@@ -86443,7 +86449,7 @@ var streamSignalsCapability = {
86443
86449
  scope: "device",
86444
86450
  deviceNative: true,
86445
86451
  mode: "singleton",
86446
- deviceTypes: Object.values(require_device_type.DeviceType),
86452
+ deviceTypes: Object.values(require_composed_stable_id.DeviceType),
86447
86453
  runtimeState: StreamSignalsStatusSchema,
86448
86454
  /**
86449
86455
  * Runtime-state durability: **session** — mirrored in RAM, never written.
@@ -86496,11 +86502,11 @@ var switchCapability = {
86496
86502
  deviceNative: true,
86497
86503
  mode: "singleton",
86498
86504
  deviceTypes: [
86499
- require_device_type.DeviceType.Switch,
86500
- require_device_type.DeviceType.Siren,
86501
- require_device_type.DeviceType.Light,
86502
- require_device_type.DeviceType.Fan,
86503
- require_device_type.DeviceType.Heater
86505
+ require_composed_stable_id.DeviceType.Switch,
86506
+ require_composed_stable_id.DeviceType.Siren,
86507
+ require_composed_stable_id.DeviceType.Light,
86508
+ require_composed_stable_id.DeviceType.Fan,
86509
+ require_composed_stable_id.DeviceType.Heater
86504
86510
  ],
86505
86511
  methods: { setState: require_sleep.method(zod.z.object({
86506
86512
  deviceId: zod.z.number(),
@@ -87314,7 +87320,7 @@ var tamperCapability = {
87314
87320
  scope: "device",
87315
87321
  deviceNative: true,
87316
87322
  mode: "singleton",
87317
- deviceTypes: [require_device_type.DeviceType.Sensor],
87323
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
87318
87324
  methods: {},
87319
87325
  status: {
87320
87326
  schema: TamperStatusSchema,
@@ -87364,7 +87370,7 @@ var temperatureSensorCapability = {
87364
87370
  scope: "device",
87365
87371
  deviceNative: true,
87366
87372
  mode: "singleton",
87367
- deviceTypes: [require_device_type.DeviceType.Sensor, require_device_type.DeviceType.Thermostat],
87373
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor, require_composed_stable_id.DeviceType.Thermostat],
87368
87374
  methods: {},
87369
87375
  status: {
87370
87376
  schema: TemperatureSensorStatusSchema,
@@ -88382,7 +88388,7 @@ var updateCapability = {
88382
88388
  scope: "device",
88383
88389
  deviceNative: true,
88384
88390
  mode: "singleton",
88385
- deviceTypes: [require_device_type.DeviceType.Update],
88391
+ deviceTypes: [require_composed_stable_id.DeviceType.Update],
88386
88392
  methods: { installUpdate: require_sleep.method(zod.z.void(), zod.z.void(), {
88387
88393
  kind: "mutation",
88388
88394
  auth: "admin"
@@ -88849,7 +88855,7 @@ var vacuumControlCapability = {
88849
88855
  scope: "device",
88850
88856
  deviceNative: true,
88851
88857
  mode: "singleton",
88852
- deviceTypes: [require_device_type.DeviceType.Vacuum],
88858
+ deviceTypes: [require_composed_stable_id.DeviceType.Vacuum],
88853
88859
  methods: {
88854
88860
  start: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
88855
88861
  kind: "mutation",
@@ -88945,7 +88951,7 @@ var valveCapability = {
88945
88951
  scope: "device",
88946
88952
  deviceNative: true,
88947
88953
  mode: "singleton",
88948
- deviceTypes: [require_device_type.DeviceType.Valve],
88954
+ deviceTypes: [require_composed_stable_id.DeviceType.Valve],
88949
88955
  methods: {
88950
88956
  open: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
88951
88957
  kind: "mutation",
@@ -89326,7 +89332,7 @@ var vibrationCapability = {
89326
89332
  scope: "device",
89327
89333
  deviceNative: true,
89328
89334
  mode: "singleton",
89329
- deviceTypes: [require_device_type.DeviceType.Sensor],
89335
+ deviceTypes: [require_composed_stable_id.DeviceType.Sensor],
89330
89336
  methods: {},
89331
89337
  status: {
89332
89338
  schema: VibrationStatusSchema,
@@ -89395,7 +89401,7 @@ var waterHeaterCapability = {
89395
89401
  scope: "device",
89396
89402
  deviceNative: true,
89397
89403
  mode: "singleton",
89398
- deviceTypes: [require_device_type.DeviceType.WaterHeater],
89404
+ deviceTypes: [require_composed_stable_id.DeviceType.WaterHeater],
89399
89405
  methods: {
89400
89406
  setTargetTemp: require_sleep.method(zod.z.object({
89401
89407
  deviceId: zod.z.number().int().nonnegative(),
@@ -89494,7 +89500,7 @@ var weatherCapability = {
89494
89500
  scope: "device",
89495
89501
  deviceNative: true,
89496
89502
  mode: "singleton",
89497
- deviceTypes: [require_device_type.DeviceType.Weather],
89503
+ deviceTypes: [require_composed_stable_id.DeviceType.Weather],
89498
89504
  methods: {},
89499
89505
  status: {
89500
89506
  schema: WeatherStatusSchema,
@@ -89824,7 +89830,7 @@ var webrtcSessionCapability = {
89824
89830
  kind: "wrapper",
89825
89831
  defaultActive: true,
89826
89832
  preferredProvider: "stream-broker",
89827
- deviceTypes: [require_device_type.DeviceType.Camera],
89833
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
89828
89834
  methods: {
89829
89835
  /**
89830
89836
  * List available WebRTC streams for a device.
@@ -90300,7 +90306,7 @@ var zoneAnalyticsCapability = {
90300
90306
  name: "zone-analytics",
90301
90307
  scope: "device",
90302
90308
  mode: "singleton",
90303
- deviceTypes: [require_device_type.DeviceType.Camera],
90309
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
90304
90310
  methods: {
90305
90311
  /** Latest computed occupancy snapshot for this camera. Null when
90306
90312
  * the analytics pipeline hasn't seen a frame for this device yet
@@ -90501,7 +90507,7 @@ var zoneRulesCapability = {
90501
90507
  name: "zone-rules",
90502
90508
  scope: "device",
90503
90509
  mode: "singleton",
90504
- deviceTypes: [require_device_type.DeviceType.Camera],
90510
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
90505
90511
  methods: {
90506
90512
  /** Read the full rule list for a given stage (empty when no rules
90507
90513
  * are defined yet). */
@@ -92936,7 +92942,7 @@ function stepIssues(site, step, at) {
92936
92942
  }
92937
92943
  function describeSource(site) {
92938
92944
  return new Map(site.devices.map((d) => {
92939
- const type = Object.values(require_device_type.DeviceType).find((t) => t === d.type);
92945
+ const type = Object.values(require_composed_stable_id.DeviceType).find((t) => t === d.type);
92940
92946
  const found = {
92941
92947
  kind: "found",
92942
92948
  deviceId: d.id,
@@ -92948,7 +92954,7 @@ function describeSource(site) {
92948
92954
  }
92949
92955
  function describeTarget(site, ref) {
92950
92956
  const device = site.devices.find((d) => d.addonId === ref.addonId && d.stableId === ref.stableId);
92951
- const type = Object.values(require_device_type.DeviceType).find((t) => t === device?.type);
92957
+ const type = Object.values(require_composed_stable_id.DeviceType).find((t) => t === device?.type);
92952
92958
  if (device === void 0 || type === void 0) return { kind: "absent" };
92953
92959
  return {
92954
92960
  kind: "found",
@@ -94274,17 +94280,17 @@ function remoteRoleLabel(role, locale) {
94274
94280
  * exporter deciding what to offer.
94275
94281
  */
94276
94282
  var FEATURE_ROLES = [
94277
- [require_device_type.DeviceFeature.MediaPlayerPower, [
94283
+ [require_composed_stable_id.DeviceFeature.MediaPlayerPower, [
94278
94284
  "power",
94279
94285
  "power_on",
94280
94286
  "power_off"
94281
94287
  ]],
94282
- [require_device_type.DeviceFeature.MediaPlayerVolumeStep, ["volume_up", "volume_down"]],
94283
- [require_device_type.DeviceFeature.MediaPlayerChannelStep, ["channel_up", "channel_down"]],
94284
- [require_device_type.DeviceFeature.MediaPlayerMute, ["mute"]],
94285
- [require_device_type.DeviceFeature.MediaPlayerStop, ["stop"]],
94286
- [require_device_type.DeviceFeature.MediaPlayerNext, ["next"]],
94287
- [require_device_type.DeviceFeature.MediaPlayerPrevious, ["previous"]]
94288
+ [require_composed_stable_id.DeviceFeature.MediaPlayerVolumeStep, ["volume_up", "volume_down"]],
94289
+ [require_composed_stable_id.DeviceFeature.MediaPlayerChannelStep, ["channel_up", "channel_down"]],
94290
+ [require_composed_stable_id.DeviceFeature.MediaPlayerMute, ["mute"]],
94291
+ [require_composed_stable_id.DeviceFeature.MediaPlayerStop, ["stop"]],
94292
+ [require_composed_stable_id.DeviceFeature.MediaPlayerNext, ["next"]],
94293
+ [require_composed_stable_id.DeviceFeature.MediaPlayerPrevious, ["previous"]]
94288
94294
  ];
94289
94295
  /**
94290
94296
  * The features the bound roles stand for, in a stable order. A source surface
@@ -94294,7 +94300,7 @@ var FEATURE_ROLES = [
94294
94300
  function mediaPlayerFeaturesOfRoles(roles, declaredSources) {
94295
94301
  const bound = new Set(roles);
94296
94302
  const fixed = FEATURE_ROLES.filter(([, wanted]) => wanted.some((role) => bound.has(role))).map(([feature]) => feature);
94297
- return declaredSources > 0 ? [...fixed, require_device_type.DeviceFeature.MediaPlayerSelectSource] : fixed;
94303
+ return declaredSources > 0 ? [...fixed, require_composed_stable_id.DeviceFeature.MediaPlayerSelectSource] : fixed;
94298
94304
  }
94299
94305
  //#endregion
94300
94306
  //#region src/remote/remote-layout-ops.ts
@@ -95249,9 +95255,9 @@ var PAUSE_MAX_MS = 30 * MINUTE_MS$1;
95249
95255
  var MIN_RUN_MS = 10 * MINUTE_MS$1;
95250
95256
  /** What a kind needs at least before it is called stopped: a soak pause is longer for a washer. */
95251
95257
  var STOP_FLOOR_BY_KIND = {
95252
- [require_device_type.DeviceType.Dryer]: 3 * MINUTE_MS$1,
95253
- [require_device_type.DeviceType.Dishwasher]: 3 * MINUTE_MS$1,
95254
- [require_device_type.DeviceType.Washer]: 10 * MINUTE_MS$1
95258
+ [require_composed_stable_id.DeviceType.Dryer]: 3 * MINUTE_MS$1,
95259
+ [require_composed_stable_id.DeviceType.Dishwasher]: 3 * MINUTE_MS$1,
95260
+ [require_composed_stable_id.DeviceType.Washer]: 10 * MINUTE_MS$1
95255
95261
  };
95256
95262
  var START_STEP_MS = 10 * SECOND_MS;
95257
95263
  var START_MIN_MS = 10 * SECOND_MS;
@@ -95830,33 +95836,33 @@ var ACTUATOR_METHODS = {
95830
95836
  ],
95831
95837
  fan: [
95832
95838
  row$2("switch", "setState"),
95833
- row$2("fan-control", "setPercentage", require_device_type.DeviceFeature.FanSpeed),
95834
- row$2("fan-control", "setPreset", require_device_type.DeviceFeature.FanPreset),
95835
- row$2("fan-control", "setDirection", require_device_type.DeviceFeature.FanDirection),
95836
- row$2("fan-control", "setOscillating", require_device_type.DeviceFeature.FanOscillating)
95839
+ row$2("fan-control", "setPercentage", require_composed_stable_id.DeviceFeature.FanSpeed),
95840
+ row$2("fan-control", "setPreset", require_composed_stable_id.DeviceFeature.FanPreset),
95841
+ row$2("fan-control", "setDirection", require_composed_stable_id.DeviceFeature.FanDirection),
95842
+ row$2("fan-control", "setOscillating", require_composed_stable_id.DeviceFeature.FanOscillating)
95837
95843
  ],
95838
95844
  cover: [
95839
95845
  row$2("cover", "open"),
95840
95846
  row$2("cover", "close"),
95841
- row$2("cover", "stop", require_device_type.DeviceFeature.CoverStoppable),
95842
- row$2("cover", "setPosition", require_device_type.DeviceFeature.CoverPositionable),
95843
- row$2("cover", "setTiltPosition", require_device_type.DeviceFeature.CoverTilt)
95847
+ row$2("cover", "stop", require_composed_stable_id.DeviceFeature.CoverStoppable),
95848
+ row$2("cover", "setPosition", require_composed_stable_id.DeviceFeature.CoverPositionable),
95849
+ row$2("cover", "setTiltPosition", require_composed_stable_id.DeviceFeature.CoverTilt)
95844
95850
  ],
95845
95851
  valve: [
95846
95852
  row$2("valve", "open"),
95847
95853
  row$2("valve", "close"),
95848
- row$2("valve", "setPosition", require_device_type.DeviceFeature.ValvePositionable)
95854
+ row$2("valve", "setPosition", require_composed_stable_id.DeviceFeature.ValvePositionable)
95849
95855
  ],
95850
95856
  lock: [row$2("lock-control", "lock"), row$2("lock-control", "unlock", null, true)],
95851
95857
  "media-player": [
95852
95858
  row$2("media-player", "play"),
95853
95859
  row$2("media-player", "pause"),
95854
- row$2("media-player", "setVolume", require_device_type.DeviceFeature.MediaPlayerVolume)
95860
+ row$2("media-player", "setVolume", require_composed_stable_id.DeviceFeature.MediaPlayerVolume)
95855
95861
  ],
95856
95862
  climate: [
95857
95863
  row$2("climate-control", "setMode"),
95858
95864
  row$2("climate-control", "setTarget"),
95859
- row$2("climate-control", "setFanMode", require_device_type.DeviceFeature.ClimateFanMode)
95865
+ row$2("climate-control", "setFanMode", require_composed_stable_id.DeviceFeature.ClimateFanMode)
95860
95866
  ]
95861
95867
  };
95862
95868
  function actuatorMethodRow(templateId, cap, method) {
@@ -96092,7 +96098,7 @@ function sourcePickForHeaterPlug() {
96092
96098
  purpose: "member",
96093
96099
  multiple: false,
96094
96100
  max: 1,
96095
- deviceTypes: [require_device_type.DeviceType.Switch],
96101
+ deviceTypes: [require_composed_stable_id.DeviceType.Switch],
96096
96102
  accept: [{
96097
96103
  cap: "switch",
96098
96104
  fieldPath: "on",
@@ -96706,8 +96712,8 @@ function roomCompositionExample(input) {
96706
96712
  return require_composition.CompositionSchema.parse({
96707
96713
  target: {
96708
96714
  kind: "new",
96709
- type: require_device_type.DeviceType.Sensor,
96710
- role: require_device_type.DeviceRole.TemperatureSensor
96715
+ type: require_composed_stable_id.DeviceType.Sensor,
96716
+ role: require_composed_stable_id.DeviceRole.TemperatureSensor
96711
96717
  },
96712
96718
  features: [{
96713
96719
  kind: "fields",
@@ -97133,7 +97139,7 @@ function petFountainFromEntitiesComposition(sources) {
97133
97139
  return require_composition.CompositionSchema.parse({
97134
97140
  target: {
97135
97141
  kind: "new",
97136
- type: require_device_type.DeviceType.PetFountain
97142
+ type: require_composed_stable_id.DeviceType.PetFountain
97137
97143
  },
97138
97144
  features: [
97139
97145
  {
@@ -98585,8 +98591,8 @@ function formulaProblem(expr, bindings) {
98585
98591
  * Map a device role to the primary composition cap (D939).
98586
98592
  */
98587
98593
  var ROLE_CAP_ALIASES = {
98588
- [require_device_type.DeviceRole.BinarySensor]: "binary",
98589
- [require_device_type.DeviceRole.MotionSensor]: "motion"
98594
+ [require_composed_stable_id.DeviceRole.BinarySensor]: "binary",
98595
+ [require_composed_stable_id.DeviceRole.MotionSensor]: "motion"
98590
98596
  };
98591
98597
  var KNOWN_CAPS = new Set(require_sleep.CAP_NAMES);
98592
98598
  function primaryCapForRole(role) {
@@ -98914,14 +98920,14 @@ function paletteLegend() {
98914
98920
  * any role works, including non-accessory ones like Doorbell).
98915
98921
  */
98916
98922
  var AccessoryKind = {
98917
- Siren: require_device_type.DeviceRole.Siren,
98918
- Floodlight: require_device_type.DeviceRole.Floodlight,
98919
- Spotlight: require_device_type.DeviceRole.Spotlight,
98920
- PirSensor: require_device_type.DeviceRole.PirSensor,
98921
- Chime: require_device_type.DeviceRole.Chime,
98922
- Autotrack: require_device_type.DeviceRole.Autotrack,
98923
- Nightvision: require_device_type.DeviceRole.Nightvision,
98924
- PrivacyMask: require_device_type.DeviceRole.PrivacyMask
98923
+ Siren: require_composed_stable_id.DeviceRole.Siren,
98924
+ Floodlight: require_composed_stable_id.DeviceRole.Floodlight,
98925
+ Spotlight: require_composed_stable_id.DeviceRole.Spotlight,
98926
+ PirSensor: require_composed_stable_id.DeviceRole.PirSensor,
98927
+ Chime: require_composed_stable_id.DeviceRole.Chime,
98928
+ Autotrack: require_composed_stable_id.DeviceRole.Autotrack,
98929
+ Nightvision: require_composed_stable_id.DeviceRole.Nightvision,
98930
+ PrivacyMask: require_composed_stable_id.DeviceRole.PrivacyMask
98925
98931
  };
98926
98932
  /**
98927
98933
  * Default English label for each accessory kind. Drivers append this
@@ -100084,7 +100090,7 @@ var BaseDeviceProvider = class extends require_sleep.BaseAddon {
100084
100090
  */
100085
100091
  async getManualCreationType(_input) {
100086
100092
  if (!await this.supportsManualCreation()) return { deviceType: null };
100087
- return { deviceType: Object.values(require_device_type.DeviceType).find((t) => this.deviceClasses[t] !== void 0) ?? null };
100093
+ return { deviceType: Object.values(require_composed_stable_id.DeviceType).find((t) => this.deviceClasses[t] !== void 0) ?? null };
100088
100094
  }
100089
100095
  async adoptDiscoveredDevice(_input) {
100090
100096
  throw new Error(`${this.providerName} provider does not support discovery-based adoption`);
@@ -100348,14 +100354,14 @@ var BaseDeviceProvider = class extends require_sleep.BaseAddon {
100348
100354
  });
100349
100355
  const meta = await this.ctx.api.deviceManager.loadMeta.query({ deviceId: id });
100350
100356
  if (meta === null) throw new Error(`${this.providerName}: no persisted meta for "${stableId}" (id ${id}) — cannot reload`);
100351
- const deviceType = Object.values(require_device_type.DeviceType).find((t) => t === meta.type);
100357
+ const deviceType = Object.values(require_composed_stable_id.DeviceType).find((t) => t === meta.type);
100352
100358
  const Class = deviceType !== void 0 ? this.deviceClasses[deviceType] : void 0;
100353
100359
  if (!Class) throw new Error(`${this.providerName}: no device class for type "${meta.type}" — "${stableId}" is an accessory child; reload its parent instead`);
100354
100360
  await devices.create(stableId, Class, {}, meta.parentDeviceId ?? null);
100355
100361
  const rows = await this.ctx.api.deviceManager.listPersistedByAddon.query({ addonId: this.addonId });
100356
100362
  for (const row of rows) {
100357
100363
  if (row.parentDeviceId !== id) continue;
100358
- const childType = Object.values(require_device_type.DeviceType).find((t) => t === row.type);
100364
+ const childType = Object.values(require_composed_stable_id.DeviceType).find((t) => t === row.type);
100359
100365
  const ChildClass = childType !== void 0 ? this.deviceClasses[childType] : void 0;
100360
100366
  if (!ChildClass) continue;
100361
100367
  try {
@@ -100620,11 +100626,41 @@ function isBatteryPresenceFault(presence) {
100620
100626
  * priority-in-sync.ts` fails the build when either drifts — the comment that
100621
100627
  * used to ask for this could not.
100622
100628
  *
100623
- * The rule has two halves and the ORDER matters: an operator's explicit pick
100624
- * wins outright, and only in its absence does type priority decide. The pick is
100625
- * keyed on the child's re-sync-stable `entityId`, not its numeric id, so it
100626
- * survives a re-sync that reallocates ids.
100629
+ * The rule has three halves and the ORDER matters: an operator's explicit pick
100630
+ * wins outright; else a declaration on the device type
100631
+ * ({@link CONTAINER_PRIMARY_CHILD_RULES}); else role, namesake, then type
100632
+ * priority. The pick is keyed on the child's re-sync-stable `entityId`, not
100633
+ * its numeric id, so it survives a re-sync that reallocates ids.
100634
+ */
100635
+ /**
100636
+ * Device types that name their primary child. A heat pump stands for itself:
100637
+ * its hero is the system row, not the climate circuit that type-rank would
100638
+ * otherwise pick.
100627
100639
  */
100640
+ var CONTAINER_PRIMARY_CHILD_RULES = [{
100641
+ deviceType: require_composed_stable_id.DeviceType.HeatPump,
100642
+ primary: "self"
100643
+ }];
100644
+ /**
100645
+ * The type declaration, before the heuristic. `fall-through` means the
100646
+ * heuristic still decides: the type declared nothing, or it named a child
100647
+ * type that is not among the children.
100648
+ */
100649
+ function declaredChildType(primary) {
100650
+ if (primary === "self") return void 0;
100651
+ return primary.childType;
100652
+ }
100653
+ function applyPrimaryChildRule(rule, children) {
100654
+ if (rule === void 0) return { kind: "fall-through" };
100655
+ const childType = declaredChildType(rule.primary);
100656
+ if (childType === void 0) return { kind: "none" };
100657
+ const match = children.find((child) => child.type === childType);
100658
+ if (match === void 0) return { kind: "fall-through" };
100659
+ return {
100660
+ kind: "child",
100661
+ child: match
100662
+ };
100663
+ }
100628
100664
  /**
100629
100665
  * Type priority, most→least "primary". An actuator (climate / lock / cover / …)
100630
100666
  * outranks a bare `switch` so a container's defining child wins over its
@@ -100712,9 +100748,10 @@ function rank(type) {
100712
100748
  }
100713
100749
  /**
100714
100750
  * The child a container stands for: the operator's pick when it still exists,
100715
- * else the highest-priority type. `null` for a childless container — a caller
100716
- * must decide what an empty container means for it, rather than being handed a
100717
- * child that is not there.
100751
+ * else the device type's declaration, else the highest-priority type. `null`
100752
+ * for a childless container, and for a type that stands for itself — a caller
100753
+ * must decide what "no child" means for it, rather than being handed a child
100754
+ * that is not the device.
100718
100755
  */
100719
100756
  /**
100720
100757
  * Two names for the same thing, compared the way an integration writes them.
@@ -100743,11 +100780,14 @@ function sameName(childName, containerName) {
100743
100780
  const flatten = (v) => v.toLowerCase().replace(/[-_\s]+/g, " ").trim();
100744
100781
  return flatten(childName) === flatten(containerName);
100745
100782
  }
100746
- function resolveContainerPrimaryChild(children, overrideEntityId, containerName) {
100783
+ function resolveContainerPrimaryChild(children, overrideEntityId, containerName, containerType) {
100747
100784
  if (overrideEntityId !== void 0 && overrideEntityId !== null) {
100748
100785
  const picked = children.find((c) => c.stableId === overrideEntityId) ?? children.find((c) => c.entityId !== void 0 && c.entityId === overrideEntityId);
100749
100786
  if (picked !== void 0) return picked;
100750
100787
  }
100788
+ const declared = applyPrimaryChildRule(CONTAINER_PRIMARY_CHILD_RULES.find((entry) => entry.deviceType === containerType), children);
100789
+ if (declared.kind === "none") return null;
100790
+ if (declared.kind === "child") return declared.child;
100751
100791
  const namesake = (c) => containerName !== void 0 && containerName.length > 0 && c.name !== void 0 && sameName(c.name, containerName) ? 0 : 1;
100752
100792
  return [...children].toSorted((a, b) => roleRank(a.role) - roleRank(b.role) || namesake(a) - namesake(b) || rank(a.type) - rank(b.type))[0] ?? null;
100753
100793
  }
@@ -100785,7 +100825,7 @@ function expandContainer(id, byId, byParent, visited, out) {
100785
100825
  if (visited.has(id)) return;
100786
100826
  const candidate = byId.get(id);
100787
100827
  if (!candidate) return;
100788
- if (candidate.type !== require_device_type.DeviceType.Container) {
100828
+ if (candidate.type !== require_composed_stable_id.DeviceType.Container) {
100789
100829
  out.add(id);
100790
100830
  return;
100791
100831
  }
@@ -100797,7 +100837,7 @@ function expandContainer(id, byId, byParent, visited, out) {
100797
100837
  type: c.type,
100798
100838
  ...c.role !== void 0 && c.role !== null ? { role: c.role } : {},
100799
100839
  ...c.name !== void 0 ? { name: c.name } : {}
100800
- })), byId.get(id)?.primaryChildEntityId, byId.get(id)?.name);
100840
+ })), byId.get(id)?.primaryChildEntityId, byId.get(id)?.name, candidate.type);
100801
100841
  if (primary !== null) expandContainer(primary.id, byId, byParent, nextVisited, out);
100802
100842
  }
100803
100843
  /**
@@ -100829,11 +100869,11 @@ function legacyAutoLinkIds(params) {
100829
100869
  const ids = /* @__PURE__ */ new Set();
100830
100870
  const expand = (id) => expandContainer(id, byId, byParent, /* @__PURE__ */ new Set(), ids);
100831
100871
  for (const c of candidates) {
100832
- if (c.type === require_device_type.DeviceType.Container) continue;
100872
+ if (c.type === require_composed_stable_id.DeviceType.Container) continue;
100833
100873
  if (c.location !== selfLocation) continue;
100834
100874
  if (c.parentDeviceId === selfId) continue;
100835
100875
  const parent = c.parentDeviceId !== null ? byId.get(c.parentDeviceId) : void 0;
100836
- if (parent !== void 0 && parent.type === require_device_type.DeviceType.Container) {
100876
+ if (parent !== void 0 && parent.type === require_composed_stable_id.DeviceType.Container) {
100837
100877
  expand(parent.id);
100838
100878
  continue;
100839
100879
  }
@@ -100982,7 +101022,7 @@ var DeclaredDevices = class {
100982
101022
  } catch (err) {
100983
101023
  this.ports.logger.warn("could not seed the instance record of a declared integration", {
100984
101024
  tags: { integrationId: integration.id },
100985
- meta: { error: require_device_type.errMsg(err) }
101025
+ meta: { error: require_composed_stable_id.errMsg(err) }
100986
101026
  });
100987
101027
  }
100988
101028
  }
@@ -101292,46 +101332,46 @@ function widenDeviceConstructor(ctor) {
101292
101332
  * placeholder HA types whose inline control renders a dash).
101293
101333
  */
101294
101334
  var DEVICE_TYPE_CONTROL_KIND = {
101295
- [require_device_type.DeviceType.Cover]: "cover",
101296
- [require_device_type.DeviceType.Valve]: "valve",
101297
- [require_device_type.DeviceType.Humidifier]: "humidifier",
101298
- [require_device_type.DeviceType.WaterHeater]: "water-heater",
101299
- [require_device_type.DeviceType.HeatPump]: "dummy",
101300
- [require_device_type.DeviceType.Camera]: "dummy",
101301
- [require_device_type.DeviceType.Hub]: "dummy",
101302
- [require_device_type.DeviceType.Switch]: "switch",
101303
- [require_device_type.DeviceType.Siren]: "switch",
101304
- [require_device_type.DeviceType.Light]: "light",
101305
- [require_device_type.DeviceType.Fan]: "fan",
101306
- [require_device_type.DeviceType.Sensor]: "sensor",
101307
- [require_device_type.DeviceType.Thermostat]: "thermostat",
101308
- [require_device_type.DeviceType.Climate]: "climate",
101309
- [require_device_type.DeviceType.Button]: "button",
101310
- [require_device_type.DeviceType.EventEmitter]: "dummy",
101311
- [require_device_type.DeviceType.Update]: "update",
101312
- [require_device_type.DeviceType.Generic]: "dummy",
101313
- [require_device_type.DeviceType.Notifier]: "dummy",
101314
- [require_device_type.DeviceType.Script]: "script",
101315
- [require_device_type.DeviceType.Automation]: "automation",
101316
- [require_device_type.DeviceType.Lock]: "lock",
101317
- [require_device_type.DeviceType.MediaPlayer]: "media-player",
101318
- [require_device_type.DeviceType.AlarmPanel]: "alarm",
101319
- [require_device_type.DeviceType.Control]: "control",
101320
- [require_device_type.DeviceType.Presence]: "sensor",
101321
- [require_device_type.DeviceType.Weather]: "weather",
101322
- [require_device_type.DeviceType.Vacuum]: "vacuum",
101323
- [require_device_type.DeviceType.LawnMower]: "lawn-mower",
101324
- [require_device_type.DeviceType.Container]: "dummy",
101325
- [require_device_type.DeviceType.Image]: "image",
101326
- [require_device_type.DeviceType.PetFeeder]: "pet-feeder",
101327
- [require_device_type.DeviceType.PetFountain]: "pet-fountain",
101328
- [require_device_type.DeviceType.Heater]: "heater",
101329
- [require_device_type.DeviceType.Dishwasher]: "dishwasher",
101330
- [require_device_type.DeviceType.Washer]: "appliance",
101331
- [require_device_type.DeviceType.Dryer]: "appliance",
101332
- [require_device_type.DeviceType.Gateway]: "dummy"
101335
+ [require_composed_stable_id.DeviceType.Cover]: "cover",
101336
+ [require_composed_stable_id.DeviceType.Valve]: "valve",
101337
+ [require_composed_stable_id.DeviceType.Humidifier]: "humidifier",
101338
+ [require_composed_stable_id.DeviceType.WaterHeater]: "water-heater",
101339
+ [require_composed_stable_id.DeviceType.HeatPump]: "dummy",
101340
+ [require_composed_stable_id.DeviceType.Camera]: "dummy",
101341
+ [require_composed_stable_id.DeviceType.Hub]: "dummy",
101342
+ [require_composed_stable_id.DeviceType.Switch]: "switch",
101343
+ [require_composed_stable_id.DeviceType.Siren]: "switch",
101344
+ [require_composed_stable_id.DeviceType.Light]: "light",
101345
+ [require_composed_stable_id.DeviceType.Fan]: "fan",
101346
+ [require_composed_stable_id.DeviceType.Sensor]: "sensor",
101347
+ [require_composed_stable_id.DeviceType.Thermostat]: "thermostat",
101348
+ [require_composed_stable_id.DeviceType.Climate]: "climate",
101349
+ [require_composed_stable_id.DeviceType.Button]: "button",
101350
+ [require_composed_stable_id.DeviceType.EventEmitter]: "dummy",
101351
+ [require_composed_stable_id.DeviceType.Update]: "update",
101352
+ [require_composed_stable_id.DeviceType.Generic]: "dummy",
101353
+ [require_composed_stable_id.DeviceType.Notifier]: "dummy",
101354
+ [require_composed_stable_id.DeviceType.Script]: "script",
101355
+ [require_composed_stable_id.DeviceType.Automation]: "automation",
101356
+ [require_composed_stable_id.DeviceType.Lock]: "lock",
101357
+ [require_composed_stable_id.DeviceType.MediaPlayer]: "media-player",
101358
+ [require_composed_stable_id.DeviceType.AlarmPanel]: "alarm",
101359
+ [require_composed_stable_id.DeviceType.Control]: "control",
101360
+ [require_composed_stable_id.DeviceType.Presence]: "sensor",
101361
+ [require_composed_stable_id.DeviceType.Weather]: "weather",
101362
+ [require_composed_stable_id.DeviceType.Vacuum]: "vacuum",
101363
+ [require_composed_stable_id.DeviceType.LawnMower]: "lawn-mower",
101364
+ [require_composed_stable_id.DeviceType.Container]: "dummy",
101365
+ [require_composed_stable_id.DeviceType.Image]: "image",
101366
+ [require_composed_stable_id.DeviceType.PetFeeder]: "pet-feeder",
101367
+ [require_composed_stable_id.DeviceType.PetFountain]: "pet-fountain",
101368
+ [require_composed_stable_id.DeviceType.Heater]: "heater",
101369
+ [require_composed_stable_id.DeviceType.Dishwasher]: "dishwasher",
101370
+ [require_composed_stable_id.DeviceType.Washer]: "appliance",
101371
+ [require_composed_stable_id.DeviceType.Dryer]: "appliance",
101372
+ [require_composed_stable_id.DeviceType.Gateway]: "dummy"
101333
101373
  };
101334
- var DEVICE_TYPE_VALUES = new Set(Object.values(require_device_type.DeviceType));
101374
+ var DEVICE_TYPE_VALUES = new Set(Object.values(require_composed_stable_id.DeviceType));
101335
101375
  /**
101336
101376
  * Runtime-string-safe base resolver: a device row's `type` crosses the wire as
101337
101377
  * a plain string, so an unrecognised value resolves to `null` instead of
@@ -101375,15 +101415,15 @@ var SENSOR_FEATURES = [
101375
101415
  function pickAccessoryControl(device) {
101376
101416
  const set = new Set(device.features);
101377
101417
  switch (device.type) {
101378
- case require_device_type.DeviceType.Cover: return { kind: "cover" };
101379
- case require_device_type.DeviceType.Valve: return { kind: "valve" };
101380
- case require_device_type.DeviceType.Lock: return { kind: "lock" };
101381
- case require_device_type.DeviceType.AlarmPanel: return { kind: "alarm" };
101382
- case require_device_type.DeviceType.Light: return set.has("brightness") ? { kind: "brightness" } : { kind: "switch" };
101383
- case require_device_type.DeviceType.Switch:
101384
- case require_device_type.DeviceType.Siren: return { kind: "switch" };
101385
- case require_device_type.DeviceType.Sensor:
101386
- case require_device_type.DeviceType.Presence: {
101418
+ case require_composed_stable_id.DeviceType.Cover: return { kind: "cover" };
101419
+ case require_composed_stable_id.DeviceType.Valve: return { kind: "valve" };
101420
+ case require_composed_stable_id.DeviceType.Lock: return { kind: "lock" };
101421
+ case require_composed_stable_id.DeviceType.AlarmPanel: return { kind: "alarm" };
101422
+ case require_composed_stable_id.DeviceType.Light: return set.has("brightness") ? { kind: "brightness" } : { kind: "switch" };
101423
+ case require_composed_stable_id.DeviceType.Switch:
101424
+ case require_composed_stable_id.DeviceType.Siren: return { kind: "switch" };
101425
+ case require_composed_stable_id.DeviceType.Sensor:
101426
+ case require_composed_stable_id.DeviceType.Presence: {
101387
101427
  const sensor = SENSOR_FEATURES.find((f) => set.has(f));
101388
101428
  return sensor ? {
101389
101429
  kind: "sensor",
@@ -101570,7 +101610,7 @@ var lockContribution = contribution("lock-control", LockControlStatusSchema, (sl
101570
101610
  const title = words?.title ?? require_sleep.t("Unknown", "Sconosciuto");
101571
101611
  return {
101572
101612
  reading: reading("lock-control", words?.state ?? "unknown", false, words?.title),
101573
- rows: [row$1("lock", state === "locked" || state === "locking" ? "lock" : "lock-open", joinText([title, since]), lockControls(state, ctx.features.includes(require_device_type.DeviceFeature.LockOpen)))],
101613
+ rows: [row$1("lock", state === "locked" || state === "locking" ? "lock" : "lock-open", joinText([title, since]), lockControls(state, ctx.features.includes(require_composed_stable_id.DeviceFeature.LockOpen)))],
101574
101614
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, "muted")] },
101575
101615
  ...words === null ? {} : { tiles: { left: [{
101576
101616
  label: require_sleep.t("Door", "Porta"),
@@ -101748,7 +101788,7 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
101748
101788
  const speed = slice?.speed ?? null;
101749
101789
  const state = speed === null ? "unknown" : speed > 0 ? "running" : "off";
101750
101790
  const controls = [];
101751
- if (speed !== null || has$3(ctx, require_device_type.DeviceFeature.FanSpeed)) controls.push({
101791
+ if (speed !== null || has$3(ctx, require_composed_stable_id.DeviceFeature.FanSpeed)) controls.push({
101752
101792
  kind: "slider",
101753
101793
  id: "fan.speed",
101754
101794
  label: require_sleep.t("Speed", "Velocità"),
@@ -101777,7 +101817,7 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
101777
101817
  },
101778
101818
  valueArg: "preset"
101779
101819
  });
101780
- if (slice?.oscillating != null || has$3(ctx, require_device_type.DeviceFeature.FanOscillating)) controls.push({
101820
+ if (slice?.oscillating != null || has$3(ctx, require_composed_stable_id.DeviceFeature.FanOscillating)) controls.push({
101781
101821
  kind: "toggle",
101782
101822
  id: "fan.oscillating",
101783
101823
  label: require_sleep.t("Oscillate", "Oscilla"),
@@ -101785,7 +101825,7 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
101785
101825
  turnOn: action("fan.oscillate.on", require_sleep.t("Oscillate", "Oscilla"), "refresh-cw", "fan-control", "setOscillating", { oscillating: true }),
101786
101826
  turnOff: action("fan.oscillate.off", require_sleep.t("Hold still", "Fermo"), "square", "fan-control", "setOscillating", { oscillating: false })
101787
101827
  });
101788
- if (slice?.direction != null || has$3(ctx, require_device_type.DeviceFeature.FanDirection)) controls.push({
101828
+ if (slice?.direction != null || has$3(ctx, require_composed_stable_id.DeviceFeature.FanDirection)) controls.push({
101789
101829
  kind: "picker",
101790
101830
  id: "fan.direction",
101791
101831
  label: require_sleep.t("Direction", "Direzione"),
@@ -102228,11 +102268,11 @@ var HUE_PRESETS = [
102228
102268
  ];
102229
102269
  function colorControls(ctx, current) {
102230
102270
  const controls = [];
102231
- if (has$2(ctx, require_device_type.DeviceFeature.LightColorMired)) for (const p of WHITE_PRESETS) controls.push(asAction(action(p.id, require_sleep.t(p.en, p.it), p.icon, "color", "setColor", { color: {
102271
+ if (has$2(ctx, require_composed_stable_id.DeviceFeature.LightColorMired)) for (const p of WHITE_PRESETS) controls.push(asAction(action(p.id, require_sleep.t(p.en, p.it), p.icon, "color", "setColor", { color: {
102232
102272
  mode: "mired",
102233
102273
  colorTemperature: p.mired
102234
102274
  } })));
102235
- if (has$2(ctx, require_device_type.DeviceFeature.LightColorHsv)) {
102275
+ if (has$2(ctx, require_composed_stable_id.DeviceFeature.LightColorHsv)) {
102236
102276
  const s = current?.s ?? 100;
102237
102277
  const v = current?.v ?? 100;
102238
102278
  for (const p of HUE_PRESETS) controls.push(asAction(action(p.id, require_sleep.t(p.en, p.it), "palette", "color", "setColor", { color: {
@@ -102331,7 +102371,7 @@ function travelFragment(s, state, position, tilt, ctx) {
102331
102371
  const words = travelWords(state, position);
102332
102372
  const controls = travelActions(s, state, state === "opening" || state === "closing").map(asAction);
102333
102373
  if (position !== null || s.positionable) controls.push(positionSlider(s, position));
102334
- if (s.cap === "cover" && (tilt !== null || has$2(ctx, require_device_type.DeviceFeature.CoverTilt))) controls.push({
102374
+ if (s.cap === "cover" && (tilt !== null || has$2(ctx, require_composed_stable_id.DeviceFeature.CoverTilt))) controls.push({
102335
102375
  kind: "slider",
102336
102376
  id: "cover.tilt",
102337
102377
  label: require_sleep.t("Tilt", "Inclinazione"),
@@ -102368,15 +102408,15 @@ var ACTUATORS_FAMILY_CONTRIBUTIONS = {
102368
102408
  cap: "cover",
102369
102409
  rowId: "cover",
102370
102410
  source: "cover",
102371
- stoppable: has$2(ctx, require_device_type.DeviceFeature.CoverStoppable),
102372
- positionable: has$2(ctx, require_device_type.DeviceFeature.CoverPositionable)
102411
+ stoppable: has$2(ctx, require_composed_stable_id.DeviceFeature.CoverStoppable),
102412
+ positionable: has$2(ctx, require_composed_stable_id.DeviceFeature.CoverPositionable)
102373
102413
  }, slice?.state, slice?.position ?? null, slice?.tiltPosition ?? null, ctx)),
102374
102414
  valve: contribution("valve", ValveStatusSchema, (slice, ctx) => travelFragment({
102375
102415
  cap: "valve",
102376
102416
  rowId: "valve",
102377
102417
  source: "valve",
102378
102418
  stoppable: false,
102379
- positionable: has$2(ctx, require_device_type.DeviceFeature.ValvePositionable)
102419
+ positionable: has$2(ctx, require_composed_stable_id.DeviceFeature.ValvePositionable)
102380
102420
  }, slice?.state, slice?.position ?? null, null, ctx)),
102381
102421
  humidifier: contribution("humidifier", HumidifierStatusSchema, (slice) => {
102382
102422
  if (slice === void 0) return { reading: reading("humidifier", "unknown") };
@@ -102996,7 +103036,7 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
102996
103036
  turnOn: action(`${id}.on`, require_sleep.t(en, it), "wind", "climate-control", method, { on: true }),
102997
103037
  turnOff: action(`${id}.off`, require_sleep.t(en, it), "wind", "climate-control", method, { on: false })
102998
103038
  }] : [];
102999
- fanControls.push(...swing("climate.swing-vertical", "Swing vertical", "Oscillazione verticale", "setSwingVertical", slice.swingVertical, require_device_type.DeviceFeature.ClimateSwingVertical), ...swing("climate.swing-horizontal", "Swing horizontal", "Oscillazione orizzontale", "setSwingHorizontal", slice.swingHorizontal, require_device_type.DeviceFeature.ClimateSwingHorizontal));
103039
+ fanControls.push(...swing("climate.swing-vertical", "Swing vertical", "Oscillazione verticale", "setSwingVertical", slice.swingVertical, require_composed_stable_id.DeviceFeature.ClimateSwingVertical), ...swing("climate.swing-horizontal", "Swing horizontal", "Oscillazione orizzontale", "setSwingHorizontal", slice.swingHorizontal, require_composed_stable_id.DeviceFeature.ClimateSwingHorizontal));
103000
103040
  const rows = [{
103001
103041
  id: "climate-mode",
103002
103042
  icon: "thermometer",
@@ -103194,7 +103234,7 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
103194
103234
  /**
103195
103235
  * The heat pump's contribution to a hero (D1026): the compressor scene, every
103196
103236
  * circuit as a row with its own label and icon, the powers as pills (the
103197
- * instantaneous COP only when both powers are known) and a "System" group with
103237
+ * instantaneous COP is "—" when it cannot be computed) and a "System" group with
103198
103238
  * one selector per mode. Values and their limits come from the slice, which the
103199
103239
  * gateway filled: a selector with no allowed value is not drawn, a missing
103200
103240
  * reading is never a 0 (D393).
@@ -103266,9 +103306,22 @@ function circuitRow(circuit) {
103266
103306
  };
103267
103307
  }
103268
103308
  var kilowatts = (watts) => `${Number((watts / 1e3).toFixed(2))} kW`;
103309
+ /** A COP that cannot be computed is still the pill: "—", never an absent reading (D393). */
103310
+ function copPill(cop) {
103311
+ if (cop === null) return {
103312
+ icon: "gauge",
103313
+ text: require_sleep.t("Instantaneous COP —", "COP istantaneo —"),
103314
+ tone: "muted"
103315
+ };
103316
+ const text = String(Number(cop.toFixed(1)));
103317
+ return {
103318
+ icon: "gauge",
103319
+ text: require_sleep.t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
103320
+ tone: "success"
103321
+ };
103322
+ }
103269
103323
  function powerPills(status) {
103270
103324
  const { thermalW, electricalW } = status.power;
103271
- const cop = heatPumpInstantCop(status.power);
103272
103325
  const pills = [];
103273
103326
  if (thermalW !== null) pills.push({
103274
103327
  icon: "flame",
@@ -103280,14 +103333,7 @@ function powerPills(status) {
103280
103333
  text: require_sleep.t(`Electrical ${kilowatts(electricalW)}`, `Elettrica ${kilowatts(electricalW)}`),
103281
103334
  tone: "muted"
103282
103335
  });
103283
- if (cop !== null) {
103284
- const text = String(Number(cop.toFixed(1)));
103285
- pills.push({
103286
- icon: "gauge",
103287
- text: require_sleep.t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
103288
- tone: "success"
103289
- });
103290
- }
103336
+ pills.push(copPill(heatPumpInstantCop(status.power)));
103291
103337
  return pills;
103292
103338
  }
103293
103339
  /** The independent system modes, in the order the card draws them. */
@@ -103550,8 +103596,8 @@ function deriveMediaPlayerView(status, features, extras = {}) {
103550
103596
  return {
103551
103597
  ...derivePowerGatedView(status, features, extras),
103552
103598
  nowPlaying: nowPlayingOf(status),
103553
- shuffleReadOnly: status !== void 0 && status.shuffle !== null && !(features?.includes(require_device_type.DeviceFeature.MediaPlayerShuffle) ?? false),
103554
- repeatReadOnly: status !== void 0 && status.repeat !== null && !(features?.includes(require_device_type.DeviceFeature.MediaPlayerRepeat) ?? false)
103599
+ shuffleReadOnly: status !== void 0 && status.shuffle !== null && !(features?.includes(require_composed_stable_id.DeviceFeature.MediaPlayerShuffle) ?? false),
103600
+ repeatReadOnly: status !== void 0 && status.repeat !== null && !(features?.includes(require_composed_stable_id.DeviceFeature.MediaPlayerRepeat) ?? false)
103555
103601
  };
103556
103602
  }
103557
103603
  function derivePowerGatedView(status, features, extras) {
@@ -103588,7 +103634,7 @@ function channelOf(status) {
103588
103634
  }
103589
103635
  function deriveFromStatus(status, features) {
103590
103636
  const has = (f) => features?.includes(f) ?? false;
103591
- const canSwitchPower = has(require_device_type.DeviceFeature.MediaPlayerPower);
103637
+ const canSwitchPower = has(require_composed_stable_id.DeviceFeature.MediaPlayerPower);
103592
103638
  if (status === void 0 || status.state === void 0) return {
103593
103639
  ...UNKNOWN_VIEW,
103594
103640
  canSwitchPower
@@ -103603,8 +103649,8 @@ function deriveFromStatus(status, features) {
103603
103649
  canSwitchPower
103604
103650
  };
103605
103651
  if (power !== "on") return base;
103606
- const hasTransportFeature = has(require_device_type.DeviceFeature.MediaPlayerNext) || has(require_device_type.DeviceFeature.MediaPlayerPrevious) || has(require_device_type.DeviceFeature.MediaPlayerStop) || has(require_device_type.DeviceFeature.MediaPlayerSeek);
103607
- const volume = has(require_device_type.DeviceFeature.MediaPlayerVolume) ? "slider" : has(require_device_type.DeviceFeature.MediaPlayerVolumeStep) ? "steps" : "none";
103652
+ const hasTransportFeature = has(require_composed_stable_id.DeviceFeature.MediaPlayerNext) || has(require_composed_stable_id.DeviceFeature.MediaPlayerPrevious) || has(require_composed_stable_id.DeviceFeature.MediaPlayerStop) || has(require_composed_stable_id.DeviceFeature.MediaPlayerSeek);
103653
+ const volume = has(require_composed_stable_id.DeviceFeature.MediaPlayerVolume) ? "slider" : has(require_composed_stable_id.DeviceFeature.MediaPlayerVolumeStep) ? "steps" : "none";
103608
103654
  const sourceName = typeof status.source === "string" ? status.source.trim() : "";
103609
103655
  const options = status.availableSources ?? [];
103610
103656
  const hasSource = sourceName !== "" || options.length > 0;
@@ -103612,24 +103658,24 @@ function deriveFromStatus(status, features) {
103612
103658
  ...base,
103613
103659
  transport: {
103614
103660
  playPause: running !== "none" || hasTransportFeature,
103615
- previous: has(require_device_type.DeviceFeature.MediaPlayerPrevious),
103616
- next: has(require_device_type.DeviceFeature.MediaPlayerNext),
103617
- stop: has(require_device_type.DeviceFeature.MediaPlayerStop)
103661
+ previous: has(require_composed_stable_id.DeviceFeature.MediaPlayerPrevious),
103662
+ next: has(require_composed_stable_id.DeviceFeature.MediaPlayerNext),
103663
+ stop: has(require_composed_stable_id.DeviceFeature.MediaPlayerStop)
103618
103664
  },
103619
- seek: has(require_device_type.DeviceFeature.MediaPlayerSeek) && status.duration !== null && status.duration > 0,
103665
+ seek: has(require_composed_stable_id.DeviceFeature.MediaPlayerSeek) && status.duration !== null && status.duration > 0,
103620
103666
  volume,
103621
- mute: has(require_device_type.DeviceFeature.MediaPlayerMute) || volume === "slider" && status.isMuted !== null,
103667
+ mute: has(require_composed_stable_id.DeviceFeature.MediaPlayerMute) || volume === "slider" && status.isMuted !== null,
103622
103668
  volumeKnown: status.volumeLevel !== null,
103623
103669
  muteKnown: status.isMuted !== null,
103624
103670
  artworkUrl: artworkOf(status),
103625
103671
  source: hasSource ? {
103626
103672
  current: sourceName,
103627
103673
  options,
103628
- selectable: has(require_device_type.DeviceFeature.MediaPlayerSelectSource) && options.length > 1
103674
+ selectable: has(require_composed_stable_id.DeviceFeature.MediaPlayerSelectSource) && options.length > 1
103629
103675
  } : null,
103630
- channel: has(require_device_type.DeviceFeature.MediaPlayerChannelStep) ? { current: channelOf(status) } : null,
103631
- shuffle: has(require_device_type.DeviceFeature.MediaPlayerShuffle) && status.shuffle !== null,
103632
- repeat: has(require_device_type.DeviceFeature.MediaPlayerRepeat) && status.repeat !== null
103676
+ channel: has(require_composed_stable_id.DeviceFeature.MediaPlayerChannelStep) ? { current: channelOf(status) } : null,
103677
+ shuffle: has(require_composed_stable_id.DeviceFeature.MediaPlayerShuffle) && status.shuffle !== null,
103678
+ repeat: has(require_composed_stable_id.DeviceFeature.MediaPlayerRepeat) && status.repeat !== null
103633
103679
  };
103634
103680
  }
103635
103681
  //#endregion
@@ -103657,7 +103703,7 @@ function durationText(seconds) {
103657
103703
  return require_sleep.t(text, text);
103658
103704
  }
103659
103705
  function deviceTypeOf(type) {
103660
- return Object.values(require_device_type.DeviceType).find((t) => t === type);
103706
+ return Object.values(require_composed_stable_id.DeviceType).find((t) => t === type);
103661
103707
  }
103662
103708
  var switchContribution = contribution("switch", SwitchStatusSchema, (slice) => {
103663
103709
  const on = slice?.on ?? null;
@@ -104001,7 +104047,7 @@ function mediaReading(view) {
104001
104047
  var mp = (id, en, it, icon, method, emphasis = "normal") => asAction(action(`playback.${id}`, require_sleep.t(en, it), icon, "media-player", method, {}, emphasis));
104002
104048
  function playbackControls(view, ctx) {
104003
104049
  const controls = [];
104004
- const stop = has$1(ctx, require_device_type.DeviceFeature.MediaPlayerStop);
104050
+ const stop = has$1(ctx, require_composed_stable_id.DeviceFeature.MediaPlayerStop);
104005
104051
  if (view.power === "unknown") {
104006
104052
  controls.push(mp("play", "Play", "Riproduci", "play", "play"), mp("pause", "Pause", "Pausa", "pause", "pause"));
104007
104053
  if (stop) controls.push(mp("stop", "Stop", "Stop", "square", "stop"));
@@ -104272,47 +104318,47 @@ var UPDATE_LAYOUT = { rows: ["update"] };
104272
104318
  var CONTROL_LAYOUT = { rows: ["control"] };
104273
104319
  var BUTTON_LAYOUT = { rows: ["button"] };
104274
104320
  var HERO_LAYOUT_BY_TYPE = {
104275
- [require_device_type.DeviceType.Camera]: HERO_LAYOUT_DEFAULT,
104276
- [require_device_type.DeviceType.Hub]: HERO_LAYOUT_DEFAULT,
104277
- [require_device_type.DeviceType.Light]: LIGHT_LAYOUT,
104278
- [require_device_type.DeviceType.Siren]: HERO_LAYOUT_DEFAULT,
104279
- [require_device_type.DeviceType.Switch]: SWITCH_LAYOUT,
104280
- [require_device_type.DeviceType.Sensor]: HERO_LAYOUT_DEFAULT,
104281
- [require_device_type.DeviceType.Thermostat]: CLIMATE_LAYOUT,
104282
- [require_device_type.DeviceType.Climate]: CLIMATE_LAYOUT,
104283
- [require_device_type.DeviceType.Button]: BUTTON_LAYOUT,
104284
- [require_device_type.DeviceType.EventEmitter]: HERO_LAYOUT_DEFAULT,
104285
- [require_device_type.DeviceType.Update]: UPDATE_LAYOUT,
104286
- [require_device_type.DeviceType.Generic]: HERO_LAYOUT_DEFAULT,
104287
- [require_device_type.DeviceType.Notifier]: HERO_LAYOUT_DEFAULT,
104288
- [require_device_type.DeviceType.Script]: SCRIPT_LAYOUT,
104289
- [require_device_type.DeviceType.Automation]: AUTOMATION_LAYOUT,
104290
- [require_device_type.DeviceType.Lock]: LOCK_LAYOUT,
104291
- [require_device_type.DeviceType.Cover]: COVER_LAYOUT,
104292
- [require_device_type.DeviceType.Valve]: VALVE_LAYOUT,
104293
- [require_device_type.DeviceType.Humidifier]: HUMIDIFIER_LAYOUT,
104294
- [require_device_type.DeviceType.WaterHeater]: CLIMATE_LAYOUT,
104295
- [require_device_type.DeviceType.HeatPump]: HEAT_PUMP_LAYOUT,
104296
- [require_device_type.DeviceType.Fan]: FAN_LAYOUT,
104297
- [require_device_type.DeviceType.MediaPlayer]: MEDIA_PLAYER_LAYOUT,
104298
- [require_device_type.DeviceType.AlarmPanel]: ALARM_LAYOUT,
104299
- [require_device_type.DeviceType.Control]: CONTROL_LAYOUT,
104300
- [require_device_type.DeviceType.Presence]: HERO_LAYOUT_DEFAULT,
104301
- [require_device_type.DeviceType.Weather]: HERO_LAYOUT_DEFAULT,
104302
- [require_device_type.DeviceType.Vacuum]: VACUUM_LAYOUT,
104303
- [require_device_type.DeviceType.LawnMower]: MOWER_LAYOUT,
104304
- [require_device_type.DeviceType.Container]: HERO_LAYOUT_DEFAULT,
104305
- [require_device_type.DeviceType.Image]: HERO_LAYOUT_DEFAULT,
104306
- [require_device_type.DeviceType.PetFeeder]: FEEDER_LAYOUT,
104307
- [require_device_type.DeviceType.PetFountain]: FOUNTAIN_LAYOUT,
104308
- [require_device_type.DeviceType.Dishwasher]: DISHWASHER_LAYOUT,
104309
- [require_device_type.DeviceType.Washer]: APPLIANCE_LAYOUT,
104310
- [require_device_type.DeviceType.Heater]: HEATER_LAYOUT,
104311
- [require_device_type.DeviceType.Dryer]: APPLIANCE_LAYOUT,
104312
- [require_device_type.DeviceType.Gateway]: HERO_LAYOUT_DEFAULT
104321
+ [require_composed_stable_id.DeviceType.Camera]: HERO_LAYOUT_DEFAULT,
104322
+ [require_composed_stable_id.DeviceType.Hub]: HERO_LAYOUT_DEFAULT,
104323
+ [require_composed_stable_id.DeviceType.Light]: LIGHT_LAYOUT,
104324
+ [require_composed_stable_id.DeviceType.Siren]: HERO_LAYOUT_DEFAULT,
104325
+ [require_composed_stable_id.DeviceType.Switch]: SWITCH_LAYOUT,
104326
+ [require_composed_stable_id.DeviceType.Sensor]: HERO_LAYOUT_DEFAULT,
104327
+ [require_composed_stable_id.DeviceType.Thermostat]: CLIMATE_LAYOUT,
104328
+ [require_composed_stable_id.DeviceType.Climate]: CLIMATE_LAYOUT,
104329
+ [require_composed_stable_id.DeviceType.Button]: BUTTON_LAYOUT,
104330
+ [require_composed_stable_id.DeviceType.EventEmitter]: HERO_LAYOUT_DEFAULT,
104331
+ [require_composed_stable_id.DeviceType.Update]: UPDATE_LAYOUT,
104332
+ [require_composed_stable_id.DeviceType.Generic]: HERO_LAYOUT_DEFAULT,
104333
+ [require_composed_stable_id.DeviceType.Notifier]: HERO_LAYOUT_DEFAULT,
104334
+ [require_composed_stable_id.DeviceType.Script]: SCRIPT_LAYOUT,
104335
+ [require_composed_stable_id.DeviceType.Automation]: AUTOMATION_LAYOUT,
104336
+ [require_composed_stable_id.DeviceType.Lock]: LOCK_LAYOUT,
104337
+ [require_composed_stable_id.DeviceType.Cover]: COVER_LAYOUT,
104338
+ [require_composed_stable_id.DeviceType.Valve]: VALVE_LAYOUT,
104339
+ [require_composed_stable_id.DeviceType.Humidifier]: HUMIDIFIER_LAYOUT,
104340
+ [require_composed_stable_id.DeviceType.WaterHeater]: CLIMATE_LAYOUT,
104341
+ [require_composed_stable_id.DeviceType.HeatPump]: HEAT_PUMP_LAYOUT,
104342
+ [require_composed_stable_id.DeviceType.Fan]: FAN_LAYOUT,
104343
+ [require_composed_stable_id.DeviceType.MediaPlayer]: MEDIA_PLAYER_LAYOUT,
104344
+ [require_composed_stable_id.DeviceType.AlarmPanel]: ALARM_LAYOUT,
104345
+ [require_composed_stable_id.DeviceType.Control]: CONTROL_LAYOUT,
104346
+ [require_composed_stable_id.DeviceType.Presence]: HERO_LAYOUT_DEFAULT,
104347
+ [require_composed_stable_id.DeviceType.Weather]: HERO_LAYOUT_DEFAULT,
104348
+ [require_composed_stable_id.DeviceType.Vacuum]: VACUUM_LAYOUT,
104349
+ [require_composed_stable_id.DeviceType.LawnMower]: MOWER_LAYOUT,
104350
+ [require_composed_stable_id.DeviceType.Container]: HERO_LAYOUT_DEFAULT,
104351
+ [require_composed_stable_id.DeviceType.Image]: HERO_LAYOUT_DEFAULT,
104352
+ [require_composed_stable_id.DeviceType.PetFeeder]: FEEDER_LAYOUT,
104353
+ [require_composed_stable_id.DeviceType.PetFountain]: FOUNTAIN_LAYOUT,
104354
+ [require_composed_stable_id.DeviceType.Dishwasher]: DISHWASHER_LAYOUT,
104355
+ [require_composed_stable_id.DeviceType.Washer]: APPLIANCE_LAYOUT,
104356
+ [require_composed_stable_id.DeviceType.Heater]: HEATER_LAYOUT,
104357
+ [require_composed_stable_id.DeviceType.Dryer]: APPLIANCE_LAYOUT,
104358
+ [require_composed_stable_id.DeviceType.Gateway]: HERO_LAYOUT_DEFAULT
104313
104359
  };
104314
104360
  function isDeviceType$1(type) {
104315
- return Object.values(require_device_type.DeviceType).includes(type);
104361
+ return Object.values(require_composed_stable_id.DeviceType).includes(type);
104316
104362
  }
104317
104363
  /** The layout of a type; a type this build does not know gets the default. */
104318
104364
  function resolveHeroLayout(type) {
@@ -104996,113 +105042,113 @@ var HERO_MODE_LOOK = {
104996
105042
  open: null,
104997
105043
  closed: null
104998
105044
  };
104999
- var MODE_LOOK_TYPES = [require_device_type.DeviceType.Climate, require_device_type.DeviceType.Thermostat];
105045
+ var MODE_LOOK_TYPES = [require_composed_stable_id.DeviceType.Climate, require_composed_stable_id.DeviceType.Thermostat];
105000
105046
  var HERO_LOOK_BY_TYPE = {
105001
- [require_device_type.DeviceType.Camera]: CAMERA_LOOK,
105002
- [require_device_type.DeviceType.Hub]: HERO_LOOK_DEFAULT,
105003
- [require_device_type.DeviceType.Light]: LIGHT_LOOK,
105004
- [require_device_type.DeviceType.Siren]: HERO_LOOK_DEFAULT,
105005
- [require_device_type.DeviceType.Switch]: SWITCH_LOOK,
105006
- [require_device_type.DeviceType.Sensor]: READING_SENSOR_LOOK,
105007
- [require_device_type.DeviceType.Thermostat]: THERMOSTAT_LOOK,
105008
- [require_device_type.DeviceType.Climate]: CLIMATE_LOOK,
105009
- [require_device_type.DeviceType.Button]: BUTTON_LOOK,
105010
- [require_device_type.DeviceType.EventEmitter]: EVENT_EMITTER_LOOK,
105011
- [require_device_type.DeviceType.Update]: UPDATE_LOOK,
105012
- [require_device_type.DeviceType.Generic]: HERO_LOOK_DEFAULT,
105013
- [require_device_type.DeviceType.Notifier]: HERO_LOOK_DEFAULT,
105014
- [require_device_type.DeviceType.Script]: SCRIPT_LOOK,
105015
- [require_device_type.DeviceType.Automation]: AUTOMATION_LOOK,
105016
- [require_device_type.DeviceType.Lock]: LOCK_LOOK,
105017
- [require_device_type.DeviceType.Cover]: COVER_LOOK,
105018
- [require_device_type.DeviceType.Valve]: VALVE_LOOK,
105019
- [require_device_type.DeviceType.Humidifier]: HUMIDIFIER_LOOK,
105020
- [require_device_type.DeviceType.WaterHeater]: WATER_HEATER_LOOK,
105021
- [require_device_type.DeviceType.HeatPump]: HEAT_PUMP_LOOK,
105022
- [require_device_type.DeviceType.Fan]: FAN_LOOK,
105023
- [require_device_type.DeviceType.MediaPlayer]: MEDIA_PLAYER_LOOK,
105024
- [require_device_type.DeviceType.AlarmPanel]: ALARM_LOOK,
105025
- [require_device_type.DeviceType.Control]: CONTROL_LOOK,
105026
- [require_device_type.DeviceType.Presence]: PRESENCE_LOOK,
105027
- [require_device_type.DeviceType.Weather]: WEATHER_LOOK,
105028
- [require_device_type.DeviceType.Vacuum]: VACUUM_LOOK,
105029
- [require_device_type.DeviceType.LawnMower]: MOWER_LOOK,
105030
- [require_device_type.DeviceType.Container]: HERO_LOOK_DEFAULT,
105031
- [require_device_type.DeviceType.Image]: IMAGE_LOOK,
105032
- [require_device_type.DeviceType.PetFeeder]: FEEDER_LOOK,
105033
- [require_device_type.DeviceType.PetFountain]: FOUNTAIN_LOOK,
105034
- [require_device_type.DeviceType.Dishwasher]: DISHWASHER_LOOK,
105035
- [require_device_type.DeviceType.Washer]: WASHER_LOOK,
105036
- [require_device_type.DeviceType.Heater]: HEATER_LOOK,
105037
- [require_device_type.DeviceType.Dryer]: DRYER_LOOK,
105038
- [require_device_type.DeviceType.Gateway]: HERO_LOOK_DEFAULT
105047
+ [require_composed_stable_id.DeviceType.Camera]: CAMERA_LOOK,
105048
+ [require_composed_stable_id.DeviceType.Hub]: HERO_LOOK_DEFAULT,
105049
+ [require_composed_stable_id.DeviceType.Light]: LIGHT_LOOK,
105050
+ [require_composed_stable_id.DeviceType.Siren]: HERO_LOOK_DEFAULT,
105051
+ [require_composed_stable_id.DeviceType.Switch]: SWITCH_LOOK,
105052
+ [require_composed_stable_id.DeviceType.Sensor]: READING_SENSOR_LOOK,
105053
+ [require_composed_stable_id.DeviceType.Thermostat]: THERMOSTAT_LOOK,
105054
+ [require_composed_stable_id.DeviceType.Climate]: CLIMATE_LOOK,
105055
+ [require_composed_stable_id.DeviceType.Button]: BUTTON_LOOK,
105056
+ [require_composed_stable_id.DeviceType.EventEmitter]: EVENT_EMITTER_LOOK,
105057
+ [require_composed_stable_id.DeviceType.Update]: UPDATE_LOOK,
105058
+ [require_composed_stable_id.DeviceType.Generic]: HERO_LOOK_DEFAULT,
105059
+ [require_composed_stable_id.DeviceType.Notifier]: HERO_LOOK_DEFAULT,
105060
+ [require_composed_stable_id.DeviceType.Script]: SCRIPT_LOOK,
105061
+ [require_composed_stable_id.DeviceType.Automation]: AUTOMATION_LOOK,
105062
+ [require_composed_stable_id.DeviceType.Lock]: LOCK_LOOK,
105063
+ [require_composed_stable_id.DeviceType.Cover]: COVER_LOOK,
105064
+ [require_composed_stable_id.DeviceType.Valve]: VALVE_LOOK,
105065
+ [require_composed_stable_id.DeviceType.Humidifier]: HUMIDIFIER_LOOK,
105066
+ [require_composed_stable_id.DeviceType.WaterHeater]: WATER_HEATER_LOOK,
105067
+ [require_composed_stable_id.DeviceType.HeatPump]: HEAT_PUMP_LOOK,
105068
+ [require_composed_stable_id.DeviceType.Fan]: FAN_LOOK,
105069
+ [require_composed_stable_id.DeviceType.MediaPlayer]: MEDIA_PLAYER_LOOK,
105070
+ [require_composed_stable_id.DeviceType.AlarmPanel]: ALARM_LOOK,
105071
+ [require_composed_stable_id.DeviceType.Control]: CONTROL_LOOK,
105072
+ [require_composed_stable_id.DeviceType.Presence]: PRESENCE_LOOK,
105073
+ [require_composed_stable_id.DeviceType.Weather]: WEATHER_LOOK,
105074
+ [require_composed_stable_id.DeviceType.Vacuum]: VACUUM_LOOK,
105075
+ [require_composed_stable_id.DeviceType.LawnMower]: MOWER_LOOK,
105076
+ [require_composed_stable_id.DeviceType.Container]: HERO_LOOK_DEFAULT,
105077
+ [require_composed_stable_id.DeviceType.Image]: IMAGE_LOOK,
105078
+ [require_composed_stable_id.DeviceType.PetFeeder]: FEEDER_LOOK,
105079
+ [require_composed_stable_id.DeviceType.PetFountain]: FOUNTAIN_LOOK,
105080
+ [require_composed_stable_id.DeviceType.Dishwasher]: DISHWASHER_LOOK,
105081
+ [require_composed_stable_id.DeviceType.Washer]: WASHER_LOOK,
105082
+ [require_composed_stable_id.DeviceType.Heater]: HEATER_LOOK,
105083
+ [require_composed_stable_id.DeviceType.Dryer]: DRYER_LOOK,
105084
+ [require_composed_stable_id.DeviceType.Gateway]: HERO_LOOK_DEFAULT
105039
105085
  };
105040
105086
  /** `inherit` = take the type's look. A role only REFINES a type; it never replaces the type system. */
105041
105087
  var HERO_LOOK_BY_ROLE = {
105042
- [require_device_type.DeviceRole.Siren]: "inherit",
105043
- [require_device_type.DeviceRole.Floodlight]: "inherit",
105044
- [require_device_type.DeviceRole.Spotlight]: "inherit",
105045
- [require_device_type.DeviceRole.PirSensor]: MOTION_LOOK,
105046
- [require_device_type.DeviceRole.Chime]: "inherit",
105047
- [require_device_type.DeviceRole.Autotrack]: "inherit",
105048
- [require_device_type.DeviceRole.Nightvision]: "inherit",
105049
- [require_device_type.DeviceRole.PrivacyMask]: "inherit",
105050
- [require_device_type.DeviceRole.Doorbell]: DOORBELL_LOOK,
105051
- [require_device_type.DeviceRole.CoverBlind]: "inherit",
105052
- [require_device_type.DeviceRole.CoverShutter]: "inherit",
105053
- [require_device_type.DeviceRole.CoverAwning]: "inherit",
105054
- [require_device_type.DeviceRole.CoverCurtain]: "inherit",
105055
- [require_device_type.DeviceRole.CoverGarage]: "inherit",
105056
- [require_device_type.DeviceRole.CoverGate]: "inherit",
105057
- [require_device_type.DeviceRole.CoverDoor]: "inherit",
105058
- [require_device_type.DeviceRole.CoverWindow]: "inherit",
105059
- [require_device_type.DeviceRole.BinaryHelper]: "inherit",
105060
- [require_device_type.DeviceRole.Outlet]: "inherit",
105061
- [require_device_type.DeviceRole.MotionSensor]: MOTION_LOOK,
105062
- [require_device_type.DeviceRole.ContactSensor]: "inherit",
105063
- [require_device_type.DeviceRole.LeakSensor]: LEAK_LOOK,
105064
- [require_device_type.DeviceRole.SmokeSensor]: SMOKE_LOOK,
105065
- [require_device_type.DeviceRole.COSensor]: CO_LOOK,
105066
- [require_device_type.DeviceRole.GasSensor]: GAS_LOOK,
105067
- [require_device_type.DeviceRole.TamperSensor]: TAMPER_LOOK,
105068
- [require_device_type.DeviceRole.VibrationSensor]: VIBRATION_LOOK,
105069
- [require_device_type.DeviceRole.ConnectivitySensor]: "inherit",
105070
- [require_device_type.DeviceRole.SoundSensor]: "inherit",
105071
- [require_device_type.DeviceRole.BinarySensor]: "inherit",
105072
- [require_device_type.DeviceRole.TemperatureSensor]: TEMPERATURE_LOOK,
105073
- [require_device_type.DeviceRole.HumiditySensor]: HUMIDITY_LOOK,
105074
- [require_device_type.DeviceRole.AmbientLightSensor]: LIGHT_SENSOR_LOOK,
105075
- [require_device_type.DeviceRole.PressureSensor]: READING_SENSOR_LOOK,
105076
- [require_device_type.DeviceRole.WindSensor]: "inherit",
105077
- [require_device_type.DeviceRole.RainSensor]: "inherit",
105078
- [require_device_type.DeviceRole.UvSensor]: "inherit",
105079
- [require_device_type.DeviceRole.SolarRadiationSensor]: "inherit",
105080
- [require_device_type.DeviceRole.SoilMoistureSensor]: "inherit",
105081
- [require_device_type.DeviceRole.PowerSensor]: "inherit",
105082
- [require_device_type.DeviceRole.EnergySensor]: "inherit",
105083
- [require_device_type.DeviceRole.VoltageSensor]: "inherit",
105084
- [require_device_type.DeviceRole.CurrentSensor]: "inherit",
105085
- [require_device_type.DeviceRole.AirQualitySensor]: AIR_QUALITY_LOOK,
105086
- [require_device_type.DeviceRole.BatterySensor]: "inherit",
105087
- [require_device_type.DeviceRole.NumericSensor]: "inherit",
105088
- [require_device_type.DeviceRole.EnumSensor]: "inherit",
105089
- [require_device_type.DeviceRole.DateTimeSensor]: "inherit",
105090
- [require_device_type.DeviceRole.GenericSensor]: "inherit",
105091
- [require_device_type.DeviceRole.NumericControl]: "inherit",
105092
- [require_device_type.DeviceRole.SelectControl]: "inherit",
105093
- [require_device_type.DeviceRole.TextControl]: "inherit",
105094
- [require_device_type.DeviceRole.DateTimeControl]: "inherit",
105095
- [require_device_type.DeviceRole.MobilePushNotifier]: "inherit",
105096
- [require_device_type.DeviceRole.MessagingNotifier]: "inherit",
105097
- [require_device_type.DeviceRole.EmailNotifier]: "inherit",
105098
- [require_device_type.DeviceRole.GenericNotifier]: "inherit",
105099
- [require_device_type.DeviceRole.IrTransmitter]: "inherit"
105088
+ [require_composed_stable_id.DeviceRole.Siren]: "inherit",
105089
+ [require_composed_stable_id.DeviceRole.Floodlight]: "inherit",
105090
+ [require_composed_stable_id.DeviceRole.Spotlight]: "inherit",
105091
+ [require_composed_stable_id.DeviceRole.PirSensor]: MOTION_LOOK,
105092
+ [require_composed_stable_id.DeviceRole.Chime]: "inherit",
105093
+ [require_composed_stable_id.DeviceRole.Autotrack]: "inherit",
105094
+ [require_composed_stable_id.DeviceRole.Nightvision]: "inherit",
105095
+ [require_composed_stable_id.DeviceRole.PrivacyMask]: "inherit",
105096
+ [require_composed_stable_id.DeviceRole.Doorbell]: DOORBELL_LOOK,
105097
+ [require_composed_stable_id.DeviceRole.CoverBlind]: "inherit",
105098
+ [require_composed_stable_id.DeviceRole.CoverShutter]: "inherit",
105099
+ [require_composed_stable_id.DeviceRole.CoverAwning]: "inherit",
105100
+ [require_composed_stable_id.DeviceRole.CoverCurtain]: "inherit",
105101
+ [require_composed_stable_id.DeviceRole.CoverGarage]: "inherit",
105102
+ [require_composed_stable_id.DeviceRole.CoverGate]: "inherit",
105103
+ [require_composed_stable_id.DeviceRole.CoverDoor]: "inherit",
105104
+ [require_composed_stable_id.DeviceRole.CoverWindow]: "inherit",
105105
+ [require_composed_stable_id.DeviceRole.BinaryHelper]: "inherit",
105106
+ [require_composed_stable_id.DeviceRole.Outlet]: "inherit",
105107
+ [require_composed_stable_id.DeviceRole.MotionSensor]: MOTION_LOOK,
105108
+ [require_composed_stable_id.DeviceRole.ContactSensor]: "inherit",
105109
+ [require_composed_stable_id.DeviceRole.LeakSensor]: LEAK_LOOK,
105110
+ [require_composed_stable_id.DeviceRole.SmokeSensor]: SMOKE_LOOK,
105111
+ [require_composed_stable_id.DeviceRole.COSensor]: CO_LOOK,
105112
+ [require_composed_stable_id.DeviceRole.GasSensor]: GAS_LOOK,
105113
+ [require_composed_stable_id.DeviceRole.TamperSensor]: TAMPER_LOOK,
105114
+ [require_composed_stable_id.DeviceRole.VibrationSensor]: VIBRATION_LOOK,
105115
+ [require_composed_stable_id.DeviceRole.ConnectivitySensor]: "inherit",
105116
+ [require_composed_stable_id.DeviceRole.SoundSensor]: "inherit",
105117
+ [require_composed_stable_id.DeviceRole.BinarySensor]: "inherit",
105118
+ [require_composed_stable_id.DeviceRole.TemperatureSensor]: TEMPERATURE_LOOK,
105119
+ [require_composed_stable_id.DeviceRole.HumiditySensor]: HUMIDITY_LOOK,
105120
+ [require_composed_stable_id.DeviceRole.AmbientLightSensor]: LIGHT_SENSOR_LOOK,
105121
+ [require_composed_stable_id.DeviceRole.PressureSensor]: READING_SENSOR_LOOK,
105122
+ [require_composed_stable_id.DeviceRole.WindSensor]: "inherit",
105123
+ [require_composed_stable_id.DeviceRole.RainSensor]: "inherit",
105124
+ [require_composed_stable_id.DeviceRole.UvSensor]: "inherit",
105125
+ [require_composed_stable_id.DeviceRole.SolarRadiationSensor]: "inherit",
105126
+ [require_composed_stable_id.DeviceRole.SoilMoistureSensor]: "inherit",
105127
+ [require_composed_stable_id.DeviceRole.PowerSensor]: "inherit",
105128
+ [require_composed_stable_id.DeviceRole.EnergySensor]: "inherit",
105129
+ [require_composed_stable_id.DeviceRole.VoltageSensor]: "inherit",
105130
+ [require_composed_stable_id.DeviceRole.CurrentSensor]: "inherit",
105131
+ [require_composed_stable_id.DeviceRole.AirQualitySensor]: AIR_QUALITY_LOOK,
105132
+ [require_composed_stable_id.DeviceRole.BatterySensor]: "inherit",
105133
+ [require_composed_stable_id.DeviceRole.NumericSensor]: "inherit",
105134
+ [require_composed_stable_id.DeviceRole.EnumSensor]: "inherit",
105135
+ [require_composed_stable_id.DeviceRole.DateTimeSensor]: "inherit",
105136
+ [require_composed_stable_id.DeviceRole.GenericSensor]: "inherit",
105137
+ [require_composed_stable_id.DeviceRole.NumericControl]: "inherit",
105138
+ [require_composed_stable_id.DeviceRole.SelectControl]: "inherit",
105139
+ [require_composed_stable_id.DeviceRole.TextControl]: "inherit",
105140
+ [require_composed_stable_id.DeviceRole.DateTimeControl]: "inherit",
105141
+ [require_composed_stable_id.DeviceRole.MobilePushNotifier]: "inherit",
105142
+ [require_composed_stable_id.DeviceRole.MessagingNotifier]: "inherit",
105143
+ [require_composed_stable_id.DeviceRole.EmailNotifier]: "inherit",
105144
+ [require_composed_stable_id.DeviceRole.GenericNotifier]: "inherit",
105145
+ [require_composed_stable_id.DeviceRole.IrTransmitter]: "inherit"
105100
105146
  };
105101
105147
  function isDeviceType(type) {
105102
- return Object.values(require_device_type.DeviceType).includes(type);
105148
+ return Object.values(require_composed_stable_id.DeviceType).includes(type);
105103
105149
  }
105104
105150
  function isDeviceRole(role) {
105105
- return Object.values(require_device_type.DeviceRole).includes(role);
105151
+ return Object.values(require_composed_stable_id.DeviceRole).includes(role);
105106
105152
  }
105107
105153
  /**
105108
105154
  * The look of a (role, type) pair, for a state. Role beats type beats the generic default.
@@ -105276,11 +105322,11 @@ function tilesOf(fragments, side) {
105276
105322
  /** The foot button that opens the history, named for what the device keeps. */
105277
105323
  function historyLabelOf(type) {
105278
105324
  switch (type) {
105279
- case require_device_type.DeviceType.Washer:
105280
- case require_device_type.DeviceType.Dryer:
105281
- case require_device_type.DeviceType.Dishwasher: return require_sleep.t("Cycles", "Cicli");
105282
- case require_device_type.DeviceType.PetFeeder: return require_sleep.t("Meals", "Pasti");
105283
- case require_device_type.DeviceType.Lock: return require_sleep.t("Access", "Accessi");
105325
+ case require_composed_stable_id.DeviceType.Washer:
105326
+ case require_composed_stable_id.DeviceType.Dryer:
105327
+ case require_composed_stable_id.DeviceType.Dishwasher: return require_sleep.t("Cycles", "Cicli");
105328
+ case require_composed_stable_id.DeviceType.PetFeeder: return require_sleep.t("Meals", "Pasti");
105329
+ case require_composed_stable_id.DeviceType.Lock: return require_sleep.t("Access", "Accessi");
105284
105330
  default: return require_sleep.t("History", "Storico");
105285
105331
  }
105286
105332
  }
@@ -116441,7 +116487,7 @@ function bakedArgsEqual(action, args) {
116441
116487
  * filters to what the device actually binds.
116442
116488
  */
116443
116489
  var DEVICE_TYPE_DO_CAPS = {
116444
- [require_device_type.DeviceType.Camera]: [
116490
+ [require_composed_stable_id.DeviceType.Camera]: [
116445
116491
  "ptz",
116446
116492
  "ptz-autotrack",
116447
116493
  "privacy-mask",
@@ -116449,43 +116495,43 @@ var DEVICE_TYPE_DO_CAPS = {
116449
116495
  "reboot",
116450
116496
  "motion-trigger"
116451
116497
  ],
116452
- [require_device_type.DeviceType.Hub]: [],
116453
- [require_device_type.DeviceType.Light]: ["switch", "brightness"],
116454
- [require_device_type.DeviceType.Siren]: ["switch", "motion-trigger"],
116455
- [require_device_type.DeviceType.Switch]: ["switch", "motion-trigger"],
116456
- [require_device_type.DeviceType.Sensor]: [],
116457
- [require_device_type.DeviceType.Thermostat]: ["climate-control"],
116458
- [require_device_type.DeviceType.Climate]: ["climate-control"],
116459
- [require_device_type.DeviceType.Button]: ["button"],
116460
- [require_device_type.DeviceType.EventEmitter]: [],
116461
- [require_device_type.DeviceType.Update]: [],
116462
- [require_device_type.DeviceType.Generic]: [],
116463
- [require_device_type.DeviceType.Notifier]: [],
116464
- [require_device_type.DeviceType.Script]: ["script-runner"],
116465
- [require_device_type.DeviceType.Automation]: ["automation-control"],
116466
- [require_device_type.DeviceType.Lock]: ["lock-control"],
116467
- [require_device_type.DeviceType.Cover]: ["cover"],
116468
- [require_device_type.DeviceType.Valve]: ["valve"],
116469
- [require_device_type.DeviceType.Humidifier]: ["humidifier"],
116470
- [require_device_type.DeviceType.WaterHeater]: ["water-heater"],
116471
- [require_device_type.DeviceType.HeatPump]: ["heat-pump-control"],
116472
- [require_device_type.DeviceType.Fan]: ["fan-control", "switch"],
116473
- [require_device_type.DeviceType.MediaPlayer]: ["media-player"],
116474
- [require_device_type.DeviceType.AlarmPanel]: ["alarm-panel"],
116475
- [require_device_type.DeviceType.Control]: [],
116476
- [require_device_type.DeviceType.Presence]: [],
116477
- [require_device_type.DeviceType.Weather]: [],
116478
- [require_device_type.DeviceType.Vacuum]: ["vacuum-control"],
116479
- [require_device_type.DeviceType.LawnMower]: ["lawn-mower-control"],
116480
- [require_device_type.DeviceType.Container]: [],
116481
- [require_device_type.DeviceType.Image]: [],
116482
- [require_device_type.DeviceType.PetFeeder]: ["pet-feeder"],
116483
- [require_device_type.DeviceType.PetFountain]: ["pet-fountain", "timed-run"],
116484
- [require_device_type.DeviceType.Heater]: ["switch", "timed-run"],
116485
- [require_device_type.DeviceType.Dishwasher]: ["dishwasher"],
116486
- [require_device_type.DeviceType.Washer]: [],
116487
- [require_device_type.DeviceType.Dryer]: [],
116488
- [require_device_type.DeviceType.Gateway]: []
116498
+ [require_composed_stable_id.DeviceType.Hub]: [],
116499
+ [require_composed_stable_id.DeviceType.Light]: ["switch", "brightness"],
116500
+ [require_composed_stable_id.DeviceType.Siren]: ["switch", "motion-trigger"],
116501
+ [require_composed_stable_id.DeviceType.Switch]: ["switch", "motion-trigger"],
116502
+ [require_composed_stable_id.DeviceType.Sensor]: [],
116503
+ [require_composed_stable_id.DeviceType.Thermostat]: ["climate-control"],
116504
+ [require_composed_stable_id.DeviceType.Climate]: ["climate-control"],
116505
+ [require_composed_stable_id.DeviceType.Button]: ["button"],
116506
+ [require_composed_stable_id.DeviceType.EventEmitter]: [],
116507
+ [require_composed_stable_id.DeviceType.Update]: [],
116508
+ [require_composed_stable_id.DeviceType.Generic]: [],
116509
+ [require_composed_stable_id.DeviceType.Notifier]: [],
116510
+ [require_composed_stable_id.DeviceType.Script]: ["script-runner"],
116511
+ [require_composed_stable_id.DeviceType.Automation]: ["automation-control"],
116512
+ [require_composed_stable_id.DeviceType.Lock]: ["lock-control"],
116513
+ [require_composed_stable_id.DeviceType.Cover]: ["cover"],
116514
+ [require_composed_stable_id.DeviceType.Valve]: ["valve"],
116515
+ [require_composed_stable_id.DeviceType.Humidifier]: ["humidifier"],
116516
+ [require_composed_stable_id.DeviceType.WaterHeater]: ["water-heater"],
116517
+ [require_composed_stable_id.DeviceType.HeatPump]: ["heat-pump-control"],
116518
+ [require_composed_stable_id.DeviceType.Fan]: ["fan-control", "switch"],
116519
+ [require_composed_stable_id.DeviceType.MediaPlayer]: ["media-player"],
116520
+ [require_composed_stable_id.DeviceType.AlarmPanel]: ["alarm-panel"],
116521
+ [require_composed_stable_id.DeviceType.Control]: [],
116522
+ [require_composed_stable_id.DeviceType.Presence]: [],
116523
+ [require_composed_stable_id.DeviceType.Weather]: [],
116524
+ [require_composed_stable_id.DeviceType.Vacuum]: ["vacuum-control"],
116525
+ [require_composed_stable_id.DeviceType.LawnMower]: ["lawn-mower-control"],
116526
+ [require_composed_stable_id.DeviceType.Container]: [],
116527
+ [require_composed_stable_id.DeviceType.Image]: [],
116528
+ [require_composed_stable_id.DeviceType.PetFeeder]: ["pet-feeder"],
116529
+ [require_composed_stable_id.DeviceType.PetFountain]: ["pet-fountain", "timed-run"],
116530
+ [require_composed_stable_id.DeviceType.Heater]: ["switch", "timed-run"],
116531
+ [require_composed_stable_id.DeviceType.Dishwasher]: ["dishwasher"],
116532
+ [require_composed_stable_id.DeviceType.Washer]: [],
116533
+ [require_composed_stable_id.DeviceType.Dryer]: [],
116534
+ [require_composed_stable_id.DeviceType.Gateway]: []
116489
116535
  };
116490
116536
  /**
116491
116537
  * Whether a device type belongs in a Do / automation action device picker.
@@ -116494,7 +116540,7 @@ var DEVICE_TYPE_DO_CAPS = {
116494
116540
  * but must never appear as selectable targets — actuate the children instead.
116495
116541
  */
116496
116542
  function isDoPickerDeviceType(type) {
116497
- return type !== require_device_type.DeviceType.Container;
116543
+ return type !== require_composed_stable_id.DeviceType.Container;
116498
116544
  }
116499
116545
  /**
116500
116546
  * Do-picker family id — devices that share one may be multi-selected for
@@ -116505,18 +116551,18 @@ function isDoPickerDeviceType(type) {
116505
116551
  */
116506
116552
  function deviceDoFamily(type) {
116507
116553
  switch (type) {
116508
- case require_device_type.DeviceType.Climate:
116509
- case require_device_type.DeviceType.Thermostat:
116510
- case require_device_type.DeviceType.Humidifier:
116511
- case require_device_type.DeviceType.WaterHeater:
116512
- case require_device_type.DeviceType.HeatPump: return "climate-family";
116513
- case require_device_type.DeviceType.Cover:
116514
- case require_device_type.DeviceType.Valve: return "cover-family";
116515
- case require_device_type.DeviceType.Switch:
116516
- case require_device_type.DeviceType.Siren:
116517
- case require_device_type.DeviceType.Light: return "switch-family";
116518
- case require_device_type.DeviceType.Vacuum:
116519
- case require_device_type.DeviceType.LawnMower: return "robot-family";
116554
+ case require_composed_stable_id.DeviceType.Climate:
116555
+ case require_composed_stable_id.DeviceType.Thermostat:
116556
+ case require_composed_stable_id.DeviceType.Humidifier:
116557
+ case require_composed_stable_id.DeviceType.WaterHeater:
116558
+ case require_composed_stable_id.DeviceType.HeatPump: return "climate-family";
116559
+ case require_composed_stable_id.DeviceType.Cover:
116560
+ case require_composed_stable_id.DeviceType.Valve: return "cover-family";
116561
+ case require_composed_stable_id.DeviceType.Switch:
116562
+ case require_composed_stable_id.DeviceType.Siren:
116563
+ case require_composed_stable_id.DeviceType.Light: return "switch-family";
116564
+ case require_composed_stable_id.DeviceType.Vacuum:
116565
+ case require_composed_stable_id.DeviceType.LawnMower: return "robot-family";
116520
116566
  default: return type;
116521
116567
  }
116522
116568
  }
@@ -116541,7 +116587,7 @@ function actionsForBoundCaps(boundCaps) {
116541
116587
  * Unknown type strings → empty.
116542
116588
  */
116543
116589
  function actionsForDeviceType(type) {
116544
- if (!Object.values(require_device_type.DeviceType).includes(type)) return [];
116590
+ if (!Object.values(require_composed_stable_id.DeviceType).includes(type)) return [];
116545
116591
  return actionsForBoundCaps(DEVICE_TYPE_DO_CAPS[type]);
116546
116592
  }
116547
116593
  /**
@@ -116867,7 +116913,7 @@ function deviceMatchesProfile(features, profile) {
116867
116913
  var BATTERY_DEVICE_PROFILE = {
116868
116914
  id: "battery",
116869
116915
  label: "Battery-operated camera",
116870
- when: { hasFeature: require_device_type.DeviceFeature.BatteryOperated },
116916
+ when: { hasFeature: require_composed_stable_id.DeviceFeature.BatteryOperated },
116871
116917
  defaults: {
116872
116918
  audioMode: "disabled",
116873
116919
  detectionMode: "on-motion"
@@ -116897,9 +116943,9 @@ function resolveDeviceProfile(features) {
116897
116943
  * export cannot honour yet, so they are named and withheld.
116898
116944
  */
116899
116945
  var PLUG_APPLIANCE_TYPES = [
116900
- require_device_type.DeviceType.Washer,
116901
- require_device_type.DeviceType.Dryer,
116902
- require_device_type.DeviceType.Dishwasher
116946
+ require_composed_stable_id.DeviceType.Washer,
116947
+ require_composed_stable_id.DeviceType.Dryer,
116948
+ require_composed_stable_id.DeviceType.Dishwasher
116903
116949
  ];
116904
116950
  var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
116905
116951
  var HOMEKIT_REASON = "HomeKit has no laundry-appliance service. The export tab would pair an accessory with nothing on it: running-state is withheld until a null reading can be unavailable, and power is not a HomeKit service this export honours.";
@@ -116908,15 +116954,15 @@ var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A pow
116908
116954
  var MATTER_REASON = "No Matter export is built. The closest device types are Laundry Washer (0x0073) and Laundry Dryer (0x0074); a power threshold is not the Laundry Washer Mode cluster.";
116909
116955
  function withheld(reason) {
116910
116956
  return {
116911
- [require_device_type.DeviceType.Washer]: {
116957
+ [require_composed_stable_id.DeviceType.Washer]: {
116912
116958
  exported: false,
116913
116959
  reason
116914
116960
  },
116915
- [require_device_type.DeviceType.Dryer]: {
116961
+ [require_composed_stable_id.DeviceType.Dryer]: {
116916
116962
  exported: false,
116917
116963
  reason
116918
116964
  },
116919
- [require_device_type.DeviceType.Dishwasher]: {
116965
+ [require_composed_stable_id.DeviceType.Dishwasher]: {
116920
116966
  exported: false,
116921
116967
  reason
116922
116968
  }
@@ -116924,15 +116970,15 @@ function withheld(reason) {
116924
116970
  }
116925
116971
  function offered(received) {
116926
116972
  return {
116927
- [require_device_type.DeviceType.Washer]: {
116973
+ [require_composed_stable_id.DeviceType.Washer]: {
116928
116974
  exported: true,
116929
116975
  as: received
116930
116976
  },
116931
- [require_device_type.DeviceType.Dryer]: {
116977
+ [require_composed_stable_id.DeviceType.Dryer]: {
116932
116978
  exported: true,
116933
116979
  as: received
116934
116980
  },
116935
- [require_device_type.DeviceType.Dishwasher]: {
116981
+ [require_composed_stable_id.DeviceType.Dishwasher]: {
116936
116982
  exported: true,
116937
116983
  as: received
116938
116984
  }
@@ -132598,7 +132644,7 @@ var OrphanIntegrationSweep = class {
132598
132644
  } catch (err) {
132599
132645
  this.#logger.warn("Orphan integration device removal failed — kept as suspect", { meta: {
132600
132646
  integrationId: id,
132601
- error: require_device_type.errMsg(err)
132647
+ error: require_composed_stable_id.errMsg(err)
132602
132648
  } });
132603
132649
  }
132604
132650
  }
@@ -133879,7 +133925,7 @@ async function runInferenceStep(fn, timeoutMs) {
133879
133925
  output: void 0,
133880
133926
  durationMs: roundMs(performance.now() - t0),
133881
133927
  ok: false,
133882
- error: require_device_type.errMsg(err)
133928
+ error: require_composed_stable_id.errMsg(err)
133883
133929
  };
133884
133930
  }
133885
133931
  }
@@ -134453,7 +134499,7 @@ async function reconcileRemovedDevices(opts) {
134453
134499
  try {
134454
134500
  tombstones = await api.deviceManager.listDeletedSince.query({ sinceMs: now() - DEVICE_TOMBSTONE_RETENTION_MS });
134455
134501
  } catch (err) {
134456
- opts.logger.warn("device removal reconcile skipped — tombstones unreadable, nothing deleted", { meta: { error: require_device_type.errMsg(err) } });
134502
+ opts.logger.warn("device removal reconcile skipped — tombstones unreadable, nothing deleted", { meta: { error: require_composed_stable_id.errMsg(err) } });
134457
134503
  return {
134458
134504
  read: false,
134459
134505
  applied: 0,
@@ -134476,7 +134522,7 @@ async function reconcileRemovedDevices(opts) {
134476
134522
  failed += 1;
134477
134523
  opts.logger.warn("device removal reconcile failed for a device — retried next pass", {
134478
134524
  tags: { deviceId: tombstone.deviceId },
134479
- meta: { error: require_device_type.errMsg(err) }
134525
+ meta: { error: require_composed_stable_id.errMsg(err) }
134480
134526
  });
134481
134527
  }
134482
134528
  return {
@@ -134495,7 +134541,7 @@ function armRemovalReconcile(opts) {
134495
134541
  if (running) return;
134496
134542
  running = true;
134497
134543
  reconcileRemovedDevices(opts).catch((err) => {
134498
- opts.logger.warn("device removal reconcile pass crashed", { meta: { error: require_device_type.errMsg(err) } });
134544
+ opts.logger.warn("device removal reconcile pass crashed", { meta: { error: require_composed_stable_id.errMsg(err) } });
134499
134545
  }).finally(() => {
134500
134546
  running = false;
134501
134547
  });
@@ -135184,7 +135230,7 @@ exports.CLUSTER_MODEL_SECTION_ID = CLUSTER_MODEL_SECTION_ID;
135184
135230
  exports.CLUSTER_STEP_SETTING_FIELDS = CLUSTER_STEP_SETTING_FIELDS;
135185
135231
  exports.COCO_80_LABELS = COCO_80_LABELS;
135186
135232
  exports.COCO_TO_MACRO = COCO_TO_MACRO;
135187
- exports.COMPOSED_DEVICE_STABLE_ID_PREFIX = require_composition.COMPOSED_DEVICE_STABLE_ID_PREFIX;
135233
+ exports.COMPOSED_DEVICE_STABLE_ID_PREFIX = require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX;
135188
135234
  exports.COMPOSED_ITEM_FIXED_FIELDS = COMPOSED_ITEM_FIXED_FIELDS;
135189
135235
  exports.COMPOSER_ADDON_ID = require_composition.COMPOSER_ADDON_ID;
135190
135236
  exports.COMPOSER_RUNNER_ID = COMPOSER_RUNNER_ID;
@@ -135195,6 +135241,7 @@ exports.COMPOSITION_LINK_KINDS = COMPOSITION_LINK_KINDS;
135195
135241
  exports.COMPOSITION_TARGET_CAP_NAMES = COMPOSITION_TARGET_CAP_NAMES;
135196
135242
  exports.CONNECTION_TEST_TIMEOUT_MS = CONNECTION_TEST_TIMEOUT_MS;
135197
135243
  exports.CONTAINER_CHILD_PRIORITY = CONTAINER_CHILD_PRIORITY;
135244
+ exports.CONTAINER_PRIMARY_CHILD_RULES = CONTAINER_PRIMARY_CHILD_RULES;
135198
135245
  exports.CORAL_DEFAULT_MODEL_ID = CORAL_DEFAULT_MODEL_ID;
135199
135246
  exports.CORE_BLOCKS_ADDON_ID = CORE_BLOCKS_ADDON_ID;
135200
135247
  exports.CORE_BLOCK_ADDON_PREFIX = CORE_BLOCK_ADDON_PREFIX;
@@ -135273,7 +135320,7 @@ exports.CapacitySourceSchema = CapacitySourceSchema;
135273
135320
  exports.CarbonMonoxideStatusSchema = CarbonMonoxideStatusSchema;
135274
135321
  exports.CatalogFileSchema = CatalogFileSchema;
135275
135322
  exports.CatalogLangSchema = CatalogLangSchema;
135276
- exports.ChargingStatus = require_device_type.ChargingStatus;
135323
+ exports.ChargingStatus = require_composed_stable_id.ChargingStatus;
135277
135324
  exports.ClaimOutcomeSchema = ClaimOutcomeSchema;
135278
135325
  exports.ClaimsListingSchema = ClaimsListingSchema;
135279
135326
  exports.CleanupDeletedDevicesResultSchema = CleanupDeletedDevicesResultSchema;
@@ -135551,7 +135598,7 @@ exports.DeviceExportExposeInputSchema = ExposeInputSchema;
135551
135598
  exports.DeviceExportInstancePinSchema = InstancePinSchema;
135552
135599
  exports.DeviceExportStatusSchema = DeviceExportStatusSchema;
135553
135600
  exports.DeviceExportUnexposeInputSchema = UnexposeInputSchema;
135554
- exports.DeviceFeature = require_device_type.DeviceFeature;
135601
+ exports.DeviceFeature = require_composed_stable_id.DeviceFeature;
135555
135602
  exports.DeviceHistoryKindSchema = DeviceHistoryKindSchema;
135556
135603
  exports.DeviceHistoryOrphanDeleteRefusalSchema = DeviceHistoryOrphanDeleteRefusalSchema;
135557
135604
  exports.DeviceHistoryOrphanReasonSchema = DeviceHistoryOrphanReasonSchema;
@@ -135571,7 +135618,7 @@ exports.DeviceRefusalSchema = DeviceRefusalSchema;
135571
135618
  exports.DeviceRemovedInputSchema = DeviceRemovedInputSchema;
135572
135619
  exports.DeviceRemovedResultSchema = DeviceRemovedResultSchema;
135573
135620
  exports.DeviceRestoreRetryScheduler = DeviceRestoreRetryScheduler;
135574
- exports.DeviceRole = require_device_type.DeviceRole;
135621
+ exports.DeviceRole = require_composed_stable_id.DeviceRole;
135575
135622
  exports.DeviceRunDetailSchema = DeviceRunDetailSchema;
135576
135623
  exports.DeviceRunEnergyMethodSchema = DeviceRunEnergyMethodSchema;
135577
135624
  exports.DeviceRunKindSchema = DeviceRunKindSchema;
@@ -135590,7 +135637,7 @@ exports.DeviceTemplateSchema = DeviceTemplateSchema;
135590
135637
  exports.DeviceTemplateTraceEntrySchema = DeviceTemplateTraceEntrySchema;
135591
135638
  exports.DeviceTombstoneSchema = DeviceTombstoneSchema;
135592
135639
  exports.DeviceTransitionSchema = require_sleep.DeviceTransitionSchema;
135593
- exports.DeviceType = require_device_type.DeviceType;
135640
+ exports.DeviceType = require_composed_stable_id.DeviceType;
135594
135641
  exports.DiagnosticIdSchema = DiagnosticIdSchema;
135595
135642
  exports.DiagnosticWindowPatchSchema = DiagnosticWindowPatchSchema;
135596
135643
  exports.DiagnosticWindowSchema = DiagnosticWindowSchema;
@@ -137438,6 +137485,7 @@ exports.applyModeDelaysEdits = applyModeDelaysEdits;
137438
137485
  exports.applyModeDeviceListEdit = applyModeDeviceListEdit;
137439
137486
  exports.applyModelBoundSettings = applyModelBoundSettings;
137440
137487
  exports.applyNonBlockingEdit = applyNonBlockingEdit;
137488
+ exports.applyPrimaryChildRule = applyPrimaryChildRule;
137441
137489
  exports.applySecureOnArmEdit = applySecureOnArmEdit;
137442
137490
  exports.arithmeticDraft = arithmeticDraft;
137443
137491
  exports.armRemovalReconcile = armRemovalReconcile;
@@ -137791,7 +137839,7 @@ exports.enumSensorCapability = enumSensorCapability;
137791
137839
  exports.enumerateInferenceDevices = enumerateInferenceDevices;
137792
137840
  exports.enumerateItemArrayFields = enumerateItemArrayFields;
137793
137841
  exports.enumerateSchemaFields = enumerateSchemaFields;
137794
- exports.errMsg = require_device_type.errMsg;
137842
+ exports.errMsg = require_composed_stable_id.errMsg;
137795
137843
  exports.estimateNodeBenchmarkDurationMs = estimateNodeBenchmarkDurationMs;
137796
137844
  exports.evaluateAggregate = evaluateAggregate;
137797
137845
  exports.evaluateAst = require_composition.evaluateAst;
@@ -137839,7 +137887,7 @@ exports.featureForwards = featureForwards;
137839
137887
  exports.featureOfRole = featureOfRole;
137840
137888
  exports.featureProbeCapability = featureProbeCapability;
137841
137889
  exports.featureSources = require_composition.featureSources;
137842
- exports.featuresOfBoundCaps = require_device_type.featuresOfBoundCaps;
137890
+ exports.featuresOfBoundCaps = require_composed_stable_id.featuresOfBoundCaps;
137843
137891
  exports.feederCustomizationExample = feederCustomizationExample;
137844
137892
  exports.feederExampleSources = feederExampleSources;
137845
137893
  exports.ffmpegRate = ffmpegRate;