Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch:
- - platform: gpio
- name: "Relay1"
- pin: D2
- inverted: True
- - platform: gpio
- name: "Relay2"
- pin: D3
- inverted: True
- - platform: gpio
- name: "Relay3"
- pin: D5
- inverted: True
- - platform: gpio
- name: "Relay4"
- pin: D6
- inverted: True
- - platform: template
- name: Pause
- turn_on_action:
- - dfplayer.pause
- - platform: template
- name: Stop
- turn_on_action:
- - dfplayer.stop
- - platform: template
- name: Next
- turn_on_action:
- - dfplayer.play_next
- - platform: template
- name: Play
- turn_on_action:
- - dfplayer.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement