wait for app to open before sending command (SWITCH)
Maybe I am missing the obvious, but I have made below switch, which is working fine if the app is already opened. If it is not already opened, it will take a little while for the app to open, but the "KEY_ENTER" command will be fired nevertheless. Is there a way to say what for application before sending command, or is there another hack-around? I cannot use multiple presses as it works as a toggle.

"switches": [
                        {
                            "name": "Sync On/Off",
                            "power": false,
                            "app": "3202205027312",
                            "command": [
                                "KEY_ENTER"
                            ]
                        }
                    ]

thank you for your time