Guest User

Untitled

a guest
Dec 29th, 2018
262
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data