Vision Z-Wave In Wall - Unable to bind

Hello All,
This is my first time posting, even though I’ve had a smartthings up and working for about 6 months. I just purchased a Vision in-wall micro switch and I am unable to get the smarthings controller to see it. Based on the wiring diagram, its wired up correctly, but unable to bind.

Does anyone have any experience using this particular wall switch.

Thanks in Advance

I don’t however I found this. Apparently someone got it working.

I know this posting is a year old, but I have gotten mine to work on ST as 2 separate switches. If anyone needs help, I can show how I got mine to work. These switches are great because they are so cheap.

Hi Jon: Yes, I could use some help. I know I wired it in correctly, but I can only get one switch to work, not both. I included the first on with no problem, but can’t seem to get the second one to report as a separate switch. Any help would be greatly appreciated.

Thanks!

Your Smartthings hub should find the first switch. You will then have to login to the smartthings api (website), login and add a device handler, use the following code:

/**
 *  
 *	ZL 7432US Dual Relay Device Type
 *  
 *	Author: NA
 *	Date: 2017-02-15
 */
 
metadata {
	definition (name: "ZL 7432US Dual Relay", namespace: "ZL 7432US", author: "NA") {
        capability "Switch"
        capability "Polling"
        capability "Zw Multichannel"
        capability "Refresh"
        attribute "switch", "string"
        attribute "switch2", "string"

        command "on"
        command "off"
        command "on2"	
        command "off2"
        command "reset"

        //fingerprint deviceId: "0x1001", inClusters:"0x5E, 0x86, 0x72, 0x5A, 0x85, 0x59, 0x73, 0x25, 0x20, 0x27, 0x71, 0x2B, 0x2C, 0x75, 0x7A, 0x60, 0x32, 0x70"
	}

    simulator {
        status "on": "command: 2003, payload: FF"
        status "off": "command: 2003, payload: 00"
        reply "2001FF,delay 100,2502": "command: 2503, payload: FF"
        reply "200100,delay 100,2502": "command: 2503, payload: 00"
    }

    tiles {    
        standardTile("switch", width:3, height:2 ,"device.switch",canChangeIcon: true) {
	   state "on", label: "ON", action: "off", icon: "st.switches.switch.on", backgroundColor: "#00a0dc"
	   state "off", label: "OFF", action: "on", icon: "st.switches.switch.off", backgroundColor: "#ffffff"
        }
        //standardTile("switch2", width:3, height: 2, "device.switch2",canChangeIcon: true) {
        //    state "on", label: "ON", action: "off2", icon: "st.switches.switch.on", backgroundColor: "#00a0dc"
        //    state "off", label: "OFF", action: "on2", icon: "st.switches.switch.off", backgroundColor: "#ffffff"
        //}
        standardTile("refresh", "device.switch", inactiveLabel: false, decoration: "flat") {
	   state "default", label:"", action:"refresh.refresh", icon:"st.secondary.refresh"
        }

        main(["switch"])
        details(["switch","refresh"])
    }

}

def parse(String description) {
    def result = []
    def cmd = zwave.parse(description)
    if (cmd) {
        result += zwaveEvent(cmd)
        log.debug "Parsed ${cmd} to ${result.inspect()}"
    } else {
        log.debug "Non-parsed event: ${description}"
    }
    return result
}

//def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicReport cmd){
    /*def result
    if (cmd.value == 0) {
        result = createEvent(name: "switch", value: "off")
    } else {
        result = createEvent(name: "switch", value: "on")
    }
    return result*/
//}

def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicSet cmd) {
	sendEvent(name: "switch", value: cmd.value ? "on" : "off", type: "digital")
    def result = []
    result << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:2).format()
    result << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:2, commandClass:37, command:2).format()
    //result << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:3, commandClass:37, command:2).format()
    //response(delayBetween(result, 1000)) // returns the result of reponse()
    response(delayBetween(result, 0)) // returns the result of reponse()
}

