Thanks, this worked (almost). It doesn’t reconnect to the wwan provider when the connection is re-enabled.
If I turn autoconnect on in the GUI it connects even when the wwan should be disabled.

If I knew the codeline which enables/disables autoconnect, or the one that connects manually to a host, I could make it work.