This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: main_bathroom | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: | |
ssid: !secret wifi | |
password: !secret wifi_pw | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
ota: | |
switch: | |
- platform: gpio | |
name: "Main Bathroom Fan" | |
pin: GPIO5 | |
id: relay_2 | |
- platform: gpio | |
name: "Main Bathroom Light" | |
pin: GPIO4 | |
id: relay_1 | |
binary_sensor: | |
- platform: gpio | |
pin: | |
number: GPIO12 | |
mode: INPUT_PULLUP | |
inverted: True | |
name: "Main Bathroom Light Button" | |
on_press: | |
- switch.toggle: relay_1 | |
- platform: gpio | |
pin: | |
number: GPIO13 | |
mode: INPUT_PULLUP | |
inverted: True | |
name: "Main Bathroom Fan Button" | |
on_press: | |
- switch.toggle: relay_2 | |
- platform: gpio | |
pin: GPIO02 #D4 | |
name: "Main Bathroom Motion" | |
device_class: motion | |
on_press: | |
then: | |
- switch.turn_on: relay_1 | |
dallas: | |
- pin: GPIO16 | |
id: main_bath_temp | |
sensor: | |
- platform: wifi_signal | |
name: "Main Bath WiFi Strength" | |
update_interval: 300s | |
- platform: uptime | |
name: Main Bath Uptime | |
- platform: dallas | |
address: 0x070218313278FF28 | |
name: Main Bathroom Temp | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment