Copyright 2011-2020, RFXCOM
RFXtrx Version 5.68
page 50 / 70
15.5. Sonoff
All Sonoff 433MHz RF receiver devices can be controlled by the RFXtrx433/E/XL using Lighting4
with a pulse timing of 370usec.
The 4 button Sonoff Lighting4 remote code:
The last digit indicates the button:
A
0001 hex 1
B
0010 hex 2
C
0100 hex 4
D
1000 hex 8
The first 5 digits are the ID. Here an example of ID=D216B button=A
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 1
Code = D216B1 decimal:13768369
S1- S24 = 1101 0010 0001 0110 1011 0001
Pulse = 370 usec
Signal level = 8 -56dBm
The Lighting4 commands can be used for example to control the 4 relays in a Sonoff 4CH Pro
https://www.banggood.com/SONOFF-4CH-Pro-10A-2200W-2_4Ghz-433MHz-RF-InchingSelf-
LockingInterlock-Smart-Home-p-1153324.html
15.6. PT2262 and EV1527 oscillator resistors accepted
For the PT2262 use a 3M3 oscillator resistor
For the EV1527 a 220K, 270K or 390K oscillator resistor can be used.