Hi! I found on the Internet a curl that should turn off my ReadyNas. It works on my linux machine but then I add it into HASSIO and it doesn’t work. I used Wake on LAN Switch and Shell command.
- platform: wake_on_lan
name: "ReadyNAS"
mac_address: "AA:BB:CC:11:22:33"
host: 10.0.0.3
turn_off:
service: shell_command.turn_off_readynas
shell_command:
turn_off_readynas: 'curl -u REDACTED:REDACTED -k "https://nas-35c179.local/dbbroker" -H "Content-Type: application/x-www-form-urlencoded;" -H "X-Requested-With: XMLHttpRequest" --data "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xs:nml xmlns:xs=\"http://www.netgear.com/protocol/transaction/NMLSchema-0.9\" xmlns=\"urn:netgear:nas:readynasd\" src=\"dpv_1445852944000\" dst=\"nas\"><xs:transaction id=\"njl_id_2269\"><xs:custom id=\"njl_id_2268\" name=\"Halt\" resource-id=\"Shutdown\" resource-type=\"System\"><Shutdown halt=\"true\" fsck=\"false\"/></xs:custom></xs:transaction></xs:nml>"'
Please, help. Thanks!