A z-wave monitor for water flow and pressure for leaks, with an optional water shutoff valve in case of emergencies. Powered by the z-uno board.
- follow vs-code install
- restart VS code between steps if you get errors of command not found
- make sure you set the frequency/security/etc. settings, otherwise, it will not get included on the network
- for security, enable S2
Please note that this method did not work for me. HA kept it in provisioned mode but never included it, even after resetting the device, etc.
Creating the QR Code:
Z-Uno2/tools/zme_make/zme_make boardInfo -q qrcode.png -d /dev/ttyUSB0
you can also generate the QR manually by getting its value following this:
- open commands
- select
Z-UNO Extracts metadata from connected Z-Uno board
- click
Get Info
- you should see in the console output now lots of information
- including
SmartStart QR
- including
for either, press 3 times rapidly the service BTN
.
it should turn the led red.
- The inclusion and interview may take longer, when S2 with PIN is enabled.
- Inclusion time is also affected by number of channels and their size (ie. four byte sensor/meters can take twice as much to get included)
- To be sure, go to the zwave logs of HA and check if the inclusion has timed out
- inclusion can fail for some reason on HA randomly or fail to get S2. retrying is needed
- there's a bug when adding >2 z-wave channels (sensors/meters) that treats the 3+ as an aggregate, thus, causing the inclusion to fail because it is not an aggregate channel. we need to try to add the channel dynamically to bypass this;
the PIN for inclusion (also known as DSK or ZWS2DSK) can be found in VS Code by:
- open commands
- select
Z-UNO Extracts metadata from connected Z-Uno board
- click
Get Info
- you should see in the console output now lots of information
- including
SECURITY S2 PUK
, which the first 5 digits are the pin
- including
when you get
Error 0 Could not open serial port /dev/ttyUSB0: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
run: $sudo chmod a+rw /dev/ttyUSB0
when you get
Syncing with Z-Uno ('RST' btn?) [ * ] ..............................
Syncing with Z-Uno ('RST' btn?) [ *] ..............................
Syncing with Z-Uno .............................. FAILED
Error 0 Can't sync with Z-Uno bootloader. It doesn't respond!
Closing port ..............................
Closing port .............................. OK
Error 1 Can't request board information! Please try to update bootloader first.
make sure all Serial port monitors are closed (check on the bottom bar)
the z-wave configuration in the code is probably incorrect or incompatible with the z-wave on HA
The pressure sensor depends on the 5v power supply pin and has been calibrated according to that.
When the power supply changes, ie. instead of 5.1v, it drops to 4.7v, the calibration multiplier will have to change accordingly. Otherwise, the readings will be wrong by the same amount.
examples:
- with the USB of a computer, the
5v
voltage, reports4.7v
and with that voltage, thePRESSURE_SENSOR_PSI_CALIBRATION_MULTIPLIER
is1.2
- with a dedicated USB power supply, the
5v
voltage, reports5.1v
and with that voltage, thePRESSURE_SENSOR_PSI_CALIBRATION_MULTIPLIER
is1.1
if a failed inclusion/exclusion or provisioning took place, you might have to forcefully exclude/delete the device from your controller and/or reset the device by:
- hold the Service button until the service red LED is blinking
- release the Service button and then triple click on it
- The red LED will confirm the reset process
you should be able to include/exclude again.