Saj battery and Homey

When the SAJ HS3 is in Passive Mode and Homey loses power or the Modbus TCP connection, does the inverter automatically return to Self-use Mode? If so, what is the timeout, and is this handled by the SAJ firmware or the Homey app?