Hello,
At the moment, to change the digital output state when the WiFi state changes, a custom script can be written. Here is an example of a script for a similar question: RUTX50: How can i configure the digital Output to switch on when WIFI is ready? - #2 by Sigismundus
Additionally, I recommend checking our wiki page with custom script examples: User Scripts Examples.
Please let me know if you have any further questions about this.
Best regards,