UNPKG

homebridge-tasmota

Version:

Homebridge plugin for Tasmota devices leveraging home assistant auto discovery.

23 lines (22 loc) 1.19 kB
import { CharacteristicSetCallback, CharacteristicValue, PlatformAccessory } from 'homebridge'; import { TasmotaService } from './TasmotaService.js'; import { tasmotaPlatform } from './tasmotaPlatform.js'; /** * Platform Accessory * An instance of this class is created for each accessory your platform registers * Each accessory may expose multiple services of different service types. */ export declare class tasmotaFanService extends TasmotaService { readonly platform: tasmotaPlatform; readonly accessory: PlatformAccessory; protected readonly uniq_id: string; constructor(platform: tasmotaPlatform, accessory: PlatformAccessory, uniq_id: string); /** * Handle "STATE" messages from Tasmotastat_t: * These are sent when the device's state is changed, either via HomeKit, Local Control or Other control methods. */ statusUpdate(topic: string, message: Buffer): void; setOn(value: CharacteristicValue, callback: CharacteristicSetCallback): void; setRotationSpeed(value: CharacteristicValue, callback: CharacteristicSetCallback): void; setRotationSpeedFixed(value: CharacteristicValue, callback: CharacteristicSetCallback): void; }