This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Use Lm3 to control your Yamaha Receiver using HTTP commands ( RX- V671)
#3
(17.05.2017, 15:51)Magnus Lindgren Wrote: Maybe this?    I made this script to mute my receiver when i go out:


Code:
http = require("socket.http")
url_string = "http://192.168.0.43:80/YamahaRemoteControl/ctrl"

http.TIMEOUT = 5


value = event.getvalue()

if (value == false) then
post_request_body ='<?xml version="1.0" encoding="UTF-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Mute>Off</Mute></Volume></Main_Zone></YAMAHA_AV>'
elseif (value == true) then
post_request_body ='<?xml version="1.0" encoding="UTF-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Mute>On</Mute></Volume></Main_Zone></YAMAHA_AV>'
end

http.request(url_string, post_request_body)





Just change IP to your receiver and put the script in a event.

If someone is interested, I found out that more recent Yamaha receivers use this protocol; https://www.sdu.se/pub/yamaha/yamaha-ync...otocol.pdf
TCPIP port should be 50000
A power on command would look like this:
Code:
post_request_body ='<?xml version="1.0" encoding="UTF-8"?><YAMAHA_AV cmd="PUT">@MAIN:PWR=On\r\n</YAMAHA_AV>'

Best regards
Eilert Bjerkan
Reply


Messages In This Thread
RE: Use Lm3 to control your Yamaha Receiver using HTTP commands ( RX- V671) - by eilert - 26.01.2022, 22:06

Forum Jump: