Advertisement
erocm123

Aeon Dual Diff

Dec 14th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 4.14 KB | None | 0 0
  1. 33,36d32
  2. <
  3. <               command "childOn"
  4. <         command "childOff"
  5. <         command "childRefresh"
  6. 78c99
  7. < def zwaveEvent(hubitat.zwave.commands.basicv1.BasicReport cmd) {
  8. ---
  9. > def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicReport cmd) {
  10. 82c103
  11. < def zwaveEvent(hubitat.zwave.commands.basicv1.BasicSet cmd) {
  12. ---
  13. > def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicSet cmd) {
  14. 91c112
  15. < def zwaveEvent(hubitat.zwave.commands.switchbinaryv1.SwitchBinaryReport cmd, ep=null) {
  16. ---
  17. > def zwaveEvent(physicalgraph.zwave.commands.switchbinaryv1.SwitchBinaryReport cmd, ep=null) {
  18. 106c127
  19. < def zwaveEvent(hubitat.zwave.commands.multichannelv3.MultiChannelCmdEncap cmd) {
  20. ---
  21. > def zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCmdEncap cmd) {
  22. 114c135
  23. < def zwaveEvent(hubitat.zwave.commands.manufacturerspecificv2.ManufacturerSpecificReport cmd) {
  24. ---
  25. > def zwaveEvent(physicalgraph.zwave.commands.manufacturerspecificv2.ManufacturerSpecificReport cmd) {
  26. 121c142
  27. < def zwaveEvent(hubitat.zwave.Command cmd) {
  28. ---
  29. > def zwaveEvent(physicalgraph.zwave.Command cmd) {
  30. 145c166
  31. < def childOn(String dni) {
  32. ---
  33. > void childOn(String dni) {
  34. 148,150c169,171
  35. <     cmds << new hubitat.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0xFF), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
  36. <     cmds << new hubitat.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
  37. <     cmds
  38. ---
  39. >     cmds << new physicalgraph.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0xFF), channelNumber(dni))))
  40. >     cmds << new physicalgraph.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))))
  41. >     sendHubCommand(cmds)
  42. 153c174
  43. < def childOff(String dni) {
  44. ---
  45. > void childOff(String dni) {
  46. 156,158c177,179
  47. <     cmds << new hubitat.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0x00), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
  48. <     cmds << new hubitat.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
  49. <     cmds
  50. ---
  51. >     cmds << new physicalgraph.device.HubAction(command(encap(zwave.basicV1.basicSet(value: 0x00), channelNumber(dni))))
  52. >     cmds << new physicalgraph.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))))
  53. >     sendHubCommand(cmds)
  54. 161c182
  55. < def childRefresh(String dni) {
  56. ---
  57. > void childRefresh(String dni) {
  58. 164,165c185,186
  59. <     cmds << new hubitat.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))), hubitat.device.Protocol.ZWAVE)
  60. <     cmds
  61. ---
  62. >     cmds << new physicalgraph.device.HubAction(command(encap(zwave.switchBinaryV1.switchBinaryGet(), channelNumber(dni))))
  63. >     sendHubCommand(cmds)
  64. 219c240
  65. <     if (cmds != []) commands(cmds)
  66. ---
  67. >     if (cmds != []) response(commands(cmds))
  68. 223c244
  69. <     def configuration = new XmlSlurper().parseText(configuration_model)
  70. ---
  71. >     def configuration = parseXml(configuration_model)
  72. 269c290
  73. <     def parameterSettings = new XmlSlurper().parseText(configuration_model()).Value.find{it.@index == "${cmd.parameterNumber}"}
  74. ---
  75. >     def parameterSettings = parseXml(configuration_model()).Value.find{it.@index == "${cmd.parameterNumber}"}
  76. 286c307
  77. <     def configuration = new XmlSlurper().parseText(configuration_model())
  78. ---
  79. >     def configuration = parseXml(configuration_model())
  80. 337,338c358
  81. <       log.debug message
  82. <     /*if (logLevel != "0") {
  83. ---
  84. >     if (logLevel != "0") {
  85. 348c368
  86. <     }*/
  87. ---
  88. >     }
  89. 397c417
  90. < def zwaveEvent(hubitat.zwave.commands.configurationv2.ConfigurationReport cmd) {
  91. ---
  92. > def zwaveEvent(physicalgraph.zwave.commands.configurationv2.ConfigurationReport cmd) {
  93. 410c430
  94. < private command(hubitat.zwave.Command cmd) {
  95. ---
  96. > private command(physicalgraph.zwave.Command cmd) {
  97. 430c450
  98. <             addChildDevice("Metering Switch Child Device", "${device.deviceNetworkId}-ep${i}",
  99. ---
  100. >             addChildDevice("Metering Switch Child Device", "${device.deviceNetworkId}-ep${i}", null,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement