Trying to integrate a China alarm deeper to the Vera has given some interesting insights, and possibly some hope that it will be doable. This relates to some extent to the thread: KERUI Siren integration - - USB RFXtrx Transceiver - Ezlo Community where the Kerui Siren + FOB (remote) is discussed.
First of all I have Kerui smoke detectors. They actually register in Vera but as door sensors. This is not a big deal, except that when they trigger, they trigger for Burglary instead of Fire, which is not really good.
I think that with some guidance, I could easily change this myself in the plug-in, in a similar way done earlier with Kerui motion sensors.
Each smoke detector creates two devices: RFX Door D/F871A and
RFX Door D/F871A 2 (not sure why). It seems only one of them is the actual smoke detector, the other one is probably created by some response code sent.
They are detected as device altid: DS/D/F871A
Looking in the logs lots of things are going on when the smoke detector triggers, I receive at least the following looking in the Lua log:
09 13 00 54 F8 71 A9 01 4B 50
09 13 00 55 F8 71 A9 01 4A 50
09 13 00 53 F8 71 A9 01 4C 50
09 13 00 59 F8 71 A9 01 4A 60
09 13 00 5A F8 71 A9 01 4C 60
09 13 00 5B F8 71 A9 01 4B 60
09 13 00 61 F8 71 A9 01 4A 40
Looking in RFXmgr backs this story up, one trigger of the smoke detector receives the following packets:
2019-07-26 03:49:44:977
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 31
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 329 usec
Signal level = 3 -96dBm
2019-07-26 03:49:45:097
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 32
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 331 usec
Signal level = 4 -88dBm
2019-07-26 03:49:45:216
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 33
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 328 usec
Signal level = 4 -88dBm
2019-07-26 03:49:45:336
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 34
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 329 usec
Signal level = 4 -88dBm
2019-07-26 03:49:45:467
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 35
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 331 usec
Signal level = 3 -96dBm
2019-07-26 03:49:45:601
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 36
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 329 usec
Signal level = 4 -88dBm
2019-07-26 03:49:45:747
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 37
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 330 usec
Signal level = 3 -96dBm
2019-07-26 03:49:45:892
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 38
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 329 usec
Signal level = 4 -88dBm
2019-07-26 03:49:46:039
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 39
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 330 usec
Signal level = 3 -96dBm
2019-07-26 03:49:46:169
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 40
Code = F871A9 decimal:16282025
S1- S24 = 1111 1000 0111 0001 1010 1001
Pulse = 329 usec
Signal level = 3 -96dBm
What would be needed to make this detected as a smoke detector?
Secondly, I tried som stuff with the Kerui FOB (it would be super nice to be able to interact with the Kerui Alarm from Vera and vice versa).
Remote FOB creates for arm/disarm:
Binary switches:
LS/L5.2/0746E6/06
LS/L5.2/0746E6/05
Interestingly enough, for home arm it creates:
RFX Remote:
RC/L5.2/0746E6
where “Bright” works as “Home arm”
Interesting behaviour is that when turning on the switch nothing happens, but turning it off emulates the button press of the FOB.
The logs from RFXmgr looks like this:
Arm:
2019-07-26 03:52:37:617
Packettype = Lighting5
subtype = BBSB new
Sequence nbr = 51
ID = 0746E6 decimal:476902
Unit = 6
Command = Off
Signal level = 3 -96dBm
Disarm:
2019-07-26 03:58:53:112
Packettype = Lighting5
subtype = BBSB new
Sequence nbr = 121
ID = 0746E6 decimal:476902
Unit = 5
Command = Off
Signal level = 4 -88dBm
I don’t get why “Arm”, “Disarm” and “Home arm” behaves differently from the Vera perspective, but it would be super nice to have this detected as a “Security remote” rather than three different objects with a bit strange behavior. Again, if pointed in the right direction, I could possibly implement this myself, but I would need some guidance from someone more experienced with the code.
(Hoping for some comments here from @tinman maybe.
This would together with the motion sensor already working, be a good integration for the Kerui Alarm panel + devices, this is probably one of the most common chinese alarms, so it would kind of make sense. Also it makes it possible to trigger the Kerui alarm from Vera to send custom sms and make phone calls for actions initiated in Vera which really adds some value.