node-red-contrib-mobius-flow-dali
Version:
Node-RED nodes to work with MOBiUSFlow and DALI devices
71 lines (70 loc) • 2.07 kB
TypeScript
/// <reference types="node" />
import { EventEmitter } from 'events';
export declare class CircuitEmergencyInterface extends EventEmitter {
circuit: string;
private daliMaster;
devices: any;
deviceIndex: number;
private selectedObjectIns;
private linker;
constructor(conID: any, getNode: any);
/**
* Send status update
* @param message - Status update message
*/
private updateStatus;
/**
* Send updated device list
*/
private sendUpdatedDeviceList;
/**
* Send updated object list
*/
sendUpdatedObjectList(): void;
/**
* Update the device list
* @param deviceList - The new device list
*/
updateDeviceList(deviceList: any): void;
/**
* Select a device within the device list
* @param addr - The DALI short address of the device to be selected
*/
selectDevice(addr: any): void;
/**
* Select a new mobius luminaire object
* @param ins - The ins of the mobius luminaire object to be selected (0001 - 003F)
*/
selectObject(ins: any): void;
/**
* Send relevent notifications when a new device is selected
* @param addr - DALI short address of new device
*/
private notifyOfStateChange;
/**
* Send a DALI command to start an emergency function test
* @param address - The DALI address
*/
illuminate(address: number): void;
illuminateCurrent(): void;
illuminateNext(): void;
illuminatePrevious(): void;
/**
* Link the currently selected luminaire device to the currently selected mobius object
*/
linkLuminaire(): void;
/**
* Unlink all luminaire objects
*/
unlinkAllMobObjects(): void;
/**
* Unlink the selected luminaire object
*/
unlinkMobObject(): void;
/**
* Unlink a device / object pair as a result of a swap or delete process
* @param addr - The DALI short address of the device within the pair to be unlinked
*/
unlinkOnSwap(addr: any): void;
changeToThisCircuit(): void;
}