Java Runtime Environment: openjdk version “1.8.0_252”
openHAB version: 2.5.6-2
Issue of the topic: Aeotec Water Sensor 6 is online but reporting NaN. I just installed a HUSBZB-1 Z-wave stick which went smoothly, and it is configured with a serial port. The Z-wave stick found the Water Sensor and added it as a thing along with the channels. However, the reported temperature and battery level is -NaN, and if I activate the water alarm it is not reported.
Please let me know what info I need to provide in order to diagnose. Thank you!
I started debug logging, uninstalled the device and z-wave stick, then reinstalled Both devices appeared to install normally according to the documentation for the zwave binding and the water sensor. Still the same behavior – both z-wave serial controller and the water sensor are online, but when I go into PaperUI > Control, the water sensor channels are not reporting any data. I used simple mode for item linking.
I didn’t see anything obvious in the debug logs, but I also don’t know exactly what to look for. Due to the size, the log file can be downloaded here.
It looks like the device is joining ok, but it’s not fully initialised. Try waking the device up a few times to see if this completes. If it doesn’t, please provide a longer log showing what happens when it stops.
The device also won’t send reports until the initialisation is complete - or at least more complete than I see in this log. That’s because the device needs to be told to send reports, and this is done during the initialisation phase.
Partial success. After much searching I found in these forums that I should update etc/default/openhab2 with the serial port paths for the Zwave stick. I didn’t think this was necessary since they were already showing up in the drop-down, but apparently its needed for reliability.
I did that, then reinstalled the Water Sensor. After it finished initialization it began to report temperature and battery, as viewed in the Control page in PaperUI. Woo-hoo! It’s been a few hours and it is still online and apparently working.
However, after manually setting off the vibration alarm or water alarm these events were still not being reported in the Control page. Again, I used Simple Mode to set up the channels. I wonder if I should manually add items instead?
So my partial success was short-lived, but here is a clue. If I pull out my z-wave stick and reinsert it, let it come online, then activate my z-wave device, it will update the channels. After that, if I activate my device again, the channels will no longer update. The z-wave controller is reporting additional start frames and frames acknowledged, though, each time I activate the device. The relevant logs for this exact scenario are below. I still couldn’t find a smoking gun in the logs but again I’m a newbie at this. Thanks again. Relevant logs at: https://drive.google.com/file/d/1VaewODgYya34wh6K3rKbncZWxwSCBtZ1/view?usp=sharing
My guess here is that the issue is with associations. The fact that it updates once tells me that polling is working (the binding will poll the state on startup), but if it’s not routinely updating, then this probably indicates that associations are not configured.
This should be configured during startup, but can also be configured manually using the UI.
The associations are automatically set up such that lifeline is sent to Controller, and that’s it. From what I’ve read that’s the proper way to do it. Are there other association options to set?
I also found this relevant thread on the forum, which is pretty discouraging. It seems like if this water sensor doesn’t work, it just doesn’t work, although others have reported success with it in OpenHab. Aeotec Water Sensor 6 ZW122 Won't Report
I did that. Instead of using PaperUI, I did this with Habmin since I read in the forums that was the preferred way to work with Zwave devices (I don’t know why). I also changed, somewhat out of desperation, the Wakeup Time Out from 30 to 60 seconds, though I don’t think it mattered. I further removed the links created by Simple Mode and manually added my own items.
After all this, it started working. I’m not sure what did it, though. It has reliably been reporting the flood alarm, and I created a rule to send an Alexa announcement when it happens. So all of that is a major success for me. So thank you Chris for your patience and help, it’s much appreciated. Below are my device settings and items file in case anyone might find it useful.