I’m trying to use the NAD integration with RS232 but I’m having a lot of troubles with it. Install and detect works perfectly fine, can switch the device on & off, but volume up & down is extremely sluggish (5sec delay) and selecting source doesn’t work at all. I do get some errors in my log (see below).
Serial commands are quite universal between NAD models, so at least these simple commands should work with any NAD receiver. Searching around for solutions (most info is TCP related, instead of RS232) doesn’t give me any clues.
Is there anyone who can help me with a solution ?
Home Assistant Core 2021.7.4
NAD M32 Receiver / RS232
Config:
# NAD Amp
- platform: nad
name: NAD Amp
serial_port: /dev/ttyS2
min_volume: -60
max_volume: -20
sources:
1: "TV"
2: "KODI USB"
3: "KODI HDMI"
Log:
2021-07-26 12:42:58 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140568163409056] can only concatenate str (not "int") to str
Traceback (most recent call last):
File "/opt/hass/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/opt/hass/lib/python3.9/site-packages/homeassistant/core.py", line 1491, in async_call
task.result()
File "/opt/hass/lib/python3.9/site-packages/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/opt/hass/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/opt/hass/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/opt/hass/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 811, in async_request_call
await coro
File "/opt/hass/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/opt/hass/lib/python3.9/site-packages/homeassistant/components/media_player/__init__.py", line 701, in async_select_source
await self.hass.async_add_executor_job(self.select_source, source)
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/hass/lib/python3.9/site-packages/homeassistant/components/nad/media_player.py", line 161, in select_source
self._nad_receiver.main_source("=", self._reverse_mapping.get(source))
File "/opt/hass/lib/python3.9/site-packages/nad_receiver/__init__.py", line 117, in main_source
source = self.exec_command('main', 'source', operator, value)
File "/opt/hass/lib/python3.9/site-packages/nad_receiver/__init__.py", line 46, in exec_command
cmd = cmd + value
TypeError: can only concatenate str (not "int") to str