Trying to add my Arduino and use the available guide for the component. I got error “group lock doesn’t exist when I type in the last commando in the guide “$ sudo usermod -a -G dialout,lock $USER”
Have anyone any idea how to solv this?
I run on rpi with hassbian.
I got error in my log that port is not open.
Is there anyone out there that have a working Arduino connection to RPi3?
I have made all the steps in the guide. Even add user to group dial out (lock) does not exist.
This is my error
2017-11-09 20:06:34 WARNING (SyncWorker_9) [homeassistant.components.arduino] The version of the StandardFirmata sketch was notdetected. This may lead to side effects
2017-11-09 20:06:34 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform arduino
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/arduino.py", line 46, in setup_platform
sensors.append(ArduinoSensor(pin.get(CONF_NAME), pinnum, CONF_TYPE))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/arduino.py", line 61, in __init__
arduino.BOARD.set_mode(self._pin, self.direction, self.pin_type)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/arduino.py", line 78, in set_mode
pin, self._board.INPUT, self._board.ANALOG)
File "/srv/homeassistant/lib/python3.6/site-packages/PyMata/pymata.py", line 734, in set_pin_mode
self._command_handler.send_command(command)
File "/srv/homeassistant/lib/python3.6/site-packages/PyMata/pymata_command_handler.py", line 633, in send_command
self.pymata.transport.write(data)
File "/srv/homeassistant/lib/python3.6/site-packages/PyMata/pymata_serial.py", line 109, in write
self.arduino.write(bytes([ord(data)]))
File "/srv/homeassistant/lib/python3.6/site-packages/serial/serialposix.py", line 490, in write
if not self._isOpen: raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
Same problem here, using Sleepy Pi 2.
It says:
The version of the StandardFirmata sketch was notdetected
Then:
Attempting to use a port that is not open
2017-11-23 20:51:01 WARNING (MainThread) [homeassistant.setup] Setup of arduino is taking over 10 seconds.
2017-11-23 20:51:32 WARNING (SyncWorker_4) [homeassistant.components.arduino] The version of the StandardFirmata sketch was notdetected. This may lead to side effects
2017-11-23 20:51:32 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform arduino
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/arduino.py", line 46, in setup_platform
sensors.append(ArduinoSensor(pin.get(CONF_NAME), pinnum, CONF_TYPE))
File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/arduino.py", line 61, in __init__
arduino.BOARD.set_mode(self._pin, self.direction, self.pin_type)
File "/usr/lib/python3.6/site-packages/homeassistant/components/arduino.py", line 78, in set_mode
pin, self._board.INPUT, self._board.ANALOG)
File "/usr/lib/python3.6/site-packages/PyMata/pymata.py", line 734, in set_pin_mode
self._command_handler.send_command(command)
File "/usr/lib/python3.6/site-packages/PyMata/pymata_command_handler.py", line 633, in send_command
self.pymata.transport.write(data)
File "/usr/lib/python3.6/site-packages/PyMata/pymata_serial.py", line 109, in write
self.arduino.write(bytes([ord(data)]))
File "/usr/lib/python3.6/site-packages/serial/serialposix.py", line 497, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
Create the group with $ sudo addgroup lock
Comunication between arduino and HA
I have an automation project with two Mega Arduinos and over 70 relays, all wired. I am implementing the Home Assistant and I am having difficulty making the communication between the two. The two arduinos are connected to my network via LAN. Could someone help me how to do this case. I’m having a hard time and that would be very important for my project. If anyone can help me with a simple project on how to change the status of any Arduino pin from 0 to 1 via the Home Assistant it would be of great help
thankful