PSR04 Smart Color Button / Zwave.me UZB1 not showing up in HASS

So, i am completely stuck here. I use Home assistant to control the gate on my Henhouse, and it’s working great in combination with Bloomsky. I even set up some failsafe measures, a hardware pushbuttopn and I get an e-mail notification. So i really like Home Assistant.

So, on a fresh All-In-One install of another Raspberri Pi 2, I decided to use Zwave components. I use the Philio Tech 4 color button and the Zwave.me UZB1

My configuration.yaml is very basic :

homeassistant:
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 51.8354
  longitude: 4.9804
  # Impacts weather/sunrise data
  elevation: 215
  # 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: Europe/Amsterdam

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

logger:
history:
discovery:
sun:
conversation:
logbook:
frontend:

I configured my zwave network in OZWCP and there my network shows op, and I receive commands from the button :

However, if I start Home Assistant again, no zwave device or any information shows up. There are no error in the logs, I can see the Zwave services at the ip:8123/dev-service tab.

In the .homeassistant directory,the files zwcfg_0xc2c955e4.xml and OZW_Log.txt are created.

When i push the Zwave button, the logger adds the following information to home-assistant.log :

16-09-20 19:27:40 libopenzwave: notif_callback : new notification
16-09-20 19:27:40 libopenzwave: notif_callback : Notification type : 2, nodeId : 2
16-09-20 19:27:40 libopenzwave: addValueId : ValueID : 72057594072006657
16-09-20 19:27:40 libopenzwave: addValueId : GetCommandClassId : 32, GetType : 1
16-09-20 19:27:40 libopenzwave: addValueId : Notification : {'valueId': {'instance': 1, 'genre': '', 'commandClass': 'COMMAND_CLASS_BASIC', 'units': None, 'value': None, 'index': 0, 'label': None, 'readOnly': False, 'id': 72057594072006657, 'nodeId': 2, 'type': 'Byte', 'homeId': 3267974628}, 'nodeId': 2, 'notificationType': 'ValueChanged', 'homeId': 3267974628}
16-09-20 19:27:40 libopenzwave: notif_callback : call callback context
16-09-20 19:27:40 openzwave: zwcallback args=[{'valueId': {'instance': 1, 'genre': '', 'commandClass': 'COMMAND_CLASS_BASIC', 'units': None, 'value': None, 'index': 0, 'label': None, 'readOnly': False, 'id': 72057594072006657, 'nodeId': 2, 'type': 'Byte', 'homeId': 3267974628}, 'nodeId': 2, 'notificationType': 'ValueChanged', 'homeId': 3267974628}]
16-09-20 19:27:40 openzwave: Z-Wave Notification ValueChanged : {'valueId': {'instance': 1, 'genre': '', 'commandClass': 'COMMAND_CLASS_BASIC', 'units': None, 'value': None, 'index': 0, 'label': None, 'readOnly': False, 'id': 72057594072006657, 'nodeId': 2, 'type': 'Byte', 'homeId': 3267974628}, 'nodeId': 2, 'notificationType': 'ValueChanged', 'homeId': 3267974628}
16-09-20 19:27:40 libopenzwave: notif_callback : end

I would expect to see the sensor somewhere in Home Assistant, but nothing shows up. I am missing something obvious here ? Or is the hardware button not compatible ?

Thanks for any help.

1 Like

It sounds you are using 2 different zwcfg files, one in the openzwave folder and one in the home assistant folder. Unless OZWCP is looking at the zwcfg file in the the home assistant folder, then you are reading from two different ZWave configuration files. One that has your devices in it and one that does not.

There are several ways to link the two, but I prefer a straight symbolic link of the zwcfg file:

I prefer to have the zwcfg file in the home assistant folder as the source, so if your devices are already inside the zwcfg file from using OZWCP in the /srv/hass/src/open-zwave-control-panel/ folder, then I would copy that one to the home assistant folder, then delete the one in the /srv/hass/src/open-zwave-control-panel/ folder and then link them.

Your zwcfg file name will be different, as it will be zwcfg_[hexnumber].xml, so substitute the name of your zwcfg file for the one in the steps. These steps are assuming you are logged in as the pi user:

  1. Make sure both Home Assistant and OZWCP are shutdown

  2. Delete any zwcfg files from home assistant:

sudo rm /home/hass/.homeassistant/zwcfg*

  1. Copy zwcfg file from openzwave to home assistant (the following is all on one line):

