Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Momentary Switch
- switch:
- - platform: gpio
- pin: 2
- id: up_relay
- restore_mode: ALWAYS_ON
- - platform: template
- name: "Left Shades Up"
- icon: "mdi:blinds-open"
- turn_on_action:
- - switch.turn_off: up_relay
- - delay: 500ms
- - switch.turn_on: up_relay
- - platform: gpio
- pin: 0
- id: down_relay
- restore_mode: ALWAYS_ON
- - platform: template
- name: "Left Shades Down"
- icon: "mdi:blinds"
- turn_on_action:
- - switch.turn_off: down_relay
- - delay: 500ms
- - switch.turn_on: down_relay
- sensor:
- - platform: wifi_signal
- name: "Left Shade WiFi signal"
- update_interval: 60s
- - platform: uptime
- name: "Left Shades uptime"
- text_sensor:
- - platform: version
- name: "Left Shades ESPHome version"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement