mqtt-discovery-types
Version:
Typescript Types For HomeAssistant MQTT Discovery
18 lines (15 loc) • 512 B
TypeScript
import type { BaseComponentDiscovery } from "./BaseEntityDiscovery.ts";
import { MakeEntity } from './utils';
export type SceneDiscovery = MakeEntity<SceneComponentDiscovery>;
export interface SceneComponentDiscovery extends BaseComponentDiscovery {
platform: 'scene';
/**
* The payload that represents the `on` state.
* @defaultValue 'ON'
*/
payload_on?: string;
/**
* The MQTT topic to publiish `payload_on` to to activate the scene.
*/
command_topic?: string;
}