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