Comments (6)
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.
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.
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.
it doesn't appear to be utilizing the port I want it to. it's defaulting to port 22.
from homebridge-wol.
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.
Closing due to inactivity.
from homebridge-wol.
Related Issues (20)
- Sleep-On-LAN (SOL)
- Can't shutdown my computer with the shutdown command
- WOL starts device, but no ping and no Online status HOT 9
- Homebridge running on docker no sambo-common
- Check if Windows PC is sleeping
- Samba Mac
- Ask for wake/start command
- Adding plugin to HomeKit
- ssh keeps asking for passphrase
- Feature Request: Add support for pingsToChange for ping commands HOT 2
- Please add icons if possible HOT 1
- Dont wake after shutdown HOT 15
- Add instruction for Enable Printer and File Sharing W10+ HOT 1
- magic packets sent not waking pc anymore HOT 14
- Unraid: setcap cap_net_raw=pe /path/to/bin/node
- Problems ssh to windows only from homebridge terminal
- Ping function for detecting the PC online not working recently HOT 2
- Dont wake after shutdown HOT 6
- Wake on Lan is no longer working HOT 2
- This computer will be shut down shortly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-wol.