Marantz AV Receiver serial component

Great job! I’ve modified it a bit to get the SR7400/SR8400 support if anyone’s interested:

Do you think your modified code would work with an Ethernet > RS-232 adapter like this https://www.iot-store.com.au/products/serial-rs232-to-ethernet-converter-usr-tcp232-302 ?

Hi @grinco, I have a SR7300 and I am trying to adapt your code to work with it. The serial commands are different between the two models but similar in structure.

SR7400 RS232 docs: https://www.us.marantz.com/documentmaster/us/rs232c_sr7400_8400_v100_mai.pdf

SR7300 RS232 docs: https://www.us.marantz.com/documentmaster/us/sr7300_sr7300ose_rs-232c_specification_v201.pdf

I have a Raspberry Pi running Hassio with a USB to rs232 adapter cable. I am not sure if it even works. Did you do any testing of the serial commands outside of Home Assistant? I thought there might be a terminal command I could use to send commands and get a response from the Receiver.

Did you setup specific settings to the H-Linkadapter?
If so could you share this with me?

I managed to get it all working with some changes of the code with a collegue of mine.

Small update from my site, I’ve made two repositories on Github with two different versions which are at least working for a Marantz SR5004.

Is there functionality for Zone 2 and 3? I didn’t see a way to add zones to the config.

Since I’m not using zone’s I never had a look on this point. Which receiver are you using?

“tcp to serial” integration does not work for me. No ‘version’ key in the manifest file for custom integration (log)

Changed

  
{
  "domain": "marantz",
  "name": "Marantz",
  "documentation": "https://github.com/Imperial-Guard/Marantz_TCP",
  "dependencies": [],
  "codeowners": [],
  "requirements": [],
  "version": "1.0"
}

changed the file but still the problem…

Logger: homeassistant.loader
Source: loader.py:794
First occurred: 20:30:13 (1 occurrences)
Last logged: 20:30:13

No ‘version’ key in the manifest file for custom integration ‘marantztcp’. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of ‘marantztcp’

Jep made a mistake:

{
  "domain": "marantztcp",
  "name": "Marantz",
  "documentation": "https://github.com/Imperial-Guard/Marantz_TCP",
  "dependencies": [],
  "codeowners": [],
  "requirements": [],
  "version": "1.0"
}

Now using marantzusb with Marantz SR8001 and works great

Thanks!!!

Not working…
Directories copied as described (I guess in Supervisor Container) where the configuration directory is.
Logs:
2021-11-30 20:30:11 WARNING (MainThread) [homeassistant.components.media_player] MediaPlayerDevice is deprecated, modify Marantz to extend MediaPlayerEntity
2021-11-30 20:30:16 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up marantztcp platform for media_player
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform
await asyncio.shield(task)
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/marantztcp/media_player.py”, line 51, in setup_platform
from marantz_receiver import MarantzReceiver
ModuleNotFoundError: No module named ‘marantz_receiver’

Any help?

Simple serial wrapper daemon to mqtt with “state” implementation.

Hello,

I integrated the Marantz_USB-Serial script from Imperial-Guard into my HA instance (in docker).
Everything is working as expected with my SR6001, I can control the volume, change the source and power on the device from the media_player control in HA.

The only action I cannot do is powering off the receiver when I press the power button in HA (power on is working, though).

Through the terminal, if I send the command @PWR:1, I can switch off the receiver, so that part is OK.
echo -e -n '\x40\x50\x57\x52\x3a\x31\x0D' > /dev/ttyUSB0

Could anyone point me in the right direction to solve that?

HomeAssistant version is : 2024.7.4

Many thanks for your help !