If your household uses both a TV and a set-top box with separate remotes—one for the TV's power and another for changing channels or selecting videos—you might often end up using the wrong remote. Sometimes, you might turn off the TV and leave the room, forgetting to turn off the set-top box. This can cause the set-top box to overheat and become sluggish if it stays on. To avoid this, you can plan to add a circuit that automatically turns off the set-top box when the TV is turned off.
You might think the simplest solution is to use an AC solid-state relay. However, after setting it up, it will still have power even without connecting a control socket, making this method unsuitable. Instead, you can use a 5V relay to control the power. If you don't have a 5V relay, you can follow this guide and use a 12V Omron relay, modifying its coil to work with a 5V power supply.
The modification process is as follows:
1.Start with a standard surface-mount box.
2.Inside the box, install the relay modified to 5V.
3.The Omron relay's coil has been modified to operate at 5V. Test it to ensure it works correctly. The 5V supply should engage the relay perfectly, with a current of about a few tens of milliamps.
4.Use the "Magic Box" set-top box from the provider.
5.The model number is 101S.
6.The set-top box remote has a learning function. The manual is missing, but you can find it online. Program the remote to control the TV's power (single button) and volume, so you only need one remote. Upon turning on the TV, it will automatically launch the TV app.
In summary, it's quite simple. Since the TV is always plugged in, use the set-top box remote to turn on the TV. When the TV powers on, its USB port outputs 5V, activating the relay. The relay then supplies power to the socket, turning on the set-top box, which starts up automatically. Set the TV to boot in HDMI mode and the set-top box to launch the TV app upon startup. When you turn off the TV, the USB power cuts off, deactivating the relay, which cuts power to the set-top box, turning it off as well.