Integrating AC IRremote and Boiler opentherm control in home assistant

Hello again!
I come back on this issue, as I managed to learn just a little bit more about integrating new things into home assistant/mqtt.
I managed to modify and integrate a mains general power meter (zmai90) and learned how to identify the topic.

Because of this, I read the tutorials again, and I am now in the following situation:
from https://www.sysrun.io/2017/02/22/use-a-esp8266-to-control-your-ac-via-mqtt/ , I know the mqtt status and command channels. These are stat/daikin and cmnd/daikin/#.
extract from the tutorial: " The software is listening for commands on a specific topic configured via the constant MQTT_COMMAND_CHANNEL . The default configuration is “ cmnd/daikin/# “. To set the power on the A/C, you just publish “ 1 ” to the topic “ cmnd/daikin/power “. The MCU will now send the command via IR and post the current values of every setting (power, mode, fan etc.) as JSON to the topic “ stat/daikin ”"

from https://github.com/ToniA/arduino-heatpumpir/blob/4f81e180d35236f6ac979e4cd90e7f90b7c4701f/HeatpumpIR.h , I found the commands that can be sent to the ir blaster nodemcu:
// Power state
#define POWER_OFF 0
#define POWER_ON 1

// Operating modes
#define MODE_AUTO 1
#define MODE_HEAT 2
#define MODE_COOL 3
#define MODE_DRY 4
#define MODE_FAN 5
#define MODE_MAINT 6

// Fan speeds. Note that some heatpumps have less than 5 fan speeds
#define FAN_AUTO 0
#define FAN_1 1
#define FAN_2 2
#define FAN_3 3
#define FAN_4 4
#define FAN_5 5
#define FAN_SILENT 6 //SILENT/NIGHTMODE

// Vertical air directions. Note that these cannot be set on all heat pumps
#define VDIR_AUTO 0
#define VDIR_MANUAL 0
#define VDIR_SWING 1
#define VDIR_UP 2
#define VDIR_MUP 3
#define VDIR_MIDDLE 4
#define VDIR_MDOWN 5
#define VDIR_DOWN 6

// Horizontal air directions. Note that these cannot be set on all heat pumps
#define HDIR_AUTO 0
#define HDIR_MANUAL 0
#define HDIR_SWING 1
#define HDIR_MIDDLE 2
#define HDIR_LEFT 3
#define HDIR_MLEFT 4
#define HDIR_MRIGHT 5
#define HDIR_RIGHT 6

and from https://www.home-assistant.io/integrations/climate.mqtt/ , I found a standard, simple, climate configuration that would be able to control the AC:
climate:

  • platform: mqtt
    name: Study
    modes:
    • “off”
    • “cool”
    • “fan_only”
      swing_modes:
    • “on”
    • “off”
      fan_modes:
    • “high”
    • “medium”
    • “low”
      power_command_topic: “study/ac/power/set”
      mode_command_topic: “study/ac/mode/set”
      temperature_command_topic: “study/ac/temperature/set”
      fan_mode_command_topic: “study/ac/fan/set”
      swing_mode_command_topic: “study/ac/swing/set”
      precision: 1.0

What I do not know, is how to configure the modes so the climate integration sends the necessary data to the required command topic.
Also, I see the nodemcu will post the current status as JSON format, so these will have to be translated in a way?

I know this should not be very complicated, but I am not able to put it all together. Anybody care to help?

Thanks!