Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Z-wave config problem - System gets wrong address to device

$
0
0

@G7B wrote:

EDIT: Seem to have solved it - read the next post for solution.

Do anyone have a clue on how to help a fresh smart home / HA-user?
Was expecting the learning curve to be steep - but have gotten to a problem I simply don’t see a way out of. My serach around the internet and this forum gives me different problems I’m not completely able to relate to mine.

I’m running Home Assistant under VMware ESXi. Installed from the image available on home-assistant.io/hassio/installation/.

I have inserted the Aeotec Z-wave stick into the back port of my Intel NUC. (Also have an RFXtrx inserted - but not a priority to get this to work at this moment.)

I have tried several times to get the Z-wave installed and working.

First time I added it to the configuration.yaml with the code:

zwave:
  usb_path: /dev/ttyACM0

And this resulted in this log entry in HA:

Logger: homeassistant.config_entries
First occured: 15:55:09 (1 occurences)
Last logged: 15:55:09

Error setting up entry Z-Wave for zwave

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/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/homeassistant/homeassistant/config_entries.py", line 215, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/zwave/__init__.py", line 369, in async_setup_entry
    config_path=config.get(CONF_CONFIG_PATH),
  File "/usr/local/lib/python3.7/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.7/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\']'

I have no idea on where it gets “/dev/ttyAMA0” from as I have not entered that anywhere.

So I deleted Z-wave from HA / integrations and from configuration.yaml .

Restarted. Added it again from HA / Integrations and typed in /dev/ttyACM0 as the USB address.
HA then automatically added this to configuration.yaml :

zwave:
  usb_path: /dev/ttyAMA0

And it gives this error



Logger: homeassistant.config_entries
First occured: 23:51:57 (1 occurences)
Last logged: 23:51:57

Error setting up entry Z-Wave (import from configuration.yaml) for zwave

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/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/homeassistant/homeassistant/config_entries.py", line 215, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/zwave/__init__.py", line 369, in async_setup_entry
    config_path=config.get(CONF_CONFIG_PATH),
  File "/usr/local/lib/python3.7/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.7/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\']'

Again I have no idea where HA gets ttyAMA0 from …

Some terminal output:

~ $ ha hardware info
audio: {}
disk: []
gpio: []
input:
- AT Translated Set 2 keyboard
- VMware VMware Virtual USB Mouse
- ImPS/2 Generic Wheel Mouse
- Power Button
serial:
- /dev/serial/by-id/usb-0658_0200-if00
- /dev/ttyS1
- /dev/ttyS3
- /dev/ttyACM0
- /dev/ttyUSB0
- /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO44GD4F-if00-port0
- /dev/ttyS2
- /dev/ttyS0
~ $ ls -ltr /dev/tty*
crw-rw----    1 root     audio     188,   0 Mar 10  2020 /dev/ttyUSB0
crw-rw----    1 root     audio       4,  67 Mar 10  2020 /dev/ttyS3
crw-rw----    1 root     audio       4,  66 Mar 10  2020 /dev/ttyS2
crw-rw----    1 root     audio       4,  65 Mar 10  2020 /dev/ttyS1
crw-rw----    1 root     audio       4,  64 Mar 10  2020 /dev/ttyS0
crw-rw----    1 root     audio     166,   0 Mar 10  2020 /dev/ttyACM0
crw-rw-rw-    1 root     root        5,   0 Mar 10  2020 /dev/tty

In advance thanks for any help given :slight_smile:

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles