http://jhshi.me/2016/10/24/chromecast-w ... AE4mmj7RaQ
Might make more sense to try to monitor the HDMI stream and trigger some IR switching off that? Maybe somthing like this might help.
https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter
Thanks, any idea if it would be possible to detect if any device makes a request to a certain URL without running the traffic through the esp?