Files
HA-NerdFlows-Functions/lightfx/processing-start.js

40 lines
1.6 KiB
JavaScript

// Set some constants for all of the lights
// Half and half for living room LED strip
const halfLivingRoom1 = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]
const halfLivingRoom2 = [20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]
// Individual strip segments for living room LED strip
const segLivingRoom1 = [0,1,2,3,4,5,6,7]
const segLivingRoom2 = [8,9,10,11,12,13,14,15]
const segLivingRoom3 = [16,17,18,19,20,21,22,23]
const segLivingRoom4 = [24,25,26,27,28,29,30,31]
const segLivingRoom5 = [32,33,34,35,36,37,38,39]
// Half and half for basement LED strip
const halfBasement1 = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
const halfBasement2 = [16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]
// Individual strip segments for basement LED strip
const segBasement1 = [0,1,2,3,4,5,6,7]
const segBasement2 = [8,9,10,11,12,13,14,15]
const segBasement3 = [16,17,18,19,20,21,22,23]
const segBasement4 = [24,25,26,27,28,29,30,31]
flow.set("halfLivingRoom1", halfLivingRoom1, "diskCon")
flow.set("halfLivingRoom2", halfLivingRoom1, "diskCon")
flow.set("segLivingRoom1", segLivingRoom1, "diskCon")
flow.set("segLivingRoom2", segLivingRoom2, "diskCon")
flow.set("segLivingRoom3", segLivingRoom3, "diskCon")
flow.set("segLivingRoom4", segLivingRoom4, "diskCon")
flow.set("segLivingRoom5", segLivingRoom5, "diskCon")
flow.set("halfBasement1", halfBasement1, "diskCon")
flow.set("halfBasement2", halfBasement1, "diskCon")
flow.set("segBasement1", segBasement1, "diskCon")
flow.set("segBasement2", segBasement2, "diskCon")
flow.set("segBasement3", segBasement3, "diskCon")
flow.set("segBasement4", segBasement4, "diskCon")