I’ve started on a solution that doesn’t require IR blasting: https://github.com/jacobrossi/smartthings-xbox
There are several limitations currently:
For now, it does require using a computer as a “bridge” because ST doesn’t have a proper sockets API. You run a very lightweight server on any computer on your network (I’m using a Raspberry Pi that was already in use for other HA stuff) and it powers on the Xbox when it gets requests from ST.
It can only turn it on, not off.
It does not (yet) indicate the actual power state of the device. So if you power it on/off manually, it’s not reflected in SmartThings.
But so far I have this as a part of a “TV” routine that dims the lights, sets some RGB cabinet lighting to a soft amber color, turns on the fireplace if its cold, and powers on the Xbox (which then turns on the TV and sound system). Pretty excited!
This is my first SmartThings device, so let me know if you have issues. I’m going to attempt to get rid of the need for the “bridge” (fingers crossed, might not be possible) and add power state polling to the device to keep its state in sync with the Xbox.