Socket
Book a DemoInstallSign in
Socket

milight_v6

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

milight_v6

A library to control the MiLight family (LimitlessLed etc) of light globes on v6 bridges.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

MiLight v6

This is a library for controlling MiLight/LimitlessLed/AppLamp/etc lights connected to a v6 bridge.

Usage

var mb=require('./milight.js');

mb.initiate(BRIDGE_IP,BRIDGE_PORT);

//control the Bridge Lamp var baseCtl=mb.baseCtlFactory();

//control the first RGBW zone var z1=mb.zoneCtlRGBWFactory(0x01);

//control the second RGBWW zone var z2=mb.zoneCtlRGBWWFactory(0x02);

//Method 1 mb.sendCmd(z1.on()); mb.sendCmd(z1.colorSet(0x20));

//Method 2 z1.command("on") z1.command("colorSet",0x20)

Commands

The following commands are valid (where the zone supports it)

on off colorRGB (parameter [r,g,b]) colorSet (parameter 0x00-0xFF) colorUp colorDown brightnessSet (parameter 0x00-0x64) brightnessUp brightnessDown saturationSet (parameter 0x00-0x64) saturationUp saturationDown link unlink

Keywords

node-red

FAQs

Package last updated on 06 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts