VPN on android companion app start

Is it possible to have the ha android companion app switch on openvpn profile when started if it doesn’t detect home wifi? If not, it makes sense to add this functionality.

Macrodroid & tasker for now. Hopefully openvpn integration in future.