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:

homeassistant:

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

#introduction:

Enables the frontend

frontend:

http:

Uncomment this to add a password (recommended!)

api_password: PASSWORD

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

base_url: example.duckdns.org:8123

Checks for available updates

updater:

Discover some devices automatically

discovery:

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

conversation:

Enables support for tracking state changes over time.

history:

View all events in a logbook

logbook:

Track the sun

sun:

Weather Prediction

sensor:
platform: yr

Text to speech

tts:
platform: google

arduino:
port: /dev/ttyACM0

media_player:
platform: samsungtv
host: xxx.xxx.xxx.xxx

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/threading.py”, line 920, in _bootstrap_inner
self.run()
File “/home/homeassistant/.homeassistant/deps/PyMata/pymata_command_handler.py”, line 829, in run
method(command_data)
File “/home/homeassistant/.homeassistant/deps/PyMata/pymata_command_handler.py”, line 388, in analog_message
self.analog_response_table[data[self.RESPONSE_TABLE_MODE]][self.RESPONSE_TABLE_PIN_DATA_VALUE]
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/bootstrap.py”, line 151, in _async_setup_component
None, component.setup, hass, config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/arduino.py”, 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: