Refactor code to use plejd outputs rather than devices as main entity

This commit is contained in:
Victor Hagelbäck 2021-03-31 20:04:45 +02:00
parent ef718cf1db
commit 9a76a3ba50
10 changed files with 185 additions and 158 deletions

View file

@ -3,7 +3,7 @@
export type OutputDevices = { [deviceIdAndOutput: string]: OutputDevice };
export interface OutputDevice {
bleDeviceIndex: number;
bleOutputAddress: number;
deviceId: string;
dim?: number;
dimmable: boolean;
@ -13,7 +13,7 @@ export interface OutputDevice {
name: string;
output: number;
roomId: string;
state: number | undefined;
state: boolean | undefined;
type: string;
typeName: string;
version: string;

View file

@ -1,6 +1,6 @@
/* eslint-disable no-use-before-define */
import { ApiSite } from './ApiSite';
import { ApiSite } from './ApiSite.d.ts';
export type PlejdApi = {
config: any;