Skip to content
/ govee-js Public

Client for controlling supported Govee devices through JavaScript.

License

Notifications You must be signed in to change notification settings

azpha/govee-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Govee JS/TS Client

Not affiliated with Govee. just a fun project

Install

npm i @awexx/govee

Setup

You'll need an API key from Govee in order to use this client. You can get one following these steps from inside the Govee mobile app.

Usage

import Govee from "@awexx/govee";

(async () => {
  const govee = new Govee("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee");
  const device = "aa:bb:cc:dd:ee:ff:gg:hh";
  const sku = "H6003";

  await govee.light.off(device, sku); // turns off light
  await govee.light.on(device, sku); // turns off light
  await govee.light.color(device, sku, 8388736); // sets color to purple
  await govee.light.brightness(device, sku, 30); // sets brightness to 30%
})();

Some notes;

  • RGB needs to be the decimal value of that color. You can you something like SpyColor to find that.
  • This package only supports Govee lights for now.

About

Client for controlling supported Govee devices through JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published