Heiman HS1WL Zigbee sensor how to get working?

dth_sensors

(Frank Pulsucki, Jr ) #1

I purchased the Heiman Zigbee Gas Alarm and have that working but I also purchased the HS1WL water leak sensor and would like to get that working. I connected it to hub fine as a motion sensor but it is not working. How do a make a custom device type to get this working. I read in the community about getting the connect info from logs so here it is:

zbjoin: {“dni”:“C9E0”,“d”:“005043C9A330B459”,“capabilities”:“84”,“endpoints”:[{“simple”:“01 0104 0402 00 05 0000 0003 0500 0001 0009 01 0019”,“application”:“03”,“manufacturer”:“Heiman”,“model”:“WATER_TPV14”}]}
Name Value
archivable true
date 2017-03-12 9:31:32.788 PM CDT (2017-03-13T02:31:32.788Z)
description zbjoin: {“dni”:“C9E0”,“d”:“005043C9A330B459”,“capabilities”:“84”,“endpoints”:[{“simple”:“01 0104 0402 00 05 0000 0003 0500 0001 0009 01 0019”,“application”:“03”,“manufacturer”:“Heiman”,“model”:“WATER_TPV14”}]}
displayed false
eventSource HUB
hubId e6d874e8-c3d2-4d99-ba46-8c3ade85ccc5
id 2c011740-0795-11e7-8c11-0646edc94bba
isStateChange false
isVirtualHub false
linkText ***** Hub
locationId ++++++++
name zbjoin: {“dni”:“C9E0”,“d”:“005043C9A330B459”,“capabilities”:“84”,“endpoints”:[{“simple”:"01 0104 040
rawDescription zbjoin: {“dni”:“C9E0”,“d”:“005043C9A330B459”,“capabilities”:“84”,“endpoints”:[{“simple”:“01 0104 0402 00 05 0000 0003 0500 0001 0009 01 0019”,“application”:“03”,“manufacturer”:“Heiman”,“model”:“WATER_TPV14”}]}
translatable false
unixTime 1489372292788
value zbjoin: {“dni”:“C9E0”,“d”:“005043C9A330B459”,“capabilities”:“84”,“endpoints”:[{“simple”:“01 0104 0402 00 05 0000 0003 0500 0001 0009 01 0019”,“application”:“03”,“manufacturer”:“Heiman”,“model”:“WATER_TPV14”}]}
viewed false

Where do I go from here? I am definitely new to this but not so much to smartthings.


(Jg506) #2

I just got this zigbee water sensor too on Ali Express. Out of the box it pairs easily as Motion Detector and will report wetness as motion and dryness as no-motion… I tried a couple of builtin-in water DTH but none worked. I modified the motion DH to be water DH so leaks are reported in home monitor. It’s a basic DTH but it works. I hope someone will add battery, health checks, and what’s not.

/**
 *  Copyright 2015 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.
 *
 */
metadata {
	definition (name: "Water Detector", namespace: "smartthings", author: "SmartThings") {
		capability "Water Sensor"

		fingerprint profileId: "0104", deviceId: "0402", inClusters: "0000,0001,0003,0009,0500"
	}

	// simulator metadata
	simulator {
        status "dry": "zone report :: type: 19 value: 0030"
		status "wet": "zone report :: type: 19 value: 0031"
		
	}

	// UI tile definitions
	tiles {
		standardTile("water", "device.water", width: 2, height: 2) {
			state("wet",  icon:"st.alarm.water.wet", backgroundColor:"#ffffff")
			state("dry",  icon:"st.alarm.water.dry", backgroundColor:"#53a7c0")
		}

		main "water"
		details "water"
	}
}

// Parse incoming device messages to generate events
def parse(String description) {
	def name = null
	def value = description
	def descriptionText = null
	if (zigbee.isZoneType19(description)) {
		name = "water"
		def isActive = zigbee.translateStatusZoneType19(description)
		value = isActive ? "wet" : "dry"
		descriptionText = isActive ? "${device.displayName} is wet" : "${device.displayName} is dry"
	}

	def result = createEvent(
		name: name,
		value: value,
		descriptionText: descriptionText
	)

	log.debug "Parse returned ${result?.descriptionText}"
	return result
}

(Jg506) #3

Just to add that this device also works well with the “SmartSense Moisture Sensor” stock DH.

Product link:
https://www.aliexpress.com/item/Wireless-Zigbee-water-sensor-water-leakage-flood-detector/32728342172.html