UNPKG

node-red-contrib-mobius-flow-dali

Version:

Node-RED nodes to work with MOBiUSFlow and DALI devices

53 lines (52 loc) 2.09 kB
export declare class DaliLinker { private hid; private sid; private serviceConn; constructor(hid: any, sid: any, mobius: any); /** * Fetch objects from service config * @param searchPid - The profile id of the desired object list * @param callback - Callback when complete */ fetchObjects(searchPid: string, callback: Function): void; /** * Assign an Object a DALI shot address * @param pid - The profile ID of the target object * @param ins - The instance ID of the target object * @param addr - The DALI address to be assigned to the target object * @param callback - Callback when complete */ link(pid: string, ins: string, addr: number, callback: Function): void; /** * Remove current DALI short address from object (change to -1) * @param pid - The profile ID of the target object * @param ins - The instance ID of the target object * @param callback - Callback when complete */ unlink(pid: string, ins: string, callback: Function): void; /** * Remove current DALI short address from all objects * @param pid - The profile ID of the target object list * @param callback - Callback when complete */ unlinkAll(pid: string, callback: Function): void; /** * Perform DALI short address update to a target object * @param pid - The profile ID of the target object * @param ins - The instance ID of the target object * @param newAddress - The new DALI short address to be assigned to target object * @param callback - Callback when complete */ private updateDaliAddress; /** * Update resources list with new DALI short address * @param rids - The current rids list * @param address - The new DALI short address */ private updateAddressResource; /** * Extract the DALI short address from a given object * @param object - The object ot have its short address extracted */ private extractAddress; }