@safi78 do you mind sharing how that's done? I now switch off my entire onkyo receiver with a KAKU switch...Connected my Onkyo receiver through a Python library on the Rasp (<- cool, switching it on and off through LUA)
/paul
Moderator: leecollings
@safi78 do you mind sharing how that's done? I now switch off my entire onkyo receiver with a KAKU switch...Connected my Onkyo receiver through a Python library on the Rasp (<- cool, switching it on and off through LUA)
Code: Select all
sudo apt-get install python-setuptools
Code: Select all
sudo easy_install onkyo-eiscp
Code: Select all
onkyo system-power:on
Code: Select all
onkyo system-power:standby
Code: Select all
if (devicechanged['FakeOnkyoSwitch']="Off") then
os.execute('/usr/local/bin/onkyo blablabla)
end
Code: Select all
onkyo system-power:standby
Code: Select all
onkyo --help-commands main
Code: Select all
root@jarvis ~ $ onkyo --help-commands main system-power
Possible values for this command:
standby - sets System Standby
on - sets System On
query - gets the System Power Status
Not only will it give tracebacks due to a timeout while waiting for a response of a switched off receiver, but you will also not be able to put it on again through the network...For the power on command to work while the device is in standby, make sure you turn on the obtusely named Setup -> Hardware -> Network -> Network Control option. Without it, you can only connect to your receiver while it is already turned on.
Code: Select all
commandArray = {}
if (devicechanged['Dummy_onkyo_switch'] == "On") then
os.execute('/usr/local/bin/onkyo system-power:on')
commandArray['Dummy_onkyo_switch'] = on
end
return commandArray
Users browsing this forum: No registered users and 1 guest