Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO3
- mode: INPUT_PULLUP
- id: top_button
- on_press:
- - switch.toggle: top_relay
- - switch.toggle: top_led
- - platform: gpio
- pin:
- number: GPIO5
- mode: INPUT_PULLUP
- id: bottom_button
- on_press:
- - switch.toggle: bottom_relay
- - switch.toggle: bottom_led
- switch:
- - platform: gpio
- id: top_led
- name: "Top LED"
- pin:
- number: GPIO4
- inverted: True
- - platform: gpio
- id: bottom_led
- name: "Bottom LED"
- pin:
- number: GPIO14
- inverted: True
- - platform: gpio
- name: "Top Relay"
- pin: GPIO13
- id: top_relay
- - platform: gpio
- name: "Bottom Relay"
- pin: GPIO12
- id: bottom_relay
- - platform: gpio
- name: "USB Relay"
- pin: GPIO15
- id: usb_relay
- status_led:
- pin:
- number: GPIO0
- inverted: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement