esphome-ts 3.3.1 → 4.0.0
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/README.md +33 -1
- package/dist/index.d.ts +379 -2
- package/dist/index.js +3355 -18
- package/package.json +58 -39
- package/dist/api/bytePositions.d.ts +0 -8
- package/dist/api/bytePositions.js +0 -12
- package/dist/api/client.d.ts +0 -22
- package/dist/api/client.js +0 -60
- package/dist/api/connection.d.ts +0 -18
- package/dist/api/connection.js +0 -51
- package/dist/api/espDevice.d.ts +0 -23
- package/dist/api/espDevice.js +0 -76
- package/dist/api/espSocket.d.ts +0 -13
- package/dist/api/espSocket.js +0 -35
- package/dist/api/helpers.d.ts +0 -17
- package/dist/api/helpers.js +0 -102
- package/dist/api/index.d.ts +0 -10
- package/dist/api/index.js +0 -26
- package/dist/api/interfaces.d.ts +0 -4
- package/dist/api/interfaces.js +0 -2
- package/dist/api/protobuf/api.d.ts +0 -922
- package/dist/api/protobuf/api.js +0 -6678
- package/dist/api/protobuf/api_options.d.ts +0 -24
- package/dist/api/protobuf/api_options.js +0 -76
- package/dist/api/protobuf/google_descriptor.d.ts +0 -1022
- package/dist/api/protobuf/google_descriptor.js +0 -3980
- package/dist/api/requestResponseMatching.d.ts +0 -50
- package/dist/api/requestResponseMatching.js +0 -54
- package/dist/api/responses.d.ts +0 -3
- package/dist/api/responses.js +0 -23
- package/dist/api/socket.d.ts +0 -29
- package/dist/api/socket.js +0 -109
- package/dist/api/typeGuards.d.ts +0 -5
- package/dist/api/typeGuards.js +0 -7
- package/dist/components/base.d.ts +0 -23
- package/dist/components/base.js +0 -51
- package/dist/components/binarySensor.d.ts +0 -9
- package/dist/components/binarySensor.js +0 -19
- package/dist/components/binarySensorTypes.d.ts +0 -26
- package/dist/components/binarySensorTypes.js +0 -30
- package/dist/components/commandInterface.d.ts +0 -4
- package/dist/components/commandInterface.js +0 -2
- package/dist/components/entities.d.ts +0 -21
- package/dist/components/entities.js +0 -2
- package/dist/components/helpers.d.ts +0 -1
- package/dist/components/helpers.js +0 -12
- package/dist/components/index.d.ts +0 -11
- package/dist/components/index.js +0 -27
- package/dist/components/interfaces.d.ts +0 -10
- package/dist/components/interfaces.js +0 -2
- package/dist/components/light.d.ts +0 -22
- package/dist/components/light.js +0 -159
- package/dist/components/sensor.d.ts +0 -10
- package/dist/components/sensor.js +0 -23
- package/dist/components/states.d.ts +0 -18
- package/dist/components/states.js +0 -2
- package/dist/components/switch.d.ts +0 -9
- package/dist/components/switch.js +0 -28
- package/dist/run.d.ts +0 -1
- package/dist/run.js +0 -17
|
@@ -1,922 +0,0 @@
|
|
|
1
|
-
import { Reader, Writer } from 'protobufjs/minimal';
|
|
2
|
-
import { voidMessage } from './api_options';
|
|
3
|
-
export declare const protobufPackage = "";
|
|
4
|
-
export declare enum LegacyCoverState {
|
|
5
|
-
LEGACY_COVER_STATE_OPEN = 0,
|
|
6
|
-
LEGACY_COVER_STATE_CLOSED = 1,
|
|
7
|
-
UNRECOGNIZED = -1
|
|
8
|
-
}
|
|
9
|
-
export declare function legacyCoverStateFromJSON(object: any): LegacyCoverState;
|
|
10
|
-
export declare function legacyCoverStateToJSON(object: LegacyCoverState): string;
|
|
11
|
-
export declare enum CoverOperation {
|
|
12
|
-
COVER_OPERATION_IDLE = 0,
|
|
13
|
-
COVER_OPERATION_IS_OPENING = 1,
|
|
14
|
-
COVER_OPERATION_IS_CLOSING = 2,
|
|
15
|
-
UNRECOGNIZED = -1
|
|
16
|
-
}
|
|
17
|
-
export declare function coverOperationFromJSON(object: any): CoverOperation;
|
|
18
|
-
export declare function coverOperationToJSON(object: CoverOperation): string;
|
|
19
|
-
export declare enum LegacyCoverCommand {
|
|
20
|
-
LEGACY_COVER_COMMAND_OPEN = 0,
|
|
21
|
-
LEGACY_COVER_COMMAND_CLOSE = 1,
|
|
22
|
-
LEGACY_COVER_COMMAND_STOP = 2,
|
|
23
|
-
UNRECOGNIZED = -1
|
|
24
|
-
}
|
|
25
|
-
export declare function legacyCoverCommandFromJSON(object: any): LegacyCoverCommand;
|
|
26
|
-
export declare function legacyCoverCommandToJSON(object: LegacyCoverCommand): string;
|
|
27
|
-
export declare enum FanSpeed {
|
|
28
|
-
FAN_SPEED_LOW = 0,
|
|
29
|
-
FAN_SPEED_MEDIUM = 1,
|
|
30
|
-
FAN_SPEED_HIGH = 2,
|
|
31
|
-
UNRECOGNIZED = -1
|
|
32
|
-
}
|
|
33
|
-
export declare function fanSpeedFromJSON(object: any): FanSpeed;
|
|
34
|
-
export declare function fanSpeedToJSON(object: FanSpeed): string;
|
|
35
|
-
export declare enum FanDirection {
|
|
36
|
-
FAN_DIRECTION_FORWARD = 0,
|
|
37
|
-
FAN_DIRECTION_REVERSE = 1,
|
|
38
|
-
UNRECOGNIZED = -1
|
|
39
|
-
}
|
|
40
|
-
export declare function fanDirectionFromJSON(object: any): FanDirection;
|
|
41
|
-
export declare function fanDirectionToJSON(object: FanDirection): string;
|
|
42
|
-
/** ==================== SUBSCRIBE LOGS ==================== */
|
|
43
|
-
export declare enum LogLevel {
|
|
44
|
-
LOG_LEVEL_NONE = 0,
|
|
45
|
-
LOG_LEVEL_ERROR = 1,
|
|
46
|
-
LOG_LEVEL_WARN = 2,
|
|
47
|
-
LOG_LEVEL_INFO = 3,
|
|
48
|
-
LOG_LEVEL_DEBUG = 4,
|
|
49
|
-
LOG_LEVEL_VERBOSE = 5,
|
|
50
|
-
LOG_LEVEL_VERY_VERBOSE = 6,
|
|
51
|
-
UNRECOGNIZED = -1
|
|
52
|
-
}
|
|
53
|
-
export declare function logLevelFromJSON(object: any): LogLevel;
|
|
54
|
-
export declare function logLevelToJSON(object: LogLevel): string;
|
|
55
|
-
/** ==================== USER-DEFINES SERVICES ==================== */
|
|
56
|
-
export declare enum ServiceArgType {
|
|
57
|
-
SERVICE_ARG_TYPE_BOOL = 0,
|
|
58
|
-
SERVICE_ARG_TYPE_INT = 1,
|
|
59
|
-
SERVICE_ARG_TYPE_FLOAT = 2,
|
|
60
|
-
SERVICE_ARG_TYPE_STRING = 3,
|
|
61
|
-
SERVICE_ARG_TYPE_BOOL_ARRAY = 4,
|
|
62
|
-
SERVICE_ARG_TYPE_INT_ARRAY = 5,
|
|
63
|
-
SERVICE_ARG_TYPE_FLOAT_ARRAY = 6,
|
|
64
|
-
SERVICE_ARG_TYPE_STRING_ARRAY = 7,
|
|
65
|
-
UNRECOGNIZED = -1
|
|
66
|
-
}
|
|
67
|
-
export declare function serviceArgTypeFromJSON(object: any): ServiceArgType;
|
|
68
|
-
export declare function serviceArgTypeToJSON(object: ServiceArgType): string;
|
|
69
|
-
/** ==================== CLIMATE ==================== */
|
|
70
|
-
export declare enum ClimateMode {
|
|
71
|
-
CLIMATE_MODE_OFF = 0,
|
|
72
|
-
CLIMATE_MODE_AUTO = 1,
|
|
73
|
-
CLIMATE_MODE_COOL = 2,
|
|
74
|
-
CLIMATE_MODE_HEAT = 3,
|
|
75
|
-
CLIMATE_MODE_FAN_ONLY = 4,
|
|
76
|
-
CLIMATE_MODE_DRY = 5,
|
|
77
|
-
UNRECOGNIZED = -1
|
|
78
|
-
}
|
|
79
|
-
export declare function climateModeFromJSON(object: any): ClimateMode;
|
|
80
|
-
export declare function climateModeToJSON(object: ClimateMode): string;
|
|
81
|
-
export declare enum ClimateFanMode {
|
|
82
|
-
CLIMATE_FAN_ON = 0,
|
|
83
|
-
CLIMATE_FAN_OFF = 1,
|
|
84
|
-
CLIMATE_FAN_AUTO = 2,
|
|
85
|
-
CLIMATE_FAN_LOW = 3,
|
|
86
|
-
CLIMATE_FAN_MEDIUM = 4,
|
|
87
|
-
CLIMATE_FAN_HIGH = 5,
|
|
88
|
-
CLIMATE_FAN_MIDDLE = 6,
|
|
89
|
-
CLIMATE_FAN_FOCUS = 7,
|
|
90
|
-
CLIMATE_FAN_DIFFUSE = 8,
|
|
91
|
-
UNRECOGNIZED = -1
|
|
92
|
-
}
|
|
93
|
-
export declare function climateFanModeFromJSON(object: any): ClimateFanMode;
|
|
94
|
-
export declare function climateFanModeToJSON(object: ClimateFanMode): string;
|
|
95
|
-
export declare enum ClimateSwingMode {
|
|
96
|
-
CLIMATE_SWING_OFF = 0,
|
|
97
|
-
CLIMATE_SWING_BOTH = 1,
|
|
98
|
-
CLIMATE_SWING_VERTICAL = 2,
|
|
99
|
-
CLIMATE_SWING_HORIZONTAL = 3,
|
|
100
|
-
UNRECOGNIZED = -1
|
|
101
|
-
}
|
|
102
|
-
export declare function climateSwingModeFromJSON(object: any): ClimateSwingMode;
|
|
103
|
-
export declare function climateSwingModeToJSON(object: ClimateSwingMode): string;
|
|
104
|
-
export declare enum ClimateAction {
|
|
105
|
-
CLIMATE_ACTION_OFF = 0,
|
|
106
|
-
/** CLIMATE_ACTION_COOLING - values same as mode for readability */
|
|
107
|
-
CLIMATE_ACTION_COOLING = 2,
|
|
108
|
-
CLIMATE_ACTION_HEATING = 3,
|
|
109
|
-
CLIMATE_ACTION_IDLE = 4,
|
|
110
|
-
CLIMATE_ACTION_DRYING = 5,
|
|
111
|
-
CLIMATE_ACTION_FAN = 6,
|
|
112
|
-
UNRECOGNIZED = -1
|
|
113
|
-
}
|
|
114
|
-
export declare function climateActionFromJSON(object: any): ClimateAction;
|
|
115
|
-
export declare function climateActionToJSON(object: ClimateAction): string;
|
|
116
|
-
/**
|
|
117
|
-
* Message sent at the beginning of each connection
|
|
118
|
-
* Can only be sent by the client and only at the beginning of the connection
|
|
119
|
-
*/
|
|
120
|
-
export interface HelloRequest {
|
|
121
|
-
/**
|
|
122
|
-
* Description of client (like User Agent)
|
|
123
|
-
* For example "Home Assistant"
|
|
124
|
-
* Not strictly necessary to send but nice for debugging
|
|
125
|
-
* purposes.
|
|
126
|
-
*/
|
|
127
|
-
clientInfo: string;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Confirmation of successful connection request.
|
|
131
|
-
* Can only be sent by the server and only at the beginning of the connection
|
|
132
|
-
*/
|
|
133
|
-
export interface HelloResponse {
|
|
134
|
-
/**
|
|
135
|
-
* The version of the API to use. The _client_ (for example Home Assistant) needs to check
|
|
136
|
-
* for compatibility and if necessary adopt to an older API.
|
|
137
|
-
* Major is for breaking changes in the base protocol - a mismatch will lead to immediate disconnect_client_
|
|
138
|
-
* Minor is for breaking changes in individual messages - a mismatch will lead to a warning message
|
|
139
|
-
*/
|
|
140
|
-
apiVersionMajor: number;
|
|
141
|
-
apiVersionMinor: number;
|
|
142
|
-
/**
|
|
143
|
-
* A string identifying the server (ESP); like client info this may be empty
|
|
144
|
-
* and only exists for debugging/logging purposes.
|
|
145
|
-
* For example "ESPHome v1.10.0 on ESP8266"
|
|
146
|
-
*/
|
|
147
|
-
serverInfo: string;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Message sent at the beginning of each connection to authenticate the client
|
|
151
|
-
* Can only be sent by the client and only at the beginning of the connection
|
|
152
|
-
*/
|
|
153
|
-
export interface ConnectRequest {
|
|
154
|
-
/** The password to log in with */
|
|
155
|
-
password: string;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Confirmation of successful connection. After this the connection is available for all traffic.
|
|
159
|
-
* Can only be sent by the server and only at the beginning of the connection
|
|
160
|
-
*/
|
|
161
|
-
export interface ConnectResponse {
|
|
162
|
-
invalidPassword: boolean;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Request to close the connection.
|
|
166
|
-
* Can be sent by both the client and server
|
|
167
|
-
*/
|
|
168
|
-
export interface DisconnectRequest {
|
|
169
|
-
}
|
|
170
|
-
export interface DisconnectResponse {
|
|
171
|
-
}
|
|
172
|
-
export interface PingRequest {
|
|
173
|
-
}
|
|
174
|
-
export interface PingResponse {
|
|
175
|
-
}
|
|
176
|
-
export interface DeviceInfoRequest {
|
|
177
|
-
}
|
|
178
|
-
export interface DeviceInfoResponse {
|
|
179
|
-
usesPassword: boolean;
|
|
180
|
-
/** The name of the node, given by "App.set_name()" */
|
|
181
|
-
name: string;
|
|
182
|
-
/** The mac address of the device. For example "AC:BC:32:89:0E:A9" */
|
|
183
|
-
macAddress: string;
|
|
184
|
-
/** A string describing the ESPHome version. For example "1.10.0" */
|
|
185
|
-
esphomeVersion: string;
|
|
186
|
-
/**
|
|
187
|
-
* A string describing the date of compilation, this is generated by the compiler
|
|
188
|
-
* and therefore may not be in the same format all the time.
|
|
189
|
-
* If the user isn't using ESPHome, this will also not be set.
|
|
190
|
-
*/
|
|
191
|
-
compilationTime: string;
|
|
192
|
-
/** The model of the board. For example NodeMCU */
|
|
193
|
-
model: string;
|
|
194
|
-
hasDeepSleep: boolean;
|
|
195
|
-
}
|
|
196
|
-
export interface ListEntitiesRequest {
|
|
197
|
-
}
|
|
198
|
-
export interface ListEntitiesDoneResponse {
|
|
199
|
-
}
|
|
200
|
-
export interface SubscribeStatesRequest {
|
|
201
|
-
}
|
|
202
|
-
/** ==================== BINARY SENSOR ==================== */
|
|
203
|
-
export interface ListEntitiesBinarySensorResponse {
|
|
204
|
-
objectId: string;
|
|
205
|
-
key: number;
|
|
206
|
-
name: string;
|
|
207
|
-
uniqueId: string;
|
|
208
|
-
deviceClass: string;
|
|
209
|
-
isStatusBinarySensor: boolean;
|
|
210
|
-
}
|
|
211
|
-
export interface BinarySensorStateResponse {
|
|
212
|
-
key: number;
|
|
213
|
-
state: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* If the binary sensor does not have a valid state yet.
|
|
216
|
-
* Equivalent to `!obj->has_state()` - inverse logic to make state packets smaller
|
|
217
|
-
*/
|
|
218
|
-
missingState: boolean;
|
|
219
|
-
}
|
|
220
|
-
/** ==================== COVER ==================== */
|
|
221
|
-
export interface ListEntitiesCoverResponse {
|
|
222
|
-
objectId: string;
|
|
223
|
-
key: number;
|
|
224
|
-
name: string;
|
|
225
|
-
uniqueId: string;
|
|
226
|
-
assumedState: boolean;
|
|
227
|
-
supportsPosition: boolean;
|
|
228
|
-
supportsTilt: boolean;
|
|
229
|
-
deviceClass: string;
|
|
230
|
-
}
|
|
231
|
-
export interface CoverStateResponse {
|
|
232
|
-
key: number;
|
|
233
|
-
/**
|
|
234
|
-
* legacy: state has been removed in 1.13
|
|
235
|
-
* clients/servers must still send/accept it until the next protocol change
|
|
236
|
-
*/
|
|
237
|
-
legacyState: LegacyCoverState;
|
|
238
|
-
position: number;
|
|
239
|
-
tilt: number;
|
|
240
|
-
currentOperation: CoverOperation;
|
|
241
|
-
}
|
|
242
|
-
export interface CoverCommandRequest {
|
|
243
|
-
key: number;
|
|
244
|
-
/**
|
|
245
|
-
* legacy: command has been removed in 1.13
|
|
246
|
-
* clients/servers must still send/accept it until the next protocol change
|
|
247
|
-
*/
|
|
248
|
-
hasLegacyCommand: boolean;
|
|
249
|
-
legacyCommand: LegacyCoverCommand;
|
|
250
|
-
hasPosition: boolean;
|
|
251
|
-
position: number;
|
|
252
|
-
hasTilt: boolean;
|
|
253
|
-
tilt: number;
|
|
254
|
-
stop: boolean;
|
|
255
|
-
}
|
|
256
|
-
/** ==================== FAN ==================== */
|
|
257
|
-
export interface ListEntitiesFanResponse {
|
|
258
|
-
objectId: string;
|
|
259
|
-
key: number;
|
|
260
|
-
name: string;
|
|
261
|
-
uniqueId: string;
|
|
262
|
-
supportsOscillation: boolean;
|
|
263
|
-
supportsSpeed: boolean;
|
|
264
|
-
supportsDirection: boolean;
|
|
265
|
-
}
|
|
266
|
-
export interface FanStateResponse {
|
|
267
|
-
key: number;
|
|
268
|
-
state: boolean;
|
|
269
|
-
oscillating: boolean;
|
|
270
|
-
speed: FanSpeed;
|
|
271
|
-
direction: FanDirection;
|
|
272
|
-
}
|
|
273
|
-
export interface FanCommandRequest {
|
|
274
|
-
key: number;
|
|
275
|
-
hasState: boolean;
|
|
276
|
-
state: boolean;
|
|
277
|
-
hasSpeed: boolean;
|
|
278
|
-
speed: FanSpeed;
|
|
279
|
-
hasOscillating: boolean;
|
|
280
|
-
oscillating: boolean;
|
|
281
|
-
hasDirection: boolean;
|
|
282
|
-
direction: FanDirection;
|
|
283
|
-
}
|
|
284
|
-
/** ==================== LIGHT ==================== */
|
|
285
|
-
export interface ListEntitiesLightResponse {
|
|
286
|
-
objectId: string;
|
|
287
|
-
key: number;
|
|
288
|
-
name: string;
|
|
289
|
-
uniqueId: string;
|
|
290
|
-
supportsBrightness: boolean;
|
|
291
|
-
supportsRgb: boolean;
|
|
292
|
-
supportsWhiteValue: boolean;
|
|
293
|
-
supportsColorTemperature: boolean;
|
|
294
|
-
minMireds: number;
|
|
295
|
-
maxMireds: number;
|
|
296
|
-
effects: string[];
|
|
297
|
-
}
|
|
298
|
-
export interface LightStateResponse {
|
|
299
|
-
key: number;
|
|
300
|
-
state: boolean;
|
|
301
|
-
brightness: number;
|
|
302
|
-
red: number;
|
|
303
|
-
green: number;
|
|
304
|
-
blue: number;
|
|
305
|
-
white: number;
|
|
306
|
-
colorTemperature: number;
|
|
307
|
-
effect: string;
|
|
308
|
-
}
|
|
309
|
-
export interface LightCommandRequest {
|
|
310
|
-
key: number;
|
|
311
|
-
hasState: boolean;
|
|
312
|
-
state: boolean;
|
|
313
|
-
hasBrightness: boolean;
|
|
314
|
-
brightness: number;
|
|
315
|
-
hasRgb: boolean;
|
|
316
|
-
red: number;
|
|
317
|
-
green: number;
|
|
318
|
-
blue: number;
|
|
319
|
-
hasWhite: boolean;
|
|
320
|
-
white: number;
|
|
321
|
-
hasColorTemperature: boolean;
|
|
322
|
-
colorTemperature: number;
|
|
323
|
-
hasTransitionLength: boolean;
|
|
324
|
-
transitionLength: number;
|
|
325
|
-
hasFlashLength: boolean;
|
|
326
|
-
flashLength: number;
|
|
327
|
-
hasEffect: boolean;
|
|
328
|
-
effect: string;
|
|
329
|
-
}
|
|
330
|
-
/** ==================== SENSOR ==================== */
|
|
331
|
-
export interface ListEntitiesSensorResponse {
|
|
332
|
-
objectId: string;
|
|
333
|
-
key: number;
|
|
334
|
-
name: string;
|
|
335
|
-
uniqueId: string;
|
|
336
|
-
icon: string;
|
|
337
|
-
unitOfMeasurement: string;
|
|
338
|
-
accuracyDecimals: number;
|
|
339
|
-
forceUpdate: boolean;
|
|
340
|
-
deviceClass: string;
|
|
341
|
-
}
|
|
342
|
-
export interface SensorStateResponse {
|
|
343
|
-
key: number;
|
|
344
|
-
state: number;
|
|
345
|
-
/**
|
|
346
|
-
* If the sensor does not have a valid state yet.
|
|
347
|
-
* Equivalent to `!obj->has_state()` - inverse logic to make state packets smaller
|
|
348
|
-
*/
|
|
349
|
-
missingState: boolean;
|
|
350
|
-
}
|
|
351
|
-
/** ==================== SWITCH ==================== */
|
|
352
|
-
export interface ListEntitiesSwitchResponse {
|
|
353
|
-
objectId: string;
|
|
354
|
-
key: number;
|
|
355
|
-
name: string;
|
|
356
|
-
uniqueId: string;
|
|
357
|
-
icon: string;
|
|
358
|
-
assumedState: boolean;
|
|
359
|
-
}
|
|
360
|
-
export interface SwitchStateResponse {
|
|
361
|
-
key: number;
|
|
362
|
-
state: boolean;
|
|
363
|
-
}
|
|
364
|
-
export interface SwitchCommandRequest {
|
|
365
|
-
key: number;
|
|
366
|
-
state: boolean;
|
|
367
|
-
}
|
|
368
|
-
/** ==================== TEXT SENSOR ==================== */
|
|
369
|
-
export interface ListEntitiesTextSensorResponse {
|
|
370
|
-
objectId: string;
|
|
371
|
-
key: number;
|
|
372
|
-
name: string;
|
|
373
|
-
uniqueId: string;
|
|
374
|
-
icon: string;
|
|
375
|
-
}
|
|
376
|
-
export interface TextSensorStateResponse {
|
|
377
|
-
key: number;
|
|
378
|
-
state: string;
|
|
379
|
-
/**
|
|
380
|
-
* If the text sensor does not have a valid state yet.
|
|
381
|
-
* Equivalent to `!obj->has_state()` - inverse logic to make state packets smaller
|
|
382
|
-
*/
|
|
383
|
-
missingState: boolean;
|
|
384
|
-
}
|
|
385
|
-
export interface SubscribeLogsRequest {
|
|
386
|
-
level: LogLevel;
|
|
387
|
-
dumpConfig: boolean;
|
|
388
|
-
}
|
|
389
|
-
export interface SubscribeLogsResponse {
|
|
390
|
-
level: LogLevel;
|
|
391
|
-
tag: string;
|
|
392
|
-
message: string;
|
|
393
|
-
sendFailed: boolean;
|
|
394
|
-
}
|
|
395
|
-
/** ==================== HOMEASSISTANT.SERVICE ==================== */
|
|
396
|
-
export interface SubscribeHomeassistantServicesRequest {
|
|
397
|
-
}
|
|
398
|
-
export interface HomeassistantServiceMap {
|
|
399
|
-
key: string;
|
|
400
|
-
value: string;
|
|
401
|
-
}
|
|
402
|
-
export interface HomeassistantServiceResponse {
|
|
403
|
-
service: string;
|
|
404
|
-
data: HomeassistantServiceMap[];
|
|
405
|
-
dataTemplate: HomeassistantServiceMap[];
|
|
406
|
-
variables: HomeassistantServiceMap[];
|
|
407
|
-
isEvent: boolean;
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* ==================== IMPORT HOME ASSISTANT STATES ====================
|
|
411
|
-
* 1. Client sends SubscribeHomeAssistantStatesRequest
|
|
412
|
-
* 2. Server responds with zero or more SubscribeHomeAssistantStateResponse (async)
|
|
413
|
-
* 3. Client sends HomeAssistantStateResponse for state changes.
|
|
414
|
-
*/
|
|
415
|
-
export interface SubscribeHomeAssistantStatesRequest {
|
|
416
|
-
}
|
|
417
|
-
export interface SubscribeHomeAssistantStateResponse {
|
|
418
|
-
entityId: string;
|
|
419
|
-
}
|
|
420
|
-
export interface HomeAssistantStateResponse {
|
|
421
|
-
entityId: string;
|
|
422
|
-
state: string;
|
|
423
|
-
}
|
|
424
|
-
/** ==================== IMPORT TIME ==================== */
|
|
425
|
-
export interface GetTimeRequest {
|
|
426
|
-
}
|
|
427
|
-
export interface GetTimeResponse {
|
|
428
|
-
epochSeconds: number;
|
|
429
|
-
}
|
|
430
|
-
export interface ListEntitiesServicesArgument {
|
|
431
|
-
name: string;
|
|
432
|
-
type: ServiceArgType;
|
|
433
|
-
}
|
|
434
|
-
export interface ListEntitiesServicesResponse {
|
|
435
|
-
name: string;
|
|
436
|
-
key: number;
|
|
437
|
-
args: ListEntitiesServicesArgument[];
|
|
438
|
-
}
|
|
439
|
-
export interface ExecuteServiceArgument {
|
|
440
|
-
bool_: boolean;
|
|
441
|
-
legacyInt: number;
|
|
442
|
-
float_: number;
|
|
443
|
-
string_: string;
|
|
444
|
-
/** ESPHome 1.14 (api v1.3) make int a signed value */
|
|
445
|
-
int_: number;
|
|
446
|
-
boolArray: boolean[];
|
|
447
|
-
intArray: number[];
|
|
448
|
-
floatArray: number[];
|
|
449
|
-
stringArray: string[];
|
|
450
|
-
}
|
|
451
|
-
export interface ExecuteServiceRequest {
|
|
452
|
-
key: number;
|
|
453
|
-
args: ExecuteServiceArgument[];
|
|
454
|
-
}
|
|
455
|
-
/** ==================== CAMERA ==================== */
|
|
456
|
-
export interface ListEntitiesCameraResponse {
|
|
457
|
-
objectId: string;
|
|
458
|
-
key: number;
|
|
459
|
-
name: string;
|
|
460
|
-
uniqueId: string;
|
|
461
|
-
}
|
|
462
|
-
export interface CameraImageResponse {
|
|
463
|
-
key: number;
|
|
464
|
-
data: Uint8Array;
|
|
465
|
-
done: boolean;
|
|
466
|
-
}
|
|
467
|
-
export interface CameraImageRequest {
|
|
468
|
-
single: boolean;
|
|
469
|
-
stream: boolean;
|
|
470
|
-
}
|
|
471
|
-
export interface ListEntitiesClimateResponse {
|
|
472
|
-
objectId: string;
|
|
473
|
-
key: number;
|
|
474
|
-
name: string;
|
|
475
|
-
uniqueId: string;
|
|
476
|
-
supportsCurrentTemperature: boolean;
|
|
477
|
-
supportsTwoPointTargetTemperature: boolean;
|
|
478
|
-
supportedModes: ClimateMode[];
|
|
479
|
-
visualMinTemperature: number;
|
|
480
|
-
visualMaxTemperature: number;
|
|
481
|
-
visualTemperatureStep: number;
|
|
482
|
-
supportsAway: boolean;
|
|
483
|
-
supportsAction: boolean;
|
|
484
|
-
supportedFanModes: ClimateFanMode[];
|
|
485
|
-
supportedSwingModes: ClimateSwingMode[];
|
|
486
|
-
}
|
|
487
|
-
export interface ClimateStateResponse {
|
|
488
|
-
key: number;
|
|
489
|
-
mode: ClimateMode;
|
|
490
|
-
currentTemperature: number;
|
|
491
|
-
targetTemperature: number;
|
|
492
|
-
targetTemperatureLow: number;
|
|
493
|
-
targetTemperatureHigh: number;
|
|
494
|
-
away: boolean;
|
|
495
|
-
action: ClimateAction;
|
|
496
|
-
fanMode: ClimateFanMode;
|
|
497
|
-
swingMode: ClimateSwingMode;
|
|
498
|
-
}
|
|
499
|
-
export interface ClimateCommandRequest {
|
|
500
|
-
key: number;
|
|
501
|
-
hasMode: boolean;
|
|
502
|
-
mode: ClimateMode;
|
|
503
|
-
hasTargetTemperature: boolean;
|
|
504
|
-
targetTemperature: number;
|
|
505
|
-
hasTargetTemperatureLow: boolean;
|
|
506
|
-
targetTemperatureLow: number;
|
|
507
|
-
hasTargetTemperatureHigh: boolean;
|
|
508
|
-
targetTemperatureHigh: number;
|
|
509
|
-
hasAway: boolean;
|
|
510
|
-
away: boolean;
|
|
511
|
-
hasFanMode: boolean;
|
|
512
|
-
fanMode: ClimateFanMode;
|
|
513
|
-
hasSwingMode: boolean;
|
|
514
|
-
swingMode: ClimateSwingMode;
|
|
515
|
-
}
|
|
516
|
-
export declare const HelloRequest: {
|
|
517
|
-
encode(message: HelloRequest, writer?: Writer): Writer;
|
|
518
|
-
decode(input: Reader | Uint8Array, length?: number): HelloRequest;
|
|
519
|
-
fromJSON(object: any): HelloRequest;
|
|
520
|
-
toJSON(message: HelloRequest): unknown;
|
|
521
|
-
fromPartial(object: DeepPartial<HelloRequest>): HelloRequest;
|
|
522
|
-
};
|
|
523
|
-
export declare const HelloResponse: {
|
|
524
|
-
encode(message: HelloResponse, writer?: Writer): Writer;
|
|
525
|
-
decode(input: Reader | Uint8Array, length?: number): HelloResponse;
|
|
526
|
-
fromJSON(object: any): HelloResponse;
|
|
527
|
-
toJSON(message: HelloResponse): unknown;
|
|
528
|
-
fromPartial(object: DeepPartial<HelloResponse>): HelloResponse;
|
|
529
|
-
};
|
|
530
|
-
export declare const ConnectRequest: {
|
|
531
|
-
encode(message: ConnectRequest, writer?: Writer): Writer;
|
|
532
|
-
decode(input: Reader | Uint8Array, length?: number): ConnectRequest;
|
|
533
|
-
fromJSON(object: any): ConnectRequest;
|
|
534
|
-
toJSON(message: ConnectRequest): unknown;
|
|
535
|
-
fromPartial(object: DeepPartial<ConnectRequest>): ConnectRequest;
|
|
536
|
-
};
|
|
537
|
-
export declare const ConnectResponse: {
|
|
538
|
-
encode(message: ConnectResponse, writer?: Writer): Writer;
|
|
539
|
-
decode(input: Reader | Uint8Array, length?: number): ConnectResponse;
|
|
540
|
-
fromJSON(object: any): ConnectResponse;
|
|
541
|
-
toJSON(message: ConnectResponse): unknown;
|
|
542
|
-
fromPartial(object: DeepPartial<ConnectResponse>): ConnectResponse;
|
|
543
|
-
};
|
|
544
|
-
export declare const DisconnectRequest: {
|
|
545
|
-
encode(_: DisconnectRequest, writer?: Writer): Writer;
|
|
546
|
-
decode(input: Reader | Uint8Array, length?: number): DisconnectRequest;
|
|
547
|
-
fromJSON(_: any): DisconnectRequest;
|
|
548
|
-
toJSON(_: DisconnectRequest): unknown;
|
|
549
|
-
fromPartial(_: DeepPartial<DisconnectRequest>): DisconnectRequest;
|
|
550
|
-
};
|
|
551
|
-
export declare const DisconnectResponse: {
|
|
552
|
-
encode(_: DisconnectResponse, writer?: Writer): Writer;
|
|
553
|
-
decode(input: Reader | Uint8Array, length?: number): DisconnectResponse;
|
|
554
|
-
fromJSON(_: any): DisconnectResponse;
|
|
555
|
-
toJSON(_: DisconnectResponse): unknown;
|
|
556
|
-
fromPartial(_: DeepPartial<DisconnectResponse>): DisconnectResponse;
|
|
557
|
-
};
|
|
558
|
-
export declare const PingRequest: {
|
|
559
|
-
encode(_: PingRequest, writer?: Writer): Writer;
|
|
560
|
-
decode(input: Reader | Uint8Array, length?: number): PingRequest;
|
|
561
|
-
fromJSON(_: any): PingRequest;
|
|
562
|
-
toJSON(_: PingRequest): unknown;
|
|
563
|
-
fromPartial(_: DeepPartial<PingRequest>): PingRequest;
|
|
564
|
-
};
|
|
565
|
-
export declare const PingResponse: {
|
|
566
|
-
encode(_: PingResponse, writer?: Writer): Writer;
|
|
567
|
-
decode(input: Reader | Uint8Array, length?: number): PingResponse;
|
|
568
|
-
fromJSON(_: any): PingResponse;
|
|
569
|
-
toJSON(_: PingResponse): unknown;
|
|
570
|
-
fromPartial(_: DeepPartial<PingResponse>): PingResponse;
|
|
571
|
-
};
|
|
572
|
-
export declare const DeviceInfoRequest: {
|
|
573
|
-
encode(_: DeviceInfoRequest, writer?: Writer): Writer;
|
|
574
|
-
decode(input: Reader | Uint8Array, length?: number): DeviceInfoRequest;
|
|
575
|
-
fromJSON(_: any): DeviceInfoRequest;
|
|
576
|
-
toJSON(_: DeviceInfoRequest): unknown;
|
|
577
|
-
fromPartial(_: DeepPartial<DeviceInfoRequest>): DeviceInfoRequest;
|
|
578
|
-
};
|
|
579
|
-
export declare const DeviceInfoResponse: {
|
|
580
|
-
encode(message: DeviceInfoResponse, writer?: Writer): Writer;
|
|
581
|
-
decode(input: Reader | Uint8Array, length?: number): DeviceInfoResponse;
|
|
582
|
-
fromJSON(object: any): DeviceInfoResponse;
|
|
583
|
-
toJSON(message: DeviceInfoResponse): unknown;
|
|
584
|
-
fromPartial(object: DeepPartial<DeviceInfoResponse>): DeviceInfoResponse;
|
|
585
|
-
};
|
|
586
|
-
export declare const ListEntitiesRequest: {
|
|
587
|
-
encode(_: ListEntitiesRequest, writer?: Writer): Writer;
|
|
588
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesRequest;
|
|
589
|
-
fromJSON(_: any): ListEntitiesRequest;
|
|
590
|
-
toJSON(_: ListEntitiesRequest): unknown;
|
|
591
|
-
fromPartial(_: DeepPartial<ListEntitiesRequest>): ListEntitiesRequest;
|
|
592
|
-
};
|
|
593
|
-
export declare const ListEntitiesDoneResponse: {
|
|
594
|
-
encode(_: ListEntitiesDoneResponse, writer?: Writer): Writer;
|
|
595
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesDoneResponse;
|
|
596
|
-
fromJSON(_: any): ListEntitiesDoneResponse;
|
|
597
|
-
toJSON(_: ListEntitiesDoneResponse): unknown;
|
|
598
|
-
fromPartial(_: DeepPartial<ListEntitiesDoneResponse>): ListEntitiesDoneResponse;
|
|
599
|
-
};
|
|
600
|
-
export declare const SubscribeStatesRequest: {
|
|
601
|
-
encode(_: SubscribeStatesRequest, writer?: Writer): Writer;
|
|
602
|
-
decode(input: Reader | Uint8Array, length?: number): SubscribeStatesRequest;
|
|
603
|
-
fromJSON(_: any): SubscribeStatesRequest;
|
|
604
|
-
toJSON(_: SubscribeStatesRequest): unknown;
|
|
605
|
-
fromPartial(_: DeepPartial<SubscribeStatesRequest>): SubscribeStatesRequest;
|
|
606
|
-
};
|
|
607
|
-
export declare const ListEntitiesBinarySensorResponse: {
|
|
608
|
-
encode(message: ListEntitiesBinarySensorResponse, writer?: Writer): Writer;
|
|
609
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesBinarySensorResponse;
|
|
610
|
-
fromJSON(object: any): ListEntitiesBinarySensorResponse;
|
|
611
|
-
toJSON(message: ListEntitiesBinarySensorResponse): unknown;
|
|
612
|
-
fromPartial(object: DeepPartial<ListEntitiesBinarySensorResponse>): ListEntitiesBinarySensorResponse;
|
|
613
|
-
};
|
|
614
|
-
export declare const BinarySensorStateResponse: {
|
|
615
|
-
encode(message: BinarySensorStateResponse, writer?: Writer): Writer;
|
|
616
|
-
decode(input: Reader | Uint8Array, length?: number): BinarySensorStateResponse;
|
|
617
|
-
fromJSON(object: any): BinarySensorStateResponse;
|
|
618
|
-
toJSON(message: BinarySensorStateResponse): unknown;
|
|
619
|
-
fromPartial(object: DeepPartial<BinarySensorStateResponse>): BinarySensorStateResponse;
|
|
620
|
-
};
|
|
621
|
-
export declare const ListEntitiesCoverResponse: {
|
|
622
|
-
encode(message: ListEntitiesCoverResponse, writer?: Writer): Writer;
|
|
623
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesCoverResponse;
|
|
624
|
-
fromJSON(object: any): ListEntitiesCoverResponse;
|
|
625
|
-
toJSON(message: ListEntitiesCoverResponse): unknown;
|
|
626
|
-
fromPartial(object: DeepPartial<ListEntitiesCoverResponse>): ListEntitiesCoverResponse;
|
|
627
|
-
};
|
|
628
|
-
export declare const CoverStateResponse: {
|
|
629
|
-
encode(message: CoverStateResponse, writer?: Writer): Writer;
|
|
630
|
-
decode(input: Reader | Uint8Array, length?: number): CoverStateResponse;
|
|
631
|
-
fromJSON(object: any): CoverStateResponse;
|
|
632
|
-
toJSON(message: CoverStateResponse): unknown;
|
|
633
|
-
fromPartial(object: DeepPartial<CoverStateResponse>): CoverStateResponse;
|
|
634
|
-
};
|
|
635
|
-
export declare const CoverCommandRequest: {
|
|
636
|
-
encode(message: CoverCommandRequest, writer?: Writer): Writer;
|
|
637
|
-
decode(input: Reader | Uint8Array, length?: number): CoverCommandRequest;
|
|
638
|
-
fromJSON(object: any): CoverCommandRequest;
|
|
639
|
-
toJSON(message: CoverCommandRequest): unknown;
|
|
640
|
-
fromPartial(object: DeepPartial<CoverCommandRequest>): CoverCommandRequest;
|
|
641
|
-
};
|
|
642
|
-
export declare const ListEntitiesFanResponse: {
|
|
643
|
-
encode(message: ListEntitiesFanResponse, writer?: Writer): Writer;
|
|
644
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesFanResponse;
|
|
645
|
-
fromJSON(object: any): ListEntitiesFanResponse;
|
|
646
|
-
toJSON(message: ListEntitiesFanResponse): unknown;
|
|
647
|
-
fromPartial(object: DeepPartial<ListEntitiesFanResponse>): ListEntitiesFanResponse;
|
|
648
|
-
};
|
|
649
|
-
export declare const FanStateResponse: {
|
|
650
|
-
encode(message: FanStateResponse, writer?: Writer): Writer;
|
|
651
|
-
decode(input: Reader | Uint8Array, length?: number): FanStateResponse;
|
|
652
|
-
fromJSON(object: any): FanStateResponse;
|
|
653
|
-
toJSON(message: FanStateResponse): unknown;
|
|
654
|
-
fromPartial(object: DeepPartial<FanStateResponse>): FanStateResponse;
|
|
655
|
-
};
|
|
656
|
-
export declare const FanCommandRequest: {
|
|
657
|
-
encode(message: FanCommandRequest, writer?: Writer): Writer;
|
|
658
|
-
decode(input: Reader | Uint8Array, length?: number): FanCommandRequest;
|
|
659
|
-
fromJSON(object: any): FanCommandRequest;
|
|
660
|
-
toJSON(message: FanCommandRequest): unknown;
|
|
661
|
-
fromPartial(object: DeepPartial<FanCommandRequest>): FanCommandRequest;
|
|
662
|
-
};
|
|
663
|
-
export declare const ListEntitiesLightResponse: {
|
|
664
|
-
encode(message: ListEntitiesLightResponse, writer?: Writer): Writer;
|
|
665
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesLightResponse;
|
|
666
|
-
fromJSON(object: any): ListEntitiesLightResponse;
|
|
667
|
-
toJSON(message: ListEntitiesLightResponse): unknown;
|
|
668
|
-
fromPartial(object: DeepPartial<ListEntitiesLightResponse>): ListEntitiesLightResponse;
|
|
669
|
-
};
|
|
670
|
-
export declare const LightStateResponse: {
|
|
671
|
-
encode(message: LightStateResponse, writer?: Writer): Writer;
|
|
672
|
-
decode(input: Reader | Uint8Array, length?: number): LightStateResponse;
|
|
673
|
-
fromJSON(object: any): LightStateResponse;
|
|
674
|
-
toJSON(message: LightStateResponse): unknown;
|
|
675
|
-
fromPartial(object: DeepPartial<LightStateResponse>): LightStateResponse;
|
|
676
|
-
};
|
|
677
|
-
export declare const LightCommandRequest: {
|
|
678
|
-
encode(message: LightCommandRequest, writer?: Writer): Writer;
|
|
679
|
-
decode(input: Reader | Uint8Array, length?: number): LightCommandRequest;
|
|
680
|
-
fromJSON(object: any): LightCommandRequest;
|
|
681
|
-
toJSON(message: LightCommandRequest): unknown;
|
|
682
|
-
fromPartial(object: DeepPartial<LightCommandRequest>): LightCommandRequest;
|
|
683
|
-
};
|
|
684
|
-
export declare const ListEntitiesSensorResponse: {
|
|
685
|
-
encode(message: ListEntitiesSensorResponse, writer?: Writer): Writer;
|
|
686
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesSensorResponse;
|
|
687
|
-
fromJSON(object: any): ListEntitiesSensorResponse;
|
|
688
|
-
toJSON(message: ListEntitiesSensorResponse): unknown;
|
|
689
|
-
fromPartial(object: DeepPartial<ListEntitiesSensorResponse>): ListEntitiesSensorResponse;
|
|
690
|
-
};
|
|
691
|
-
export declare const SensorStateResponse: {
|
|
692
|
-
encode(message: SensorStateResponse, writer?: Writer): Writer;
|
|
693
|
-
decode(input: Reader | Uint8Array, length?: number): SensorStateResponse;
|
|
694
|
-
fromJSON(object: any): SensorStateResponse;
|
|
695
|
-
toJSON(message: SensorStateResponse): unknown;
|
|
696
|
-
fromPartial(object: DeepPartial<SensorStateResponse>): SensorStateResponse;
|
|
697
|
-
};
|
|
698
|
-
export declare const ListEntitiesSwitchResponse: {
|
|
699
|
-
encode(message: ListEntitiesSwitchResponse, writer?: Writer): Writer;
|
|
700
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesSwitchResponse;
|
|
701
|
-
fromJSON(object: any): ListEntitiesSwitchResponse;
|
|
702
|
-
toJSON(message: ListEntitiesSwitchResponse): unknown;
|
|
703
|
-
fromPartial(object: DeepPartial<ListEntitiesSwitchResponse>): ListEntitiesSwitchResponse;
|
|
704
|
-
};
|
|
705
|
-
export declare const SwitchStateResponse: {
|
|
706
|
-
encode(message: SwitchStateResponse, writer?: Writer): Writer;
|
|
707
|
-
decode(input: Reader | Uint8Array, length?: number): SwitchStateResponse;
|
|
708
|
-
fromJSON(object: any): SwitchStateResponse;
|
|
709
|
-
toJSON(message: SwitchStateResponse): unknown;
|
|
710
|
-
fromPartial(object: DeepPartial<SwitchStateResponse>): SwitchStateResponse;
|
|
711
|
-
};
|
|
712
|
-
export declare const SwitchCommandRequest: {
|
|
713
|
-
encode(message: SwitchCommandRequest, writer?: Writer): Writer;
|
|
714
|
-
decode(input: Reader | Uint8Array, length?: number): SwitchCommandRequest;
|
|
715
|
-
fromJSON(object: any): SwitchCommandRequest;
|
|
716
|
-
toJSON(message: SwitchCommandRequest): unknown;
|
|
717
|
-
fromPartial(object: DeepPartial<SwitchCommandRequest>): SwitchCommandRequest;
|
|
718
|
-
};
|
|
719
|
-
export declare const ListEntitiesTextSensorResponse: {
|
|
720
|
-
encode(message: ListEntitiesTextSensorResponse, writer?: Writer): Writer;
|
|
721
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesTextSensorResponse;
|
|
722
|
-
fromJSON(object: any): ListEntitiesTextSensorResponse;
|
|
723
|
-
toJSON(message: ListEntitiesTextSensorResponse): unknown;
|
|
724
|
-
fromPartial(object: DeepPartial<ListEntitiesTextSensorResponse>): ListEntitiesTextSensorResponse;
|
|
725
|
-
};
|
|
726
|
-
export declare const TextSensorStateResponse: {
|
|
727
|
-
encode(message: TextSensorStateResponse, writer?: Writer): Writer;
|
|
728
|
-
decode(input: Reader | Uint8Array, length?: number): TextSensorStateResponse;
|
|
729
|
-
fromJSON(object: any): TextSensorStateResponse;
|
|
730
|
-
toJSON(message: TextSensorStateResponse): unknown;
|
|
731
|
-
fromPartial(object: DeepPartial<TextSensorStateResponse>): TextSensorStateResponse;
|
|
732
|
-
};
|
|
733
|
-
export declare const SubscribeLogsRequest: {
|
|
734
|
-
encode(message: SubscribeLogsRequest, writer?: Writer): Writer;
|
|
735
|
-
decode(input: Reader | Uint8Array, length?: number): SubscribeLogsRequest;
|
|
736
|
-
fromJSON(object: any): SubscribeLogsRequest;
|
|
737
|
-
toJSON(message: SubscribeLogsRequest): unknown;
|
|
738
|
-
fromPartial(object: DeepPartial<SubscribeLogsRequest>): SubscribeLogsRequest;
|
|
739
|
-
};
|
|
740
|
-
export declare const SubscribeLogsResponse: {
|
|
741
|
-
encode(message: SubscribeLogsResponse, writer?: Writer): Writer;
|
|
742
|
-
decode(input: Reader | Uint8Array, length?: number): SubscribeLogsResponse;
|
|
743
|
-
fromJSON(object: any): SubscribeLogsResponse;
|
|
744
|
-
toJSON(message: SubscribeLogsResponse): unknown;
|
|
745
|
-
fromPartial(object: DeepPartial<SubscribeLogsResponse>): SubscribeLogsResponse;
|
|
746
|
-
};
|
|
747
|
-
export declare const SubscribeHomeassistantServicesRequest: {
|
|
748
|
-
encode(_: SubscribeHomeassistantServicesRequest, writer?: Writer): Writer;
|
|
749
|
-
decode(input: Reader | Uint8Array, length?: number): SubscribeHomeassistantServicesRequest;
|
|
750
|
-
fromJSON(_: any): SubscribeHomeassistantServicesRequest;
|
|
751
|
-
toJSON(_: SubscribeHomeassistantServicesRequest): unknown;
|
|
752
|
-
fromPartial(_: DeepPartial<SubscribeHomeassistantServicesRequest>): SubscribeHomeassistantServicesRequest;
|
|
753
|
-
};
|
|
754
|
-
export declare const HomeassistantServiceMap: {
|
|
755
|
-
encode(message: HomeassistantServiceMap, writer?: Writer): Writer;
|
|
756
|
-
decode(input: Reader | Uint8Array, length?: number): HomeassistantServiceMap;
|
|
757
|
-
fromJSON(object: any): HomeassistantServiceMap;
|
|
758
|
-
toJSON(message: HomeassistantServiceMap): unknown;
|
|
759
|
-
fromPartial(object: DeepPartial<HomeassistantServiceMap>): HomeassistantServiceMap;
|
|
760
|
-
};
|
|
761
|
-
export declare const HomeassistantServiceResponse: {
|
|
762
|
-
encode(message: HomeassistantServiceResponse, writer?: Writer): Writer;
|
|
763
|
-
decode(input: Reader | Uint8Array, length?: number): HomeassistantServiceResponse;
|
|
764
|
-
fromJSON(object: any): HomeassistantServiceResponse;
|
|
765
|
-
toJSON(message: HomeassistantServiceResponse): unknown;
|
|
766
|
-
fromPartial(object: DeepPartial<HomeassistantServiceResponse>): HomeassistantServiceResponse;
|
|
767
|
-
};
|
|
768
|
-
export declare const SubscribeHomeAssistantStatesRequest: {
|
|
769
|
-
encode(_: SubscribeHomeAssistantStatesRequest, writer?: Writer): Writer;
|
|
770
|
-
decode(input: Reader | Uint8Array, length?: number): SubscribeHomeAssistantStatesRequest;
|
|
771
|
-
fromJSON(_: any): SubscribeHomeAssistantStatesRequest;
|
|
772
|
-
toJSON(_: SubscribeHomeAssistantStatesRequest): unknown;
|
|
773
|
-
fromPartial(_: DeepPartial<SubscribeHomeAssistantStatesRequest>): SubscribeHomeAssistantStatesRequest;
|
|
774
|
-
};
|
|
775
|
-
export declare const SubscribeHomeAssistantStateResponse: {
|
|
776
|
-
encode(message: SubscribeHomeAssistantStateResponse, writer?: Writer): Writer;
|
|
777
|
-
decode(input: Reader | Uint8Array, length?: number): SubscribeHomeAssistantStateResponse;
|
|
778
|
-
fromJSON(object: any): SubscribeHomeAssistantStateResponse;
|
|
779
|
-
toJSON(message: SubscribeHomeAssistantStateResponse): unknown;
|
|
780
|
-
fromPartial(object: DeepPartial<SubscribeHomeAssistantStateResponse>): SubscribeHomeAssistantStateResponse;
|
|
781
|
-
};
|
|
782
|
-
export declare const HomeAssistantStateResponse: {
|
|
783
|
-
encode(message: HomeAssistantStateResponse, writer?: Writer): Writer;
|
|
784
|
-
decode(input: Reader | Uint8Array, length?: number): HomeAssistantStateResponse;
|
|
785
|
-
fromJSON(object: any): HomeAssistantStateResponse;
|
|
786
|
-
toJSON(message: HomeAssistantStateResponse): unknown;
|
|
787
|
-
fromPartial(object: DeepPartial<HomeAssistantStateResponse>): HomeAssistantStateResponse;
|
|
788
|
-
};
|
|
789
|
-
export declare const GetTimeRequest: {
|
|
790
|
-
encode(_: GetTimeRequest, writer?: Writer): Writer;
|
|
791
|
-
decode(input: Reader | Uint8Array, length?: number): GetTimeRequest;
|
|
792
|
-
fromJSON(_: any): GetTimeRequest;
|
|
793
|
-
toJSON(_: GetTimeRequest): unknown;
|
|
794
|
-
fromPartial(_: DeepPartial<GetTimeRequest>): GetTimeRequest;
|
|
795
|
-
};
|
|
796
|
-
export declare const GetTimeResponse: {
|
|
797
|
-
encode(message: GetTimeResponse, writer?: Writer): Writer;
|
|
798
|
-
decode(input: Reader | Uint8Array, length?: number): GetTimeResponse;
|
|
799
|
-
fromJSON(object: any): GetTimeResponse;
|
|
800
|
-
toJSON(message: GetTimeResponse): unknown;
|
|
801
|
-
fromPartial(object: DeepPartial<GetTimeResponse>): GetTimeResponse;
|
|
802
|
-
};
|
|
803
|
-
export declare const ListEntitiesServicesArgument: {
|
|
804
|
-
encode(message: ListEntitiesServicesArgument, writer?: Writer): Writer;
|
|
805
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesServicesArgument;
|
|
806
|
-
fromJSON(object: any): ListEntitiesServicesArgument;
|
|
807
|
-
toJSON(message: ListEntitiesServicesArgument): unknown;
|
|
808
|
-
fromPartial(object: DeepPartial<ListEntitiesServicesArgument>): ListEntitiesServicesArgument;
|
|
809
|
-
};
|
|
810
|
-
export declare const ListEntitiesServicesResponse: {
|
|
811
|
-
encode(message: ListEntitiesServicesResponse, writer?: Writer): Writer;
|
|
812
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesServicesResponse;
|
|
813
|
-
fromJSON(object: any): ListEntitiesServicesResponse;
|
|
814
|
-
toJSON(message: ListEntitiesServicesResponse): unknown;
|
|
815
|
-
fromPartial(object: DeepPartial<ListEntitiesServicesResponse>): ListEntitiesServicesResponse;
|
|
816
|
-
};
|
|
817
|
-
export declare const ExecuteServiceArgument: {
|
|
818
|
-
encode(message: ExecuteServiceArgument, writer?: Writer): Writer;
|
|
819
|
-
decode(input: Reader | Uint8Array, length?: number): ExecuteServiceArgument;
|
|
820
|
-
fromJSON(object: any): ExecuteServiceArgument;
|
|
821
|
-
toJSON(message: ExecuteServiceArgument): unknown;
|
|
822
|
-
fromPartial(object: DeepPartial<ExecuteServiceArgument>): ExecuteServiceArgument;
|
|
823
|
-
};
|
|
824
|
-
export declare const ExecuteServiceRequest: {
|
|
825
|
-
encode(message: ExecuteServiceRequest, writer?: Writer): Writer;
|
|
826
|
-
decode(input: Reader | Uint8Array, length?: number): ExecuteServiceRequest;
|
|
827
|
-
fromJSON(object: any): ExecuteServiceRequest;
|
|
828
|
-
toJSON(message: ExecuteServiceRequest): unknown;
|
|
829
|
-
fromPartial(object: DeepPartial<ExecuteServiceRequest>): ExecuteServiceRequest;
|
|
830
|
-
};
|
|
831
|
-
export declare const ListEntitiesCameraResponse: {
|
|
832
|
-
encode(message: ListEntitiesCameraResponse, writer?: Writer): Writer;
|
|
833
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesCameraResponse;
|
|
834
|
-
fromJSON(object: any): ListEntitiesCameraResponse;
|
|
835
|
-
toJSON(message: ListEntitiesCameraResponse): unknown;
|
|
836
|
-
fromPartial(object: DeepPartial<ListEntitiesCameraResponse>): ListEntitiesCameraResponse;
|
|
837
|
-
};
|
|
838
|
-
export declare const CameraImageResponse: {
|
|
839
|
-
encode(message: CameraImageResponse, writer?: Writer): Writer;
|
|
840
|
-
decode(input: Reader | Uint8Array, length?: number): CameraImageResponse;
|
|
841
|
-
fromJSON(object: any): CameraImageResponse;
|
|
842
|
-
toJSON(message: CameraImageResponse): unknown;
|
|
843
|
-
fromPartial(object: DeepPartial<CameraImageResponse>): CameraImageResponse;
|
|
844
|
-
};
|
|
845
|
-
export declare const CameraImageRequest: {
|
|
846
|
-
encode(message: CameraImageRequest, writer?: Writer): Writer;
|
|
847
|
-
decode(input: Reader | Uint8Array, length?: number): CameraImageRequest;
|
|
848
|
-
fromJSON(object: any): CameraImageRequest;
|
|
849
|
-
toJSON(message: CameraImageRequest): unknown;
|
|
850
|
-
fromPartial(object: DeepPartial<CameraImageRequest>): CameraImageRequest;
|
|
851
|
-
};
|
|
852
|
-
export declare const ListEntitiesClimateResponse: {
|
|
853
|
-
encode(message: ListEntitiesClimateResponse, writer?: Writer): Writer;
|
|
854
|
-
decode(input: Reader | Uint8Array, length?: number): ListEntitiesClimateResponse;
|
|
855
|
-
fromJSON(object: any): ListEntitiesClimateResponse;
|
|
856
|
-
toJSON(message: ListEntitiesClimateResponse): unknown;
|
|
857
|
-
fromPartial(object: DeepPartial<ListEntitiesClimateResponse>): ListEntitiesClimateResponse;
|
|
858
|
-
};
|
|
859
|
-
export declare const ClimateStateResponse: {
|
|
860
|
-
encode(message: ClimateStateResponse, writer?: Writer): Writer;
|
|
861
|
-
decode(input: Reader | Uint8Array, length?: number): ClimateStateResponse;
|
|
862
|
-
fromJSON(object: any): ClimateStateResponse;
|
|
863
|
-
toJSON(message: ClimateStateResponse): unknown;
|
|
864
|
-
fromPartial(object: DeepPartial<ClimateStateResponse>): ClimateStateResponse;
|
|
865
|
-
};
|
|
866
|
-
export declare const ClimateCommandRequest: {
|
|
867
|
-
encode(message: ClimateCommandRequest, writer?: Writer): Writer;
|
|
868
|
-
decode(input: Reader | Uint8Array, length?: number): ClimateCommandRequest;
|
|
869
|
-
fromJSON(object: any): ClimateCommandRequest;
|
|
870
|
-
toJSON(message: ClimateCommandRequest): unknown;
|
|
871
|
-
fromPartial(object: DeepPartial<ClimateCommandRequest>): ClimateCommandRequest;
|
|
872
|
-
};
|
|
873
|
-
export interface APIConnection {
|
|
874
|
-
hello(request: HelloRequest): Promise<HelloResponse>;
|
|
875
|
-
connect(request: ConnectRequest): Promise<ConnectResponse>;
|
|
876
|
-
disconnect(request: DisconnectRequest): Promise<DisconnectResponse>;
|
|
877
|
-
ping(request: PingRequest): Promise<PingResponse>;
|
|
878
|
-
device_info(request: DeviceInfoRequest): Promise<DeviceInfoResponse>;
|
|
879
|
-
list_entities(request: ListEntitiesRequest): Promise<voidMessage>;
|
|
880
|
-
subscribe_states(request: SubscribeStatesRequest): Promise<voidMessage>;
|
|
881
|
-
subscribe_logs(request: SubscribeLogsRequest): Promise<voidMessage>;
|
|
882
|
-
subscribe_homeassistant_services(request: SubscribeHomeassistantServicesRequest): Promise<voidMessage>;
|
|
883
|
-
subscribe_home_assistant_states(request: SubscribeHomeAssistantStatesRequest): Promise<voidMessage>;
|
|
884
|
-
get_time(request: GetTimeRequest): Promise<GetTimeResponse>;
|
|
885
|
-
execute_service(request: ExecuteServiceRequest): Promise<voidMessage>;
|
|
886
|
-
cover_command(request: CoverCommandRequest): Promise<voidMessage>;
|
|
887
|
-
fan_command(request: FanCommandRequest): Promise<voidMessage>;
|
|
888
|
-
light_command(request: LightCommandRequest): Promise<voidMessage>;
|
|
889
|
-
switch_command(request: SwitchCommandRequest): Promise<voidMessage>;
|
|
890
|
-
camera_image(request: CameraImageRequest): Promise<voidMessage>;
|
|
891
|
-
climate_command(request: ClimateCommandRequest): Promise<voidMessage>;
|
|
892
|
-
}
|
|
893
|
-
export declare class APIConnectionClientImpl implements APIConnection {
|
|
894
|
-
private readonly rpc;
|
|
895
|
-
constructor(rpc: Rpc);
|
|
896
|
-
hello(request: HelloRequest): Promise<HelloResponse>;
|
|
897
|
-
connect(request: ConnectRequest): Promise<ConnectResponse>;
|
|
898
|
-
disconnect(request: DisconnectRequest): Promise<DisconnectResponse>;
|
|
899
|
-
ping(request: PingRequest): Promise<PingResponse>;
|
|
900
|
-
device_info(request: DeviceInfoRequest): Promise<DeviceInfoResponse>;
|
|
901
|
-
list_entities(request: ListEntitiesRequest): Promise<voidMessage>;
|
|
902
|
-
subscribe_states(request: SubscribeStatesRequest): Promise<voidMessage>;
|
|
903
|
-
subscribe_logs(request: SubscribeLogsRequest): Promise<voidMessage>;
|
|
904
|
-
subscribe_homeassistant_services(request: SubscribeHomeassistantServicesRequest): Promise<voidMessage>;
|
|
905
|
-
subscribe_home_assistant_states(request: SubscribeHomeAssistantStatesRequest): Promise<voidMessage>;
|
|
906
|
-
get_time(request: GetTimeRequest): Promise<GetTimeResponse>;
|
|
907
|
-
execute_service(request: ExecuteServiceRequest): Promise<voidMessage>;
|
|
908
|
-
cover_command(request: CoverCommandRequest): Promise<voidMessage>;
|
|
909
|
-
fan_command(request: FanCommandRequest): Promise<voidMessage>;
|
|
910
|
-
light_command(request: LightCommandRequest): Promise<voidMessage>;
|
|
911
|
-
switch_command(request: SwitchCommandRequest): Promise<voidMessage>;
|
|
912
|
-
camera_image(request: CameraImageRequest): Promise<voidMessage>;
|
|
913
|
-
climate_command(request: ClimateCommandRequest): Promise<voidMessage>;
|
|
914
|
-
}
|
|
915
|
-
interface Rpc {
|
|
916
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
917
|
-
}
|
|
918
|
-
type Builtin = Date | Function | Uint8Array | string | number | undefined;
|
|
919
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
920
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
921
|
-
} : Partial<T>;
|
|
922
|
-
export {};
|