Skip to content

CKY-/Firebot-WiZ-Light-Control

Repository files navigation

Create a text file with all of your lights IP address in it one IP per line.

In firebot go to settings scripts enable start up scripts, then manage scripts and put the released file in the scripts folder.

Starter Firebot Custom Script in Typescript

Setup

  1. Create a new repo based off this template (Click "Use this Template" above) or simply fork it
  2. npm install

Building

Dev:

  1. npm run build:dev
  • Automatically copies the compiled .js to Firebot's scripts folder.

Release:

  1. npm run build
  • Copy .js from /dist

Note

  • Keep the script definition object (that contains the run, getScriptManifest, and getDefaultParameters funcs) in the index.ts file as it's important those function names don't get minimized.
  • Edit the "scriptOutputName" property in package.json to change the filename of the outputted script.