Intermatic CA5100


(Spec) #1

How can I get the C5100 to work The Big Switch and the GE 45609. I have read posts on how people have altered the code, but I haven't been able to do it successfully. If someone has the full code for a switch that works, please post it or if someone has another mechanism to make it work, let me know.


(Convinced ST will never be unbroken…) #2

Did you read through this?


(Spec) #3

I did read it it, I have everything wired and paired. I set the big switch but I cannot get the CA5100 to trigger the 3-way. I read through the other posts multiple times. I am not an expert at coding, I have tried the suggestions at the bottom of the posts you linked to where i use the code for a z-wave switch and then add some additional code, but I could not get the coding correct. Did you have to create a new device type as suggested in an earlier post? If so do you have the full code used so I could cut and paste it into my device type.

Thanks for your help.


(Convinced ST will never be unbroken…) #4

Here you go:

/**
 *  Intermatic Switch
 *
 *  Copyright 2014 Duncan
 *
 */
metadata {
	// Automatically generated. Make future change here.
	definition (name: "Intermatic CA5100", namespace: "mckeed", author: "Duncan") {
		capability "Actuator"
		capability "Switch"
		capability "Refresh"
		capability "Sensor"

		fingerprint inClusters: "0x25"
	}

	// simulator metadata
	simulator {
		status "on":  "command: 2003, payload: FF"
		status "off": "command: 2003, payload: 00"

		// reply messages
		reply "2001FF,delay 100,2502": "command: 2503, payload: FF"
		reply "200100,delay 100,2502": "command: 2503, payload: 00"
	}

	// tile definitions
	tiles {
		standardTile("switch", "device.switch", width: 2, height: 2, canChangeIcon: true) {
			state "on", label: '${name}', action: "switch.off", icon: "st.switches.switch.on", backgroundColor: "#79b821"
			state "off", label: '${name}', action: "switch.on", 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 = null
	def cmd = zwave.parse(description, [0x20: 1, 0x70: 1])
	if (cmd) {
		result = createEvent(zwaveEvent(cmd))
	}
	log.debug "Parse returned ${result?.descriptionText}"
	return result
}

def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicReport cmd) {
	[name: "switch", value: cmd.value ? "on" : "off", type: "physical"]
}

def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicSet cmd) {
	[name: "switch", value: cmd.value ? "on" : "off", type: "physical"]
}

def zwaveEvent(physicalgraph.zwave.commands.switchbinaryv1.SwitchBinaryReport cmd) {
	[name: "switch", value: cmd.value ? "on" : "off", type: "digital"]
}

def zwaveEvent(physicalgraph.zwave.commands.hailv1.Hail cmd) {
	[name: "hail", value: "hail", descriptionText: "Switch button was pressed", displayed: false]
}

def zwaveEvent(physicalgraph.zwave.commands.manufacturerspecificv2.ManufacturerSpecificReport cmd) {
	if (state.manufacturer != cmd.manufacturerName) {
		updateDataValue("manufacturer", cmd.manufacturerName)
	}
}

def zwaveEvent(physicalgraph.zwave.Command cmd) {
	// Handles all Z-Wave commands we aren't interested in
	[descriptionText:"$device.displayName: $cmd", displayed:false]
}

def on() {
	sendEvent(name: "switch", value: "on")
	delayBetween([
		zwave.basicV1.basicSet(value: 0xFF).format(),
		zwave.switchBinaryV1.switchBinaryGet().format()
	])
}

def off() {
	sendEvent(name: "switch", value: "off")
	delayBetween([
		zwave.basicV1.basicSet(value: 0x00).format(),
		zwave.switchBinaryV1.switchBinaryGet().format()
	])
}

def refresh() {
	delayBetween([
		zwave.switchBinaryV1.switchBinaryGet().format(),
		zwave.manufacturerSpecificV1.manufacturerSpecificGet().format()
	])
}

Intermatc ca5100 not working for 3way
(Convinced ST will never be unbroken…) #5

Oh... and maybe correct the model in your title so others can find this. It is a "CA5100"


(Spec) #6

Thanks will correct, the code did the trick.