Starting to work on post-alert restoration
This commit is contained in:
@ -11,10 +11,22 @@ const stateTinaDesk = flow.get('stateTinaDesk')
|
||||
const stateLivingRoom = flow.get('stateLivingRoom')
|
||||
const stateDiningRoom = flow.get('stateDiningRoom')
|
||||
const stateBasement = flow.get('stateBasement')
|
||||
const scenesLivingRoom = flow.get('scenesLivingRoom', 'diskCon')
|
||||
const scenesBasement = flow.get('scenesBasement', 'diskCon')
|
||||
const scenesTinaDesk = flow.get('scenesTinaDesk', 'diskCon')
|
||||
const scenesLivingRoom = states["input_select.living_room_scenes"].attributes.options
|
||||
const scenesBasement = states["input_select.basement_studio_scenes"].attributes.options
|
||||
const scenesTinaDesk = states["input_select.tina_desk_scenes"].attributes.options
|
||||
|
||||
// Reset code goes here
|
||||
const definedLivingRoom = scenesLivingRoom.includes(currentSceneLivingRoom)
|
||||
const definedBasement = scenesBasement.includes(currentSceneBasement)
|
||||
const definedTinaDesk = scenesTinaDesk.includes(currentSceneTinaDesk)
|
||||
|
||||
let sendDebug = {
|
||||
"scenesLivingRoom": scenesLivingRoom,
|
||||
"scenesBasement": scenesBasement,
|
||||
"scenesTinaDesk": scenesTinaDesk,
|
||||
"definedLivingRoom": definedLivingRoom,
|
||||
"definedBasement": definedBasement,
|
||||
"definedTinaDesk": definedTinaDesk
|
||||
}
|
||||
|
||||
node.send([sendDebug,null,null,null])
|
||||
node.status({fill:"green",shape:"dot",text:"Success"})
|
Reference in New Issue
Block a user