def zwaveEvent(physicalgraph.zwave.commands.switchbinaryv1.SwitchBinaryReport cmd){
    sendEvent(name: "switch", value: cmd.value ? "on" : "off", type: "digital")
    def result = []
    result << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:2).format()
    result << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:2, commandClass:37, command:2).format()
    //result << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:3, commandClass:37, command:2).format()
    //response(delayBetween(result, 1000)) // returns the result of reponse()
    response(delayBetween(result, 0)) // returns the result of reponse()
}

/*def zwaveEvent(physicalgraph.zwave.commands.meterv3.MeterReport cmd) {
    def result
    if (cmd.scale == 0) {
        result = createEvent(name: "energy", value: cmd.scaledMeterValue, unit: "kWh")
    } else if (cmd.scale == 1) {
        result = createEvent(name: "energy", value: cmd.scaledMeterValue, unit: "kVAh")
    } else {
        result = createEvent(name: "power", value: cmd.scaledMeterValue, unit: "W")
    }
    return result
}*/

def zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCapabilityReport cmd){
    //log.debug "multichannelv3.MultiChannelCapabilityReport $cmd"
    if (cmd.endPoint == 2 ) {
        def currstate = device.currentState("switch2").getValue()
        if (currstate == "on")
        	sendEvent(name: "switch2", value: "off", isStateChange: true, display: false)
        else if (currstate == "off")
        	sendEvent(name: "switch2", value: "on", isStateChange: true, display: false)
    }
    else if (cmd.endPoint == 1 ) {
        def currstate = device.currentState("switch").getValue()
        if (currstate == "on")
        	sendEvent(name: "switch", value: "off", isStateChange: true, display: false)
        else if (currstate == "off")
       		sendEvent(name: "switch", value: "on", isStateChange: true, display: false)
    }
}

def zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCmdEncap cmd) {
	def switchname = ""
	switch(cmd.sourceEndPoint){
    	case 1:
        	log.debug "Setting switch | switch$cmd.sourceEndPoint"
        	switchname = "switch"
    		break
        case 2:
        	log.debug "Setting switch2"
        	switchname = "switch2"
	   break;
   }
   def map = [ name: "$switchname" ]
   switch(cmd.commandClass) {
      case 32:
	if (cmd.parameter == [0]) {
	   map.value = "off"
	}
	if (cmd.parameter == [255]) {
	   map.value = "on"
	}
	createEvent(map)
	break
      case 37:
	if (cmd.parameter == [0]) {
	   map.value = "off"
	}
	if (cmd.parameter == [255]) {
	   map.value = "on"
	}
	createEvent(map)
	break
    }
}

def zwaveEvent(physicalgraph.zwave.Command cmd) {
    // This will capture any commands not handled by other instances of zwaveEvent
    // and is recommended for development so you can see every command the device sends
    return createEvent(descriptionText: "${device.displayName}: ${cmd}")
}

def refresh() {
	def cmds = []
    cmds << zwave.manufacturerSpecificV2.manufacturerSpecificGet().format()
	cmds << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:2).format()
    cmds << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:2, commandClass:37, command:2).format()
    //cmds << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:3, commandClass:37, command:2).format()
	//delayBetween(cmds, 500)
    delayBetween(cmds, 0)
}

def zwaveEvent(physicalgraph.zwave.commands.manufacturerspecificv2.ManufacturerSpecificReport cmd) {
	def msr = String.format("%04X-%04X-%04X", cmd.manufacturerId, cmd.productTypeId, cmd.productId)
	log.debug "msr: $msr"
    updateDataValue("MSR", msr)
}

def poll() {
	def cmds = []
	cmds << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:2).format()
    cmds << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:2, commandClass:37, command:2).format()
    //cmds << zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:3, commandClass:37, command:2).format()
	//delayBetween(cmds, 500)
    delayBetween(cmds, 0)
}

/*def reset() {
    delayBetween([
        zwave.meterV2.meterReset().format(),
        zwave.meterV2.meterGet().format()
    ], 1000)
}*/

