Can I include some switch logic on the SonOff SV

Hi,
I am trying to use a SonOff SV(Tasmota) to control my air conditioner - just turn on and off. The unit has a home automation switch that can be easily controlled by a relay.

However, the unit requests the really to toggle on the off or off then on in order to sync with the external control panel. An extract from the manual is here

HOME AUTOMATION SET UP.

Start system from external signal.

External signal to momentary de-energise relay ‘A’ and then energize relay ‘A’ .

Operating Logic.

a) A/C system has been started externally but is switched off from local from Wall Control pad A/C system is OFF. Relay contact ‘A’ closed. Therefore system is out of sync.

b) External signal is sent to start A/C system.

Relay ‘A’ is momentary de-energised (system now in sync).

Relay ‘A’ energized. A/C system starts.

NB. If testing. There is a five second delay between relay closing and system starting.



Stop system from external signal.

External signal to momentary energize relay ‘A’ and then de-energise. Operating Logic.

a) A/C system has been started from local Wall Control Pad.

A/C system is ON. Relay contact ‘A’ open. Therefore system is out of sync. b) External signal is sent to stop A/C system.

Relay ‘A’ is momentary energized (system is now in sync).

Relay ‘A’ de-energised. A/C system stops.

I know I can implement this functionality in a Home Assitant automation but was wondering if it can be implemented in the SonOff itself some how

thanks