Ik ben aan het overstappen van Domoticz naar Home Assistant. Nu kan ik alles overzetten behalve mijn slimme meter.
Binnen Domoticz zie ik dat mijn poort /dev/ttyUSB0 is en de slimme meter werkt.
Nu heb ik Docker geïnstalleerd met daarbinnen Home Assistant. Wanneer ik de module dsmr laadt krijg ik de melding dat /dev/ttyUSB0 niet gevonden kan worden, no such file or directory
De logging is als volgt.
17-04-24 08:18:57 ERROR (MainThread) [custom_components.sensor.dsmr] error connecting to DSMR
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/serial/serialposix.py", line 244, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/sensor/dsmr.py", line 139, in connect_and_reconnect
reader_factory())
File "uvloop/future.pyx", line 230, in iter (uvloop/loop.c:110600)
File "uvloop/future.pyx", line 434, in uvloop.loop.BaseTask.fastwakeup (uvloop/loop.c:114018)
File "uvloop/future.pyx", line 146, in uvloop.loop.BaseFuture.result (uvloop/loop.c:109361)
File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture.resultimpl (uvloop/loop.c:108900)
File "uvloop/future.pyx", line 372, in uvloop.loop.BaseTask.faststep (uvloop/loop.c:112669)
File "/usr/local/lib/python3.5/asyncio/coroutines.py", line 210, in coro
res = func(*args, **kw)
File "/usr/local/lib/python3.5/site-packages/serial_asyncio/__init__.py", line 410, in create_serial_connection
ser = serial.serial_for_url(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/serial/__init__.py", line 88, in serial_for_url
instance.open()
File "/usr/local/lib/python3.5/site-packages/serial/serialposix.py", line 247, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
17-04-24 08:19:27 ERROR (MainThread) [custom_components.sensor.dsmr] error connecting to DSMR
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/serial/serialposix.py", line 244, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Nu kan ik de bestanden nergens terugvinden (vooralsnog) via SSH en zie ik dat er wordt gekeken naar python 3.5 terwijl binnen synology versie 2.7 alleen zichtbaar is.
Iemand suggesties?