I’m using the Insteon 2852 Leak Sensor with an Insteon 2413U PLM and the OpenHAB 1.7.1 insteonplm binding. When a wet condition is detected, the sensor sends a 0x11 command on group 2 with a secondary command 0x02.
The insteonplm binding device feature specification is…
<feature name="LeakSensorContact">
<message-dispatcher>DefaultDispatcher</message-dispatcher>
<message-handler cmd="0x03" group="1">NoOpMsgHandler</message-handler>
<message-handler cmd="0x11" group="1">OpenedOrClosedContactHandler</message-handler>
<command-handler command="OnOffType">NoOpCommandHandler</command-handler>
<poll-handler>NoPollHandler</poll-handler>
</feature>
Note that the 0x11 message-handler specifies group=“1”. This works for the dry condition which sends an 0x11 on group 1 but not for the wet condition on group 2. I’m not sure how to fix this. The message handlers are indexed by command so I can’t add a second 0x11 entry for group=“2”. If I remove the group=“2” attribute, the group defaults to -1 which doesn’t match either dry or wet and the handler is never called.
Any suggestions?