Thank you for the hard work to publish the 2.x alarmdecoder binding. I am excited to see this migration as it is one of two bindings left that are running on 1.x.
I attempted to migrate to the Alarm Decoder binding 2.5.5 this morning and had to roll back. I encountered a few issue or features that may be missing?
- alarmReady Contact:
Before the migration I noticed there was no contact/switch for alarmReady in the keypad. In the 1.x binding there was a contact configured. In my rules I utilize that contact for being conditional before the automation takes place. I do not see that as an option in the ReadMe file.
Contact alarmPanelContactReady "panel ready: [%d]" (gPanel) {alarmdecoder="KPM:00#contact,bit=17"}
I could live without the contact and I can supplement it with a rule if need be and was not a deal breaker.
- Keypad Control Panel on IOS sitemap:
While migrating the binding I moved the control panel that was available in the 1.x binding to the new binding utilizing the intCommand in the keypad. Following this migration the mappings became like a switch instead of momentary buttons like in the previous binding. For example if I hit 1 on the keypad in the sitemap a 1 appeared next to the buttons (switch) and the button did not release. In the previous binding it released the value when the key was pressed. It is impossible to have a duplicate digit in your access code that is reused on the same line.
Number alarmPanelLine1 "" (gPanel) {alarmdecoder="SEND#1=1,2=2,3=3", autoupdate="false"}
Number alarmPanelLine2 "" (gPanel) {alarmdecoder="SEND#4=4,5=5,6=6", autoupdate="false"}
Number alarmPanelLine3 "" (gPanel) {alarmdecoder="SEND#7=7,8=8,9=9", autoupdate="false"}
Number alarmPanelLine4 "" (gPanel) {alarmdecoder="SEND#10=*,0=0,11=POUND", autoupdate="false"}
Updated configuration:
Number alarmPanelLine1 "" (gPanel) {channel="alarmdecoder:keypad:ad1:keypad1:intcommand" }
This was not a deal breaker either since the keypad is hardly ever used… It is controlled mainly with homekit/specific buttons Home/Away/Disarm.
- Relays cannot be controlled from the new binding:
I utilize several virtual relays in my alarmdecoder to set off zones for example when I have a water leak with a Zwave device. With these virtual relays I trigger 24 hours zones so I do not sleep through a text message in the middle of night when there is a leak in the basement. This was never a documented feature in the 1.x binding but it did work.
Item Configuration:
Number alarmWaterDetect "Water Alarm Panel" {alarmdecoder="SEND#1001=L411\r,1002=L410\r", autoupdate="false"}
Associated Rule:
// Rules for water sensor contact message
rule "Send email on Water Sensor Contact"
when
Item water_heater_water_2_sensor changed to ON or Item sump_water_3_sensor changed to ON or Item washer_water_4_sensor changed to ON
then
logInfo ("log", "Rule=Water Detected!!")
sendCommand(Main_Water, ON)
alarmWaterDetect.sendCommand(1001)
mailActions.sendMail (mailTo, "Check High water or Water Leak!", "Check for water leak!!")
mailActions.sendMail (mailTo2, "Check High water or Water Leak!", "Check for water leak!!")
end
// Rule to clear alarm panel once water sensor is no longer in alarm
rule "Clear alarm panel when water no longer present"
when
Item water_heater_water_2_sensor changed to OFF or Item sump_water_3_sensor changed to OFF or Item washer_water_4_sensor changed to OFF
then
if(water_heater_water_2_sensor.state == OFF && sump_water_3_sensor.state == OFF && washer_water_4_sensor.state == OFF) {
logInfo ("log", "Rule=Clear Relay 41 water no longer Present!!")
alarmWaterDetect.sendCommand(1002)
}
end
When I tried to enter the relay in CommandMapping (To use the legacy intCommand structure) in the keypad thing openhab2 said it was an illegal value. When I utilize the keypad command string and substituted 1001 for L411\r in the rule I received a warning for an illegal value.
Without being able to control relays from alarm decoder I had to roll back to the 1.x version of the binding. Am I doing something wrong or a feature that was left out? The ReadMe file only talks about specific keypad commands where this would be an alarmdecoder command?
I am using LRR (I know you were looking for somebody to test) but I backed out before seeing if it worked. I can try again once we can get relays working.
Thanks,
Dan