Yep different scenario. I just thought of it and asked that too.
I thought if you have the virtual device you could have it show in list of devices. For users of things like action tiles or ask Alexa (ask status of device), if the secondary contact is mirrored to a separate virtual device it might provide some additional usability.
As for triggering events, I thought CORE would be required. Now that you mentioned it is included in this handler i just tried it. Dude very nice work, this is really cool!
Kevin, I was wondering if you might be able to help with a project.
I just rigged up a DC relay plugged into a GE Zwave plug in appliance module. When you turn it on, it is set to turn off 1sec after. Emulating the function of a garage door opener wall button.
Anyway…
What I was hoping is to modify the multifunction handler to only work as “garage door” contact, but I would like to add a push-button or on/off tile within the handler where in the settings, the user can select the device to toggle.
I found this handler that another user created for the gocontrol (in his case, generic zwave sensor), and there’s a smartapp that works to sync the button push/contact sensor
Any chance you may be able to update the DTH to incorporate this code/similar code to have (your) Gocontrol specific handler work not just as a garage door sensor, but toggle the opener (relay/plug in module).
Or possibly enlighten me as to modifying the device screen to look like the new style page rather than this:
Please delete all the code you posted so people won’t confuse it with the code for this Topic’s device handler.
This isn’t possible because device handlers can’t interact directly with other devices.
If you’re looking for one device that allows you to control the door and view the the state of the door you have to use 2 device handlers and a SmartApp.
This DTH is overly complex because it supports so many capabilities so you’re better off adding the open/closed tile to your switch device handler and using a SmartApp like CoRE to sync the open/close status.
@krlaframboise I just updated my 2 garage doors to use one sensor by using your other DH. Unfortunately the internal contact doesn’t show as garage but the external does using the secondary DH. In the other DH thread you pointed someone to this multifunction DH in order to show the primary/internal as a contact-garage.
So my question is … can this multifunction DH show both internal and external as two separate contact-garage devices?
Thank you for all of these by the way, great work!
Hi Kevin
Is it possible to have the main tile with the external contact sensor show locked,unlock.
I have try to change open closed on 7 lines in the dh,but my main tile was stock a locked
Thank for your work!
You should be able to do that by replacing one of the other capabilities like water. The quotes need to be included in your find and replaces or it will most likely break the code.
You might have to swap the locked and unlocked because I’m not sure which one matches “wet”.
Replace capability “Water Sensor” with capability “Lock”
Replace “st.alarm.water.dry” with “st.locks.lock.locked”
Replace “st.alarm.water.wet” with “st.locks.lock.unlocked”
HI Kevin
I have replaced all water ,dry wet and still showing open, closed. After that i also try to replace those $waterval with $lockVal.
It still show open or closed in the main tile
Do you know what could be wrong
Thanks
Thank Kevin
Now its working.I did a mistake in the settings and did’nt lock unlock the door while testing.
Now i got my patio door reporting the lock status . I have only solder 2 wired in the handle and put a metal piece.
Not the Monoprice ZWave Plus version, but you could make the same changes to my DTH for that device. Instead of replacing water replace contact and instead of wet/dry replace open/closed.
This device handler is really great. Thank you @krlaframboise for developing it.
Does anyone have a pinout for the internal header? I was not able to figure out much with a meter.
Also, I am getting a push notification anytime the water sensor reads as wet or smoke is detected. I do not have anything programmed in the app that would trigger these notifications. I do not have any automations running. I am using android marshmallow and currently have both SmartThings and SmartThings Classic installed.
Here’s how I am using the Device Handler.
I modified my device by desoldering the reed switch and running another set of wires out so now it has two external wire ports. One is integrated into a Waterbug water sensor that shuts down my well pump in case of a leak. The GoControl triggers off of a set of NC contacts on the relay and uses the Water sensor feature.
The reed switch pads are now being used to monitor the level in a chlorine injector supply tank. I renamed “Open” and “Closed” per Kevin’s instructions to “Full” and “low” and changed the icons using the list in Kevin’s resources page. I also changed the “Wet” background color to Red.
The past month or so 2 of my 3 gocontrol zwave contact sensors have been getting flaky. The garage entry door into house will show open when I open the door, then closed when I close it. Then it shows and stays open. One time I watched my Action tiles tablet after closing the door and it toggled closed-open several times.
I tried new batteries in both sensors even though they were not low (forget the percentage they are showing). I have wiggled the sensors around try to make the magnet closer, they are on with command strips. Same result. The garage entry door is wood. The other problem sensor is on metal sliding patio door.
I have about 20 of these sensors and I don’t believe I’ve seen that problem. That being said, everything on SmartThings has been somewhat flaky for me lately.
Any way to get the multifunction contact device handler to have the last states displayed like the contact one? and anything need to be updated/added to use in the new mobile app?