Files
esphome-configs/mcu-basement-2.yaml
T

54 lines
1.0 KiB
YAML

---
# Hardware: Sonoff Dual R2
# Pinout:
# GPIO0 Pin "button 0" on expansion header
# GPIO5 Relay #2 and green color on LED -> relay_2 (output gpio)
# GPIO9 Pin "button 1" on expansion header
# GPIO10 Push Button
# GPIO12 Relay #1 and red color on LED -> relay_1 (output gpio)
# GPIO13 Blue Status LED -> status_led (status_led) (inverted)
substitutions:
device: basement-2
name_short: Basement
name: Basement 2
area: Basement
comment: Lights
esphome:
name: mcu-${device}
friendly_name: ${name}
area: ${area}
comment: ${comment}
esp8266:
board: esp01_1m
toolchain: arduino
packages:
common: !include common/common_esp8266.yaml
status_led:
pin:
number: 13
inverted: yes
light:
- platform: binary
name: Light
id: light_1
output: relay_1
restore_mode: ALWAYS_ON
- platform: binary
name: Workbench Light
id: light_2
output: relay_2
restore_mode: ALWAYS_ON
output:
- platform: gpio
pin: 12
id: relay_1
- platform: gpio
pin: 5
id: relay_2