I am using a Arduino Mega with firmata express to controle several lights, sensors.
The Arduino is connected to my synology NAS with USB.
Home assistant is running on a Virtual Manager. There I can see that the Arduino is recognized and working.
In Home assistant, Supervisor, hardware i see also the /dev/ttyACM0.
Log tells nothing.
If the connection is lost i need to restart Home assistant. The log tells then that it was not possible to make connection to the device. Sometimes it works after restart and sometimes I need to restart the Virtual Manager. If this not works i need to change the config file from /dev/ttyACM0 to by-id. It doesn’t make any sense… Sometimes it works after restart and 2min later or several weeks later again not working without any information on the log.
What could causing this problem? It was working for more than a half year without any problems. I didn’t changed anything except inegrating shelly devices… I already had 2 shelly’s running and integrate 5 more.
I am considering to use MQTT because lot of people is using it without any problems but i don’t no how to do it… Hopefully somebody can give me a solution.
Nobody that can help me out?
26days later arduino lost connection again…
Restart virtual manager and after 2 min connection is lost… No log problems only on restart core i get the log error (see below)
Logger: homeassistant.config_entries
Source: components/firmata/board.py:155
First occurred: 19:39:26 (1 occurrences)
Last logged: 19:39:26
Error setting up entry serial-/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_95730333737351F04120-if00 for firmata
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/firmata/__init__.py", line 177, in async_setup_entry
if not await board.async_setup():
File "/usr/src/homeassistant/homeassistant/components/firmata/board.py", line 61, in async_setup
self.api = await get_board(self.config)
File "/usr/src/homeassistant/homeassistant/components/firmata/board.py", line 155, in get_board
await board.start_aio()
File "/usr/local/lib/python3.9/site-packages/pymata_express/pymata_express.py", line 251, in start_aio
await self._manual_open()
File "/usr/local/lib/python3.9/site-packages/pymata_express/pymata_express.py", line 420, in _manual_open
i_am_here = list(i_am_here)
TypeError: 'NoneType' object is not iterable