Cannot connect to arduino uno with home assistant

Hello, I’ve installed in my arduino uno connected to my raspberry pi 3.
I try connect them both with the config on the sample page of the home assistant website (Removed integration - Home Assistant) but every time i try i get the error on the home assistant homepage “Invalid config”

Components and platforms could not be set up arduino please check you config.

My config file is:


Name of the location where Home Assistant is running

name: Home

Location required to calculate the time the sun rises and sets

latitude: xxx
longitude: xxx

Impacts weather/sunrise data (altitude above sea level in meters)

elevation: 3

metric for Metric, imperial for Imperial

unit_system: metric

Pick yours from here: List of tz database time zones - Wikipedia

time_zone: Europe/Amsterdam

Show links to resources in log and frontend


Enables the frontend



Uncomment this to add a password (recommended!)

api_password: PASSWORD

Uncomment this if you are using SSL or running in Docker etc


Checks for available updates


Discover some devices automatically


Allows you to issue voice commands from the frontend in enabled browsers


Enables support for tracking state changes over time.


View all events in a logbook


Track the sun


Weather Prediction

platform: yr

Text to speech

platform: google

port: /dev/ttyACM0

platform: samsungtv

What could be wrong?

thanks :slight_smile:

PS; i’m a noobie just started

are you sure that your arduino is connected to /dev/ttyACM0?

The arduinio page show how to determine the correct por (about halfway down):

Also when posting your config reference the first part of the post linked below. Following those instructions helps preserve the formatting so it can also be checked. Formatting can often break a config file and it helps to post it for other to check.

Hi silvrr, Thanks for the quick response. Yes i’m sure that it is connected to /dev/ttyAMC0 because that the only one that appears extra if i disconnect the arduino and connect it and see the available /dev/tty*

I’ve found an error:

Traceback (most recent call last):

File “/usr/lib/python3.4/”, line 920, in _bootstrap_inner
File “/home/homeassistant/.homeassistant/deps/PyMata/”, line 829, in run
File “/home/homeassistant/.homeassistant/deps/PyMata/”, line 388, in analog_message
IndexError: list index out of range

ERROR:homeassistant.bootstrap:Error during setup of component arduino
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/”, line 151, in _async_setup_component
None, component.setup, hass, config)
File “/usr/lib/python3.4/asyncio/”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/”, line 41, in setup
if BOARD.get_firmata()[1] <= 2:
IndexError: list index out of range

Does some one onderstand what is missing? i guess the firmata but i;ve installed the standardFirmata to the raspberry pi

Thanks :slight_smile: