This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

Switch Computer on and off without Ethernet

G4nd41fG4nd41f Member
edited July 2016 in Devices
I do have a desktop computer, which does only have a Wifi connection to the internet over an external USB WiFi Stick. I would like to switch this computer on with my homey and shut it down properly before I cut the power.

The only solution I could think of so far, would be to open a 433 MHz switch for sockets and connect it to the power on contacts of the mainboard. Does anyone have a better idea?

Comments

  • MarcelKuijperMarcelKuijper Member
    edited July 2016
    Fibaro binaire sensor, connected to your power switch, basicly the same with a smaller switch.

    Als this works on 12v wich u can get from ur power supply.
  • Perhaps it supports wake from USB? 
  • In Bios there is a modus always on. I thought your device always boot when there is a power cut.
    So a simple outlet wil work then.
  • @0burner0
    Thank you. This works perfectly. But how do I shut my computer down properly without just cutting the power?
  • Give it proper time to shutdown before you kill the power
  • But how do I let homey send the command?
  • Someone would have to write an app for that: https://www.npmjs.com/package/node-powershell
  • I tryed it with the ssh app and my imac. Would also really love it. Powering down more than starting up. (it had 20 gb ram and a 512gb ssd so it starts real Quick) 

    Problem that i had is that osx doesn 't accept an insecure ssh connection
  • swtttswttt Member
    I have done something like this for fun through a webserver. Used php to execute a shell command. So when I did http://myip/status.php?cmd=shutdown it shuts down the pc. Guess this should work on osx as well, plus you could do some other stuff like checking hdd space left etc.
  • I found a solution for shutting a computer down properly: http://www.airytec.com/en/switch-off/

    You can use it in combination with the HTTP app of homey to shut down a computer.

  • kriebelkouskriebelkous Member
    edited July 2016
    G4nd41f said:
    I found a solution for shutting a computer down properly: http://www.airytec.com/en/switch-off/

    You can use it in combination with the HTTP app of homey to shut down a computer.


    If using this in a flow you might want to use some kind of ping command before cutting the power.

    You dont want your system to be installing updates when you kill the power. A timer would seem to unreliable and you have no way of knowing for sure the shutdown command reached the pc.  

    I am thinking of constructing something simular for 2 of my servers. Shutting them down of there is nothing on the network that is able to use the services they provide.


  • swtttswttt Member
    Isn't the terminal/shell command save enough? In other words it doesn't shutdown when it's installing updates? Similar in osx, which can't shutdown when terminal is busy.
  • swttt said:
    Isn't the terminal/shell command save enough? In other words it doesn't shutdown when it's installing updates? Similar in osx, which can't shutdown when terminal is busy.

    Shutting down is'nt the problem. Its when to cut the power. An easy way would be to use a Fibaro wallplug that can sence the power usages (if powerusage is low then kill power). A cheaper way would be to use ping ans a 443mhz wallplug. (If no ping then kill power).

    Or is the web interface able to send a message when power goes off?

  • swtttswttt Member
    Why would you want to kill the power after you have shutdown your pc? 
  • Reviving this thread.. I alsa would LOBE an app to throw a shutdown command to.my.pc so it turns off.. then.i could create a virtual device so I could use it in a flow.. win win !
Sign In or Register to comment.