Add comments, prepare for resets and multiple floors activation

This commit is contained in:
2023-10-17 16:10:15 -04:00
parent 58be744880
commit d6a4b107a6
2 changed files with 46 additions and 4 deletions

20
lightfx/reset.js Normal file
View File

@ -0,0 +1,20 @@
// 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"})