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)
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*
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