ESP 8266 RF Transmitter problems

I have been trying to use a ESP8266 to transmit a rc switch raw code to turn on some RF sockets i have . I can sent the code outside of ESPhome (on the esp8266 with Rc switch example code) but if i try using the same raw code with the same setup in esp home id doesn’t broadcast the code. i am listening with a Arduino Uno setup so can see if something is transmitted.

esphome:
  name: ir_receiver
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "xxxxxxx"
  password: "xxxxxx"
  
  manual_ip:
    static_ip: x.x.x.x
    gateway: x.x.x.x
    subnet: :x.x.x.x

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test Button Fallback Hotspot"
    password: "xxxx"

captive_portal:

# Enable logging
logger:
  level: DEBUG

# Enable Home Assistant API
api:

ota:
 
remote_transmitter:
    pin:
      GPIO4
    # RF uses a 100% carrier signal
    carrier_duty_percent: 100%
    
  

switch:
          

  - platform: template
    name: RC Power Button
    turn_on_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '010101000001010101010100'
          protocol: 1
          repeat:
            times: 3
            wait_time: 50ms
      
          

Any ideas why this doesn’t work as i know the code is right and can send it with my arduino code

Did you translate the received code from B1 to B0 format?

I’m not using a spinoff rf bridge. I am using a cheap 4333mhz rf transmitter and reviver pair. With esphome it does not work. But if I use the transmit example from RC library it does work. Same wiring on both just the code changes ??? Am getting esp32’s in a week or so and will try esphome on them and see does it work. Will post the results.
Cheers for replying.