Git Product home page Git Product logo

Comments (6)

AlexGustafsson avatar AlexGustafsson commented on May 14, 2024

As far as I can tell Xbox doesn’t rely on Wake On LAN, rather a proprietary protocol to turn the device on. This could be done as a program or script which is then used as a wake command. The simple answer is therefore “yes and no” - yes, wake command allows for this and no - the built in functionality of Wake On LAN does not work.

This gist implements the protocol in some simple C# code: https://gist.github.com/HakanL/48cdc64a032445a9881b70fa11f43972

I do not have an Xbox and therefore I cannot try it out.

This repository: https://github.com/Schamper/xbox-remote-power/blob/master/README.md
seems to implement the protocol in python. The description even mentions how to use the script.

As for shutdown, you’re probably better off looking for a complete Smart Glass implementation which you can then call via wake and shutdown commands.

Please take a look around and come back with any potential findings you make!

Good luck!

from homebridge-wol.

mreassassin avatar mreassassin commented on May 14, 2024

i was able to get this working with cmdswitch2 calling the python script you referenced. thanks!

now I'm trying to get my ps4 to wake and sleep with this. here's my config:

"accessory": "NetworkDevice", "name": "Playstation", "mac": "<mac address>", "ip": "192.168.1.42:997", "pingInterval": 45, "wakeCommand": "sudo ssh 192.168.1.42 caffeinate -u -t 300", "wakeGraceTime": 90, "shutdownGraceTime": 15, "shutdownCommand": "sudo ssh 192.168.1.42 sudo shutdown -h now"

I'm trying with forcing the port 997, not sure if it's open on my router for the ps4, though. not sure how to do that.

thanks!

from homebridge-wol.

mreassassin avatar mreassassin commented on May 14, 2024

this is what I get in the output:

[2018-8-19 11:38:09] [Playstation] NetworkDevice awake cycle started for "Playstation" (192.168.1.42:997) [2018-8-19 11:38:09] [Playstation] Attempting to wake up "Playstation" (192.168.1.42:997) [2018-8-19 11:38:09] [Playstation] NetworkDevice "Playstation" (192.168.1.42:997) went from status "Offline" to "Waking Up" [2018-8-19 11:38:10] [Playstation] Attempting to wake up "Playstation" (192.168.1.42:997) using "sudo ssh 192.168.1.42 caffeinate -u -t 300" [2018-8-19 11:38:10] [Playstation] An error occured while trying to wake "Playstation" (192.168.1.42:997): Error: Command failed: sudo ssh 192.168.1.42 caffeinate -u -t 300 ssh: connect to host 192.168.1.42 port 22: Connection refused

from homebridge-wol.

mreassassin avatar mreassassin commented on May 14, 2024

it doesn't appear to be utilizing the port I want it to. it's defaulting to port 22.

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on May 14, 2024

That command will likely not work for the PS4. The example is destined for Macs and MacBooks.

You could try this project; https://github.com/dhleong/ps4-waker/blob/master/README.md which you can install on your server and use as wake and shutdown command.

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on May 14, 2024

Closing due to inactivity.

from homebridge-wol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.