I actually ported @rgreenpc ‘s Arduino code a few days ago for him. It’s an older version, so may not be for everyone, but does demonstrate the code changes that are required.
Hubitat/home-alarm-device-type.groovy at master · ogiewon/Hubitat · GitHub