Hi All,
Need a desperate help with deploying HA through docker on Ubuntu (NUC). I have followed the installation guide and when I try to configure ZWave, I get below error. My Zwave stick is on /dev/ttyACM0 but looking at the log file, it seems HA is looking at /dev/ttyAMA0.
I did some search and troubleshooting but can’t figure out what’s wrong.
PS: New to Linux/Ubuntu OS. Zwave was connected to RPi using HASSIO and was slow so moving to NUC.
2018-03-02 12:54:01 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=2 from 2018-03-02 01:31:14.145481) 2018-03-02 12:54:04 ERROR (MainThread) [homeassistant.setup] Error during setup of component zwave Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/openzwave/option.py", line 78, in __init__ raise ZWaveException(u"Can't find device %s : %s" % (device, traceback.format_exception(*sys.exc_info()))) openzwave.object.ZWaveException: "Zwave Generic Exception : Can't find device /dev/ttyAMA0 : ['NoneType: None\\n']" During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/app/homeassistant/setup.py", line 148, in _async_setup_component component.setup, hass, processed_config) File "/usr/local/lib/python3.6/asyncio/futures.py", line 327, in __iter__ yield self # This tells Task to wait for completion. File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup future.result() File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result raise self._exception File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/app/homeassistant/components/zwave/__init__.py", line 275, in setup config_path=config[DOMAIN].get(CONF_CONFIG_PATH)) File "/usr/local/lib/python3.6/site-packages/openzwave/option.py", line 81, in __init__ raise ZWaveException(u"Error when retrieving device %s : %s" % (device, traceback.format_exception(*sys.exc_info()))) openzwave.object.ZWaveException: 'Zwave Generic Exception : Error when retrieving device /dev/ttyAMA0 : [\'Traceback (most recent call last):\\n\', \' File "/usr/local/lib/python3.6/site-packages/openzwave/option.py", line 78, in __init__\\n raise ZWaveException(u"Can\\\'t find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))\\n\', \'openzwave.object.ZWaveException: "Zwave Generic Exception : Can\\\'t find device /dev/ttyAMA0 : [\\\'NoneType: None\\\\\\\\n\\\']"\\n\']'
######-PC:/home/ayx# ls /dev/ttyACM*
/dev/ttyACM0
Confiuration.yaml output is as per below
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: -37.8667
longitude: 145.2833
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Australia/Melbourne
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# 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:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Weather prediction
sensor:
- platform: yr
# Text to speech
tts:
- platform: google
# Cloud
cloud:
#Zwave
zwave:
usb_path: /dev/ttyAMA0
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
and Docker-compose.yaml
version: '3'
services:
web:
image: homeassistant/home-assistant
volumes:
- /home/rahul/Documents/HA:/config
- /etc/localtime:/etc/localtime:ro
devices:
- /dev/ttyACM0:/dev/ttyACM0
restart: always
network_mode: host