You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
606 B

esphome:
name: livingroom_watersensor1
platform: ESP8266
board: nodemcu
# Set up Wifi
wifi:
domain: .lan
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret api_password
# Enable OTA updates
ota:
password: !secret ota_password
# Configure ADC to read moisture data and output percentage
sensor:
- platform: adc
pin: A0
name: "Chilli Moisture Sensor"
unit_of_measurement: "%"
filters:
- calibrate_linear:
- 0.30 -> 100.00
- 0.90 -> 0.00
update_interval: 60s