Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- name: mbedroom_cover_left
- esphome:
- name: ${name}
- platform: ESP8266
- board: esp01_1m
- wifi:
- ssid: XXXXXX
- password: XXXXXXX
- domain: XXXXXX
- manual_ip:
- static_ip: XXX.XXX.XXX.XXX
- gateway: XXX.XXX.XXX.XXX
- subnet: XXX.XXX.XXX.XXX
- web_server:
- port: 80
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- time:
- - platform: homeassistant
- id: homeassistant_time
- switch:
- # The switch that turns the UP direction on
- - platform: gpio
- id: up_pin
- pin: GPIO13
- interlock: &interlock_group [up_pin, down_pin]
- restore_mode: always off
- # The switch that turns the DOWN direction on
- - platform: gpio
- id: down_pin
- pin: GPIO15
- interlock: *interlock_group
- restore_mode: always off
- cover:
- - platform: time_based
- name: "Master Bedroom left curtain"
- id: "${name}"
- open_action:
- - switch.turn_on: up_pin
- open_duration: 22sec
- close_action:
- - switch.turn_on: down_pin
- close_duration: 16sec
- stop_action:
- - switch.turn_off: up_pin
- - switch.turn_off: down_pin
- binary_sensor:
- - platform: gpio
- id: open_button
- pin: GPIO12
- on_press:
- - cover.open: "${name}"
- - platform: gpio
- id: close_button
- pin: GPIO05
- on_press:
- - cover.close: "${name}"
- - platform: gpio
- id: stop_button
- pin: GPIO03
- on_press:
- - cover.stop: "${name}"
- output:
- - platform: esp8266_pwm
- id: green_led_up
- pin: GPIO0
- inverted: false
- - platform: esp8266_pwm
- id: red_led_down
- pin: GPIO02
- inverted: false
- - platform: esp8266_pwm
- id: blue_led_down
- pin: GPIO01
- inverted: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement