1.7.2 • Published 17 days ago

@mkellsy/leap v1.7.2

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

LEAP

Implementation of Lutron's LEAP protocol for TypeScript.

This exposes a method to interact with LEAP enabled devices. This requires the client to impliment the system that needs to be intergrated.

API

Pairing a processor or bridge.

import { Connection } from "@mkellsy/leap";

const connection = new Connection("192.168.123.5");

connection.connect().then(() => {
    connection.authenticate(request).then((certificate) => {
        // certificate can be used to make a secure connection
    });
});

Connect to the processor (using the certificate from pairing)

import { Connection } from "@mkellsy/leap";

const connection = new Connection("192.168.123.5", certificate);

Making a request

import { Area } from "@mkellsy/leap";

const areas = await connection.read<Area[]>("/area");

for (const area of areas) {
    // area logic
}

Ping

/server/1/status/ping

Project

/project

System Information

/device?where=IsThisDevice:true

Areas

/area

Zones

/zone/[id]/associatedzone

Zone Status

/zone/[id]/status

Area Controls

/area/[id]/associatedcontrolstation

Area Control

/device/[id]

Area Control Buttons

/device/[id]/buttongroup/expanded

Execute Command

/zone/[id]/commandprocessor

Subscribe

/button/[id]/status/event
1.7.2

17 days ago

1.7.1

22 days ago

1.7.0

22 days ago

1.4.6

4 months ago

1.4.5

4 months ago

1.5.0

4 months ago

1.4.9

4 months ago

1.4.8

4 months ago

1.4.7

4 months ago

1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.2.8

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.7

4 months ago

1.2.0

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.1.1

5 months ago

1.1.2

5 months ago

1.0.1

5 months ago