@camstack/types 1.2.560 → 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.
- package/CHANGELOG.md +22 -0
- package/dist/addon/instances-of-cap.d.ts +7 -2
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/automation/codegen.d.ts +6 -0
- package/dist/automation/recipe-literal.d.ts +35 -0
- package/dist/automation/recipe.d.ts +166 -120
- package/dist/automation/template-link.d.ts +206 -0
- package/dist/capabilities/accessories.cap.d.ts +6 -0
- package/dist/capabilities/action-source.cap.d.ts +3 -0
- package/dist/capabilities/actions.cap.d.ts +3 -0
- package/dist/capabilities/addon-pages-source.cap.d.ts +3 -0
- package/dist/capabilities/addon-pages.cap.d.ts +3 -0
- package/dist/capabilities/addon-routes.cap.d.ts +3 -0
- package/dist/capabilities/addon-settings.cap.d.ts +3 -0
- package/dist/capabilities/addon-widgets-source.cap.d.ts +3 -0
- package/dist/capabilities/addon-widgets.cap.d.ts +3 -0
- package/dist/capabilities/addons.cap.d.ts +3 -0
- package/dist/capabilities/admin-ui.cap.d.ts +3 -0
- package/dist/capabilities/air-quality-sensor.cap.d.ts +39 -0
- package/dist/capabilities/alarm-panel.cap.d.ts +60 -14
- package/dist/capabilities/alerts.cap.d.ts +3 -0
- package/dist/capabilities/ambient-light-sensor.cap.d.ts +12 -0
- package/dist/capabilities/audio-analysis.cap.d.ts +4 -0
- package/dist/capabilities/audio-analyzer.cap.d.ts +3 -0
- package/dist/capabilities/audio-codec.cap.d.ts +3 -0
- package/dist/capabilities/audio-metrics.cap.d.ts +4 -0
- package/dist/capabilities/auth-provider.cap.d.ts +3 -0
- package/dist/capabilities/automation-control.cap.d.ts +19 -0
- package/dist/capabilities/backup.cap.d.ts +3 -0
- package/dist/capabilities/battery.cap.d.ts +53 -0
- package/dist/capabilities/binary.cap.d.ts +136 -0
- package/dist/capabilities/board-key-source.cap.d.ts +3 -0
- package/dist/capabilities/brightness.cap.d.ts +13 -0
- package/dist/capabilities/broker.cap.d.ts +3 -0
- package/dist/capabilities/button.cap.d.ts +4 -0
- package/dist/capabilities/calendar-source.cap.d.ts +3 -0
- package/dist/capabilities/calendars.cap.d.ts +3 -0
- package/dist/capabilities/camera-credentials.cap.d.ts +4 -0
- package/dist/capabilities/camera-grid-layout.cap.d.ts +4 -0
- package/dist/capabilities/camera-pipeline-config.cap.d.ts +4 -0
- package/dist/capabilities/camera-streams.cap.d.ts +4 -0
- package/dist/capabilities/capability-definition.d.ts +37 -8
- package/dist/capabilities/carbon-monoxide.cap.d.ts +12 -0
- package/dist/capabilities/climate-control.cap.d.ts +68 -12
- package/dist/capabilities/cluster-update.cap.d.ts +3 -0
- package/dist/capabilities/color.cap.d.ts +21 -0
- package/dist/capabilities/composer.cap.d.ts +3 -0
- package/dist/capabilities/connectivity.cap.d.ts +12 -0
- package/dist/capabilities/consumables.cap.d.ts +4 -0
- package/dist/capabilities/contact.cap.d.ts +12 -0
- package/dist/capabilities/control.cap.d.ts +15 -0
- package/dist/capabilities/core-blocks.cap.d.ts +3 -0
- package/dist/capabilities/cover.cap.d.ts +110 -0
- package/dist/capabilities/custom-model-registry.cap.d.ts +3 -0
- package/dist/capabilities/data-store-provider.cap.d.ts +3 -0
- package/dist/capabilities/database-snapshot.cap.d.ts +3 -0
- package/dist/capabilities/day-night.cap.d.ts +25 -0
- package/dist/capabilities/decoder.cap.d.ts +3 -0
- package/dist/capabilities/detection-pipeline.cap.d.ts +4 -0
- package/dist/capabilities/device-admin-link.cap.d.ts +4 -0
- package/dist/capabilities/device-adoption.cap.d.ts +3 -0
- package/dist/capabilities/device-credentials.cap.d.ts +3 -0
- package/dist/capabilities/device-export.cap.d.ts +3 -0
- package/dist/capabilities/device-extension.cap.d.ts +4 -0
- package/dist/capabilities/device-history.cap.d.ts +3 -0
- package/dist/capabilities/device-manager.cap.d.ts +3 -0
- package/dist/capabilities/device-ops.cap.d.ts +4 -0
- package/dist/capabilities/device-provider.cap.d.ts +3 -0
- package/dist/capabilities/device-removal-hook.cap.d.ts +3 -0
- package/dist/capabilities/device-runs.cap.d.ts +6 -0
- package/dist/capabilities/device-state.cap.d.ts +3 -0
- package/dist/capabilities/device-status.cap.d.ts +25 -0
- package/dist/capabilities/device-transitions.cap.d.ts +4 -0
- package/dist/capabilities/dishwasher.cap.d.ts +60 -0
- package/dist/capabilities/display-palette.cap.d.ts +3 -0
- package/dist/capabilities/do-not-disturb.cap.d.ts +12 -0
- package/dist/capabilities/doorbell.cap.d.ts +11 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts +3 -0
- package/dist/capabilities/energy-system.cap.d.ts +281 -0
- package/dist/capabilities/enum-sensor.cap.d.ts +10 -0
- package/dist/capabilities/event-emitter.cap.d.ts +11 -0
- package/dist/capabilities/face-gallery.cap.d.ts +3 -0
- package/dist/capabilities/failure-contribution.cap.d.ts +3 -0
- package/dist/capabilities/fan-control.cap.d.ts +19 -0
- package/dist/capabilities/fan-presets.cap.d.ts +3 -0
- package/dist/capabilities/feature-probe.cap.d.ts +5 -0
- package/dist/capabilities/filesystem-browse.cap.d.ts +3 -0
- package/dist/capabilities/flood.cap.d.ts +12 -0
- package/dist/capabilities/gas.cap.d.ts +12 -0
- package/dist/capabilities/group-active.cap.d.ts +4 -0
- package/dist/capabilities/group-commands.cap.d.ts +4 -0
- package/dist/capabilities/group-status.cap.d.ts +23 -0
- package/dist/capabilities/heat-pump-control.cap.d.ts +4 -0
- package/dist/capabilities/heat-pump-status.cap.d.ts +4 -0
- package/dist/capabilities/heating-valve.cap.d.ts +12 -0
- package/dist/capabilities/hero-layout.cap.d.ts +3 -0
- package/dist/capabilities/humidifier.cap.d.ts +19 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +12 -0
- package/dist/capabilities/image-settings.cap.d.ts +4 -0
- package/dist/capabilities/image.cap.d.ts +4 -0
- package/dist/capabilities/index.d.ts +5 -3
- package/dist/capabilities/integration-instances.cap.d.ts +12 -0
- package/dist/capabilities/integrations.cap.d.ts +3 -0
- package/dist/capabilities/intercom.cap.d.ts +13 -0
- package/dist/capabilities/ir-transmitter.cap.d.ts +101 -0
- package/dist/capabilities/keychain-admin.cap.d.ts +3 -0
- package/dist/capabilities/keychain.cap.d.ts +3 -0
- package/dist/capabilities/lawn-mower-control.cap.d.ts +36 -0
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -0
- package/dist/capabilities/llm.cap.d.ts +3 -0
- package/dist/capabilities/load-contribution.cap.d.ts +3 -0
- package/dist/capabilities/local-network.cap.d.ts +3 -0
- package/dist/capabilities/lock-control.cap.d.ts +35 -0
- package/dist/capabilities/log-channels.cap.d.ts +3 -0
- package/dist/capabilities/log-destination.cap.d.ts +3 -0
- package/dist/capabilities/login-method.cap.d.ts +3 -0
- package/dist/capabilities/media-player.cap.d.ts +66 -6
- package/dist/capabilities/mesh-network.cap.d.ts +3 -0
- package/dist/capabilities/meter.cap.d.ts +11 -0
- package/dist/capabilities/metrics-provider.cap.d.ts +3 -0
- package/dist/capabilities/migrations.cap.d.ts +3 -0
- package/dist/capabilities/model-convert.cap.d.ts +3 -0
- package/dist/capabilities/model-distributor.cap.d.ts +3 -0
- package/dist/capabilities/motion-detection.cap.d.ts +5 -0
- package/dist/capabilities/motion-trigger.cap.d.ts +13 -0
- package/dist/capabilities/motion-zones.cap.d.ts +4 -0
- package/dist/capabilities/motion.cap.d.ts +13 -0
- package/dist/capabilities/mqtt-broker.cap.d.ts +3 -0
- package/dist/capabilities/native-object-detection.cap.d.ts +19 -0
- package/dist/capabilities/navigation.cap.d.ts +36 -0
- package/dist/capabilities/network-access.cap.d.ts +3 -0
- package/dist/capabilities/network-link.cap.d.ts +31 -0
- package/dist/capabilities/network-quality.cap.d.ts +3 -0
- package/dist/capabilities/node-certificates.cap.d.ts +3 -0
- package/dist/capabilities/node-removal-hook.cap.d.ts +3 -0
- package/dist/capabilities/nodes.cap.d.ts +3 -0
- package/dist/capabilities/notification-output.cap.d.ts +3 -0
- package/dist/capabilities/notification-rules.cap.d.ts +3 -0
- package/dist/capabilities/notifier.cap.d.ts +5 -0
- package/dist/capabilities/numeric-sensor.cap.d.ts +11 -0
- package/dist/capabilities/oauth-integration.cap.d.ts +3 -0
- package/dist/capabilities/osd-manager.cap.d.ts +3 -0
- package/dist/capabilities/osd.cap.d.ts +5 -0
- package/dist/capabilities/pet-feeder.cap.d.ts +35 -9
- package/dist/capabilities/pet-fountain.cap.d.ts +19 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +35 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts +3 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +3 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +3 -0
- package/dist/capabilities/plate-gallery.cap.d.ts +3 -0
- package/dist/capabilities/platform-probe.cap.d.ts +3 -0
- package/dist/capabilities/power-meter.cap.d.ts +33 -0
- package/dist/capabilities/power-source.cap.d.ts +12 -0
- package/dist/capabilities/presence.cap.d.ts +11 -0
- package/dist/capabilities/pressure-sensor.cap.d.ts +12 -0
- package/dist/capabilities/privacy-mask.cap.d.ts +19 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts +13 -0
- package/dist/capabilities/ptz.cap.d.ts +11 -7
- package/dist/capabilities/pump-cycle.cap.d.ts +12 -0
- package/dist/capabilities/reboot.cap.d.ts +4 -0
- package/dist/capabilities/record-entries.cap.d.ts +3 -0
- package/dist/capabilities/recording-archive.cap.d.ts +3 -0
- package/dist/capabilities/recording-export.cap.d.ts +3 -0
- package/dist/capabilities/recording-onboard.cap.d.ts +12 -0
- package/dist/capabilities/recording-signal.cap.d.ts +12 -0
- package/dist/capabilities/recording.cap.d.ts +4 -0
- package/dist/capabilities/records.cap.d.ts +3 -0
- package/dist/capabilities/remote-layout-components.cap.d.ts +3 -0
- package/dist/capabilities/remote.cap.d.ts +3 -0
- package/dist/capabilities/running-state.cap.d.ts +77 -0
- package/dist/capabilities/scene-monitor.cap.d.ts +11 -0
- package/dist/capabilities/schedulers.cap.d.ts +3 -0
- package/dist/capabilities/script-runner.cap.d.ts +12 -0
- package/dist/capabilities/server-management.cap.d.ts +3 -0
- package/dist/capabilities/settings-store.cap.d.ts +3 -0
- package/dist/capabilities/smoke.cap.d.ts +12 -0
- package/dist/capabilities/smtp-provider.cap.d.ts +3 -0
- package/dist/capabilities/snapshot.cap.d.ts +4 -0
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
- package/dist/capabilities/storage-admin.cap.d.ts +3 -0
- package/dist/capabilities/storage-evictable.cap.d.ts +3 -0
- package/dist/capabilities/storage-migration.cap.d.ts +3 -0
- package/dist/capabilities/storage-occupancy.cap.d.ts +3 -0
- package/dist/capabilities/storage-provider.cap.d.ts +3 -0
- package/dist/capabilities/storage.cap.d.ts +3 -0
- package/dist/capabilities/stream-broker.cap.d.ts +3 -0
- package/dist/capabilities/stream-catalog.cap.d.ts +4 -0
- package/dist/capabilities/stream-params.cap.d.ts +4 -0
- package/dist/capabilities/stream-signals.cap.d.ts +4 -0
- package/dist/capabilities/switch.cap.d.ts +208 -0
- package/dist/capabilities/system.cap.d.ts +3 -0
- package/dist/capabilities/tamper.cap.d.ts +12 -0
- package/dist/capabilities/temperature-sensor.cap.d.ts +12 -0
- package/dist/capabilities/template.cap.d.ts +42 -2
- package/dist/capabilities/terminal-session.cap.d.ts +3 -0
- package/dist/capabilities/timed-run.cap.d.ts +4 -0
- package/dist/capabilities/toast.cap.d.ts +3 -0
- package/dist/capabilities/training-provider.cap.d.ts +3 -0
- package/dist/capabilities/training.cap.d.ts +3 -0
- package/dist/capabilities/turn-provider.cap.d.ts +3 -0
- package/dist/capabilities/update.cap.d.ts +19 -0
- package/dist/capabilities/user-management.cap.d.ts +3 -0
- package/dist/capabilities/user-passkeys.cap.d.ts +3 -0
- package/dist/capabilities/vacuum-control.cap.d.ts +43 -0
- package/dist/capabilities/valve.cap.d.ts +38 -0
- package/dist/capabilities/vector-store.cap.d.ts +3 -0
- package/dist/capabilities/vibration.cap.d.ts +12 -0
- package/dist/capabilities/videoclips.cap.d.ts +4 -0
- package/dist/capabilities/viewer-ui.cap.d.ts +3 -0
- package/dist/capabilities/water-heater.cap.d.ts +33 -4
- package/dist/capabilities/weather.cap.d.ts +39 -0
- package/dist/capabilities/webrtc-session.cap.d.ts +4 -0
- package/dist/capabilities/zone-analytics.cap.d.ts +11 -0
- package/dist/capabilities/zone-rules.cap.d.ts +4 -0
- package/dist/capabilities/zones.cap.d.ts +4 -0
- package/dist/client.js +186 -29
- package/dist/client.mjs +186 -29
- package/dist/{composed-stable-id-iddnCQ51.mjs → composed-stable-id-B3wcvtvW.mjs} +4 -0
- package/dist/{composed-stable-id-BmJ_5GiE.js → composed-stable-id-Bp33yrYi.js} +4 -0
- package/dist/device/cap-vocabulary/declaration.d.ts +107 -0
- package/dist/device/cap-vocabulary/index.d.ts +4 -2
- package/dist/device/cap-vocabulary/system-reasons.d.ts +17 -0
- package/dist/device/cap-vocabulary/types.d.ts +24 -6
- package/dist/device/cap-vocabulary/vocabulary.d.ts +15 -3
- package/dist/device/device-control-resolution.d.ts +1 -1
- package/dist/device/device-icon.d.ts +1 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-scene.d.ts +1 -0
- package/dist/generated/addon-api.d.ts +66 -52
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +7 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +6 -0
- package/dist/generated/device-proxy.d.ts +4 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/{implemented-methods-CfaRR_ki.js → implemented-methods-CDYOCn9a.js} +1 -1
- package/dist/{implemented-methods-CSTk6zYK.mjs → implemented-methods-CgUBu6uM.mjs} +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +6739 -765
- package/dist/index.mjs +6685 -766
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-CyWfD1LJ.js → sleep-Cb2px0Nb.js} +5706 -1620
- package/dist/{sleep-BvVGLl30.mjs → sleep-Cykc2bzi.mjs} +5701 -1621
- package/dist/template/automation-template.d.ts +782 -0
- package/dist/template/builtin-automation-templates.d.ts +17 -0
- package/dist/template/template-kinds.d.ts +4 -3
- package/package.json +1 -1
- package/dist/device/cap-vocabulary/entries/actuators.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/appliances.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/camera.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +0 -4
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/system.d.ts +0 -8
|
@@ -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>;
|
|
@@ -67,5 +67,15 @@ export declare const enumSensorCapability: {
|
|
|
67
67
|
/** Clock fields: written, but excluded from the compare that decides
|
|
68
68
|
* whether persisting is worth a SQLite commit. */
|
|
69
69
|
readonly volatileStateFields: readonly ["lastFetchedAt", "timestamp"];
|
|
70
|
+
readonly vocabulary: {
|
|
71
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
72
|
+
readonly order: 5060;
|
|
73
|
+
readonly state: readonly [{
|
|
74
|
+
readonly kind: 'value';
|
|
75
|
+
readonly field: 'value';
|
|
76
|
+
readonly label: import("../index.js").VocabL10n;
|
|
77
|
+
readonly icon: 'list';
|
|
78
|
+
}];
|
|
79
|
+
};
|
|
70
80
|
};
|
|
71
81
|
export type IEnumSensorProvider = InferProvider<typeof enumSensorCapability>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
3
|
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
import { EventCategory } from '../enums/event-category.js';
|
|
4
5
|
/**
|
|
5
6
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
6
7
|
* device. Carries the device's EXACT declared event vocabulary verbatim
|
|
@@ -83,6 +84,12 @@ export declare const eventEmitterCapability: {
|
|
|
83
84
|
timestamp: z.ZodNumber;
|
|
84
85
|
seq: z.ZodNumber;
|
|
85
86
|
}, z.core.$strip>;
|
|
87
|
+
readonly trigger: {
|
|
88
|
+
readonly category: EventCategory.EventEmitted;
|
|
89
|
+
readonly label: import("../index.js").VocabL10n;
|
|
90
|
+
readonly phrase: import("../index.js").VocabL10n;
|
|
91
|
+
readonly icon: 'zap';
|
|
92
|
+
};
|
|
86
93
|
};
|
|
87
94
|
};
|
|
88
95
|
readonly status: {
|
|
@@ -181,5 +188,9 @@ export declare const eventEmitterCapability: {
|
|
|
181
188
|
* History (D850): none — `eventCountSinceStart` resets with the addon; events live in ledgers.
|
|
182
189
|
*/
|
|
183
190
|
readonly history: 'none';
|
|
191
|
+
readonly vocabulary: {
|
|
192
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
193
|
+
readonly order: 5280;
|
|
194
|
+
};
|
|
184
195
|
};
|
|
185
196
|
export type IEventEmitterProvider = InferProvider<typeof eventEmitterCapability>;
|
|
@@ -345,6 +345,9 @@ export declare const faceGalleryCapability: {
|
|
|
345
345
|
cohesion: z.ZodNumber;
|
|
346
346
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
347
347
|
};
|
|
348
|
+
readonly vocabulary: {
|
|
349
|
+
readonly notOperatorFacing: 'the face gallery — curated on its own page';
|
|
350
|
+
};
|
|
348
351
|
};
|
|
349
352
|
export type IFaceGalleryProvider = InferProvider<typeof faceGalleryCapability>;
|
|
350
353
|
/**
|
|
@@ -106,6 +106,9 @@ export declare const failureContributionCapability: {
|
|
|
106
106
|
readonly mount: {
|
|
107
107
|
readonly kind: 'skip';
|
|
108
108
|
};
|
|
109
|
+
readonly vocabulary: {
|
|
110
|
+
readonly notOperatorFacing: "internal plumbing between addons — never operator-facing";
|
|
111
|
+
};
|
|
109
112
|
};
|
|
110
113
|
export type IFailureContributionProvider = InferProvider<typeof failureContributionCapability>;
|
|
111
114
|
export { FailureContributionSchema, FailureReasonCountSchema };
|
|
@@ -373,5 +373,24 @@ export declare const fanControlCapability: {
|
|
|
373
373
|
};
|
|
374
374
|
};
|
|
375
375
|
};
|
|
376
|
+
readonly vocabulary: {
|
|
377
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
378
|
+
readonly order: 1080;
|
|
379
|
+
readonly state: readonly [{
|
|
380
|
+
readonly kind: 'numeric';
|
|
381
|
+
readonly field: 'speed';
|
|
382
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
383
|
+
readonly label: import("../index.js").VocabL10n;
|
|
384
|
+
readonly unit: '%';
|
|
385
|
+
readonly icon: 'fan';
|
|
386
|
+
}, {
|
|
387
|
+
readonly kind: 'boolean';
|
|
388
|
+
readonly field: 'oscillating';
|
|
389
|
+
readonly label: import("../index.js").VocabL10n;
|
|
390
|
+
readonly whenTrue: import("../index.js").VocabL10n;
|
|
391
|
+
readonly whenFalse: import("../index.js").VocabL10n;
|
|
392
|
+
readonly icon: 'move-horizontal';
|
|
393
|
+
}];
|
|
394
|
+
};
|
|
376
395
|
};
|
|
377
396
|
export type IFanControlProvider = InferProvider<typeof fanControlCapability>;
|
|
@@ -328,5 +328,8 @@ export declare const fanPresetsCapability: {
|
|
|
328
328
|
readonly writeMethod: 'setPresets';
|
|
329
329
|
}];
|
|
330
330
|
};
|
|
331
|
+
readonly vocabulary: {
|
|
332
|
+
readonly notOperatorFacing: 'the per-fan presets — authored in the Customize presets editor, applied through the actions the exports list';
|
|
333
|
+
};
|
|
331
334
|
};
|
|
332
335
|
export type IFanPresetsProvider = InferProvider<typeof fanPresetsCapability>;
|
|
@@ -54,6 +54,7 @@ export declare const featureProbeCapability: {
|
|
|
54
54
|
lastFetchedAt: z.ZodNumber;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
|
+
readonly notOperatorFacing: 'the device’s capabilities were re-probed — plumbing, not a happening';
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
60
|
readonly status: {
|
|
@@ -86,5 +87,9 @@ export declare const featureProbeCapability: {
|
|
|
86
87
|
* History (D850): none — static identity and capability probe.
|
|
87
88
|
*/
|
|
88
89
|
readonly history: 'none';
|
|
90
|
+
readonly vocabulary: {
|
|
91
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
92
|
+
readonly order: 3120;
|
|
93
|
+
};
|
|
89
94
|
};
|
|
90
95
|
export type IFeatureProbeProvider = InferProvider<typeof featureProbeCapability>;
|
|
@@ -35,5 +35,8 @@ export declare const filesystemBrowseCapability: {
|
|
|
35
35
|
path: z.ZodString;
|
|
36
36
|
}, z.core.$strip>, "mutation">;
|
|
37
37
|
};
|
|
38
|
+
readonly vocabulary: {
|
|
39
|
+
readonly notOperatorFacing: "internal plumbing between addons — never operator-facing";
|
|
40
|
+
};
|
|
38
41
|
};
|
|
39
42
|
export type IFilesystemBrowseProvider = InferProvider<typeof filesystemBrowseCapability>;
|
|
@@ -52,5 +52,17 @@ export declare const floodCapability: {
|
|
|
52
52
|
/** Clock fields: written, but excluded from the compare that decides
|
|
53
53
|
* whether persisting is worth a SQLite commit. */
|
|
54
54
|
readonly volatileStateFields: readonly ["lastChangedAt"];
|
|
55
|
+
readonly vocabulary: {
|
|
56
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
57
|
+
readonly order: 5070;
|
|
58
|
+
readonly state: readonly [{
|
|
59
|
+
readonly kind: 'boolean';
|
|
60
|
+
readonly field: 'flooded';
|
|
61
|
+
readonly label: import("../index.js").VocabL10n;
|
|
62
|
+
readonly whenTrue: import("../index.js").VocabL10n;
|
|
63
|
+
readonly whenFalse: import("../index.js").VocabL10n;
|
|
64
|
+
readonly icon: 'droplets';
|
|
65
|
+
}];
|
|
66
|
+
};
|
|
55
67
|
};
|
|
56
68
|
export type IFloodProvider = InferProvider<typeof floodCapability>;
|
|
@@ -49,5 +49,17 @@ export declare const gasCapability: {
|
|
|
49
49
|
/** Clock fields: written, but excluded from the compare that decides
|
|
50
50
|
* whether persisting is worth a SQLite commit. */
|
|
51
51
|
readonly volatileStateFields: readonly ["lastChangedAt"];
|
|
52
|
+
readonly vocabulary: {
|
|
53
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
54
|
+
readonly order: 5080;
|
|
55
|
+
readonly state: readonly [{
|
|
56
|
+
readonly kind: 'boolean';
|
|
57
|
+
readonly field: 'detected';
|
|
58
|
+
readonly label: import("../index.js").VocabL10n;
|
|
59
|
+
readonly whenTrue: import("../index.js").VocabL10n;
|
|
60
|
+
readonly whenFalse: import("../index.js").VocabL10n;
|
|
61
|
+
readonly icon: 'flame';
|
|
62
|
+
}];
|
|
63
|
+
};
|
|
52
64
|
};
|
|
53
65
|
export type IGasProvider = InferProvider<typeof gasCapability>;
|
|
@@ -42,5 +42,9 @@ export declare const groupActiveCapability: {
|
|
|
42
42
|
*/
|
|
43
43
|
readonly durability: 'session';
|
|
44
44
|
readonly history: 'none';
|
|
45
|
+
readonly vocabulary: {
|
|
46
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
47
|
+
readonly order: 5090;
|
|
48
|
+
};
|
|
45
49
|
};
|
|
46
50
|
export type IGroupActiveProvider = InferProvider<typeof groupActiveCapability>;
|
|
@@ -45,5 +45,9 @@ export declare const groupCommandsCapability: {
|
|
|
45
45
|
*/
|
|
46
46
|
readonly durability: 'session';
|
|
47
47
|
readonly history: 'none';
|
|
48
|
+
readonly vocabulary: {
|
|
49
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
50
|
+
readonly order: 5100;
|
|
51
|
+
};
|
|
48
52
|
};
|
|
49
53
|
export type IGroupCommandsProvider = InferProvider<typeof groupCommandsCapability>;
|
|
@@ -42,5 +42,28 @@ export declare const groupStatusCapability: {
|
|
|
42
42
|
*/
|
|
43
43
|
readonly durability: 'session';
|
|
44
44
|
readonly history: 'none';
|
|
45
|
+
readonly vocabulary: {
|
|
46
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
47
|
+
readonly order: 5110;
|
|
48
|
+
readonly state: readonly [{
|
|
49
|
+
readonly kind: 'numeric';
|
|
50
|
+
readonly field: 'included';
|
|
51
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
52
|
+
readonly label: import("../index.js").VocabL10n;
|
|
53
|
+
readonly icon: 'users';
|
|
54
|
+
}, {
|
|
55
|
+
readonly kind: 'numeric';
|
|
56
|
+
readonly field: 'excluded';
|
|
57
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
58
|
+
readonly label: import("../index.js").VocabL10n;
|
|
59
|
+
readonly icon: 'users';
|
|
60
|
+
}, {
|
|
61
|
+
readonly kind: 'numeric';
|
|
62
|
+
readonly field: 'total';
|
|
63
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
64
|
+
readonly label: import("../index.js").VocabL10n;
|
|
65
|
+
readonly icon: 'sigma';
|
|
66
|
+
}];
|
|
67
|
+
};
|
|
45
68
|
};
|
|
46
69
|
export type IGroupStatusProvider = InferProvider<typeof groupStatusCapability>;
|
|
@@ -79,5 +79,9 @@ export declare const heatPumpControlCapability: {
|
|
|
79
79
|
circuitId: z.ZodString;
|
|
80
80
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
81
81
|
};
|
|
82
|
+
readonly vocabulary: {
|
|
83
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
84
|
+
readonly order: 4010;
|
|
85
|
+
};
|
|
82
86
|
};
|
|
83
87
|
export type IHeatPumpControlProvider = InferProvider<typeof heatPumpControlCapability>;
|
|
@@ -513,5 +513,9 @@ export declare const heatPumpStatusCapability: {
|
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
516
|
+
readonly vocabulary: {
|
|
517
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
518
|
+
readonly order: 4000;
|
|
519
|
+
};
|
|
516
520
|
};
|
|
517
521
|
export type IHeatPumpStatusProvider = InferProvider<typeof heatPumpStatusCapability>;
|
|
@@ -35,5 +35,17 @@ export declare const heatingValveCapability: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
38
|
+
readonly vocabulary: {
|
|
39
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
40
|
+
readonly order: 1110;
|
|
41
|
+
readonly state: readonly [{
|
|
42
|
+
readonly kind: 'numeric';
|
|
43
|
+
readonly field: 'position';
|
|
44
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
45
|
+
readonly label: import("../index.js").VocabL10n;
|
|
46
|
+
readonly unit: '%';
|
|
47
|
+
readonly icon: 'heater';
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
38
50
|
};
|
|
39
51
|
export type IHeatingValveProvider = InferProvider<typeof heatingValveCapability>;
|
|
@@ -922,5 +922,8 @@ export declare const heroLayoutCapability: {
|
|
|
922
922
|
}>>;
|
|
923
923
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
924
924
|
};
|
|
925
|
+
readonly vocabulary: {
|
|
926
|
+
readonly notOperatorFacing: 'the device hero model — read-only data the UI draws, never actuated';
|
|
927
|
+
};
|
|
925
928
|
};
|
|
926
929
|
export type IHeroLayoutProvider = InferProvider<typeof heroLayoutCapability>;
|
|
@@ -104,5 +104,24 @@ export declare const humidifierCapability: {
|
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
+
readonly vocabulary: {
|
|
108
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
109
|
+
readonly order: 1090;
|
|
110
|
+
readonly state: readonly [{
|
|
111
|
+
readonly kind: 'boolean';
|
|
112
|
+
readonly field: 'on';
|
|
113
|
+
readonly label: import("../index.js").VocabL10n;
|
|
114
|
+
readonly whenTrue: import("../index.js").VocabL10n;
|
|
115
|
+
readonly whenFalse: import("../index.js").VocabL10n;
|
|
116
|
+
readonly icon: 'power';
|
|
117
|
+
}, {
|
|
118
|
+
readonly kind: 'numeric';
|
|
119
|
+
readonly field: 'currentHumidity';
|
|
120
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
121
|
+
readonly label: import("../index.js").VocabL10n;
|
|
122
|
+
readonly unit: '%';
|
|
123
|
+
readonly icon: 'droplets';
|
|
124
|
+
}];
|
|
125
|
+
};
|
|
107
126
|
};
|
|
108
127
|
export type IHumidifierProvider = InferProvider<typeof humidifierCapability>;
|
|
@@ -54,5 +54,17 @@ export declare const humiditySensorCapability: {
|
|
|
54
54
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55
55
|
* whether persisting is worth a SQLite commit. */
|
|
56
56
|
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
57
|
+
readonly vocabulary: {
|
|
58
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
59
|
+
readonly order: 5120;
|
|
60
|
+
readonly state: readonly [{
|
|
61
|
+
readonly kind: 'numeric';
|
|
62
|
+
readonly field: 'humidity';
|
|
63
|
+
readonly quantity: import("../index.js").VocabL10n;
|
|
64
|
+
readonly label: import("../index.js").VocabL10n;
|
|
65
|
+
readonly unit: '%';
|
|
66
|
+
readonly icon: 'droplets';
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
57
69
|
};
|
|
58
70
|
export type IHumiditySensorProvider = InferProvider<typeof humiditySensorCapability>;
|
|
@@ -367,5 +367,9 @@ export declare const imageSettingsCapability: {
|
|
|
367
367
|
/** Clock fields: written, but excluded from the compare that decides
|
|
368
368
|
* whether persisting is worth a SQLite commit. */
|
|
369
369
|
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
370
|
+
readonly vocabulary: {
|
|
371
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
372
|
+
readonly order: 3140;
|
|
373
|
+
};
|
|
370
374
|
};
|
|
371
375
|
export type IImageSettingsProvider = InferNativeProvider<typeof imageSettingsCapability>;
|
|
@@ -53,5 +53,9 @@ export declare const imageCapability: {
|
|
|
53
53
|
* History (D850): none — not numeric.
|
|
54
54
|
*/
|
|
55
55
|
readonly history: 'none';
|
|
56
|
+
readonly vocabulary: {
|
|
57
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
58
|
+
readonly order: 3130;
|
|
59
|
+
};
|
|
56
60
|
};
|
|
57
61
|
export type IImageProvider = InferProvider<typeof imageCapability>;
|