Why won't HA detect devices added from OZWCP, but it works the other way around?

How is it supposed to work when adding devices?

I have a RPi3 with a RazBerry module running the All-in-One Installer, I have it setup so that I can add devices from both HA and OZWCP, but when I add them from OZWCP, HA won’t pick them up?

This might be the way it’s designed, but I don’t know so please enlighten me :slight_smile:

1 Like

Most likely your not sharing the configurations between HA and OZWCP.
Easiest way assuming your running linux/*bsd is to symlink the configuration directory that OZWCP to one that HA can read or just specify the full path to the one OZWCP is using.

If you can’t get it running remind me later and I’ll try to give you specific commands or similar.

1 Like

This is what I have in my configuration.yamal.

config_path: /srv/hass/hass_venv/lib/python3.4/site-packages/libopenzwave-0.3.1-py3.4-linux-armv7l.egg/config

Is this correct or should I point ti somewhere else?

@Landrash - This question is coming up quite often in a number of threads and I think everyone would benefit if you could share the procedure. I’m not having this issue but I am having some naming issues that may be related.

Do you think you could write out the steps? I know I’d appreciate it and I’d link the other threads to it.

Thanks, as always, for your input!

To share my zwave configuration between homeassistant and OZWCP I have the following.
In homeassistants configuration.yaml I have this

zwave:
  usb_path: /dev/ttyACM0
  config_path: /home/homeassistant/.homeassistant/config

In OZWCP and homeassistants configuration directory I have symlinks called config. These two are actually symlinked to the same directory with the following commands.

ln -s /srv/homeassistant/src/python-openzwave/openzwave/config /home/homeassistant/.homeassistant/config
ln -s /srv/homeassistant/src/python-openzwave/openzwave/config /srv/homeassistant/src/open-zwave-control-panel/config
7 Likes

Thanks so much for explaining this in a way that was really easy to grasp. I appreciate it!

My pleasure. Since you been looking for this information, where in your opinion would you have preferred finding it? Looking around at the getting started guide and everything but can’t really think of a place it fits.

One place I think it would be fitting would be in the OZWCP section in the All In One instructions.

Also, could be added here:

BTW, thanks for all your contributions here and in the past. :smiley:

1 Like

I’ll look at both those places and try to get something up asap.

Slightly OT How do you get OZWCP to save the files into /open-zwave-control-panel/config?

My installation saves it into /open-zwave-control-panel/

So I’m not supposed to use the config directory inside the virtual environment?
/srv/hass/hass_venv/lib/python3.4/site-packages/libopenzwave-0.3.1-py3.4-linux-armv7l.egg/config

But insted these?
/srv/hass/src/python-openzwave/openzwave/config /srv/hass/src/open-zwave-control-panel/config

So I would do:
ln -s /srv/hass/src/python-openzwave/openzwave/config /home/homeassistant/.homeassistant/config ln -s /srv/hass/src/python-openzwave/openzwave/config /srv/hass/src/open-zwave-control-panel/config

You could use either. I’m using the once from the open-zwave source tree but the one installed in the virtual_env should be identical.

Sorry, forgot to reply to you.
When compiling OZWCP you set where the config is stored.

I’ve looked and thought a lot about it. Best place is actually in the current guide in this very forum and this thread.

Sorry if I’m being dense… but I can’t figure out how to set the config dir.

I don’t see it this makefile. Would you mind pointing me to the right line if it’s in there?

The tutorial has a line after make: ln -sd ../open-zwave/config… but I assume that is just to symlink the directory we have already set up.

Assuming you cloned the OZWCP code from the github repository the makefile is called Makefile. On line 24 is the setting in question.

You could follow @aceat64 excellent guide for the basics.

I have linked the OZW config folder but HA still won’t find devices added from OZWCP.
Maybe it takes some time for the devices to show up? How long should I have to wait?

Is there anything else I could have done wrong?

When you add devices in OZW, do you save / backup settings (there is button on the top right for that)
There should also be ozw* configuration file in same place where you keep yaml files, (It is the same file that you save changes in OZW). It may be possible that you have two separate configurations.
Lastly, now you can use HA to add devices without OZWCP (even using secure method)

I defer to your wisdom sir. :slight_smile: I will link people to it as I have it bookmarked. I also added a couple of tags to the thread to make it easier to find in searches.

Wait a second… Save button?! :see_no_evil:

I thought it was auto saved, so I need to manually save after I add devices?
Do I also have to save after making changes to a device or how is the settings pushed to a for example Fibaro Motion Sensor?