mqtt-discovery-types
Version:
Typescript Types For HomeAssistant MQTT Discovery
39 lines (29 loc) • 1.07 kB
TypeScript
import type { BaseEntityDiscovery } from "./BaseEntityDiscovery.ts";
export type WaterHeaterModes = 'off' | 'eco' | 'electric' | 'gas' | 'heat_pump' | 'high_demand' | 'performance';
export interface WaterHeaterDiscovery extends BaseEntityDiscovery {
current_temperature_template?: string;
current_temperature_topic?: string;
initial?: number;
max_temp?: number;
min_temp?: number;
mode_command_template?: string;
mode_command_topic?: string;
mode_state_template?: string;
mode_state_topic?: string;
modes?: WaterHeaterModes[];
optomistic?: boolean;
payload_off?: string;
payload_on?: string;
power_command_template?: string;
power_command_topic?: string;
precision?: number;
temperature_command_template?: string;
temperature_command_topic?: string;
temperature_state_template?: string;
temperature_state_topic?: string;
temerature_unit?: 'C' | 'F';
/**
* Default template to render the payloads on all `*_state_topic` topics.
*/
value_template?: string;
}