Advertisement
Guest User

Untitled

a guest
Dec 29th, 2018
810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /*
  2. * Monoprice/Vision Dual Relay Child Device Driver
  3. */
  4. metadata {
  5. definition (name: "Dual Relay Driver (Child)", namespace: "hubitat", author: "hubitat") {
  6. capability "Switch"
  7. capability "Actuator"
  8. }
  9. }
  10.  
  11. void on() {
  12. log.debug "$device on"
  13. parent.childOn(device.deviceNetworkId)
  14. }
  15.  
  16. void off() {
  17. log.debug "$device off"
  18. parent.childOff(device.deviceNetworkId)
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement