-
-
Save samuelmcconnell/38c6bd26cd1116abebe8127581b227dd to your computer and use it in GitHub Desktop.
Sonoff TH16
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: gecko-heater | |
esp8266: | |
board: esp01_1m | |
framework: | |
version: latest | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
ota: | |
password: "redacted" | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "gecko-Heater Fallback Hotspot" | |
password: "redacted" | |
captive_portal: | |
switch: | |
- platform: gpio | |
pin: GPIO12 | |
name: "Gecko Tank Heater" | |
id: gecko_heater | |
binary_sensor: | |
- platform: gpio | |
pin: | |
number: GPIO0 | |
inverted: True | |
id: gecko_heater_toggle | |
on_press: | |
then: | |
- switch.toggle: gecko_heater | |
sensor: | |
- platform: dht | |
model: SI7021 | |
pin: GPIO14 | |
humidity: | |
name: "Gecko Tank Humidity" | |
temperature: | |
name: "Gecko Tank Temperature" | |
update_interval: 10s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment