UNPKG

mqtt-discovery-types

Version:
18 lines (14 loc) 487 B
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>;