Skip to content

Instantly share code, notes, and snippets.

@josefadamcik
Created March 12, 2021 09:24
Show Gist options
  • Save josefadamcik/8f23630baee893dc00d7c35e53b5ee88 to your computer and use it in GitHub Desktop.
Save josefadamcik/8f23630baee893dc00d7c35e53b5ee88 to your computer and use it in GitHub Desktop.
esphome:
name: herbgarden
comment: Indoor herbgarden sensing and controll.
platform: ESP32
board: lolin_d32_pro
wifi:
ssid: "something"
password: "wonttellyou"
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Herbgarden Fallback Hotspot"
password: "yeahthisisnottherealpassword"
captive_portal:
logger:
level: DEBUG
mqtt:
broker: "broker ip"
ota:
sensor:
- platform: bh1750
name: "Herbgarden Light"
address: 0x23
update_interval: 60s
- platform: sht3xd
temperature:
name: "Herbgarden Temperature"
humidity:
name: "Herbgarden Humidity"
address: 0x45
update_interval: 60s
output:
- platform: gpio
pin: 33
id: green_led
inverted: true
light:
- platform: binary
name: "Herbgarden Green LED"
output: green_led
status_led:
pin:
number: GPIO32
inverted: true
i2c:
sda: 21
scl: 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment