summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-08-29 17:31:13 -0500
committercheapie <no-email-for-you@example.com>2024-08-29 17:31:13 -0500
commit74302e3db8429c8439b6b37c83892e760cf5b110 (patch)
tree15a0f0d3d8a2295fd838f8d74851cc9e1d6ec0b0
parente5edbece2bf4a28d4ff4751dc2337561207a9b92 (diff)
downloadcelevator-74302e3db8429c8439b6b37c83892e760cf5b110.tar
celevator-74302e3db8429c8439b6b37c83892e760cf5b110.tar.gz
celevator-74302e3db8429c8439b6b37c83892e760cf5b110.tar.bz2
celevator-74302e3db8429c8439b6b37c83892e760cf5b110.tar.xz
celevator-74302e3db8429c8439b6b37c83892e760cf5b110.zip
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.
-rw-r--r--digilines.lua20
1 files changed, 20 insertions, 0 deletions
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