Code around the incoming event
This commit is contained in:
@ -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)
|
||||
flow.set("basementState", basementState)
|
||||
|
||||
// let segLivingRoom = [].concat(segLivingRoom1, segLivingRoom2)
|
||||
|
Reference in New Issue
Block a user