This worked great for me for years until a dog sitter stayed over and hooked up the TV to the Wi-Fi.
Now the TVs MAC address is banned from the router, so this particular edge case can't happen again.
Now the TVs MAC address is banned from the router, so this particular edge case can't happen again.
Then hide the remote from your TV and only use the remote from your device.
It's a little slow, but for me, it's nice that I can turn on my Switch from the controller and it turns the TV on; or that I can put a disk in my Bluray player and it turns the TV on.