20 lines
938 B
JavaScript
20 lines
938 B
JavaScript
// Set constants
|
|
const states = global.get('homeassistant.homeAssistant.states')
|
|
const currentSceneBasement = flow.get('currentSceneBasement')
|
|
const currentSceneLivingRoom = flow.get('currentSceneLivingRoom')
|
|
const currentSceneTinaDesk = flow.get('currentSceneTinaDesk')
|
|
const adaptLivingRoom = flow.get('adaptLivingRoom')
|
|
const adaptBasement = flow.get('adaptBasement')
|
|
const nightLivingRoom = flow.get('nightLivingRoom')
|
|
const nightBasement = flow.get('nightBasement')
|
|
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')
|
|
|
|
// Reset code goes here
|
|
|
|
node.status({fill:"green",shape:"dot",text:"Success"}) |