The Popcorn hour plugin I made basically does nothing else then sending such http calls. Basically you’d probably only need to change the url’s and remove some buttons and code. The plugin does also read out some information like that, so you could probably also get the current states of the NAS.
In addition to that you could use some code from the wol plugin, then you could switch it on and off from one vera device.
But some other more advanced users might have easier approaches, maybe waiting for their replies is worthwhile. I am for sure not the most advanced programmer in this forum.
@alx2k, what else are you thinking about doing with the readynas?
One option would be to monitor free disk space, another would be having the readynas scan for new media. I have one too (readynas nv+) and although mine never gets turned off I’m quite happy to help with code and/or testing.
I’'m not familiar with Lua, so first, I would like to do something that works, not very fanzy but usable.
I wasn’t thinking to make the plugin a monitor of the device really, but I guess that with time and some “google-ing” it could be done.
What I want at first is to poweroff the nas when there is no need for it to be powered on, mainly when leaving the house, and probably via some schedules during a 1am-6am period during week days. That way I could save 35w/hr according to readynas.com comparison chart, and since I am around 17 hours a day either out of home or asleep, that could save ±0,6kw/day.
In your case, readynas nv+ uses 55w/hr with 2 HDs connected.
Then you could just run this scene to shutdown the nas. on of course you could also use triggers, schedules and so on…
somehow the user and password has to be included. maybe if you don use a sesure connection “http” instead of “https”. I’ll quickle google that, maybe I find something…
EDIT: Not googled but I think it should work like that:
okay - just found this and am super interested in gettiing it to work with my vera secure and readynas RN628X.
Anybody actually get it working?
I plugged user alx2k’s code (using my IP and frontview login) into Vera’s UI for Testing Luup code (Lua) window and it says it’s sending the code but it’s not powering down the NAS
Best Home Automation shopping experience. Shop at Ezlo!