Howdy tinkerers!
Thanks again to @Iammikecohen for walking us through the trials and tribulations of setting up ESP boards to use for making your own Home Assistant-connected devices! Here’s the recap:
For the next meeting on 4/21, my current idea is “equipment organization”. I’ve been recently re-working my home setup to move various gear from a few different rooms into a rack in a cabinet, with everything all in one place. There are some interesting challenges I faced while doing that, so I thought it would be fun to discuss how we all approach the problem where to put our always-on equipment. If anyone has pictures or videos they’d like to share, feel free to send them to me before or after the meeting, so I can include them in the Google Drive folder for the meeting notes.
As always, the zoom link for remotely joining the meeting is https://asmbly.org/zoom/home-tinkering
Hope to see y’all there!
It’s unfortunate that last month I made the mistake of not updating the secrets file to be configured for the Asmbly wifi instead of my home wifi. I was hoping to show how to use a humidity sensor and voltage relay to control a humidifier. Below I’ve attached photos of the current state of my ESP8266 powered grow tent humidity controller, the Home Assistant integration, and the ESPHome YAML used.
# Add a switch for the physical Relay
switch:
- platform: gpio
pin: D5
name: "Humidifier Relay"
id: humidifier_relay
inverted: false # Change to 'true' if your relay is Active Low
sensor:
- platform: bme280_i2c
address: 0x76
temperature:
name: "Temperature"
id: bme_temp
humidity:
name: "Humidity"
id: bme_hum
pressure:
name: "Pressure"
update_interval: 5s
- platform: template
name: "VPD"
unit_of_measurement: "kPa"
lambda: |-
float t = id(bme_temp).state;
float rh = id(bme_hum).state;
if (isnan(t) || isnan(rh)) return NAN;
float svp = 0.61078 * exp((17.27 * t) / (t + 237.3));
float avp = svp * (rh / 100.0);
return svp - avp;
# This section controls the relay based on the VPD value
on_value:
then:
- if:
condition:
lambda: 'return x > 1.0;'
then:
- switch.turn_on: humidifier_relay
- if:
condition:
lambda: 'return x < 0.8;'
then:
- switch.turn_off: humidifier_relay
update_interval: 3s
# ==========================
esphome:
name: esphome-web-65146d
friendly_name: Sm Aerogarden Tent
min_version: 2025.11.0
name_add_mac_suffix: false
esp8266:
board: d1_mini
i2c:
scl: D1
sda: D2
# Enable logging
logger:
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
1 Like
The basil VPD is high because it’s no longer in a grow tent, you can see the ESP8266 here infront of Link. Amiibos make good Aerogarden hole covers, 3D printed diglets are also good
1 Like