Problem with sketch MySensors IRSender/Receiver (A/C control)

Hello everyone,

I’m trying to control with HA my A / C just to turn on and off. For this I am using the sketch of mysensors about IRSender / Receiver, this: https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/IrSensor/IrSensor.ino

I’m starting in this wonderful world, but I’ve been stuck with this error for several days: Not a valid message: not a value for dictionary value @ data [‘payload’]

The code is exactly the same as the sketch. I hope to receive your advice and be able to realize this objective.

I show you an image where it is collected: https://imgur.com/a/1MnZUtS

  • on the screen top left, mysgwd
  • on the screen at the top right, IDE Arduino
  • on the screen below to the left, HA log
  • on the screen below to the right, serial monitor

Greetings and thank you!