From 74302e3db8429c8439b6b37c83892e760cf5b110 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 29 Aug 2024 17:31:13 -0500 Subject: Add fire service control for digilines I/O modules Not in the manual yet, but set the command field to "fs1off" to turn it off, "fs1on" to turn it on, "fs1alt" to turn it on with alternate floor recall, or "mrsmoke" for machine room/hoistway heat/smoke detector. --- digilines.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/digilines.lua b/digilines.lua index 9685adb..4b30345 100644 --- a/digilines.lua +++ b/digilines.lua @@ -138,6 +138,26 @@ local function handledigilines(pos,node,channel,msg) }, }) end + elseif msg.command == "fs1off" then + celevator.controller.run(carinfo.controllerpos,{ + type = "fs1switch", + state = false, + }) + elseif msg.command == "fs1on" then + celevator.controller.run(carinfo.controllerpos,{ + type = "fs1switch", + state = true, + }) + elseif msg.command == "fs1alt" then + celevator.controller.run(carinfo.controllerpos,{ + type = "fs1switch", + state = true, + mode = "alternate", + }) + elseif msg.command == "mrsmoke" then + celevator.controller.run(carinfo.controllerpos,{ + type = "mrsmoke", + }) end end end -- cgit v1.2.3