1.8.2 • Published 1 year ago

@mkellsy/leap v1.8.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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.8.2

1 year ago

1.7.3

1 year ago

1.8.1

1 year ago

1.7.9

1 year ago

1.7.8

1 year ago

1.7.7

1 year ago

1.7.5

1 year ago

1.7.4

1 year ago

1.7.2

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.5.0

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.2.8

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.7

1 year ago

1.2.0

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.1

2 years ago

1.1.2

2 years ago

1.0.1

2 years ago