sudo cp /srv/hass/src/open-zwave-control-panel/zwcfg_0xc061d4d6.xml /home/hass/.homeassistant/

  1. Now changes its ownership to hass:

sudo chown hass:hass /home/hass/.homeassistant/zwcfg_0xc061d4d6.xml

  1. Delete the zwcfg in openzwave:

sudo rm /srv/hass/src/open-zwave-control-panel/zwcfg_0xc061d4d6.xml

  1. Link the zwcfg from Home Assistant to openzwave using the hass user:

sudo runuser -l hass -c 'ln -s /home/hass/.homeassistant/zwcfg_0xc061d4d6.xml /srv/hass/src/open-zwave-control-panel/zwcfg_0xc061d4d6.xml'

Now when you run OZWCP it will be reading and writing to the same zwcfg file that Home Assitant will be reading from.

Thanks for your help. I carried out the instructions, but i don’t see any changes in Home Assistant. I have only the sun on my frontend.
However if i go to http://IP/dev-info and i touch the sensor button, i can see this appearing :

16-09-21 17:30:20 libopenzwave: notif_callback : new notification
16-09-21 17:30:20 libopenzwave: notif_callback : Notification type : 2, nodeId : 2
16-09-21 17:30:20 libopenzwave: addValueId : ValueID : 72057594072006657
16-09-21 17:30:20 libopenzwave: addValueId : GetCommandClassId : 32, GetType : 1
16-09-21 17:30:20 libopenzwave: addValueId : Notification : {'notificationType': 'ValueChanged', 'valueId': {'commandClass': 'COMMAND_CLASS_BASIC', 'homeId': 3267974628, 'index': 0, 'nodeId': 2, 'readOnly': False, 'units': None, 'instance': 1, 'type': 'Byte', 'value': None, 'label': None, 'id': 72057594072006657, 'genre': ''}, 'nodeId': 2, 'homeId': 3267974628}
16-09-21 17:30:20 libopenzwave: notif_callback : call callback context
16-09-21 17:30:20 openzwave: zwcallback args=[{'notificationType': 'ValueChanged', 'valueId': {'commandClass': 'COMMAND_CLASS_BASIC', 'homeId': 3267974628, 'index': 0, 'nodeId': 2, 'readOnly': False, 'units': None, 'instance': 1, 'type': 'Byte', 'value': None, 'label': None, 'id': 72057594072006657, 'genre': ''}, 'nodeId': 2, 'homeId': 3267974628}]
16-09-21 17:30:20 openzwave: Z-Wave Notification ValueChanged : {'notificationType': 'ValueChanged', 'valueId': {'commandClass': 'COMMAND_CLASS_BASIC', 'homeId': 3267974628, 'index': 0, 'nodeId': 2, 'readOnly': False, 'units': None, 'instance': 1, 'type': 'Byte', 'value': None, 'label': None, 'id': 72057594072006657, 'genre': ''}, 'nodeId': 2, 'homeId': 3267974628}
16-09-21 17:30:20 libopenzwave: notif_callback : end

So it gets input from the button. I checked the components, they are compatible with Open Zwave,

The button uses command_class_central scene, which is not supported properly by ozw yet. And that is why there isn’t anything in ha either. Ozw can recognize the device and the basic command class. This is what you see in the log. So for now it is unsupported.

Okay thanks, I checked the OZW device database and its on the list, so hopefully it gets supported soon.

Hello.
A short question related to this topic. Is Philio PSR04 Smart Color Button recognized in the 0.30 update of HASS? You mentioned it has the command_class_central scene command.

I get this errors (just a sample) when I try to add it (the controller sees it outside of HASS (the id keeps changing):

16-10-12 09:07:45 openzwave: Z-Wave Notification ValueRemoved for an unknown value ({‘id’: 72057594219773955}) on node 10
16-10-12 09:07:45 openzwave: Z-Wave Notification ValueRemoved for an unknown value ({‘id’: 72057594219823105}) on node 10
16-10-12 09:07:45 openzwave: Z-Wave Notification ValueRemoved for an unknown value ({‘id’: 72057594219823126}) on node 10

This is not related to HA, but the lack of support for the cecntral_scene commandclass in OZW.
The device is in the database, which only means it is recognized, but the communication of the commandclassis not there.

Hi there. Do you have any idea if the button would work now in home assistant? Thanks.