@camstack/types 1.2.561 → 1.2.562

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/addon/instances-of-cap.d.ts +7 -2
  3. package/dist/addon.js +2 -2
  4. package/dist/addon.mjs +2 -2
  5. package/dist/automation/codegen.d.ts +6 -0
  6. package/dist/automation/recipe-literal.d.ts +35 -0
  7. package/dist/automation/recipe.d.ts +46 -0
  8. package/dist/automation/template-link.d.ts +206 -0
  9. package/dist/capabilities/energy-system.cap.d.ts +281 -0
  10. package/dist/capabilities/index.d.ts +4 -2
  11. package/dist/capabilities/integration-instances.cap.d.ts +9 -0
  12. package/dist/capabilities/template.cap.d.ts +39 -2
  13. package/dist/client.js +8 -0
  14. package/dist/client.mjs +8 -0
  15. package/dist/{composed-stable-id-iddnCQ51.mjs → composed-stable-id-B3wcvtvW.mjs} +4 -0
  16. package/dist/{composed-stable-id-BmJ_5GiE.js → composed-stable-id-Bp33yrYi.js} +4 -0
  17. package/dist/device/device-control-resolution.d.ts +1 -1
  18. package/dist/device/device-icon.d.ts +1 -0
  19. package/dist/device/device-type.d.ts +5 -1
  20. package/dist/device/hero/hero-layout.d.ts +1 -0
  21. package/dist/device/hero/hero-look.d.ts +6 -0
  22. package/dist/device/hero/hero-scene.d.ts +1 -0
  23. package/dist/generated/addon-api.d.ts +14 -0
  24. package/dist/generated/addon-cap-facts.d.ts +1 -1
  25. package/dist/generated/cap-status-types.d.ts +3 -1
  26. package/dist/generated/cap-vocabulary.d.ts +1 -1
  27. package/dist/generated/capability-router-map.d.ts +5 -2
  28. package/dist/generated/customize-catalog.d.ts +1 -1
  29. package/dist/generated/device-local-state.d.ts +3 -0
  30. package/dist/generated/device-proxy.d.ts +3 -0
  31. package/dist/generated/device-scoped-caps.d.ts +1 -1
  32. package/dist/generated/history-catalog.d.ts +1 -1
  33. package/dist/generated/method-access-map.d.ts +1 -1
  34. package/dist/generated/method-device-selectors.d.ts +1 -1
  35. package/dist/generated/runtime-state-durability.d.ts +1 -1
  36. package/dist/{implemented-methods-CfaRR_ki.js → implemented-methods-CDYOCn9a.js} +1 -1
  37. package/dist/{implemented-methods-CSTk6zYK.mjs → implemented-methods-CgUBu6uM.mjs} +1 -1
  38. package/dist/index.d.ts +4 -0
  39. package/dist/index.js +1505 -171
  40. package/dist/index.mjs +1458 -172
  41. package/dist/node.js +2 -2
  42. package/dist/node.mjs +2 -2
  43. package/dist/{sleep-CcUFeK6k.js → sleep-Cb2px0Nb.js} +105 -3
  44. package/dist/{sleep-C9PbO6Nb.mjs → sleep-Cykc2bzi.mjs} +105 -3
  45. package/dist/template/automation-template.d.ts +782 -0
  46. package/dist/template/builtin-automation-templates.d.ts +17 -0
  47. package/dist/template/template-kinds.d.ts +4 -3
  48. package/package.json +1 -1
