by jonmtl » Fri Aug 18, 2017 4:19 am
Hello,
Good news! With your guidance, I was able to make it work.
So here are the steps that I had to do:
First, I’ve enabled all the relay emulation module on my AD2PI in the Alarm Decoder Web App (Settings -> Advanced -> Setup)
Then on my alarm system keyboard, I’ve gone into programming mode #### + 800
-The first step is to assign a function key to a device activation
--> *57
--> Press the function key you want to assign (D)
--> Press * to continue
--> Assign this key to 07 (Device Activation / Change Dev State)
--> Exit
Then you need to map the output. In my case, Output # 1 to 4 are already used, same for Module Address 12. So I will use output 5/address 13.
--> *79
--> Select Output number: 05
--> Output Type 1 (Relay)
--> Module Addr: 13
--> Position: 1
--> Exit
Then you need to define the output action
--> *80
--> Select an unused output function number. In my case "07"
--> Activate by: Zone Type (2)
--> Enter the Zone Type function key (66)
--> For the Output Action, I've selected close for 2 secs (1)
--> Output Number (I use the same as the Output function number: "07"
--> Exit
Voilà!
Now when I press on the D Key, I get from the AD2PI stream:
Timestamp Message
2017-08-18 08:15:47 !REL:13,01,00
2017-08-18 08:15:45 !REL:13,01,01
Now in OpenHAB, I've added an item:
Contact lightON "Function Button D [%d]" {alarmdecoder="REL:13,01#contact"}
And I've added a simple rule:
rule "Button D"
when
Item lightON changed from CLOSED to OPEN
then
sendCommand(Hue_light1, ON)
end
If you have questions, don't hesitate!
Cheers,
Jonathan