So I’ve given this a couple cracks and I’ve struck out without even seeing the ball. I have no clue how to write this and I’m hoping someone has the experience and time to help out.
I think this will help a lot more than just me, and would be a companion app to a DTH.
The DTH is a multifunction handler. It is for a GoControl z-wave door/window sensor.
The dev @krlaframboise has written an awesome handler. The GoControl sensor has both an external reed contact (default) and internal terminals for a 2nd connection. Kevin incorporated both into the handler so it’s like having 2 sensors in one. Also, he has made it with user selectable attributes to each contact, for users who have alternative uses. Such as wired to smoke alarm relay, or a driveway type motion detector’s dry contacts. Or to show as a water sensor or garage door. It’s a fantastic piece of work!
The one drawback is that the secondary function shows up within the device tile page. And outside services like stringify can not see the secondary contact like native ST can.
So I suggested adding functionality to the DTH that allows syncing the 2nd contact’s attribute to a virtual device. But apparently that requires a smartapp, and while a couple of users have suggested resources to learn from, I can’t really make much of a head from a tail.
So I reach out here.Is there anyone who might have the time or want to take on writing a virtual device mirroring smartapp for this handler. It would be the perfect companion and I’m pretty sure Kevin would link in his main post to it.
All the app would do:
select contact 1 or 2
select (current) contact attribute
(either create and assign, or have user create virtual device in IDE) then assign current contact attribute value to virtual sensor
Also, while it is not part of the GoControl multifunction handler, it’d be awesome if it could assign temperature value to a virtual sensor from a device that has temperature as a secondary function, (ie Iris Button, Iris Keypad, Zwave motion sensors, xiaomi temperature sensor, etc).
This would be a simple value mirroring assignment. Just need a guru to take on the gig.
Is there anyone who is up to it?
Here’s a link to the GoControl Multifunction handler thread by Kevin.