SHARE
TWEET

Untitled

a guest Dec 29th, 2018 43 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top