Homey Community Forum

Help encoding a 433Mhz signal

rf-433
#1

Hello all,

I’m trying to modify the following https://github.com/athombv/nl.aldi to support the Lidl similar type set (TR-502MSV). From the internet I’ve managed to grab the protocol as follows:

 # this config file was automatically generated
 # using WinLIRC 0.6.5 (LIRC 0.6.1pre3) on Tue Jan 29 15:51:17 2008
 #
 # contributed by Kuhlie
 #
 # brand: Lidl / WH Mandolyn Int'l Ltd.
 # model: TR-502MSV
 # supported devices: RC-402 and RC-402DX
 #
 #
 # Send one of the on-signals multiple times while pressing the 'learn in' button on the device to learn.
 # This is because of the random 'house code'.

 start remote

   name lidl_remote
   flags RAW_CODES
   eps 25
   aeps 100

   ptrail 0
   repeat 0 0
   gap 73593


       start raw_codes

           name 1_on
               610 616 1297 613 1299 613
              1299 612 1299 625 1300 612
              1300 611 1299 612 1300 624
              1299 613 1299 613 1299 612
              1299 624 1286 613 1273 613
              1258 1256 629 626 1286 611
              1274 611 1261 1255 628

           name 1_off
               610 617 1299 607 1297 614
              1300 612 1298 626 1299 613
              1301 611 1298 613 1301 625
              1301 611 1298 610 1300 611
              1300 626 1301 613 1298 612
              1300 613 1299 624 1299 610
              1300 613 1299 613 1299

           name 2_on
               611 615 1297 611 1300 612
              1299 612 1300 626 1295 612
              1300 612 1299 612 1301 622
              1299 613 1300 612 1300 611
              1299 1296 627 613 1272 614
              1260 1257 628 621 1272 613
              1261 1254 627 1258 627

           name 2_off
               608 618 1298 612 1301 610
              1299 612 1299 626 1299 611
              1296 611 1298 613 1298 626
              1300 611 1300 612 1299 612
              1300 1309 628 612 1301 606
              1299 612 1299 624 1285 611
              1284 1295 627 613 1301

           name 3_on
               609 618 1299 612 1300 614
              1299 611 1297 625 1299 612
              1299 613 1299 611 1300 625
              1300 613 1300 612 1300 612
              1299 625 1273 1270 627 613
              1261 1256 629 626 1299 613
              1299 612 1299 611 1296

           name 3_off
               606 616 1296 612 1299 612
              1299 612 1301 623 1300 612
              1297 613 1300 611 1299 626
              1300 612 1300 613 1300 613
              1299 625 1285 1296 629 612
              1300 612 1298 625 1286 612
              1272 611 1260 1257 628

           name 4_on
               609 620 1295 611 1300 611
              1299 610 1297 626 1300 611
              1298 611 1300 612 1299 626
              1300 613 1300 611 1298 613
              1300 1281 629 1269 628 613
              1260 1257 627 626 1285 611
              1284 1297 629 612 1300

           name 4_off
               609 619 1295 612 1298 612
              1299 612 1299 623 1299 612
              1298 612 1297 611 1299 626
              1299 611 1301 613 1301 612
              1299 1297 629 1291 631 610
              1299 610 1300 626 1273 613
              1259 1256 628 1257 626

           name bright
               609 618 1298 608 1300 612
              1296 612 1298 626 1298 612
              1299 612 1299 611 1297 624
              1300 610 1299 611 1299 610
              1301 1294 629 1295 629 612
              1298 613 1299 1295 628 612
              1272 612 1260 1255 629

           name dim
               609 619 1297 611 1301 612
              1297 613 1299 625 1300 611
              1301 613 1299 611 1298 624
              1299 611 1301 611 1299 614
              1300 1283 629 1271 627 612
              1257 1257 628 1310 628 612
              1298 612 1300 613 1300

           name all_on
               609 618 1297 612 1301 613
              1300 611 1299 626 1298 612
              1295 613 1300 610 1300 624
              1299 613 1298 612 1299 612
              1299 1271 628 1257 627 1258
               629 1258 627 624 1301 610
              1298 612 1301 611 1298

           name all_off
               609 617 1297 610 1299 613
              1298 612 1298 625 1300 612
              1299 612 1300 613 1299 626
              1299 610 1299 614 1300 611
              1301 1284 627 1284 626 1296
               628 613 1300 626 1285 612
              1273 612 1258 1257 627

       end raw_codes

 end remote 

I’m unsure how to code the signal to use in the /apps.json file. Should I try & make it as general as possible to encode one signal or encode six signals?

Thanks,

Leo

#2

I believe I’ve managed to find the correct signal definition:

Working codes for TR-502MSV

All on/off
"sof": [
    627
  ],
  "eof": [],
  "words": [
    [
      1362,
      686
    ],
    [
      683,
      1362
    ]
  ],
  "interval": 10000,
  "sensitivity": 0.5,
  "repetitions": 20,
  "minimalLength": 20,
  "maximalLength": 20
}

Might help others…

Regards,

#3

Hello Leo838,

How can you use these codes to send signals with a Homey-app? I’ve got a Wave hood with a remote that functions on 433.92 Mhz: 3 fan-speeds, light on/off, completely off. I’d like to control it with my Homey.
The same for my Faber gasfire and some other light-sets that all function on 433,92 Mhz.

Thanks!!