Pioneer/Onkyo AV receiver

https://arnowelzel.de/en/control-av-receivers-by-pioneer-over-the-network

https://github.com/openhab/openhab1-addons/wiki/Pioneer-AVR-Binding

git clone https://github.com/miracle2k/onkyo-eiscp

control.py
import eiscp
#for receiver in eiscp.eISCP.discover(timeout=5):
        #receiver.command('power off')
#        print(receiver.info)
 
# Create a receiver object, connecting to the host
receiver = eiscp.eISCP('192.168.1.14')
 
# Turn the receiver on, select PC input
print(receiver.command('power query'))
print(receiver.command('power on'))
#print(receiver.command('hdmi-cec query'))
#print(receiver.command('hdmi-cec on'))
print(receiver.command('ctv','power-off','main'))
#print(receiver.command('ctv','power-on','main'))
#receiver.command('source pc')
 
receiver.disconnect()