mqtt-discovery-types
Version:
Typescript Types For HomeAssistant MQTT Discovery
18 lines (14 loc) • 487 B
TypeScript
import type { StatefulComponentDiscovery } from "./BaseEntityDiscovery.ts";
import {MakeEntity} from './utils';
/**
* @see https://www.home-assistant.io/integrations/Event.mqtt/
*/
export interface EventComponentDiscovery extends StatefulComponentDiscovery {
platform: 'event';
device_class?: 'button' | 'doorbell' | 'motion';
/**
* The type/class of the event.
*/
event_types: string[];
}
export type EventDiscovery = MakeEntity<EventComponentDiscovery>;