OZWCP integration in HASS (Workaround)

If you’re trying to run ozwcp, why not just create a service for it and run it 24/7? That way, you can just stop the zwave network inside of hass, open your browser to the ozwcp page, connect, do you thing, disconnect, and then start the zwave network back up in hass?

sudo nano /etc/systemd/system/ozwcp.service

[Unit]
Description=OpenZWave Control Panel
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/open-zwave-control-panel
ExecStart=/root/open-zwave-control-panel/ozwcp
Restart=on-failure

[Install]
WantedBy=multi-user.target

Make sure to update the directories to match your own.

Ctrl+X, Y, Enter

sudo systemctl daemon-reload
sudo systemctl enable ozwcp.service
sudo systemctl start ozwcp.service

And then you’re good to use it whenever you want!

3 Likes

Sorry new to the whole coding thing where and what do we with the info from [unit] down?

with sudo nano /etc/systemd/system/ozwcp.service you will create a file. you will just copy and paste this part:

[Unit]
Description=OpenZWave Control Panel
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/open-zwave-control-panel
ExecStart=/root/open-zwave-control-panel/ozwcp
Restart=on-failure

[Install]
WantedBy=multi-user.target

inside and follow the instructions.

Thanks for the reply. How would one put it in the left side bar like your photo?

this is the component Iframe

Is there a way to test to make sure ozwcp is running? I can’t seam to access it.

if u followed my tutorial, you shold be able to see z wave under: http://HASSIPADDRESS:8090

When you say stop the zwave network inside of hass, do you mean stopping the home assistant service?

I assume once that is done, they you will be able to reach http://ipaddress:8090? Lastly, how did you determine the port, is it defined somewhere? Or is it just the default port? I ask because when you manually start the OZWP:

sudo ./ozwcp -p 8888

You specify the port you want to use with the 8888.

Thanks.

I resume this old (december 2016) post.

You can specifiy the port number in the file /etc/systemd/system/ozwcp.service

ExecStart=/root/open-zwave-control-panel/ozwcp -p XXXX

Where XXXX is the port you prefer