One button press has different codes as a result

Thanks for this awesome gateway.
I struggle to set up rf send commands. When I press the rf remote I get these values:

home/OpenMQTTGateway/433toMQTT {"value":1375,"protocol":1,"length":24,"delay":311}
home/OpenMQTTGateway/433toMQTT {"value":4095,"protocol":29,"length":12,"delay":142}
home/OpenMQTTGateway/433toMQTT {"value":3327,"protocol":10,"length":12,"delay":108}
home/OpenMQTTGateway/433toMQTT {"value":1361,"protocol":1,"length":24,"delay":310}
home/OpenMQTTGateway/433toMQTT {"value":5471,"protocol":1,"length":24,"delay":311}
home/OpenMQTTGateway/433toMQTT {"value":8191,"protocol":29,"length":13,"delay":216}

I only pressed one button though. I did make the switches work with some arduino set up but I don’t know what library I used back then.
The switches are from the company Vivanco. Thanks for your help!

EDIT: I used RCswitch to make them work.

EDIT2: Paste from the serial monitor:

Hey I got a callback 
Storing signal
Creating Json buffer
Min ind: 
10
store code :
5471/2620027
Col: val/timestamp
0:1361/1596644
1:1361/1645284
2:5471/1645448
3:5471/1645474
4:1361/1648307
5:5471/1650359
6:1361/1652452
7:1375/1652510
8:192/2420369
9:1361/2619907
10:5471/2620027
11:5471/1594417
Data from JSON stored
Creating Json buffer
Creating RF buffer
Rcv. RF
LED MNG
isAduplicate?
--don't pub. duplicate--

Hello,

Would it be possible to test with v0.8 version to see if you get the same behaviour.

Alternatively I would Open one basic example from RCSwitch like ReceiveDemo_Advanced.ino to see if I get the same behaviour.

This is what I get from pressing one button:

17:20:56.688 -> Raw data: 9627,379,883,376,869,384,853,371,880,372,873,363,885,372,873,366,878,364,881,362,884,369,876,977,273,348,909,955,294,325,917,322,926,329,914,948,312,306,931,944,316,296,940,312,930,328,926,928,323,
17:20:56.721 -> 
Decimal: 5201 (24Bit) Binary: 000000000001010001010001 Tri-State: 00000FF0FF0F PulseLength: 310 microseconds Protocol: 1
17:20:56.766 -> Raw data: 9626,367,872,358,885,372,871,369,884,364,884,353,892,348,892,358,893,354,886,352,899,347,897,967,286,345,900,955,300,327,921,324,916,322,919,950,315,306,938,930,326,296,934,313,935,310,940,931,326,
17:20:56.788 -> 
Decimal: 5201 (24Bit) Binary: 000000000001010001010001 Tri-State: 00000FF0FF0F PulseLength: 310 microseconds Protocol: 1
17:20:56.854 -> Raw data: 9632,373,872,360,876,365,888,358,880,365,880,368,880,360,888,365,881,348,896,360,888,361,880,972,289,336,913,945,300,324,924,317,930,322,923,946,308,311,931,933,318,302,940,310,945,302,935,932,319,
17:20:56.887 -> 

One remote button press:

home/OpenMQTTGateway/433toMQTT/protocol 1
home/OpenMQTTGateway/433toMQTT/bits 24
home/OpenMQTTGateway/433toMQTT/length 309
home/OpenMQTTGateway/433toMQTT 5204
home/OpenMQTTGateway/433toMQTT/protocol 1
home/OpenMQTTGateway/433toMQTT/bits 24
home/OpenMQTTGateway/433toMQTT/length 309
home/OpenMQTTGateway/433toMQTT 5215

I think the remote of the switches is a bit defect. So when I press a button multiple commands are sent. All good now. Thanks for the help @1technophile!

Hello,

seems like I might have same or similar problem. One button on (common) RF AC main controlled socket remote is translated into two received codes. I know I have 10 position DIP switch to configure network and device (5 network, 5 device). I’m guessing repeating “16766303” could be subnet address??? Or maybe is my ESP is overclocked and sampling much faster than it should :smiley:

Does this mean I’ll not be able to use OpenMQTTGateway? I cannot imagine sending two messages that fast it will be received as one message in controlled device.

Below is my capture, in most cases I’ll receive non …303 code followed immediately by …303 one. (Sometimes I’ll get just one part, still working on better antenna design and receiver placement.)

...
home/OpenMQTTGateway/433toMQTT {"value":16766276,"protocol":1,"length":24,"delay":147}
home/OpenMQTTGateway/433toMQTT {"value":16766303,"protocol":1,"length":24,"delay":149}
home/OpenMQTTGateway/433toMQTT {"value":16766273,"protocol":1,"length":24,"delay":147}
home/OpenMQTTGateway/433toMQTT {"value":16766276,"protocol":1,"length":24,"delay":148}
home/OpenMQTTGateway/433toMQTT {"value":16766303,"protocol":1,"length":24,"delay":149}
home/OpenMQTTGateway/433toMQTT {"value":16766273,"protocol":1,"length":24,"delay":147}
home/OpenMQTTGateway/433toMQTT {"value":16766276,"protocol":1,"length":24,"delay":147}
home/OpenMQTTGateway/433toMQTT {"value":16766273,"protocol":1,"length":24,"delay":147}
home/OpenMQTTGateway/433toMQTT {"value":16766303,"protocol":1,"length":24,"delay":148}
home/OpenMQTTGateway/433toMQTT {"value":16766276,"protocol":1,"length":24,"delay":147}
home/OpenMQTTGateway/433toMQTT {"value":16766273,"protocol":1,"length":24,"delay":148}
home/OpenMQTTGateway/433toMQTT {"value":16766303,"protocol":1,"length":24,"delay":149}