mqtt-discovery-types
Version:
Typescript Types For HomeAssistant MQTT Discovery
21 lines (15 loc) • 533 B
TypeScript
import type { CommandComponentDiscovery } from "./BaseEntityDiscovery.ts";
import { MakeEntity } from './utils';
/**
* @see https://www.home-assistant.io/integrations/button.mqtt/
*/
export interface ButtonComponentDiscovery extends CommandComponentDiscovery {
platform : 'button';
/**
* The payload To send to trigger the button.
* Default: PRESS
*/
payload_press?: string;
device_class?: "identify" | "restart" | "update";
}
export type ButtonDiscovery = MakeEntity<ButtonComponentDiscovery>;