Unable to configure kinkony kc868-AG

HI, first post on pretty much any site.

I dont often require help however this has me stumped. Although new to HA and ESPHome I have 40 years in R&D writing all sorts of software, the last project using PHP, Jscript, JSON and SQL.

HA Versions

  • Core 2025.4.1
  • Supervisor 2025.04.0
  • Operating System 15.1
  • Frontend 20250404.0

ESPHome 2025.4.0

I have 3 ESPHome devices 2x esp cam 32 and one ESP07 with two relays and an i2c HTU21D all working perfectly.

I bought an Kincony KC868-AG to communicate with some Prolec 433M power sockets and also use the IR to control AV system.

I ā€œstoleā€ a base config for this from one of the HA websites. The first part of the conifg is identical to my other devices and defines base config for wifi etc. and that works.

The devices speciific code is show below

config below

remote_transmitter:

  - id: IR_Tx
    pin: GPIO2
    carrier_duty_percent: 50%

  - id: RF_Tx
    pin: GPIO22
    carrier_duty_percent: 100%
#    setup_priority: 599


remote_receiver:
  # see https://esphome.io/components/remote_transmitter.html#setting-up-infrared-devices
  # for details on discovering the correct codes for your devices
  - id: IR_Rx
    pin:
      number: GPIO23
      inverted: True
    dump: raw

  # see https://esphome.io/components/remote_transmitter.html#setting-up-rf-devices
  # for details on discovering the correct codes for your devices
  - id: RF_Rx
    pin:
      number: GPIO13
    dump: raw
    # Settings to optimize recognition of RF devices
    tolerance: 50%
    filter: 250us
    idle: 4ms
    buffer_size: 2kb


button:
  - platform: template
    name: Cat Lamp On
    on_press:
      then:
        - remote_transmitter.trasmit_raw:
          transmitter_id: RF_Tx
            code: [ -4609, 814, -509, 796, -523, 792, -532, 779, -539, 777, -1199, 1432, -1208, 1394 ]

So removing all of the button code it compiles and runs display received raw codes which is great.

Until we get to ā€œbuttonā€ this is pretty much the same as other websites which state that it works and yet when I hit install (effectivly compile) I get an error on the last line (code) which states ā€œmapping values are not allowed hereā€.

I am unsure aboutt whether this is correct
…
- remote_transmitter.trasmit_raw:
transmitter_id: RF_Tx
…

and further I cannot see any indent issues. I am using the inbuilt ESPHome editor which substitutes tabs for spaces so it should be ok.

Any help anyone could render gratefully appreciates

Cheers

Try transmitter_id indentation to right in line with code.

HI,

Thanks for the suggestion I had tried this but have done it again and now it generates an error

ā€œUnable to find action with the name ā€˜remote_transmitter.trasmit_rawā€™ā€

According to the examples and everything I have read it should work.

I wondered if it was something to do with the initai remote_transmitter object instantiation however there is so little to set up it all looks ok.

Very confusing,

Cheers

Typo in transmit_raw by the looks, you have missed the n out :wink:

1 Like

Yup thats it.

Thank you so much. I have stared at this for hours.

Great to have another set of eyes looking at something.

Cheers