![]() |
|
Notes on using a KC868 as an alarm controller - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: DIY Project (https://www.kincony.com/forum/forumdisplay.php?fid=3) +--- Thread: Notes on using a KC868 as an alarm controller (/showthread.php?tid=7713) |
Notes on using a KC868 as an alarm controller - twostar - 02-24-2025 These are some notes on using a KC868 as an alarm controller. The functionality is implemented as IFTTT rules implementing the alarm as ladder logic, although I've used text rather than graphical notation because you can't really do ladder logic in ASCII. In this case DI 1-8 are PIR motion sensors and DI 9-12 are smoke alarm sensors. There's sirens/strobes connected to DO 15-16. In order to be able to do this you need to chain rules which the firmware currently doesn't support but there are requests to add it to the v3 firmware, at the moment I've worked around it by using a relay board to take the wet-contact DO output to the dry-contact DI inputs. When support for this is added to the v3 firmware, e.g. by allowing DO outputs to be tested in IF conditions, then you don't need the external wiring.
Rules 2 and 3 handle external arm and disarm signals, e.g. from a keypad by the door, they implement an RS flip-flop to enable triggering in Rule 7. Rule 4 triggers the alarm after a 10s entrance delay to allow disarming. Rules 5 and 6 trigger the alarm immediately. Rule 7 sounds the sirens if the alarm is armed. Rule 8 runs them for 5 minutes, then turns them off again. There's one bug in this caused by the fact that it's necessary to use an external relay board to chain rules, there's a 5s arming delay but the disarm is immediate, which means if you arm, then disarm, then the arming delay will cause the Arm signal to be sent after the Disarm signal. This needs an extra enabling signal like Rule 7 but I'm out of relay contacts at this point so can't chain in an extra rule. If support is added to the v3 firmware then you can just set another DO and test it in a IF condition so the disarm takes precedence over the arm. This is a work in progress so there's probably other problems in it, all comments welcome. RE: Notes on using a KC868 as an alarm controller - twostar - 02-26-2025 An updated version that allows for arming delays. In the following _/ is a rising edge on the input, _#_ is a 500ms pulse on the output. I've also changed the notation slightly, instead of using DI n and DO n which can get a bit confusing I've used labels like "Arm" and "Disarm". So for example "Arm _/ -> Armed _#_" means if an input detects a rising edge on the Arm input then output a 500ms pulse on the Armed output. The ladder logic for the alarm is then: Code: Arm _/ -> Delay 10s, Try_Arm_1 _#_ + Try_Arm_2 _#_Code: Arm -> Try_Arm_1 Armed = on, No_Arm = offCode: Smoke _/ -> Siren_On onRE: Notes on using a KC868 as an alarm controller - rubenroucourt - 02-17-2026 I want to add 2, maybe 3 keypads to the board. It’s possible with de GPIO inputs but there are only 3 inputs and you allready need 2 inputs for 1 keypad. Is there an option to add more? Or an extension to have more input ports? RE: Notes on using a KC868 as an alarm controller - admin - 02-18-2026 do you want to use wiegand keypad? which kincony board model you are using? RE: Notes on using a KC868 as an alarm controller - rubenroucourt - 02-18-2026 Yes I would like to use Tuya keypads with wiegand output. I have the Kincony KC868-A16 board. RE: Notes on using a KC868 as an alarm controller - twostar - 02-18-2026 I found that a much easier way to handle things was to buy keypads that did all of the work in the keypad (RFID reader, NFC, PIN, etc) and then just run a true/false signal to the KC868. So the intelligence is in the reader and the KC868 just needs to process the yes/no output signal. RE: Notes on using a KC868 as an alarm controller - rubenroucourt - 02-18-2026 Well that’s the second option I was thinking about, and it’s possible with the Tuya readers so I will buy them and try it in Home Assistant. Thank you! RE: Notes on using a KC868 as an alarm controller - admin - 02-18-2026 KC868-A16 have 4 free GPIO, max support 2pcs wiegand keypad. RE: Notes on using a KC868 as an alarm controller - rubenroucourt - 02-20-2026 I have this board, I can see only 3 gpio ports? RE: Notes on using a KC868 as an alarm controller - admin - 02-20-2026 sorry, my mistake, input wrong, it's 3 free gpio. |