[ST EDGE] Utilitech Water Leak Sensor (TST01-1)

@nayelyz and @philh30
I have paired the above sensor with a modified version of the stock Z-Wave Sensor Edge Driver. The only thing I changed was that I added the fingerprint of this device.

While the device pairs just fine. When I wet the probe on the device the device beeps by the APP does NOT respond.

Do you have any ideas on how to fix this?

The following is the pairing logs:

2022-07-27T00:05:35.879425756+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-07-27T00:05:35.895629983+00:00 TRACE Z-Wave Sensor PCO  Z-Wave Device: 1728f8e5-0059-4068-ab35-06522977cd8a
Manufacturer: 0x0060 Product Type: 0x000B Product ID: 0x0001
        [0]: VERSION, MANUFACTURER_SPECIFIC, ASSOCIATION, WAKE_UP, BATTERY, CONFIGURATION, SENSOR_ALARM, BASIC, NOTIFICATION
2022-07-27T00:05:35.899122986+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1728f8e5-0059-4068-ab35-06522977cd8a [99] (Utilitech Water Leak Sensor)> received lifecycle event: added
2022-07-27T00:05:35.910664462+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-07-27T00:05:35.914083960+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1728f8e5-0059-4068-ab35-06522977cd8a [99] (Utilitech Water Leak Sensor)> received lifecycle event: doConfigure
2022-07-27T00:05:35.924386348+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T00:05:35.929583165+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1728f8e5-0059-4068-ab35-06522977cd8a [99] (Utilitech Water Leak Sensor)> emitting event: {"attribute_id":"water","capability_id":"waterSensor","component_id":"main","state":{"value":"dry"}}
2022-07-27T00:05:35.939879347+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T00:05:35.946192981+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T00:05:35.949332410+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T00:05:35.954681193+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T00:05:35.961697516+00:00 TRACE Z-Wave Sensor PCO  Found CapabilityCommandDispatcher handler in zwave_sensor
2022-07-27T00:05:35.966694350+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1728f8e5-0059-4068-ab35-06522977cd8a [99] (Utilitech Water Leak Sensor)> sending Z-Wave command: {args={}, cmd_class="BATTERY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-07-27T00:05:35.977942723+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(7d59425c) queued for radio transmission: CC:Battery, CID:0x02
2022-07-27T00:05:35.981031511+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T00:05:35.989552707+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T00:05:36.194551531+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-07-27T00:05:36.201829473+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1728f8e5-0059-4068-ab35-06522977cd8a [99] (Utilitech Water Leak Sensor)> received lifecycle event: infoChanged
2022-07-27T00:05:36.213866160+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T00:05:36.216977437+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T00:05:37.116947186+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(7d59425c) transmit status: TRANSMIT_COMPLETE_OK
2022-07-27T00:05:56.009399991+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed```
type or paste code here
1 Like

This is what it looks like in the app:

There are no logs of it operating because nothing registers.

The following is the driver:

– Copyright 2022 SmartThings

– Licensed under the Apache License, Version 2.0 (the “License”);
– you may not use this file except in compliance with the License.
– You may obtain a copy of the License at

– http://www.apache.org/licenses/LICENSE-2.0

– Unless required by applicable law or agreed to in writing, software
– distributed under the License is distributed on an “AS IS” BASIS,
– WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
– See the License for the specific language governing permissions and
– limitations under the License.

local capabilities = require “st.capabilities”
local cc = require “st.zwave.CommandClass”
local Basic = (require “st.zwave.CommandClass.Basic”)({ version = 1 })

local WATER_LEAK_SENSOR_FINGERPRINTS = {
{mfr = 0x0060, prod = 0x000B, model = 0x0001}, – Utilitech Water Leak Sensor
{mfr = 0x0084, prod = 0x0063, model = 0x010C}, – SmartThings Water Leak Sensor
{mfr = 0x0084, prod = 0x0053, model = 0x0216}, – FortrezZ Water Leak Sensor
{mfr = 0x021F, prod = 0x0003, model = 0x0085}, – Dome Leak Sensor
{mfr = 0x0258, prod = 0x0003, model = 0x0085}, – NEO Coolcam Water Sensor
{mfr = 0x0258, prod = 0x0003, model = 0x1085}, – NEO Coolcam Water Sensor
{mfr = 0x0258, prod = 0x0003, model = 0x2085}, – NEO Coolcam Water Sensor
{mfr = 0x0086, prod = 0x0002, model = 0x007A}, – Aeotec Water Sensor 6 (EU)
{mfr = 0x0086, prod = 0x0102, model = 0x007A}, – Aeotec Water Sensor 6 (US)
{mfr = 0x0086, prod = 0x0202, model = 0x007A}, – Aeotec Water Sensor 6 (AU)
{mfr = 0x000C, prod = 0x0201, model = 0x000A}, – HomeSeer LS100+ Water Sensor
{mfr = 0x0173, prod = 0x4C47, model = 0x4C44}, – Leak Gopher Z-Wave Leak Detector
{mfr = 0x027A, prod = 0x7000, model = 0xE002} – Zooz ZSE42 XS Water Leak Sensor
}

local function can_handle_water_leak_sensor(opts, driver, device, …)
for _, fingerprint in ipairs(WATER_LEAK_SENSOR_FINGERPRINTS) do
if device:id_match(fingerprint.mfr, fingerprint.prod, fingerprint.model) then
return true
end
end
return false
end

local function basic_set_handler(driver, device, cmd)
local value = cmd.args.target_value and cmd.args.target_value or cmd.args.value
device:emit_event(value == 0xFF and capabilities.waterSensor.water.wet() or capabilities.waterSensor.water.dry())
end

local water_leak_sensor = {
NAME = “Water Leak Sensor”,
zwave_handlers = {
[cc.BASIC] = {
[Basic.SET] = basic_set_handler
}
},
can_handle = can_handle_water_leak_sensor
}

return water_leak_sensor

There are no inbound z-wave messages in those logs. Unless you’ve seen any post since those pairing logs, you’re dealing with a z-wave issue and nothing related to your driver.

Does this device have a button on it that will wake it up? If so, do you see a wake up notification (or any received z-wave command) when you push it? If no button, try removing and then reinstalling the batteries. If you manage to get some activity from it, then my first place to look would be the lifeline association group.

If absolutely no activity, then I’d start with an exclude and fresh include.

@philh30 So, I excluded the device, force deleted the device, removed the batteries, reinstalled the batteries and repaired.

When I paired I got 2 new devices a Z-Wave Device (Groove) shows up first then a get the Utilitech Water Leak Sensor (Edge).

It still does not work.

Pairing logs:

        [0]: VERSION, MANUFACTURER_SPECIFIC, ASSOCIATION, WAKE_UP, BATTERY, CONFIGURATION, SENSOR_ALARM, BASIC, NOTIFICATION
2022-07-27T02:12:04.469034441+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> received lifecycle event: added
2022-07-27T02:12:04.480117107+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-07-27T02:12:04.483488857+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> received lifecycle event: doConfigure
2022-07-27T02:12:04.489612899+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T02:12:04.493527149+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> emitting event: {"attribute_id":"water","capability_id":"waterSensor","component_id":"main","state":{"value":"dry"}}
2022-07-27T02:12:04.509381149+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T02:12:04.519871774+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T02:12:04.524579357+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T02:12:04.531189566+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T02:12:04.537922732+00:00 TRACE Z-Wave Sensor PCO  Found CapabilityCommandDispatcher handler in zwave_sensor
2022-07-27T02:12:04.542564774+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> sending Z-Wave command: {args={}, cmd_class="BATTERY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-07-27T02:12:04.553314191+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(ee6b5bf8) queued for radio transmission: CC:Battery, CID:0x02
2022-07-27T02:12:04.556530732+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T02:12:04.564552274+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T02:12:04.803823857+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-07-27T02:12:04.815806899+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> received lifecycle event: infoChanged
2022-07-27T02:12:04.844116066+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T02:12:04.847111107+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T02:12:13.605590733+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(55a5ceb3) transmit status: TRANSMIT_COMPLETE_NO_ACK
2022-07-27T02:12:21.865669568+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(3d4df838) transmit status: TRANSMIT_COMPLETE_NO_ACK
2022-07-27T02:12:30.595580027+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(a1e4f334) transmit status: TRANSMIT_COMPLETE_NO_ACK
2022-07-27T02:12:39.405790153+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(f8ba5dcf) transmit status: TRANSMIT_COMPLETE_NO_ACK
2022-07-27T02:12:41.717208237+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(ee6b5bf8) transmit status: TRANSMIT_COMPLETE_NO_ACK

And some logs after pairing was complete:

2022-07-27T02:13:09.934866282+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> received lifecycle event: infoChanged
2022-07-27T02:13:09.951937282+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-07-27T02:13:09.959485740+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled2022-07-27T02:22:44.503299531+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> received Z-Wave command: {args={}, cmd_class="WAKE_UP", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="", src_channel=0, version=1}
2022-07-27T02:22:44.509752406+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-07-27T02:22:44.513498531+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-07-27T02:22:44.518511281+00:00 TRACE Z-Wave Sensor PCO  Found CapabilityCommandDispatcher handler in zwave_sensor
2022-07-27T02:22:44.523428115+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> sending Z-Wave command: {args={}, cmd_class="BATTERY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-07-27T02:22:44.541171448+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(5f45b6c1) queued for radio transmission: CC:Battery, CID:0x02
2022-07-27T02:22:44.545700781+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-07-27T02:22:44.677678531+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(5f45b6c1) transmit status: TRANSMIT_COMPLETE_OK
2022-07-27T02:22:45.090646198+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-07-27T02:22:45.096617073+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> received Z-Wave command: {args={battery_level=90}, cmd_class="BATTERY", cmd_id="REPORT", dst_channels={}, encap="NONE", payload="Z", src_channel=0, version=1}
2022-07-27T02:22:45.108763323+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-07-27T02:22:45.112172365+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: efe068de-97d4-46ac-81a5-9a091a7e5000 [9C] (Utilitech Water Leak Sensor)> emitting event: {"attribute_id":"battery","capability_id":"battery","component_id":"main","state":{"value":90}}
2022-07-27T02:22:45.122159323+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled

Battery is now showing as 90%

I’m not sure what to make of ST creating two devices, but those logs are an improvement. The device sent a wakeup notification, the hub asked for a battery report, and the device responded. If you’re still not seeing anything pop up in logs when you immerse the probe, try querying association group 1 to verify that it contains node 1 the same way you did with your Zooz sensor.

I resolved my problem the hard way.

I stated this process 3 or 4 months ago when the ST stock driver did not contain the needed fingerprint, so I added the fingerprint to my version of the driver. I paired it and excluded it several times with my driver, but it did not work. So I stuck in a drawer and forgot about.

Today when I had some time I got back to trying to fix it. I excluded it & paired it and it paired with my driver. But again it did not work, so I came to the community for help.

After trying your suggestions it still did not work, so I went back and looked at the ST stock driver and discovered that they added the needed fingerprints 2 months ago. So I took the fingerprints out of my driver, excluded the device, and repaired it with the ST stock driver AND IT WORKS.

Sorry for wasting your time, and thanks again for your help.

1 Like

No problem, @Paul_Oliver.

For future reference:

  • When editing drivers, we need to be careful about which parts we modify and their configuration.
    • Some devices require a specific config that not all support and that specific config is included in a sub driver (we can identify a sub driver because it includes the can_handle function).
    • However, I agree with @philh30 that, there must be something else when you don’t see the reports from the device, because, even if you don’t register any handlers for those events, they should come in and get printed.
  • Also, sometimes the “exclusion” process isn’t completed correctly, so, a hard reset on the device could help.

Hi!
Thanks for all the information @Paul_Oliver . Any chance that you can publish this driver so it can be subscribed to?

There is nothing to publish, I am using the stock ST Z-wave sensor Edge Driver.

Welcome to the SmartThings Community, @erickpeniche!

This is the link to the official SmartThings Channel Invitation where you can find the driver mentioned by Paul (" Z-wave sensor"):

Please follow these steps to install the driver:

  1. Accept the invitation
  2. Enroll your Hub in that channel
  3. Once you’ve enrolled, it will show the button “See available drivers”
  4. Look for the corresponding driver and click on “Install”

To install a compatible device with the driver:

  1. In the app, go to add (“+”) and select “Add device”
  2. Put your Z-Wave device in “pairing mode”
  3. Go back to the app and select the option “Scan” below “Scan for nearby devices”

Has anybody used this with the Leak Gopher? Does it report water consumption as well as the ability to turn on/off the water shutoff valve?

Has anyone recently seen this device working with the stock ST Z-wave sensor edge driver? I have two of them that apparently recently migrated from the DTH to the edge driver. One is dead (I believe its a hardware failure since the local alarm beep is silent), and the other seems OK hardware-wise but the app won’t show any wet sensor events - seems stuck at dry. (Well, I did get a false alarm from it in the middle of the night a few nights ago, but I think that was when it was migrated :grinning:)

I have one monitoring an AC condensate pan. I received an alert a few days ago that it was wet, so it’s working.

I just looked and it is using the stock ST Z wave sensor edge driver.

1 Like

Anyone else having these randomly go offline for an hour or two the last 2-3 weeks? I have 4 of them exhibiting the same behavior.

1 Like

I am not having this problem. I am using the Beta ST “Z-wave sensor” Edge Driver. I have a v2 hub.

Do you have a link to the beta driver?

Beta driver link

https://account.smartthings.com/?redirect=https%3A%2F%2Fapi.smartthings.com%2Finvitation-web%2Faccept%3Fid%3D450930c1-02a6-43d8-adaa-4cbc51027956