Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 33,36d32
- <
- < command "childOn"
- < command "childOff"
- < command "childRefresh"
- 78c99
- < def zwaveEvent(hubitat.zwave.commands.basicv1.BasicReport cmd) {
- ---
- > def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicReport cmd) {
- 82c103
- < def zwaveEvent(hubitat.zwave.commands.basicv1.BasicSet cmd) {
- ---
- > def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicSet cmd) {
- 91c112
- < def zwaveEvent(hubitat.zwave.commands.switchbinaryv1.SwitchBinaryReport cmd, ep=null) {
- ---
- > def zwaveEvent(physicalgraph.zwave.commands.switchbinaryv1.SwitchBinaryReport cmd, ep=null) {
- 106c127
- < def zwaveEvent(hubitat.zwave.commands.multichannelv3.MultiChannelCmdEncap cmd) {
- ---
- > def zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCmdEncap cmd) {
- 114c135
- < def zwaveEvent(hubitat.zwave.commands.manufacturerspecificv2.ManufacturerSpecificReport cmd) {
- ---
- > def zwaveEvent(physicalgraph.zwave.commands.manufacturerspecificv2.ManufacturerSpecificReport cmd) {
- 121c142
- < def zwaveEvent(hubitat.zwave.Command cmd) {
- ---
- > def zwaveEvent(physicalgraph.zwave.Command cmd) {
- 145c166
- < def childOn(String dni) {
- ---
- > void childOn(String dni) {
- 148,150c169,171
- < cmds << new hubitat.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0xFF), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
- < cmds << new hubitat.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
- < cmds
- ---
- > cmds << new physicalgraph.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0xFF), channelNumber(dni))))
- > cmds << new physicalgraph.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))))
- > sendHubCommand(cmds)
- 153c174
- < def childOff(String dni) {
- ---
- > void childOff(String dni) {
- 156,158c177,179
- < cmds << new hubitat.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0x00), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
- < cmds << new hubitat.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
- < cmds
- ---
- > cmds << new physicalgraph.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0x00), channelNumber(dni))))
- > cmds << new physicalgraph.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))))
- > sendHubCommand(cmds)
- 161c182
- < def childRefresh(String dni) {
- ---
- > void childRefresh(String dni) {
- 164,165c185,186
- < cmds << new hubitat.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
- < cmds
- ---
- > cmds << new physicalgraph.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))))
- > sendHubCommand(cmds)
- 219c240
- < if (cmds != []) commands(cmds)
- ---
- > if (cmds != []) response(commands(cmds))
- 223c244
- < def configuration = new XmlSlurper().parseText(configuration_model)
- ---
- > def configuration = parseXml(configuration_model)
- 269c290
- < def parameterSettings = new XmlSlurper().parseText(configuration_model()).Value.find{it.@index == "${cmd.parameterNumber}"}
- ---
- > def parameterSettings = parseXml(configuration_model()).Value.find{it.@index == "${cmd.parameterNumber}"}
- 286c307
- < def configuration = new XmlSlurper().parseText(configuration_model())
- ---
- > def configuration = parseXml(configuration_model())
- 337,338c358
- < log.debug message
- < /*if (logLevel != "0") {
- ---
- > if (logLevel != "0") {
- 348c368
- < }*/
- ---
- > }
- 397c417
- < def zwaveEvent(hubitat.zwave.commands.configurationv2.ConfigurationReport cmd) {
- ---
- > def zwaveEvent(physicalgraph.zwave.commands.configurationv2.ConfigurationReport cmd) {
- 410c430
- < private command(hubitat.zwave.Command cmd) {
- ---
- > private command(physicalgraph.zwave.Command cmd) {
- 430c450
- < addChildDevice("Metering Switch Child Device", "${device.deviceNetworkId}-ep${i}",
- ---
- > addChildDevice("Metering Switch Child Device", "${device.deviceNetworkId}-ep${i}", null,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement