openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[yamahareceiver] Channel to switch HDMI OUT #6327

Closed ghost closed 3 years ago

ghost commented 5 years ago

Yamaha Receivers have multiple HDMI OUTs, e.g. HDMI_OUT_1 and HDMI_OUT_2. When controlling Yamaha Receiver with openHAB it would be great to be able to switch those HDMI OUTs, e.g. to disable HDMI_OUT_2 (with a connected preview monitor) and to enable HDMI_OUT_1 (with a connected beamer).

The Yamaha Extended Control API actually supports this: http://192.168.0.55/YamahaExtendedControl/v1/system/setHdmiOut1?enable=true http://192.168.0.55/YamahaExtendedControl/v1/system/setHdmiOut1?enable=false http://192.168.0.55/YamahaExtendedControl/v1/system/setHdmiOut2?enable=true http://192.168.0.55/YamahaExtendedControl/v1/system/setHdmiOut2?enable=false

It would be great, if the binding could also support that.

My Environment

zarusz commented 4 years ago

Hi @hr77,

The Yamaha Receiver binding is using the XML protocol and specifically the /YamahaRemoteControl/ctrl URL endpoint. The extended control is likely the JSON protocol (not supported on older models). If possible we should stick we the first one, as introducing the second will require more changes and will make existing feature detection harder across two protocols.

Can you please send me the response file? http:///YamahaRemoteControl/desc.xml

Essentially, you would need an extra switch channel for HDMI_OUT_1 and HDMI_OUT_2?

My Yamaha model doesn't support multiple HDMI out, so need to rely on you here.

ghost commented 4 years ago

Hi zarusz,

I am sorry but I do not have the Yamaha receiver anymore. I changed back to my Marantz receiver, because OpenHAB integration was much more comfortable for me.

fragger42 commented 4 years ago

Hi @zarusz , I have a RX-V775 with the same problem that I can't control HDMI out. The full desc.xml from my Receiver is this: desc.zip I cannot quote the corresponding section here unfortunately. It is the one at "Menu Func_Ex="HDMI_Out" Title_1="HDMI OUT""

It does work in FHEM (so I'm now doing MQTT to Openhab from there for HDMI switching). The FHEM YAMAHA binding had a similar problem of the missing option and did a change to support it which was discuessed here: https://forum.fhem.de/index.php?topic=41924.0

hmerk commented 3 years ago

closed due to inactivity

fragger42 commented 3 years ago

@hmerk : Can you please reopen? This enhancement request is still valid. Or are enhanxement reuests not wanted anymore?

hmerk commented 3 years ago

This is open for 2 years now and has been inactive for a long time now. So it is unlikely that someone will step in and implement this. But please feel free to come up with a contribution.

fragger42 commented 3 years ago

@hmerk: I tried it today and have patch that works fine on my side: HDMIOutput.patch.txt How to get this into openhab-addons code? Can you commit this or has someone to review it?

hmerk commented 3 years ago

@fragger42 You need to create a Pull Request which needs to be reviewed by the maintainers. Please check the contribution guidelines.

hmerk commented 3 years ago

Closed as related PR was merged