mqtt-discovery-types
Version:
Typescript Types For HomeAssistant MQTT Discovery
22 lines (19 loc) • 651 B
TypeScript
import type { BaseComponentDiscovery } from './BaseEntityDiscovery.ts';
import { MakeEntity } from './utils';
/**
* @see https://www.home-assistant.io/integrations/camera.mqtt/
*/
export interface CameraComponentDiscovery extends BaseComponentDiscovery {
platform: 'camera';
/**
* The MQTT topic to subscribe to.
*/
topic: string;
/**
* The encoding of the image payloads received.
* Set to "b64" to enable base64 decoding of image payload.
* If not set, the image payload must be raw binary data.
*/
image_encoding?: 'b64';
}
export type CameraDiscovery = MakeEntity<CameraComponentDiscovery>;