MQTT switch: state request

I use solar2mqtt integration. I want to create a switch to change my inverter mode between SUB and SBU.
I have two topics:

  • powmr/DeviceControl/Set_Command - send command
  • powmr/DeviceControl/Set_Command_answer - receive response

The flow is:

  1. Publish message POP02 in topic powmr/DeviceControl/Set_Command to enable SBU mode. The response will be ACK.
  2. Publish message POP01 in topic powmr/DeviceControl/Set_Command to enable SUB mode. The response will be ACK.
  3. Publish message QPIRI in topic powmr/DeviceControl/Set_Command to receive current configuration from powmr/DeviceControl/Set_Command_answer topic. The response will be 230.0 44.3 230.0 50.0 44.3 0200 0200 48.0 48.0 44.8 56.4 54.4 2 002 090 1 2 1 1 01 0 0 54.0 0 1 48.0 10 44.0, where this 2 is responsible for the SBU mode.

How can the switch be configured to send this additional message to receive the current configuration?

At the moment, I have this configuration without the current state:

switch:
  - name: PowMR SBU switch
    command_topic: "powmr/DeviceControl/Set_Command"
    state_topic: "powmr/DeviceControl/Set_Command_answer"
    payload_on: "POP02"
    payload_off: "POP01"