Initial replacement for entry flow

This commit is contained in:
2023-10-02 15:58:56 -04:00
parent cc21c329fe
commit 900647d12a

View 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])
}