UNPKG

@o-lukas/homebridge-smartthings-tv

Version:

This is a plugin for Homebridge. It offers some basic functions to control Samsung TVs using the SmartThings API.

23 lines (22 loc) 1.22 kB
import { PlatformAccessory, CharacteristicValue, Logger } from 'homebridge'; import { SmartThingsPlatform } from './smartThingsPlatform.js'; import { SmartThingsClient, Device, Component, CapabilityStatus } from '@smartthings/core-sdk'; import { SmartThingsAccessory } from './smartThingsAccessory.js'; /** * Class implements a slider accessory to execute a capability commmand. */ export declare class SliderAccessory extends SmartThingsAccessory { private readonly capability; private readonly command; private readonly onGet; private readonly onSet; private readonly pollingInterval; private readonly cyclicCallsLogging; private readonly service; private lastValueBeforeOff; constructor(device: Device, component: Component, client: SmartThingsClient, log: Logger, platform: SmartThingsPlatform, accessory: PlatformAccessory, capability: string, command: string, onGet: (value: CapabilityStatus | null) => CharacteristicValue, onSet: (value: CharacteristicValue) => (string | number | object)[], pollingInterval: number | undefined, cyclicCallsLogging: boolean); private handleGetOn; private handleSetOn; private handleGetBrightness; private handleSetBrightness; }