Initial replacement for entry flow
This commit is contained in:
12
kallen-timer/processing.js
Normal file
12
kallen-timer/processing.js
Normal file
@ -0,0 +1,12 @@
|
||||
const states = global.get('homeassistant.homeAssistant.states')
|
||||
const timer = states['timer.kallen_timer'].state
|
||||
|
||||
// Basic replacement for current entry flow
|
||||
|
||||
if (timer === 'idle') {
|
||||
node.send([msg,null,null])
|
||||
} else if (timer === 'active') {
|
||||
node.send([null,msg,null])
|
||||
} else if (timer === 'paused') {
|
||||
node.send([null,null,msg])
|
||||
}
|
Reference in New Issue
Block a user