WiFi Aquarium Water Temp Sensor
I built a second WiFi sensor, this time for my aquarium to monitor the tank water temperature.
This like my Attic Multi-Sensor uses the home automation software Home Assistant with the EspHome plugin.
Instead of reinventing the wheel, I’m just going to refer you to the great Dallas Temperature documentation at the ESPHome website for this sensor for you to see how I went about building mine.
Here is a screenshot of of my water temperature sensor’s graph in Home Assistant:
Hardware
Case
Here are my aquarium sensor case 3D print files and some images below of how the one I built looks.
Software
Here is my “Home Assistant : ESP-Home” yaml config file for my aquarium temp sensor.
# D1-Mini CLONE w/attached DS18N20 waterproof Temp probe
#
substitutions:
devicename: aquarium_temp_01
upper_devicename: Aquarium 20gal
esphome:
name: ${devicename}
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${devicename}"
password: !secret ap_fallback_pwd
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
# Enable Over The Air updates
ota:
safe_mode: True
# Example configuration entry
dallas:
- pin: GPIO4
update_interval: 15s
sensor:
- platform: dallas
address: 0xCE041662D2CFFF28
name: ${devicename}_temp
filters:
- lambda: return x * (9.0/5.0) + 32.0;
unit_of_measurement: "°F"
- platform: wifi_signal
name: ${devicename}_wifi_signal
update_interval: 30s
- platform: uptime
name: ${devicename}_uptime
binary_sensor:
- platform: status
name: ${upper_devicename} Status
id: ${devicename}_status
text_sensor:
- platform: version
name: ${devicename}_esphome_version