hunterjm / hassio-addons

Control your Xbox One from your Home Assistant device.
MIT License
55 stars 50 forks source link

Failure to link with ip_address specified #23

Open ghost opened 5 years ago

ghost commented 5 years ago

It's great the IP address config support was added so quickly, but I encountered issues trying to set it up:

Testing configuration at /config
Failed config
  media_player.xboxone: 
    - Invalid config for [media_player.xboxone]: required key not provided @ data['device']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/media_player.xboxone/
    - platform: xboxone
      ip_address:  XXX
      name: Living Room Xbox On

Obviously /devices shows nothing as the device will not show up there if it belongs to a different subnet/VLAN.

I'll try to see if I can fix this on my end somehow, but it seems like a tracked issue is in order.

ghost commented 5 years ago

One thing we could add to the docs:

/device?addr=XXX

Where XXX is the target address. Needs port 5050 and a few other things (mixed TCP/UDP) to work but after that, it enumerates properly!

hunterjm commented 5 years ago

If you could open a PR with the steps you took under the heading “Connecting to an Xbox on a separate subnet”, that would be great.