@@ -0,0 +1,281 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ import { DeviceType } from '../device/device-type.js';
4
+ /**
5
+ * Energy system (#513): the one READ-ONLY cap of a home energy installation —
6
+ * solar production, the grid connection, the house, a heat pump where the
7
+ * system meters one, and the storage. Each part is a branch of one bus.
8
+ *
9
+ * A part the system does not have is `null` (the whole object); a value the
10
+ * system did not report is `null`, never `0` (D393).
11
+ *
12
+ * Signs, all in watts:
13
+ * - `solar.powerW`, `house.powerW`, `heatPump.powerW` are magnitudes (≥ 0);
14
+ * - `grid.powerW` is + importing, − exporting;
15
+ * - `storage.powerW` is + charging, − discharging.
16
+ *
17
+ * The storage is a FIELD of this model, never the `battery` cap: that cap says
18
+ * a device runs on a battery and feeds the low-battery alerts, and a home
19
+ * storage at 19 % is not a device about to go flat (#522).
20
+ *
21
+ * Lifetime kWh are counters (D944); a `…TodayKwh` is the system's own day total.
22
+ * The self-consumption share is not a field: it derives at read time
23
+ * ({@link energySystemSelfConsumptionPct}).
24
+ */
25
+ /** Production: the panels. */
26
+ export declare const EnergySolarSchema: z.ZodObject<{
27
+ powerW: z.ZodNullable<z.ZodNumber>;
28
+ energyKwh: z.ZodNullable<z.ZodNumber>;
29
+ todayKwh: z.ZodNullable<z.ZodNumber>;
30
+ }, z.core.$strip>;
31
+ export type EnergySolar = z.infer<typeof EnergySolarSchema>;
32
+ /** The grid connection: + import, − export. */
33
+ export declare const EnergyGridSchema: z.ZodObject<{
34
+ powerW: z.ZodNullable<z.ZodNumber>;
35
+ importKwh: z.ZodNullable<z.ZodNumber>;
36
+ exportKwh: z.ZodNullable<z.ZodNumber>;
37
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
38
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
39
+ }, z.core.$strip>;
40
+ export type EnergyGrid = z.infer<typeof EnergyGridSchema>;
41
+ /** A consumer on the bus (the house, the heat pump): power and energy drawn. */
42
+ export declare const EnergyConsumerSchema: z.ZodObject<{
43
+ powerW: z.ZodNullable<z.ZodNumber>;
44
+ energyKwh: z.ZodNullable<z.ZodNumber>;
45
+ todayKwh: z.ZodNullable<z.ZodNumber>;
46
+ }, z.core.$strip>;
47
+ export type EnergyConsumer = z.infer<typeof EnergyConsumerSchema>;
48
+ /** The home storage (accumulo): + charging, − discharging. */
49
+ export declare const EnergyStorageSchema: z.ZodObject<{
50
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
51
+ storedKwh: z.ZodNullable<z.ZodNumber>;
52
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
53
+ powerW: z.ZodNullable<z.ZodNumber>;
54
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
55
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
56
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
57
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
58
+ }, z.core.$strip>;
59
+ export type EnergyStorage = z.infer<typeof EnergyStorageSchema>;
60
+ export declare const EnergySystemStatusSchema: z.ZodObject<{
61
+ solar: z.ZodNullable<z.ZodObject<{
62
+ powerW: z.ZodNullable<z.ZodNumber>;
63
+ energyKwh: z.ZodNullable<z.ZodNumber>;
64
+ todayKwh: z.ZodNullable<z.ZodNumber>;
65
+ }, z.core.$strip>>;
66
+ grid: z.ZodNullable<z.ZodObject<{
67
+ powerW: z.ZodNullable<z.ZodNumber>;
68
+ importKwh: z.ZodNullable<z.ZodNumber>;
69
+ exportKwh: z.ZodNullable<z.ZodNumber>;
70
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
71
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
72
+ }, z.core.$strip>>;
73
+ house: z.ZodNullable<z.ZodObject<{
74
+ powerW: z.ZodNullable<z.ZodNumber>;
75
+ energyKwh: z.ZodNullable<z.ZodNumber>;
76
+ todayKwh: z.ZodNullable<z.ZodNumber>;
77
+ }, z.core.$strip>>;
78
+ heatPump: z.ZodNullable<z.ZodObject<{
79
+ powerW: z.ZodNullable<z.ZodNumber>;
80
+ energyKwh: z.ZodNullable<z.ZodNumber>;
81
+ todayKwh: z.ZodNullable<z.ZodNumber>;
82
+ }, z.core.$strip>>;
83
+ storage: z.ZodNullable<z.ZodObject<{
84
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
85
+ storedKwh: z.ZodNullable<z.ZodNumber>;
86
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
87
+ powerW: z.ZodNullable<z.ZodNumber>;
88
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
89
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
90
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
91
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
92
+ }, z.core.$strip>>;
93
+ lastFetchedAt: z.ZodNumber;
94
+ }, z.core.$strip>;
95
+ export type EnergySystemStatus = z.infer<typeof EnergySystemStatusSchema>;
96
+ /**
97
+ * Today's self-consumption: the share of today's production that was not
98
+ * exported, in percent. Null unless both totals are known and something was
99
+ * produced — a missing total is never a 0 or a division by it (D393).
100
+ */
101
+ export declare function energySystemSelfConsumptionPct(status: EnergySystemStatus): number | null;
102
+ export declare const energySystemCapability: {
103
+ readonly name: 'energy-system';
104
+ readonly scope: 'device';
105
+ readonly deviceNative: true;
106
+ readonly mode: 'singleton';
107
+ readonly deviceTypes: readonly [DeviceType.EnergySystem];
108
+ readonly methods: {};
109
+ readonly status: {
110
+ readonly schema: z.ZodObject<{
111
+ solar: z.ZodNullable<z.ZodObject<{
112
+ powerW: z.ZodNullable<z.ZodNumber>;
113
+ energyKwh: z.ZodNullable<z.ZodNumber>;
114
+ todayKwh: z.ZodNullable<z.ZodNumber>;
115
+ }, z.core.$strip>>;
116
+ grid: z.ZodNullable<z.ZodObject<{
117
+ powerW: z.ZodNullable<z.ZodNumber>;
118
+ importKwh: z.ZodNullable<z.ZodNumber>;
119
+ exportKwh: z.ZodNullable<z.ZodNumber>;
120
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
121
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
122
+ }, z.core.$strip>>;
123
+ house: z.ZodNullable<z.ZodObject<{
124
+ powerW: z.ZodNullable<z.ZodNumber>;
125
+ energyKwh: z.ZodNullable<z.ZodNumber>;
126
+ todayKwh: z.ZodNullable<z.ZodNumber>;
127
+ }, z.core.$strip>>;
128
+ heatPump: z.ZodNullable<z.ZodObject<{
129
+ powerW: z.ZodNullable<z.ZodNumber>;
130
+ energyKwh: z.ZodNullable<z.ZodNumber>;
131
+ todayKwh: z.ZodNullable<z.ZodNumber>;
132
+ }, z.core.$strip>>;
133
+ storage: z.ZodNullable<z.ZodObject<{
134
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
135
+ storedKwh: z.ZodNullable<z.ZodNumber>;
136
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
137
+ powerW: z.ZodNullable<z.ZodNumber>;
138
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
139
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
140
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
141
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
142
+ }, z.core.$strip>>;
143
+ lastFetchedAt: z.ZodNumber;
144
+ }, z.core.$strip>;
145
+ readonly kind: 'push';
146
+ };
147
+ readonly runtimeState: z.ZodObject<{
148
+ solar: z.ZodNullable<z.ZodObject<{
149
+ powerW: z.ZodNullable<z.ZodNumber>;
150
+ energyKwh: z.ZodNullable<z.ZodNumber>;
151
+ todayKwh: z.ZodNullable<z.ZodNumber>;
152
+ }, z.core.$strip>>;
153
+ grid: z.ZodNullable<z.ZodObject<{
154
+ powerW: z.ZodNullable<z.ZodNumber>;
155
+ importKwh: z.ZodNullable<z.ZodNumber>;
156
+ exportKwh: z.ZodNullable<z.ZodNumber>;
157
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
158
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
159
+ }, z.core.$strip>>;
160
+ house: z.ZodNullable<z.ZodObject<{
161
+ powerW: z.ZodNullable<z.ZodNumber>;
162
+ energyKwh: z.ZodNullable<z.ZodNumber>;
163
+ todayKwh: z.ZodNullable<z.ZodNumber>;
164
+ }, z.core.$strip>>;
165
+ heatPump: z.ZodNullable<z.ZodObject<{
166
+ powerW: z.ZodNullable<z.ZodNumber>;
167
+ energyKwh: z.ZodNullable<z.ZodNumber>;
168
+ todayKwh: z.ZodNullable<z.ZodNumber>;
169
+ }, z.core.$strip>>;
170
+ storage: z.ZodNullable<z.ZodObject<{
171
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
172
+ storedKwh: z.ZodNullable<z.ZodNumber>;
173
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
174
+ powerW: z.ZodNullable<z.ZodNumber>;
175
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
176
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
177
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
178
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
179
+ }, z.core.$strip>>;
180
+ lastFetchedAt: z.ZodNumber;
181
+ }, z.core.$strip>;
182
+ /**
183
+ * Runtime-state durability: **session** — the system answers on the next
184
+ * poll, so a restart that clears the slice loses nothing a reader needs (the
185
+ * series are recorded). See `RuntimeStateDurability`.
186
+ */
187
+ readonly durability: 'session';
188
+ /**
189
+ * History (D850): every power is a gauge, every lifetime kWh a counter (the
190
+ * kWh of a period is computed at read time, D944). A part the system does not
191
+ * have is null and records nothing. Day totals are not recorded: they are the
192
+ * counters' difference over the day.
193
+ */
194
+ readonly history: {
195
+ readonly fields: {
196
+ readonly 'solar.powerW': {
197
+ readonly kind: 'gauge';
198
+ readonly unit: 'W';
199
+ readonly deadband: 50;
200
+ readonly displayName: 'Solar power';
201
+ };
202
+ readonly 'solar.energyKwh': {
203
+ readonly kind: 'counter';
204
+ readonly unit: 'kWh';
205
+ readonly displayName: 'Solar energy';
206
+ };
207
+ readonly 'grid.powerW': {
208
+ readonly kind: 'gauge';
209
+ readonly unit: 'W';
210
+ readonly deadband: 50;
211
+ readonly displayName: 'Grid power';
212
+ };
213
+ readonly 'grid.importKwh': {
214
+ readonly kind: 'counter';
215
+ readonly unit: 'kWh';
216
+ readonly displayName: 'Grid import';
217
+ };
218
+ readonly 'grid.exportKwh': {
219
+ readonly kind: 'counter';
220
+ readonly unit: 'kWh';
221
+ readonly displayName: 'Grid export';
222
+ };
223
+ readonly 'house.powerW': {
224
+ readonly kind: 'gauge';
225
+ readonly unit: 'W';
226
+ readonly deadband: 50;
227
+ readonly displayName: 'House power';
228
+ };
229
+ readonly 'house.energyKwh': {
230
+ readonly kind: 'counter';
231
+ readonly unit: 'kWh';
232
+ readonly displayName: 'House energy';
233
+ };
234
+ readonly 'heatPump.powerW': {
235
+ readonly kind: 'gauge';
236
+ readonly unit: 'W';
237
+ readonly deadband: 50;
238
+ readonly displayName: 'Heat pump power';
239
+ };
240
+ readonly 'heatPump.energyKwh': {
241
+ readonly kind: 'counter';
242
+ readonly unit: 'kWh';
243
+ readonly displayName: 'Heat pump energy';
244
+ };
245
+ readonly 'storage.stateOfChargePct': {
246
+ readonly kind: 'gauge';
247
+ readonly unit: '%';
248
+ readonly deadband: 1;
249
+ readonly displayName: 'Storage charge';
250
+ };
251
+ readonly 'storage.storedKwh': {
252
+ readonly kind: 'gauge';
253
+ readonly unit: 'kWh';
254
+ readonly deadband: 0.05;
255
+ readonly displayName: 'Stored energy';
256
+ };
257
+ readonly 'storage.powerW': {
258
+ readonly kind: 'gauge';
259
+ readonly unit: 'W';
260
+ readonly deadband: 50;
261
+ readonly displayName: 'Storage power';
262
+ };
263
+ readonly 'storage.chargedKwh': {
264
+ readonly kind: 'counter';
265
+ readonly unit: 'kWh';
266
+ readonly displayName: 'Storage charged';
267
+ };
268
+ readonly 'storage.dischargedKwh': {
269
+ readonly kind: 'counter';
270
+ readonly unit: 'kWh';
271
+ readonly displayName: 'Storage discharged';
272
+ };
273
+ };
274
+ };
275
+ readonly volatileStateFields: readonly ["lastFetchedAt"];
276
+ readonly vocabulary: {
277
+ readonly noun: import("../index.js").VocabL10n;
278
+ readonly order: 4020;
279
+ };
280
+ };
281
+ export type IEnergySystemProvider = InferProvider<typeof energySystemCapability>;
@@ -173,7 +173,7 @@ export { type BrightnessStatus, BrightnessStatusSchema, brightnessCapability, ty
173
173
  export { FAN_CAPTURE_FIELDS, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, type FanCaptureField, FanCaptureFieldSchema, type FanCaptureOmission, FanCaptureOmissionSchema, type FanPreset, type FanPresetApplyResult, FanPresetApplyResultSchema, type FanPresetAxis, FanPresetAxisSchema, type FanPresetCaptureResult, FanPresetCaptureResultSchema, type FanPresetFieldResult, FanPresetFieldResultSchema, FanPresetSchema, type FanPresetState, FanPresetStateSchema, type FanPresetsRefusal, FanPresetsRefusalSchema, type FanPresetsSetResult, FanPresetsSetResultSchema, type IFanPresetsProvider, fanPresetsCapability, } from './fan-presets.cap.js';
174
174
  export { type IRemoteProvider, REMOTE_CONFIG_REFUSALS, REMOTE_MAX_REPEAT, REMOTE_MEDIA_COMMANDS, REMOTE_REFUSAL_REASONS, type RemoteBoundCommand, type RemoteCommandList, RemoteCommandListSchema, RemoteBoundCommandSchema, type RemoteMediaCommand, type RemoteMediaCommandResult, RemoteMediaCommandResultSchema, RemoteMediaCommandSchema, type RemoteRefusalReason, RemoteRefusalReasonSchema, type RemoteSendResult, RemoteSendResultSchema, type RemoteSetConfigResult, RemoteSetConfigResultSchema, remoteCapability, } from './remote.cap.js';
175
175
  export { HERO_ROW_MODELS_MAX, heroLayoutCapability, type HeroLayoutRows, HeroLayoutRowsSchema, type IHeroLayoutProvider, } from './hero-layout.cap.js';
176
- export { type ITemplateProvider, TEMPLATE_WRITE_REFUSALS, type TemplateDeleteResult, TemplateDeleteResultSchema, type TemplateRecord, TemplateRecordSchema, type TemplateUser, TemplateUserSchema, type TemplateWriteResult, TemplateWriteResultSchema, templateCapability, } from './template.cap.js';
176
+ export { type ITemplateProvider, TEMPLATE_WRITE_REFUSALS, type TemplateAutomationUser, TemplateAutomationUserSchema, type TemplateDeleteResult, TemplateDeleteResultSchema, type TemplateRecord, TemplateRecordSchema, type TemplateUser, TemplateUserSchema, type TemplateWriteResult, TemplateWriteResultSchema, templateCapability, } from './template.cap.js';
177
177
  export { type IRemoteLayoutComponentsProvider, remoteLayoutComponentsCapability, } from './remote-layout-components.cap.js';
178
178
  export { buttonCapability, type IButtonProvider } from './button.cap.js';
179
179
  export { irTransmitterCapability, TransmitSettingKeySchema, IrMediumSchema, IrSendResultSchema, IrTransmitterInfoSchema, type IIrTransmitterProvider, type TransmitSettingKey, type IrMedium, type IrSendResult, type IrTransmitterInfo, IrLearnResultSchema, type IrLearnResult, IrTransmitterAttemptSchema, IrTransmitterSendRecordSchema, IrTransmitterRuntimeStateSchema, type IrTransmitterAttempt, type IrTransmitterSendRecord, type IrTransmitterRuntimeState, type IrTransmitterStateUpdate, irTransmitterStateAfter, irTransmitterRecordsUpdate, irTransmitterErrorCode, IR_LEARN_TIMEOUT_DEFAULT_MS, IR_LEARN_TIMEOUT_MAX_MS, } from './ir-transmitter.cap.js';
@@ -208,6 +208,7 @@ export { type GasStatus, GasStatusSchema, gasCapability, type IGasProvider } fro
208
208
  export { type GroupCommandResult, GroupCommandResultSchema, type GroupCommands, GroupCommandsSchema, groupCommandsCapability, type IGroupCommandsProvider, } from './group-commands.cap.js';
209
209
  export { type GroupActive, GroupActiveSchema, groupActiveCapability, type IGroupActiveProvider, } from './group-active.cap.js';
210
210
  export { type GroupStatus, GroupStatusSchema, groupStatusCapability, type IGroupStatusProvider, } from './group-status.cap.js';
211
+ export { type EnergyConsumer, type EnergyGrid, type EnergySolar, type EnergyStorage, type EnergySystemStatus, type IEnergySystemProvider, EnergyConsumerSchema, EnergyGridSchema, EnergySolarSchema, EnergyStorageSchema, EnergySystemStatusSchema, energySystemCapability, energySystemSelfConsumptionPct, } from './energy-system.cap.js';
211
212
  export { type HeatPumpCircuit, type HeatPumpCircuitKind, type HeatPumpEnergy, type HeatPumpOptionSetting, type HeatPumpPower, type HeatPumpRangeSetting, type HeatPumpStatus, type HeatPumpSystem, type HeatPumpTemperatures, type IHeatPumpStatusProvider, HEAT_PUMP_CIRCUIT_KINDS, HeatPumpCircuitKindSchema, HeatPumpCircuitSchema, HeatPumpEnergySchema, HeatPumpOptionSettingSchema, HeatPumpPowerSchema, HeatPumpRangeSettingSchema, HeatPumpStatusSchema, HeatPumpSystemSchema, HeatPumpTemperaturesSchema, heatPumpInstantCop, heatPumpStatusCapability, } from './heat-pump-status.cap.js';
212
213
  export { type IHeatPumpControlProvider, heatPumpControlCapability, } from './heat-pump-control.cap.js';
213
214
  export { type HeatingValveStatus, HeatingValveStatusSchema, heatingValveCapability, type IHeatingValveProvider, } from './heating-valve.cap.js';
@@ -384,6 +385,7 @@ import type { groupCommandsCapability } from './group-commands.cap.js';
384
385
  import type { groupStatusCapability } from './group-status.cap.js';
385
386
  import type { heatingValveCapability } from './heating-valve.cap.js';
386
387
  import type { heatPumpStatusCapability } from './heat-pump-status.cap.js';
388
+ import type { energySystemCapability } from './energy-system.cap.js';
387
389
  import type { heatPumpControlCapability } from './heat-pump-control.cap.js';
388
390
  import type { humidifierCapability } from './humidifier.cap.js';
389
391
  import type { humiditySensorCapability } from './humidity-sensor.cap.js';
@@ -491,6 +493,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
491
493
  import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
492
494
  import type { zoneRulesCapability } from './zone-rules.cap.js';
493
495
  import type { zonesCapability } from './zones.cap.js';
494
- type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
496
+ type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
495
497
  export type CapabilityName = AnyCapability['name'];
496
498
  export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
@@ -31,6 +31,9 @@ export declare const IntegrationInstanceKindSchema: z.ZodObject<{
31
31
  label: z.ZodString;
32
32
  functionCap: z.ZodString;
33
33
  brokerKind: z.ZodOptional<z.ZodString>;
34
+ alsoServes: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ iconUrl: z.ZodOptional<z.ZodString>;
36
+ iconMediaType: z.ZodOptional<z.ZodString>;
34
37
  role: z.ZodOptional<z.ZodEnum<{
35
38
  devices: "devices";
36
39
  services: "services";
@@ -107,6 +110,9 @@ export declare const IntegrationInstanceDescriptionSchema: z.ZodObject<{
107
110
  label: z.ZodString;
108
111
  functionCap: z.ZodString;
109
112
  brokerKind: z.ZodOptional<z.ZodString>;
113
+ alsoServes: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ iconUrl: z.ZodOptional<z.ZodString>;
115
+ iconMediaType: z.ZodOptional<z.ZodString>;
110
116
  role: z.ZodOptional<z.ZodEnum<{
111
117
  devices: "devices";
112
118
  services: "services";
@@ -207,6 +213,9 @@ export declare const integrationInstancesCapability: {
207
213
  label: z.ZodString;
208
214
  functionCap: z.ZodString;
209
215
  brokerKind: z.ZodOptional<z.ZodString>;
216
+ alsoServes: z.ZodOptional<z.ZodArray<z.ZodString>>;
217
+ iconUrl: z.ZodOptional<z.ZodString>;
218
+ iconMediaType: z.ZodOptional<z.ZodString>;
210
219
  role: z.ZodOptional<z.ZodEnum<{
211
220
  devices: "devices";
212
221
  services: "services";
@@ -6,7 +6,9 @@ import { type InferProvider } from './capability-definition.js';
6
6
  * button grid of a remote) and the schema each payload must satisfy are
7
7
  * declared by the system in `template-kinds.ts`. Nothing here is specific to a
8
8
  * kind: the engine validates a payload against its kind's schema and, on a
9
- * delete, asks the kind's owner whether anything still points at the record.
9
+ * delete, asks the kind's owner whether anything still points at the record
10
+ * (a device's remote, an automation made from the template). Saving an
11
+ * `automation` template re-expands every automation made from it (#527).
10
12
  *
11
13
  * Every refusal is a typed result — a UI says "unknown kind" or names the
12
14
  * devices that still use a template, without parsing text.
@@ -14,32 +16,37 @@ import { type InferProvider } from './capability-definition.js';
14
16
  export declare const TemplateRecordSchema: z.ZodObject<{
15
17
  id: z.ZodString;
16
18
  kind: z.ZodEnum<{
19
+ automation: "automation";
17
20
  remote: "remote";
18
21
  }>;
19
22
  name: z.ZodString;
20
23
  payload: z.ZodUnknown;
21
24
  createdAt: z.ZodNumber;
22
25
  updatedAt: z.ZodNumber;
26
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
23
27
  }, z.core.$strip>;
24
28
  export type TemplateRecord = z.infer<typeof TemplateRecordSchema>;
25
- export declare const TEMPLATE_WRITE_REFUSALS: readonly ['invalid-payload', 'not-found'];
29
+ export declare const TEMPLATE_WRITE_REFUSALS: readonly ['invalid-payload', 'not-found', 'read-only'];
26
30
  export declare const TemplateWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
31
  status: z.ZodLiteral<"saved">;
28
32
  template: z.ZodObject<{
29
33
  id: z.ZodString;
30
34
  kind: z.ZodEnum<{
35
+ automation: "automation";
31
36
  remote: "remote";
32
37
  }>;
33
38
  name: z.ZodString;
34
39
  payload: z.ZodUnknown;
35
40
  createdAt: z.ZodNumber;
36
41
  updatedAt: z.ZodNumber;
42
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
37
43
  }, z.core.$strip>;
38
44
  }, z.core.$strip>, z.ZodObject<{
39
45
  status: z.ZodLiteral<"refused">;
40
46
  reason: z.ZodEnum<{
41
47
  "invalid-payload": "invalid-payload";
42
48
  "not-found": "not-found";
49
+ "read-only": "read-only";
43
50
  }>;
44
51
  detail: z.ZodString;
45
52
  }, z.core.$strip>], "status">;
@@ -50,16 +57,28 @@ export declare const TemplateUserSchema: z.ZodObject<{
50
57
  name: z.ZodString;
51
58
  }, z.core.$strip>;
52
59
  export type TemplateUser = z.infer<typeof TemplateUserSchema>;
60
+ /** An automation made from a template (#527): a core block whose recipe links to it. */
61
+ export declare const TemplateAutomationUserSchema: z.ZodObject<{
62
+ blockId: z.ZodString;
63
+ name: z.ZodString;
64
+ }, z.core.$strip>;
65
+ export type TemplateAutomationUser = z.infer<typeof TemplateAutomationUserSchema>;
53
66
  export declare const TemplateDeleteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
67
  status: z.ZodLiteral<"deleted">;
55
68
  }, z.core.$strip>, z.ZodObject<{
56
69
  status: z.ZodLiteral<"not-found">;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ status: z.ZodLiteral<"read-only">;
57
72
  }, z.core.$strip>, z.ZodObject<{
58
73
  status: z.ZodLiteral<"in-use">;
59
74
  devices: z.ZodArray<z.ZodObject<{
60
75
  deviceId: z.ZodNumber;
61
76
  name: z.ZodString;
62
77
  }, z.core.$strip>>;
78
+ automations: z.ZodArray<z.ZodObject<{
79
+ blockId: z.ZodString;
80
+ name: z.ZodString;
81
+ }, z.core.$strip>>;
63
82
  }, z.core.$strip>], "status">;
64
83
  export type TemplateDeleteResult = z.infer<typeof TemplateDeleteResultSchema>;
65
84
  export declare const templateCapability: {
@@ -69,32 +88,38 @@ export declare const templateCapability: {
69
88
  readonly methods: {
70
89
  readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
71
90
  kind: z.ZodOptional<z.ZodEnum<{
91
+ automation: "automation";
72
92
  remote: "remote";
73
93
  }>>;
74
94
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
75
95
  id: z.ZodString;
76
96
  kind: z.ZodEnum<{
97
+ automation: "automation";
77
98
  remote: "remote";
78
99
  }>;
79
100
  name: z.ZodString;
80
101
  payload: z.ZodUnknown;
81
102
  createdAt: z.ZodNumber;
82
103
  updatedAt: z.ZodNumber;
104
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
83
105
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
84
106
  readonly get: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
85
107
  id: z.ZodString;
86
108
  }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
87
109
  id: z.ZodString;
88
110
  kind: z.ZodEnum<{
111
+ automation: "automation";
89
112
  remote: "remote";
90
113
  }>;
91
114
  name: z.ZodString;
92
115
  payload: z.ZodUnknown;
93
116
  createdAt: z.ZodNumber;
94
117
  updatedAt: z.ZodNumber;
118
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
95
119
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
96
120
  readonly create: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
97
121
  kind: z.ZodEnum<{
122
+ automation: "automation";
98
123
  remote: "remote";
99
124
  }>;
100
125
  name: z.ZodString;
@@ -104,18 +129,21 @@ export declare const templateCapability: {
104
129
  template: z.ZodObject<{
105
130
  id: z.ZodString;
106
131
  kind: z.ZodEnum<{
132
+ automation: "automation";
107
133
  remote: "remote";
108
134
  }>;
109
135
  name: z.ZodString;
110
136
  payload: z.ZodUnknown;
111
137
  createdAt: z.ZodNumber;
112
138
  updatedAt: z.ZodNumber;
139
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
113
140
  }, z.core.$strip>;
114
141
  }, z.core.$strip>, z.ZodObject<{
115
142
  status: z.ZodLiteral<"refused">;
116
143
  reason: z.ZodEnum<{
117
144
  "invalid-payload": "invalid-payload";
118
145
  "not-found": "not-found";
146
+ "read-only": "read-only";
119
147
  }>;
120
148
  detail: z.ZodString;
121
149
  }, z.core.$strip>], "status">, "mutation">;
@@ -128,18 +156,21 @@ export declare const templateCapability: {
128
156
  template: z.ZodObject<{
129
157
  id: z.ZodString;
130
158
  kind: z.ZodEnum<{
159
+ automation: "automation";
131
160
  remote: "remote";
132
161
  }>;
133
162
  name: z.ZodString;
134
163
  payload: z.ZodUnknown;
135
164
  createdAt: z.ZodNumber;
136
165
  updatedAt: z.ZodNumber;
166
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
137
167
  }, z.core.$strip>;
138
168
  }, z.core.$strip>, z.ZodObject<{
139
169
  status: z.ZodLiteral<"refused">;
140
170
  reason: z.ZodEnum<{
141
171
  "invalid-payload": "invalid-payload";
142
172
  "not-found": "not-found";
173
+ "read-only": "read-only";
143
174
  }>;
144
175
  detail: z.ZodString;
145
176
  }, z.core.$strip>], "status">, "mutation">;
@@ -149,12 +180,18 @@ export declare const templateCapability: {
149
180
  status: z.ZodLiteral<"deleted">;
150
181
  }, z.core.$strip>, z.ZodObject<{
151
182
  status: z.ZodLiteral<"not-found">;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ status: z.ZodLiteral<"read-only">;
152
185
  }, z.core.$strip>, z.ZodObject<{
153
186
  status: z.ZodLiteral<"in-use">;
154
187
  devices: z.ZodArray<z.ZodObject<{
155
188
  deviceId: z.ZodNumber;
156
189
  name: z.ZodString;
157
190
  }, z.core.$strip>>;
191
+ automations: z.ZodArray<z.ZodObject<{
192
+ blockId: z.ZodString;
193
+ name: z.ZodString;
194
+ }, z.core.$strip>>;
158
195
  }, z.core.$strip>], "status">, "mutation">;
159
196
  };
160
197
  readonly vocabulary: {
package/dist/client.js CHANGED
@@ -1237,6 +1237,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1237
1237
  * water, cooling, solar), its system modes and its power. One main read-only
1238
1238
  * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
1239
1239
  DeviceType["HeatPump"] = "heat-pump";
1240
+ /** A home energy installation (any vendor): solar, grid, house, a metered heat pump
1241
+ * and the storage as branches of one bus. One read-only `energy-system` cap carries
1242
+ * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
1243
+ DeviceType["EnergySystem"] = "energy-system";
1240
1244
  return DeviceType;
1241
1245
  }({});
1242
1246
  /**
@@ -27282,6 +27286,7 @@ var DEVICE_TYPE_ICON = {
27282
27286
  [DeviceType.Sensor]: "activity",
27283
27287
  [DeviceType.Climate]: "thermometer",
27284
27288
  [DeviceType.HeatPump]: "flame",
27289
+ [DeviceType.EnergySystem]: "solar-panel",
27285
27290
  [DeviceType.Button]: "circle-dot",
27286
27291
  [DeviceType.EventEmitter]: "zap",
27287
27292
  [DeviceType.Update]: "refresh-cw",
@@ -27667,6 +27672,7 @@ function createDeviceProxy(api, binding, opts) {
27667
27672
  getStatus: (input) => dispatch("do-not-disturb", "doNotDisturb", "getStatus", "query", input)
27668
27673
  };
27669
27674
  const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
27675
+ const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
27670
27676
  const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
27671
27677
  const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
27672
27678
  const fanControlInterface = {
@@ -28293,6 +28299,7 @@ function createDeviceProxy(api, binding, opts) {
28293
28299
  dishwasher: createSliceHandle(stateSource, binding.deviceId, "dishwasher"),
28294
28300
  doNotDisturb: createSliceHandle(stateSource, binding.deviceId, "do-not-disturb"),
28295
28301
  doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
28302
+ energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
28296
28303
  enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
28297
28304
  eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
28298
28305
  fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
@@ -28388,6 +28395,7 @@ function createDeviceProxy(api, binding, opts) {
28388
28395
  ...bound("dishwasher") ? { dishwasher: dishwasherInterface } : {},
28389
28396
  ...bound("do-not-disturb") ? { doNotDisturb: doNotDisturbInterface } : {},
28390
28397
  ...bound("doorbell") ? { doorbell: doorbellInterface } : {},
28398
+ ...bound("energy-system") ? { energySystem: energySystemInterface } : {},
28391
28399
  ...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
28392
28400
  ...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
28393
28401
  ...bound("fan-control") ? { fanControl: fanControlInterface } : {},
package/dist/client.mjs CHANGED
@@ -1236,6 +1236,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1236
1236
  * water, cooling, solar), its system modes and its power. One main read-only
1237
1237
  * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
1238
1238
  DeviceType["HeatPump"] = "heat-pump";
1239
+ /** A home energy installation (any vendor): solar, grid, house, a metered heat pump
1240
+ * and the storage as branches of one bus. One read-only `energy-system` cap carries
1241
+ * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
1242
+ DeviceType["EnergySystem"] = "energy-system";
1239
1243
  return DeviceType;
1240
1244
  }({});
1241
1245
  /**
@@ -27281,6 +27285,7 @@ var DEVICE_TYPE_ICON = {
27281
27285
  [DeviceType.Sensor]: "activity",
27282
27286
  [DeviceType.Climate]: "thermometer",
27283
27287
  [DeviceType.HeatPump]: "flame",
27288
+ [DeviceType.EnergySystem]: "solar-panel",
27284
27289
  [DeviceType.Button]: "circle-dot",
27285
27290
  [DeviceType.EventEmitter]: "zap",
27286
27291
  [DeviceType.Update]: "refresh-cw",
@@ -27666,6 +27671,7 @@ function createDeviceProxy(api, binding, opts) {
27666
27671
  getStatus: (input) => dispatch("do-not-disturb", "doNotDisturb", "getStatus", "query", input)
27667
27672
  };
27668
27673
  const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
27674
+ const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
27669
27675
  const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
27670
27676
  const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
27671
27677
  const fanControlInterface = {
@@ -28292,6 +28298,7 @@ function createDeviceProxy(api, binding, opts) {
28292
28298
  dishwasher: createSliceHandle(stateSource, binding.deviceId, "dishwasher"),
28293
28299
  doNotDisturb: createSliceHandle(stateSource, binding.deviceId, "do-not-disturb"),
28294
28300
  doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
28301
+ energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
28295
28302
  enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
28296
28303
  eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
28297
28304
  fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
@@ -28387,6 +28394,7 @@ function createDeviceProxy(api, binding, opts) {
28387
28394
  ...bound("dishwasher") ? { dishwasher: dishwasherInterface } : {},
28388
28395
  ...bound("do-not-disturb") ? { doNotDisturb: doNotDisturbInterface } : {},
28389
28396
  ...bound("doorbell") ? { doorbell: doorbellInterface } : {},
28397
+ ...bound("energy-system") ? { energySystem: energySystemInterface } : {},
28390
28398
  ...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
28391
28399
  ...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
28392
28400
  ...bound("fan-control") ? { fanControl: fanControlInterface } : {},
@@ -127,6 +127,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
127
127
  * water, cooling, solar), its system modes and its power. One main read-only
128
128
  * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
129
129
  DeviceType["HeatPump"] = "heat-pump";
130
+ /** A home energy installation (any vendor): solar, grid, house, a metered heat pump
131
+ * and the storage as branches of one bus. One read-only `energy-system` cap carries
132
+ * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
133
+ DeviceType["EnergySystem"] = "energy-system";
130
134
  return DeviceType;
131
135
  }({});
132
136
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {