How to create correct 433MHz signal.json file

I have a 433MHz dimmer controller and i want add it to my homey app.
My homey app prj path “/.homeycompose/signals/433/dimmer_signal.json”

{
  "sof": [6000],  
  "sync": [
    400, 400, 
    400, 400,
    400, 400, 
    400, 400, 
    400, 400, 
    400, 400, 
    400, 400, 
    400, 400  
  ],
  "eof": [200,1000],  
  "words": [
    [0, 1],  
    [1, 0]  
  ],
  "bitlength": 8,  
  "baudrate": 1200,  
  "interval": 1000,  
  "sensitivity": 0.5,  
  "minimalLength": 10,  
  "maximalLength": 10,  
  "prefixData": [],
  "postfixData": [],
  "packing": false,  
  "txOnly": false,  
  "manchester": {
    "ManchesterUnit": 400  
  }
}

I use a logic analyzer to analyze the specific content of the 433MHz protocol emitted by my dimmer.



the 433MHz protocol(Manchester coding) data as below:
Preamble+Sync+Uid&Data+Stop

Preamble:

Sync:

Uid&&Data:

Stop:

400us L → 400us H =0(Low Level)
400us H → 400us L =1(High Level)

I also measured the 433MHz signal from my remote control through Homey Developer Tools, and the data is as follows (probably repeated several times).

