Decimal RF codes

ive recently moved all my nodes from openmqtt gateway to ESPhome, the last hurdle is 1 RF power socket and 3 RF light switches, i cant get the receiver attached to a different node to pick up the transmitted code (the RF codes from my door contacts are picked up fine) i thought i may have fried the transmitter at first but i connected to a PI i have laying around and it works just fine, picked up by the receiver and controls the RF switches and sockets.

When i used this setup with Openmqtt gateway i could use the 7 digit decimal code but i understand thats not possible with ESPhome and I have to use the binary.

My code is below, this is just a test but the binary code is correct as I have the original RF remote for that device.

esphome:
  name: rftesting
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "BTHub6-7TCR"
  password: "tVC67mJaUtgX"

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

remote_transmitter:
  pin: D7
  # RF uses a 100% carrier signal
  carrier_duty_percent: 100%
  
switch:
  - platform: template
    name: RF Power Button
    turn_on_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '000101010101010111000011'
          protocol: 7
    turn_off_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '000101010101010111001100'
          protocol: 7

i’m basically asking if there is a way to send the decimal code?

thanks

Did you ever figure this out. I am in the exact same place.

I did, but I don’t currently use home assistant or any smart platform, but I do have the ESP devices laying around which should still work I’ll have a look and see if I have the backups or find a way to get the code from them.