Switch Denon_Mute "Denon Mute" <bmute> (All) {tcp=">[ON:192.168.30.51:23:MUON], >[OFF:192.168.30.51:23:MUOFF]"}
tcp:refreshinterval=250
tcp:queue=true
tcp:buffersize=135
tcp:preamble=''
tcp:postamble='\r'
tcp:blocking=false
tcp:timeout=300
tcp:updatewithresponse=true
tcp:itemsharedconnections=true
tcp:bindingsharedconnections=true
tcp:directionssharedconnections=false
#!/usr/bin/expect
set timeout 20
set dencmd [lindex $argv 0]
log_user 0
spawn telnet 192.168.17.11
expect "Trying"
expect {
timeout {
send_user "\rTimeout waiting for Denon response.\r"
send_user "$expect_out(buffer)\r"
exit
}
"Connection refused" {
send_user "UNABLE\n"
exit
}
"BridgeCo AG Telnet server\r\n"
}
send "$dencmd\r"
expect "$dencmd\r\n"
expect "*\r"
send_user "$expect_out(buffer)\n"
exit
I have a x3000 and it would be nice to have a Bindung. I Tried the tcp connection too but then i used etheral and logged the http Traffic from the android denon App to the Reciever.
You can read the http request from my Blog http://blue-pc.net/2013/12/28/denon-av-reciever-ueber-http-steuern/
Or See my Opernhaus config to control the Receiver. It Works Good http://blue-pc.net/2014/06/11/denon-av-reciever-mit-openhab-steuern/
Regrads Joerg