UNPKG

mqtt-discovery-types

Version:
18 lines (15 loc) 512 B
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; }