This algorythm takes a list of classes/ objects (typescript) and converts it into a light.yaml
-file which then the HASC-integration uses to control the lights in home assistant.
- Change the classes in
src/fixtures
to match with your setup. - Run
tsc
to transpile your code - Run the program with
node .
In the output
-directory you will find the light.yaml
-file which you can import in your configuration.yaml
file.
Tested on Node.js v20.10.0