joefly Posted September 29, 2010 Posted September 29, 2010 Has anybody figured out how to shut down a computer using the ISY networking module? I got it to do WOL but now how to I put it to sleep or power off? Thanks
io_guy Posted September 30, 2010 Posted September 30, 2010 I do this. I worte a program that runs on my computers. It accepts network commands to shutdown, restart or close media center (and a few other things).
joefly Posted September 30, 2010 Author Posted September 30, 2010 Would you mind sharing some details of how you did this and how involved it is. I was hoping that there was a network command that ISY can send that once the computer senses it would perform sleep or power off like WOL. I also discover that the WOL does not wake the computer up from sleep state, only turns it on, is this normal? Thanks in advance
io_guy Posted September 30, 2010 Posted September 30, 2010 Would you mind sharing some details of how you did this and how involved it is. I was hoping that there was a network command that ISY can send that once the computer senses it would perform sleep or power off like WOL. I have a .NET program that listens on a specific port for commands like "SHUTDOWN" or "RESTART". The ISY network module just sends the computers these commands. I wrote a custom program because it does some other media center automation/integration as well. There should be any number of programs available for download that would accept a remote shutdown/standby command. I also discover that the WOL does not wake the computer up from sleep state, only turns it on, is this normal? This really depends on the computer motherboard, power management config, and OS.
ben-smith Posted October 18, 2010 Posted October 18, 2010 Has anybody figured out how to shut down a computer using the ISY networking module? I got it to do WOL but now how to I put it to sleep or power off? Thanks I set up my Windows machines to 'sleep' the system after x amount of inactivity. (From the Control Panel). In addition to that, you can also set up a scheduled task on the Windows machine to shut down at a certain time. (shutdown.exe -s -t 1 -f)
Scottmichaelj Posted October 19, 2010 Posted October 19, 2010 Michel and I figured out a simple solution for this exact thing using a program called switchoff by airytec (www.airytec.com). Just download and install the program on your pc you want to be able to shutdown then using the networking module you can do a wake on LAN and then sleep the pc (or shutdown/restart). The program is super small and light not using hardly any cpu processing power which I really like. There are other options you can use in this program but I don't use them. Its pretty cool as I can hit a key on my universal remote to wake my media server located in my closet then holding that same button puts it to sleep when I am done. Post back here if you need more help. BTW wol in the network module should wake your pc after it sleeps with no issues. EDIT: A little more info... In the ISY Administration Console go to the Configuration Tab then select Networking, Network Resources. Then you will add a new line. Mine is named "Sleep" - then double click on URL section and a screen will pop up. Leave it to say "http" and "get" then enter your PCs IP (mine are static) where you installed the program on. Port = 8000 and put "/?action=System.Sleep" in the path section without the quotes and save. Then you will need to setup your "program" to access this network resource. For my program I have "If 'X button' is held' then Resource Sleep. Under action you will select "networking" -> "resource" -> "sleep". Hope this helps! I even donated to that product since I use it all the time.
Algorithm Posted October 19, 2010 Posted October 19, 2010 Michel and I figured out a simple solution for this exact thing using a program called switchoff by airytec (www.airytec.com). huddadudda, great find! Thanks for the setup instructions. This will be a great resource for any ISY user wanting to shut-down/restart/sleep a computer from ISY.
Scottmichaelj Posted October 19, 2010 Posted October 19, 2010 Michel and I figured out a simple solution for this exact thing using a program called switchoff by airytec (www.airytec.com). huddadudda, great find! Thanks for the setup instructions. This will be a great resource for any ISY user wanting to shut-down/restart/sleep a computer from ISY. NP - Maybe it would be a good idea to add to the Networking Module Wiki?
joefly Posted May 22, 2011 Author Posted May 22, 2011 hi huddadudda Sorry for the late reply, I meant to get to it and got distracted>..... But great find. Exactly what I was looking for, unfortunately, could not get it to work. Did you enable web interface as stated here http://www.airytec.com/en/switch-off/faq/how-to-shutdown-or-restart-pc-remotely-from-any-computer-or-mobile-phone.aspx I assume so, but with this latest version it forces a password which I think is causing the ISY to hang and give me a timeout error. Since I can not turn off the password requirement, I can not verify this is cause for the ISY error. Can you tell me if you are using the old version which does not require a password, and if so, is this a security issue, unless you can control only local network access to 8000 on the router. (if my assumptions are correct) Can you confirm?
Scottmichaelj Posted May 24, 2011 Posted May 24, 2011 hi huddadudda Sorry for the late reply, I meant to get to it and got distracted>..... But great find. Exactly what I was looking for, unfortunately, could not get it to work. Did you enable web interface as stated here http://www.airytec.com/en/switch-off/faq/how-to-shutdown-or-restart-pc-remotely-from-any-computer-or-mobile-phone.aspx I assume so, but with this latest version it forces a password which I think is causing the ISY to hang and give me a timeout error. Since I can not turn off the password requirement, I can not verify this is cause for the ISY error. Can you tell me if you are using the old version which does not require a password, and if so, is this a security issue, unless you can control only local network access to 8000 on the router. (if my assumptions are correct) Can you confirm? My setup is - Airytec 3.3.1, my server has a static IP, I am only using the ISY and WOL command on my network internally. In options, under remote I have checked "enable web interface" at default port 8000. I do not have a username or password enabled. I am not sure what changes if really any matter on the new version but I can confirm that 3.3.1 works and you can download the old versions directly from the website here: http://www.airytec.com/en/switch-off/history.aspx I hope this helps. Make sure on the ISY setup the MAC Address has a - and . for the IP. I dont recall there ever being a password on the ISY setup side but it looks like there is in the newer firmware. Let me clarify more. I setup the Networking module under an older firmware. I have since updated but only to 3.3.0 - I notice there is a "password" which I have three bullet circles showing there. I do not recall ever setting up a password. This maybe a new item or just leaving it blank, and saving it, then by default thats how it now shows when you go into it to edit it. Maybe Michel can give his two cents? I hope this helps. Let me know how it goes.
Scottmichaelj Posted May 24, 2011 Posted May 24, 2011 Also one other important thing to mention. Make sure your PC has the ability to WOL and is setup correctly first before trying to setup the ISY. If you can not get your PC to WOL via another PC or via a website then you never will get the ISY to work. There are many free utilities (including iphone apps) that you can get to test to make sure your PC is setup correctly. [uPDATE] leave the / there and also make sure "encode url" is checked.
joefly Posted May 24, 2011 Author Posted May 24, 2011 HI, Thanks. I tried the previous version that you are on, and it does not require user password. But this does not solve my problem. Screen shot of my setup http://screencast.com/t/qBDfGuCkE screenshot of error message when tested in networking module http://screencast.com/t/7w6enUwrYAX i have confirmed that when I go to http:192.168.1.174:8000 it does take me to the web interface of the software. somehow I am either not setting it up correctly or there is a communication issue between isy and airytec. I have also confirmed that the MAC and IP address are setup correctly within the ISY WOL setting Also, my WOL does work, i have also other network programs that are working well. Michel, any suggestion on the network error message?
Michel Kohanim Posted May 24, 2011 Posted May 24, 2011 Hello joefly, The path does not look normal /?xxxx ... you might want to remove the initial / and see if that helps. Above and beyond that, we need to look at the URL for sleep by viewing the HTML source of the page that allows you to put your computer to sleep. Do you have that? With kind regards, Michel
joefly Posted May 24, 2011 Author Posted May 24, 2011 Airytec Switch Off Shutdown Restart Sleep Close dial-up (VPN) Predefined scripts Open calculator
Michel Kohanim Posted May 24, 2011 Posted May 24, 2011 Hello joefly, Are there any type of credentials for this utility? If so, you might want to try adding an Authorization header in the request. Also what is the URL for the page you have posted? If it has a path, then you will have to put that path before the ? (make sure you remove the ending /). With kind regards, Michel
Scottmichaelj Posted May 24, 2011 Posted May 24, 2011 I have the line "Authorization: Basic VXNlcjphZG1pbg==" no quotes under the Content-Type Line in the actuals box - Its been so long since I set this up I forgot where I got this from. Try adding it and see if thats it. Also I have "Encode URL" checked, and my timeout is 3,400ms - Leave everything else in your screenshot the same and see if this helps. Keep the /?action=System.Sleep as is I dont think thats the problem. Could be the timeout is too fast and the WOL is not getting the command fast enough. Let me know how it goes.
joefly Posted May 24, 2011 Author Posted May 24, 2011 Hi Guys, I have tried everything and no dice. I did try Keep and remove the "/" in the path Encoded URL, no encoded Timeout all up to 10000 and used your authorization and also set my own password and with no password. All the variation did not work. However, in the latest software, I was able to just set it on the computer to sleep after a time of no activity, which makes it automatic, which is essentially I wanted it to do to save the stress on the computer and electricity. So it is late, I have to give up, but either way, huddadudda it was a good fine, as I can sleep my computer automatically eventhough it is frustrating not getting it to work with ISY. I will be following this post as I hate having an unsolved problem. Thanks again guys
Michel Kohanim Posted May 25, 2011 Posted May 25, 2011 Hello joefly, I think the best is for huddadudda to: 1. Change the password on his rule 2. Save it 3. Export it and send it to you Then, you would: 1. Import 2. Change the password 3. Change the port/IP address and test With kind regards, Michel
Scottmichaelj Posted October 25, 2011 Posted October 25, 2011 Just wanted to post an update. Joefly and I were never able to setup a time to troubleshoot what was wrong. However I have since added three additional Home Theater PCs to my home all with the Airytech software controlled with the ISY without issues. I was even added a "sleep mode" for each PC so that the PC will shut down after a specific amount of time after an "action", which is a programmed button on my Philips Universal remote controls. I can't imagine not having this module!
Recommended Posts