Hi there
If, like me, you are using this through zigbee home automation integration rather than zigbee2mqtt the following may be useful - adding the device was easy but I couldn’t figure out how to change the code so maybe this is helpful to others:
I wanted to add to this, because everything I’ve found so far seems overly complicated. Below is what I’ve found that works with ZHA. But I’m sure there’s another way. I’m just not fancy.
Go to the ZHA integration and follow scootaash’s steps above to set the alarm code in ZHA. That code is what the Frient keypad will recognize as the code needed to set its various states. You can test this by going to the keypad configuration, entering the code physically on the keypad, selecting the lock, home, unlock buttons, and you should see the state change in the Frient config screen in HA.
While you’re in the keypad configuration click the + button in the Automations group to create a new automation.
Select “Use Device as trigger”
As a test, select “Frient Keypad Alarm control panel armed away” (HINT: You might want to disable your triggerings in Alarmo before doing this otherwise you’ll setoff your alarm. Just disable them and create some simple test triggers.
Under the Action for the trigger scroll down to “Other actions” > Alarmo > then select what you want like “arm”, “disarm”. That will open a dialog where you enter all of the parameters including the arm/disarm codes. It might be possible to have different codes than what you’ve setup in ZHA. You probably don’t want that, but it’s an option. The code you need to enter is the code(s) you’ve setup in Alarmo. I don’t know if there is a way to handle multiple codes. Perhaps. But I’m keeping it simple here and assuming you’re using a single code for all users.
Save
On the keypad type the code you entered in scootaash’s steps, hit whatever button you just programmed for and then go to your Alarmo Card. You should see the alarm is armed, disarmed, whatever.
If you arm, disarm from another device, like your phone, you’ll need to talk back to the Frient keypad to set its state properly. Alarmo doesn’t automagically talk about to the keypad as far as I know. It doesn’t appear you can do this through an Alarmo action, so just setup an automation such that when Alarmo is armed/arming, disarmed, whatever you want, you set the corresponding state on the keypad. Works a treat.