Filter for open events
This commit is contained in:
parent
bafe63bf0d
commit
0dbf6fdc4f
@ -26,7 +26,7 @@ ws.on('message', msg => {
|
|||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
if (device.openScript){
|
if (device.openScript && data.state[device.valueKey]){
|
||||||
console.log("Running open script")
|
console.log("Running open script")
|
||||||
try {
|
try {
|
||||||
console.log(exec.execSync(device.openScript).toString())
|
console.log(exec.execSync(device.openScript).toString())
|
||||||
|
Loading…
Reference in New Issue
Block a user