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