SHARE
TWEET

Untitled

slides1974 Nov 18th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. switch:
  2.   - platform: gpio
  3.     name: "Relay1"
  4.     pin: D2
  5.     inverted: True
  6.    
  7.   - platform: gpio
  8.     name: "Relay2"
  9.     pin: D3
  10.     inverted: True
  11.  
  12.   - platform: gpio
  13.     name: "Relay3"
  14.     pin: D5
  15.     inverted: True
  16.    
  17.   - platform: gpio
  18.     name: "Relay4"
  19.     pin: D6
  20.     inverted: True
  21.  
  22.   - platform: template
  23.     name: Pause
  24.     turn_on_action:
  25.       - dfplayer.pause
  26.      
  27.   - platform: template
  28.     name: Stop
  29.     turn_on_action:
  30.       - dfplayer.stop
  31.      
  32.   - platform: template
  33.     name: Next
  34.     turn_on_action:
  35.       - dfplayer.play_next
  36.      
  37.   - platform: template
  38.     name: Play
  39.     turn_on_action:
  40.       - dfplayer.start
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