Here is my NR automation to capture RF codes from remotes.
[{"id":"c653136f.dfffc8","type":"api-call-service","z":"75464936.35888","name":"Outdoor_light_strip_toogle","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"switch","service":"toggle","areaId":[],"deviceId":[],"entityId":["switch.outdoor_light_strip"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":870,"y":615,"wires":[[]]},{"id":"048735cb8d988652","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":405,"wires":[[]]},{"id":"361d47109781e192","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":435,"wires":[[]]},{"id":"c94e5ffaba474e68","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":465,"wires":[[]]},{"id":"0f230e263a29118c","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":495,"wires":[[]]},{"id":"56aed042fdca012a","type":"api-call-service","z":"75464936.35888","name":"Bedroom Cabinet Spots","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bedroom_cabinet_spots_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":525,"wires":[[]]},{"id":"3be6297003da7822","type":"api-call-service","z":"75464936.35888","name":"Bedroom Off","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":["sovevaerelse"],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":820,"y":555,"wires":[[]]},{"id":"700dd972c7c6c4c2","type":"api-call-service","z":"75464936.35888","name":"Bedroom Off","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":["sovevaerelse"],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":820,"y":855,"wires":[[]]},{"id":"821c7a739621d319","type":"api-call-service","z":"75464936.35888","name":"Bedroom Cabinet Spots","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bedroom_cabinet_spots_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":825,"wires":[[]]},{"id":"4674a6db961a02a8","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":795,"wires":[[]]},{"id":"1b81b3a3434e9aab","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":765,"wires":[[]]},{"id":"1232c95134b1ac96","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":735,"wires":[[]]},{"id":"a7f8bdfbfec2daf0","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":705,"wires":[[]]},{"id":"5be243b22579972f","type":"server-events","z":"75464936.35888","name":"Catch RF codes","server":"541ade28.b4a62","version":2,"eventType":"esphome.rf_code_received","exposeToHomeAssistant":false,"eventData":"","haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"}],"event_type":"","x":110,"y":360,"wires":[["084697be500b2b0c"]]},{"id":"8e392114e00433f1","type":"switch","z":"75464936.35888","name":"split by button","property":"$substring(payload.event.code,-1,1)","propertyType":"jsonata","rules":[{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"c","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"false","repair":false,"outputs":8,"x":620,"y":510,"wires":[["048735cb8d988652"],["361d47109781e192"],["c94e5ffaba474e68"],["0f230e263a29118c"],["56aed042fdca012a"],["3be6297003da7822"],[],["c653136f.dfffc8"]]},{"id":"01018699ab50ae9b","type":"switch","z":"75464936.35888","name":"split by button","property":"$substring(payload.event.code,-1,1)","propertyType":"jsonata","rules":[{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"c","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"false","repair":false,"outputs":8,"x":605,"y":810,"wires":[["a7f8bdfbfec2daf0"],["1232c95134b1ac96"],["1b81b3a3434e9aab"],["4674a6db961a02a8"],["821c7a739621d319"],["700dd972c7c6c4c2"],[],["adb20a1.6c93f78"]]},{"id":"084697be500b2b0c","type":"switch","z":"75464936.35888","name":"Split by receiver id","property":"payload.event.device_id","propertyType":"msg","rules":[{"t":"eq","v":"b8c602623079b5886c3811a9718983e4","vt":"str"},{"t":"eq","v":"3a50d2409016ea5241c71fbd832c9a26","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":300,"y":360,"wires":[["0b066424bf7cfe22"],["3852968a1c53f033"]],"outputLabels":["Living room receiver","Bedroom receiver"]},{"id":"0b066424bf7cfe22","type":"switch","z":"75464936.35888","name":"Split by remote id","property":"payload.event.code","propertyType":"msg","rules":[{"t":"cont","v":"0051","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":300,"y":195,"wires":[["a29bd65e0b9892ce"]]},{"id":"a29bd65e0b9892ce","type":"switch","z":"75464936.35888","name":"split by button","property":"$substring(payload.event.code,-4,4)","propertyType":"jsonata","rules":[{"t":"eq","v":"4551","vt":"str"},{"t":"eq","v":"4554","vt":"str"},{"t":"eq","v":"5151","vt":"str"},{"t":"eq","v":"5154","vt":"str"},{"t":"eq","v":"5451","vt":"str"},{"t":"eq","v":"5454","vt":"str"},{"t":"eq","v":"5511","vt":"str"},{"t":"eq","v":"5514","vt":"str"}],"checkall":"false","repair":false,"outputs":8,"x":620,"y":195,"wires":[["84321af00eb5c7aa"],["f89f71e43176a995"],["88975914354c2840"],["5057a5b9d0bbefb4"],[],[],[],[]],"outputLabels":["A on","A off","B on","B off","C on","C off","D on","D off"]},{"id":"84321af00eb5c7aa","type":"api-call-service","z":"75464936.35888","name":"Set lava lamp status to on","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.lava_lamp"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":105,"wires":[[]]},{"id":"f89f71e43176a995","type":"api-call-service","z":"75464936.35888","name":"Set lava lamp status to off","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.lava_lamp"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":135,"wires":[[]]},{"id":"88975914354c2840","type":"api-call-service","z":"75464936.35888","name":"Set tesla coil status to on","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.tesla_coil"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":165,"wires":[[]]},{"id":"5057a5b9d0bbefb4","type":"api-call-service","z":"75464936.35888","name":"Set tesla coil status to off","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.tesla_coil"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":195,"wires":[[]]},{"id":"adb20a1.6c93f78","type":"api-call-service","z":"75464936.35888","name":"Outdoor_light_strip_toogle","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"switch","service":"toggle","areaId":[],"deviceId":[],"entityId":["switch.outdoor_light_strip"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":870,"y":915,"wires":[[]]},{"id":"5db0825bf0160462","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":825,"y":1005,"wires":[[]]},{"id":"9af8d6381ca40e88","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":825,"y":1035,"wires":[[]]},{"id":"e146a40eb00eb4b1","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":815,"y":1065,"wires":[[]]},{"id":"d82cd3b65cab7cb1","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":815,"y":1095,"wires":[[]]},{"id":"b3ceeeed2169ec9d","type":"api-call-service","z":"75464936.35888","name":"Bedroom Cabinet Spots","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bedroom_cabinet_spots_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":845,"y":1125,"wires":[[]]},{"id":"dba6e9a180025bd1","type":"api-call-service","z":"75464936.35888","name":"Bedroom Off","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":["sovevaerelse"],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":805,"y":1155,"wires":[[]]},{"id":"8c43e1ad7aa004d0","type":"switch","z":"75464936.35888","name":"split by button","property":"$substring(payload.event.code,-1,1)","propertyType":"jsonata","rules":[{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"c","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"false","repair":false,"outputs":8,"x":605,"y":1110,"wires":[["5db0825bf0160462"],["9af8d6381ca40e88"],["e146a40eb00eb4b1"],["d82cd3b65cab7cb1"],["b3ceeeed2169ec9d"],["dba6e9a180025bd1"],[],["cc766891.585dd"]]},{"id":"e10329224554e7d4","type":"switch","z":"75464936.35888","name":"split by button","property":"$substring(payload.event.code,-1,1)","propertyType":"jsonata","rules":[{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"c","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"false","repair":false,"outputs":8,"x":605,"y":1410,"wires":[["b2dca448558c0aa0"],["0b78590ddd274b3e"],["dcda5a32b70c427e"],["8b0e9a575d6d092e"],["7853feb9eef83a4a"],["c09cdf146d162946"],[],["144f01bf7a6c3bdc"]]},{"id":"b2dca448558c0aa0","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":1305,"wires":[[]]},{"id":"0b78590ddd274b3e","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Window","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_window_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":1335,"wires":[[]]},{"id":"dcda5a32b70c427e","type":"api-call-service","z":"75464936.35888","name":"Bed Spot Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_spot_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":1365,"wires":[[]]},{"id":"8b0e9a575d6d092e","type":"api-call-service","z":"75464936.35888","name":"Bed Lamp Wall","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bed_lamp_wall_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":1395,"wires":[[]]},{"id":"7853feb9eef83a4a","type":"api-call-service","z":"75464936.35888","name":"Bedroom Cabinet Spots","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":["light.bedroom_cabinet_spots_relay"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":1425,"wires":[[]]},{"id":"c09cdf146d162946","type":"api-call-service","z":"75464936.35888","name":"Bedroom Off","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":["sovevaerelse"],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":820,"y":1455,"wires":[[]]},{"id":"144f01bf7a6c3bdc","type":"api-call-service","z":"75464936.35888","name":"Outdoor_light_strip_toogle","server":"541ade28.b4a62","version":5,"debugenabled":false,"domain":"switch","service":"toggle","areaId":[],"deviceId":[],"entityId":["switch.outdoor_light_strip"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":870,"y":1515,"wires":[[]]},{"id":"541ade28.b4a62","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
The 4 remotes with the same receiver id are Sonoff RF remotes. You might not need less splits if your remotes are all different ones.
And this is my YAML code to send a RF code from a HA script.
service: esphome.rfbridge1_send_rf_code
data:
sync: 10000
low: 280
high: 900
code: 5326164