420,838,836,826,833,834,833,836,416,416,833,834,834,835,834,833,822,427,416,417,428,398,438,815,853,397,428,835,832,416,415,417,416,836,416,426,824,826,843,417,418,406,426,837,824,842,832,833,414,417,833,416,427,792,436,404,425,412,423,404,841,415,417,417,416,835,834,417,418,834,415,416,843,823,844,823,833,835,418,416,426,407,427,408,833,426,408,834,416,416,844,824,417,416,418,416,427,407,844,405,417,417,417,416,417,418,418,418,418,417,427,406,416,417,417,416
404,838,836,824,845,826,835,835,417,417,832,843,823,834,836,836,832,417,426,407,427,406,416,833,834,426,408,843,823,429,409,417,417,822,436,406,844,823,834,417,417,417,416,834,835,835,833,832,427,409,834,416,416,835,396,414,410,424,415,416,831,424,415,415,416,835,835,405,436,814,426,406,855,822,833,835,834,835,415,416,418,417,417,426,825,417,417,833,417,417,836,836,405,427,416,417,417,416,834,426,397,427,417,407,437,406,426,406,427,396,437,405,416,416,419,417
418,824,846,824,835,832,832,844,407,428,814,833,855,824,833,833,833,417,416,417,417,416,417,834,834,418,416,834,844,407,416,418,417,834,417,416,833,833,835,416,417,418,406,842,844,825,844,824,426,406,844,407,417,812,412,424,412,414,426,414,832,415,425,409,417,836,834,416,415,833,416,427,823,835,833,846,814,832,436,407,427,407,427,407,844,405,426,823,429,408,834,835,417,417,417,417,416,415,842,408,418,416,418,416,416,417,418,418,417,416,416,416,416,417,416,417,10,1
418,823,840,834,834,833,832,832,427,416,836,826,833,834,834,832,835,416,417,418,416,417,416,823,854,406,427,826,836,416,417,417,416,833,416,417,836,832,833,417,426,408,416,833,834,835,825,843,416,416,833,416,418,803,426,415,426,394,436,405,842,415,414,415,415,842,831,418,415,833,417,417,833,834,843,826,835,832,417,416,417,415,416,428,824,416,417,834,407,426,834,832,426,408,428,398,437,397,843,416,427,406,427,407,417,417,417,427,406,417,417,427,407,416,427,407
419,848,815,829,850,818,847,830,417,417,835,836,826,835,835,832,843,408,416,417,417,417,416,832,835,415,416,845,825,418,417,426,407,833,417,406,853,825,844,407,416,427,417,824,835,834,834,832,418,416,845,406,415,834,396,415,413,425,414,415,832,426,405,427,405,843,824,427,415,824,437,396,844,833,832,834,832,834,417,416,417,416,417,416,836,417,417,836,415,417,833,835,417,417,417,417,417,416,834,416,418,417,416,417,416,417,428,397,437,407,428,407,415,417,416,416
426,834,833,835,833,834,834,833,415,417,833,833,832,835,844,824,834,416,417,416,417,417,417,835,835,417,417,833,833,416,426,409,416,835,416,415,836,832,834,416,416,418,417,833,834,833,844,827,427,406,833,415,416,835,395,423,403,424,414,426,832,415,405,425,415,835,833,417,416,835,417,417,835,835,832,834,832,833,416,417,426,398,438,397,852,406,417,837,417,418,833,836,416,415,415,417,416,417,833,416,427,406,416,417,419,418,417,417,416,416,416,428,408,427,407,416
436,822,844,821,833,840,830,842,415,406,843,837,834,826,834,845,822,414,425,415,414,417,416,834,844,407,426,823,836,418,417,418,417,835,415,416,842,823,834,416,427,408,428,823,832,835,836,837,405,427,834,416,416,812,415,425,402,422,414,404,862,405,416,416,416,833,834,415,427,823,416,416,844,834,826,825,845,834,415,417,417,415,417,416,832,426,409,835,417,417,833,833,417,406,437,408,427,408,845,396,436,407,427,407,428,407,416,417,416,417,417,416,416,416,417,417
420,839,827,835,835,824,843,825,425,415,832,835,832,836,835,834,822,427,416,417,416,417,418,833,843,407,418,836,824,426,415,416,416,835,416,417,834,825,853,407,426,407,417,835,836,835,834,824,426,415,834,415,415,833,396,413,416,424,413,416,830,425,403,426,415,833,833,419,417,832,418,416,843,824,843,823,833,834,419,418,417,417,415,417,833,427,406,834,417,417,843,827,417,416,415,416,417,417,835,427,407,417,416,428,406,417,406,425,428,406,436,398,427,408,427,409
420,826,834,836,843,826,825,844,416,416,833,833,834,832,842,824,842,408,417,418,418,417,417,836,832,417,416,834,835,416,416,416,426,826,415,416,836,834,825,426,416,416,416,833,833,846,815,833,437,398,845,406,438,815,404,405,428,406,426,404,832,433,414,415,414,830,841,416,416,833,417,418,834,833,835,824,835,844,415,415,405,426,416,407,853,397,436,823,417,428,827,835,418,414,415,418,416,417,833,417,417,416,427,407,426,407,426,416,406,428,417,418,408,419,416,417
437,820,845,826,835,835,824,847,406,418,847,822,838,837,826,841,830,409,419,418,418,418,417,834,835,407,437,814,843,417,416,417,416,834,415,416,844,826,833,416,417,416,416,835,835,833,847,815,416,428,834,416,416,834,386,427,405,417,426,415,842,393,434,404,436,813,842,405,425,841,417,415,832,836,825,842,831,834,417,415,426,408,417,417,834,416,427,823,416,417,833,833,427,407,428,408,427,407,842,407,416,418,418,416,417,417,418,416,417,416,417,427,418,406,416,426
415,831,838,840,822,842,842,814,425,415,843,824,832,834,834,837,835,418,405,427,418,415,416,824,855,406,415,834,833,416,416,427,407,843,406,427,824,832,844,398,437,408,417,834,834,833,833,835,417,416,835,417,417,835,395,405,422,415,426,406,842,413,415,425,415,835,833,415,415,834,406,425,834,834,833,833,833,835,426,407,426,408,427,408,835,416,417,832,417,416,843,825,429,407,416,416,417,428,825,416,417,416,417,416,418,417,418,425,398,427,416,406,437,406,437,386
414,842,833,825,845,824,834,833,426,406,833,845,822,836,844,816,852,405,424,415,417,417,415,835,832,417,417,833,836,416,417,415,416,833,427,406,834,833,835,427,406,426,409,832,835,844,823,832,439,387,855,397,426,833,396,414,424,415,415,416,833,415,415,423,415,833,832,416,425,826,427,407,834,835,832,831,836,836,417,415,406,424,427,407,844,396,437,825,428,406,834,833,427,408,417,416,416,417,833,427,408,418,416,418,416,416,426,407,427,407,427,408,417,417,417,416
426,832,831,828,839,832,832,843,404,425,832,827,843,833,832,833,824,426,416,418,415,417,427,825,832,416,427,816,854,407,428,406,426,823,416,417,835,832,834,427,408,428,407,834,833,833,844,824,416,416,835,416,417,804,427,416,414,415,413,425,822,426,425,395,437,823,843,415,416,824,425,417,832,832,834,843,825,833,426,408,417,417,416,414,844,408,417,843,408,417,833,844,408,417,417,415,417,417,843,408,426,398,446,386,437,408,427,417,417,406,417,418,417,416,418,417
411,840,834,835,825,835,834,826,437,396,853,824,836,833,832,833,836,417,417,425,407,415,428,826,836,414,426,825,834,418,415,417,417,834,418,415,833,834,834,405,447,388,437,815,853,823,833,834,415,417,844,406,417,815,415,415,425,404,426,415,830,416,414,426,416,835,833,415,416,834,416,418,823,844,843,822,842,825,416,416,427,406,428,407,834,427,406,843,408,427,824,832,427,408,416,417,428,407,834,416,416,417,417,426,407,427,407,428,407,418,416,415,428,397,447,397
419,835,836,826,843,828,840,836,410,419,835,835,827,843,826,833,844,406,427,398,438,406,418,833,835,416,415,834,833,417,417,427,406,843,406,418,843,827,835,416,416,417,417,843,825,835,832,833,418,417,844,407,416,815,415,412,413,424,412,414,843,415,416,416,414,835,834,417,417,824,426,416,836,833,842,834,824,832,416,417,416,427,408,417,833,416,428,824,427,406,845,826,416,417,417,418,417,416,833,415,416,418,416,416,417,426,417,406,427,416,419,408,418,416,418,416
435,822,841,822,834,845,835,823,427,415,822,842,833,835,822,843,833,416,416,427,406,417,417,835,834,417,417,832,833,417,428,406,417,836,417,416,846,813,842,417,426,407,417,834,836,836,835,825,426,416,833,406,426,833,394,411,422,414,413,425,832,415,406,425,416,833,843,407,417,836,417,416,833,836,832,843,826,831,417,417,417,417,416,417,833,416,417,834,418,426,825,835,416,418,417,416,417,417,835,416,416,416,417,418,417,416,417,416,418,417,416,416,416,417,417,416

But when I compile, I keep getting the “word_interval_out_of_bounds” error. I’ve been stuck in there for a long time. Could you help me change my signal definition file.

1 Like

Maybe this helps a bit, Chuck:

Hi Peter,
I watched it. But my dimmer sends a Manchester coded 433MHz signal, and I saw that the description of parameters “agc”,“sof” and “eof” in the documentation mentioned that if you use Manchester coded “1” and “0” to fill in instead of filling in the time interval, But when I use “1” and “0” for padding, it says “sof” is out of bounds at compile time, I think this is because the Manchester encoding is not specified. Are there any parameters set to Manchester encoding?