Hello there!
I’m soooo interested in getting this add-on working on my setup!! thanks a million for your work!! I tried to install the two flavours and failed miserably in both cases
As the the HA connected back2back over serial with the CXA contains “less moving parts”, I think it should be easier to fix this flavour first.
This is the error that I see upon rebooting HA, once I have followed all the steps indicated in GitHub:
Logger: homeassistant.config
Source: custom_components/cambridge_cxa/media_player.py:11
Integration: cambridge_cxa (documentation, issues)
First occurred: 10:24:51 PM (1 occurrences)
Last logged: 10:24:51 PM
Platform error: media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 928, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 744, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 761, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/cambridge_cxa/media_player.py", line 11, in <module>
from serial import Serial
ImportError: cannot import name 'Serial' from 'serial' (/usr/local/lib/python3.10/site-packages/serial/__init__.py)
any idea what I should do to fix the error?
cannot import name 'Serial' from 'serial'
Also, there is something worth noting. As soon as I connected a serial cable to my HA, installed this plugin, included the new media_player code and rebooted HA, I lost all my RFXTRX entities!
Logger: homeassistant.config_entries
Source: components/rfxtrx/__init__.py:138
First occurred: 10:24:51 PM (1 occurrences)
Last logged: 10:24:51 PM
Error setting up entry RFXTRX for rfxtrx
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 784, in connect
self.serial = serial.Serial(self.port, 38400, timeout=0.1)
AttributeError: module 'serial' has no attribute 'Serial'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 91, in async_setup_entry
await async_setup_internal(hass, entry)
File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 168, in async_setup_internal
rfx_object = await hass.async_add_executor_job(_create_rfx, config)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 138, in _create_rfx
rfx = rfxtrxmod.Connect(
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 977, in __init__
self.transport = transport_protocol(device)
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 779, in __init__
self.connect()
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 785, in connect
except serial.serialutil.SerialException:
AttributeError: module 'serial' has no attribute 'serialutil'
thanks!!