@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.
18 lines (17 loc) • 879 B
TypeScript
import { PlatformAccessory, Logger } from 'homebridge';
import { SmartThingsPlatform } from './smartThingsPlatform.js';
import { SmartThingsClient, Device, Component } from '@smartthings/core-sdk';
import { SmartThingsAccessory } from './smartThingsAccessory.js';
/**
* Class implements a switch accessory to execute a capability commmand and get capability status.
*/
export declare class SwitchAccessory extends SmartThingsAccessory {
private readonly capability;
private readonly command;
private readonly value;
private readonly stateful;
private readonly service;
constructor(device: Device, component: Component, client: SmartThingsClient, log: Logger, platform: SmartThingsPlatform, accessory: PlatformAccessory, capability: string, command: string, value: string | undefined, stateful?: boolean);
private handleGet;
private handleSet;
}