/*def configure() {
	log.debug "configure() called"
    def cmds = []
    //if (deviceType.value == deviceType.value) log.debug "Statement True"
    if (deviceType != null && deviceType.value != null) {
    switch (deviceType.value as String) {
       case "1":
       log.debug "Configuring device as Philio"
       cmds << zwave.configurationV1.configurationGet(parameterNumber: 3).format()
       cmds << zwave.configurationV1.configurationSet(parameterNumber: 3, configurationValue: [3]).format()	
       cmds << zwave.configurationV1.configurationGet(parameterNumber: 3).format()
       break
       case "2":
       log.debug "Configuring device as Enerwave"
       cmds << zwave.configurationV1.configurationGet(parameterNumber: 3).format()
       cmds << zwave.configurationV1.configurationSet(parameterNumber: 3, configurationValue: [1]).format()	
       cmds << zwave.configurationV1.configurationGet(parameterNumber: 3).format()
       break
       case "3":
       log.debug "Configuring device as Monoprice"
       break
       default:
       log.debug "No valid device type chosen"
       break
    }
    }
    
    if ( cmds != [] && cmds != null ) return delayBetween(cmds, 2000) else return
}*/
/**
* Triggered when Done button is pushed on Preference Pane

def updated(){
	log.debug "Preferences have been changed. Attempting configure()"
    def cmds = configure()
    response(cmds)
}*/

def on() {
    delayBetween([
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:1, parameter:[255]).format(),
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:2).format()
    ], 0)
}

def off() {
    delayBetween([
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:1, parameter:[0]).format(),
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:1, destinationEndPoint:1, commandClass:37, command:2).format()
    ], 0)
}

def on2() {
    delayBetween([
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:2, destinationEndPoint:2, commandClass:37, command:1, parameter:[255]).format(),
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:2, destinationEndPoint:2, commandClass:37, command:2).format()
    ], 0)
}

def off2() {
    delayBetween([
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:2, destinationEndPoint:2, commandClass:37, command:1, parameter:[0]).format(),
        zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint:2, destinationEndPoint:2, commandClass:37, command:2).format()
    ], 0)
}

Assign the device the Smartthings Hub found to your added device handler. (there are some tutorials online that show how to do all of this)

Then, create a virtual push button.

Add a smartapp from the same api using this code:

	/**
 *  ZL 7432US Adapter
 *
 *  Copyright 2014 Joel Tamkin
 *
 *  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.
 *
 */
