From 77e56c7793991f7602a54eb4c9581709e493a883 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 5 Oct 2023 22:27:18 -0400 Subject: [PATCH] Code around the incoming event --- lightfx/processing.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lightfx/processing.js b/lightfx/processing.js index 344a270..e63fa15 100644 --- a/lightfx/processing.js +++ b/lightfx/processing.js @@ -5,6 +5,9 @@ const deskState = states["light.tina_desk_lights"].state const livingRoomState = states["light.living_room_lights"].state const diningRoomState = states["light.dining_room_lamp"].state const basementState = states["light.basement_studio_lights"].state +const where = msg.payload.event.where +const type = msg.payload.event.type +const duration = msg.payload.event.duration let firstFloorLights = [] let basementLights = [] @@ -28,4 +31,6 @@ if (basementState === 'on') { flow.set("deskState", deskState) flow.set("livingRoomState", livingRoomState) flow.set("diningRoomState", diningRoomState) -flow.set("basementState", basementState) \ No newline at end of file +flow.set("basementState", basementState) + +// let segLivingRoom = [].concat(segLivingRoom1, segLivingRoom2)