Initial commit

This commit is contained in:
2023-09-28 12:28:27 -04:00
commit 25780c8c5d
30 changed files with 1777 additions and 0 deletions

12
front-porch/if-motion.js Normal file
View File

@ -0,0 +1,12 @@
const states = global.get('homeassistant.homeAssistant.states')
const deliveryMode = states['input_boolean.delivery_mode'].state
const detect = msg.detect
node.send([null,msg])
if (detect === 'motion' && deliveryMode === 'on') {
node.status({fill:"green",shape:"dot",text:"Motion/Delivery"})
node.send([msg,null])
} else {
node.status({fill:"green",shape:"dot",text:"Not Motion"})
}