definition(
    name: "ZL 7432US Switch Adapter",
    namespace: "",
    author: "NA",
    description: "Creates an adapter for ON/OFF Switchs to the ZL 7432US Channels",
    category: "My Apps",
    iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
    iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png")


preferences {
  section("ZL 7432US Module:") {
    input "rsm", "capability.switch", title: "Which ZL 7432US Dual Relay Module?", multiple: false, required: true
    input "switch1", "capability.switch", title: "Switch to assign 1st Channel", multiple: false, required: true
    input "switch2", "capability.switch", title: "Switch to assign 2nd Channel", multiple: false, required: true
  }
}

def installed() {
  log.debug "Installed!"
  subscribe(switch1, "switch.on", switchOnOneHandler)
  subscribe(switch2, "switch.on", switchOnTwoHandler)
  subscribe(switch1, "switch.off", switchOffOneHandler)
  subscribe(switch2, "switch.off", switchOffTwoHandler)


}

def updated() {
  log.debug "Updated!"
  unsubscribe()
  subscribe(rsm,     "switch1", rsmHandler)
  subscribe(rsm,     "switch2", rsmHandler)
  subscribe(switch1, "switch.on", switchOnOneHandler)
  subscribe(switch2, "switch.on", switchOnTwoHandler)
  subscribe(switch1, "switch.off", switchOffOneHandler)
  subscribe(switch2, "switch.off", switchOffTwoHandler)
  
}




def switchOnOneHandler(evt) {
  log.debug "switch on1"
  rsm.on1()
  rsm.refresh()
}

def switchOnTwoHandler(evt) {
  log.debug "switch on2"
  rsm.on2()
  rsm.refresh()
}


def switchOffOneHandler(evt) {
  log.debug "switch off1"
  rsm.off1()
  rsm.refresh()
}

def switchOffTwoHandler(evt) {
  log.debug "switch off2"
  rsm.off2()
  rsm.refresh()
}


/*


def switch1Handler(evt) {
  log.debug "switchHandler: ${evt.value}, ${evt.deviceId}, ${evt.source}, ${evt.id}"

    	switch (evt.value) {
        	case 'on':
        		log.debug "switch 1 on"
	       rsm.on1()
	       break
        	case 'off':
        		log.debug "switch 1 off"
	       rsm.off1()
	       break
	   }
     

}
def switch2Handler(evt) {
  log.debug "switchHandler: ${evt.value}, ${evt.deviceId}, ${evt.source}, ${evt.id}"

    	switch (evt.value) {
        	case 'on':
        		log.debug "switch 2 on"
	       rsm.on2()
	       break
        	case 'off':
        		log.debug "switch 2 off"
	       rsm.off2()
	       break
	   }
     

}

def rsmHandler(evt) {
	log.debug "$evt.name $evt.value"
    if (evt.name == "switch1") {
    	switch (evt.value) {
        	case 'on':
	   	switch1.on()
	       break
	   case 'off':
	   	switch1.off()
	       break
        }
    }
    else if (evt.name == "switch2") {
    	switch (evt.value) {
        	case 'on':
	   	switch2.on()
	       break
	   case 'off':
	   	switch2.off()
	       break
        }
    }
      	
}
*/ 

def rsmHandler(evt) {
  log.debug "rsmHandler called with event:  name:${evt.name} source:${evt.source} value:${evt.value} isStateChange: ${evt.isStateChange()} isPhysical: ${evt.isPhysical()} isDigital: ${evt.isDigital()} data: ${evt.data} device: ${evt.device}"
  if (evt.name == "switch1") {
    switch (evt.value) {
      case 'on':
        switch1.onPhysical()
        break
      case 'off':
        switch1.offPhysical()
        break
    }
  }
  else if (evt.name == "switch2") {
    switch (evt.value) {
      case 'on':
        switch2.onPhysical()
        break
      case 'off':
        switch2.offPhysical()
        break
    }
  }
}
def rsmRefresh() {
	rsm.refresh()
}

From your smartthings app, go to the original switch that was discovered, and add smartapp to it, choose the one that you added. Select your switch, and select the push button your created. Once completed, the push button should control the 2nd switch. There are tutorials in these forums and on Google for all of the API website actions.

This worked great for my Vision ZL 7432US. Thanks!

The only change on my end is that you said to create a “virtual push button”. I had to create a virtual switch to get it to work.

Thanks again!

I did have a reasonable amount of success with this code, however status changes throw a number of java errors:
java.lang.IllegalArgumentException: Command ‘offPhysical’ is not supported by device a0033f8f-*** of type ‘On/Off Button Tile’. Supported commands: [on, off] @ line 164

ava.lang.IllegalArgumentException: Command ‘on1’ is not supported by device fd10f9ac-*** of type ‘ZL 7432US Dual Relay’. Supported commands: [on, off, poll, refresh, enableEpEvents, epCmd, on, off, on2, off2, reset] @ line 61

Is this code available on GitHub so I can fix it?

Jon, thanks for the very clear instructions! I fear I have made a beginners mistake
I added Jon’s device handler - which now says published
I excluded the ZL7432 and then included it again
I added the smart app, which also says published
As expected, the smart app shows 2 channels with choices of triggers ( used 1 real switch and 1 virtual)
But neither switch caused the relay to turn on
opening the device in my_home/things just shows 1 channel and touching it (iOS, BTW) does turn the relay on and off.

is the device not using the new handler? is there a way to tell?

Thanks for any advice

Got it! I had to go to the IDE to force it to use the new device handler. Now I’ve learned.

One last question. I’ve set the SmartApp with virtual switch 1 on channel 1 and virtual switch 2 on channel 2. virtual switch 2 in fact turns channel 2 on and off. Switch 1 has no effect. However, if you go the device itself (My Home/Things), that turns channel 1 on and off. Obviously, I would like the device in the SmartApp to control channel 1 - is there some parameter or set up I need to change?

Jon-

As of Feb. 2018. Is this device handler and associated smartapp necessary for use of this micro switch?

Thanks,
Heywood

Smartthings will now sometimes see both the 1st and 2nd channel, not every time and I find that the custom handler works better.

I’d be cautious of these switches because I have noticed a few issues with them.

Some of them are 3-way mode switches and some are normal mode. (In 3-way, the switch will turn on if it’s off, or off if it’s on acting with the same behavior as a 3-way switch would, whereas the normal mode requires that you turn the switch to the off position and then back to the on position when turning on alight, or vice verca when turning off) I cannot find a way to change this mode, and I have some that are in 1 mode and some that are in the other. I’m sure when I purchased them, there was some small print somewhere specifying which mode they were.

The switch can also be slow at times to register unlike normal switches, especially the 2nd switch.

I won’t buy these switches anymore, and it’s a shame because they would work very well in a bathroom with a fan where there is no real need to have 2 separate switches.

Jon-

Thanks for the quick reply. I will probably just stick to this one switch. I have installed the custom device handler but am not sure how to assign and or verify that the switch is using that handler?

Heywood

Bob-

I seem to be caught at this step as well. Can you explain the steps involved in “I had to go to the IDE to force it to use the new device handler.”

Thanks
Heywood

I could use some help with these things too…

Both the Smartthings driver and the one above don’t really work all that well. These gizmos just act weird.

I have installed several of the ZL7431’s in my house and some minor challenges with 3ways aside, I am very happy with these “relays”. They are reliable, they are cheap, they are easy to include in the network, they are easy to edit (change their names, icons etc) and they are easy to use (on the mobile app)

The only issue with the ZL7431 is that if you have a “loaded” double gang box there isn’t a lot of room in there for two of these…

My hope was that the ZL7432 would solve this problem… One little gizmo that could drive two switches.

My experience is “Sorta”

Problem #1 Once linked there is no way to rename the “Sub switches” they are just there.
Problem #2 Even if you did rename them the “multi channel” screen ignores the names and calls them “Switch Endpoint 1” and Switch Endpoint 2" Not helpful.
Problem #3 The “End Point switches” are not available on the “My Home” screen, just the multi-channel device
Problem #4 The multi-channel device does not always poll the sub-switches properly… it will report “on” when everything is off
Problem #5 Even when the multi-channel device does poll correct (on the My Home Screen), turning it “On” only turns on one of the switches. (the #1 endpoint switch)
Problem #6 Turning it off (on the My Home screen) only turns off the #1 endpoint switch.

The good news is you can automate 2 switches that share a double gang box for about $13 per switch which is SUPER cheap… the bad news is you get what you pay for. This thing just works “different” than any other in box switch.

Or am I missing something here?

It’s a known issue With Z wave multi channel devices. :disappointed_relieved: There’s a community workaround in the following thread (this is a clickable link)

1 Like

Thanks, unfortunately, that code works about the same as the “canned” code from Smartthings… still weird…

But plowing through all of the screens in the IDE and I found the screen to change the names of the “sub switches” so that was helpful!

Thanks.

1 Like

I’m considering using the ZL 7432 but there is a warning against loads under 20 Watts which was no problem in the days of incandescent bulbs. But what happens with LEDs?

It says “do not use for loads under 20 Watts”.

The code for the ZL7432 does not work in the new version of Smart Things for iOS. :disappointed_relieved:

So there’s no way to use these relays in smartthings in 2019?