The on/off time of some TVs/Receivers is long (maybe 10-20 seconds), but when the activity starts, the default boot time is not delayed, and the next command such as switching the input source will be executed immediately.
In this case The switched signal is not received by the TV//Receiver, so it cannot be executed successfully. If this is the case, you can add a power on/off delay command in the APP through device edit----macro settings forturn on/off. Or add the delay command to the boot command in the startup settings of the Activity.