Hello, I’m new to HA, that said, I’m getting started with Automations and I want to create a trigger to respond when I turn on/off my Xbox One. I have the integration configured, including a card on my dashboard. So, I have the configuration in good shape, I think. I’m just not sure how to get HA to respond to power state change.
The Xbox integration has a media player entity and a remote entity that you can trigger on. So for example if you wanted to do something when your Xbox was turned on, your triggers would be:
trigger:
- platform: state
entity_id: media_player.xboxone
from: 'off'
to: 'on'
- platform: state
entity_id: remote.xboxone_remote
from: 'off'
to: 'on'
If you are using the Automation editor (at Configuration -> Automations) your Xbox will show up under Device triggers. That is the easiest / most beginner friendly way of accomplishing this:
Thanks, @Bollux! I’m going to file this one away for now. Since I posted, I implemented a UPNP solution. See this thread, this works really well (so far). UPnP Availability integration