IR remote_transmitter, discrete codes for Samsung LCD on/off

Hi, I’m looking for the discrete on/off codes for Samsung LCD’s.

This is standby and works,

switch:
  - platform: template
    name: "Samsung Q90R on/off"
    turn_on_action:
      - remote_transmitter.transmit_samsung:
          data: 0xE0E06798

but I need to be able to switch the TV ON of OFF. As there is no on/off buttons on the remote I can not dump it.

The pronto codes are:

POWER TOGGLE
0000 006D 0022 0000 00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689

OFF
0000 006D 0022 0000 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689

ON
0000 006D 0022 0000 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689

But I don’t know how to convert the Pronto HEX codes to the format accepted in esphome.

Power Toggle: 0xE0E040BF
Power OFF: 0xE0E019E6
Power ON: 0xE0E09966