https://www.dfrobot.com/product-2069.html
Code: Select all
esphome:
name: phmeter
esp32:
board: esp32doit-devkit-v1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "165ac0be0da9b0896ea663310dd6497a"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Phmeter Fallback Hotspot"
password: "RAU4RZS1J44R"
captive_portal:
i2c:
sda: GPIO21
scl: GPIO22
scan: true
ads1115:
- address: 0x48
sensor:
- platform: ads1115
multiplexer: 'A1_GND'
gain: 4.096
name: "ADS1115 Channel A1-GND"
update_interval: 10s
filters:
- calibrate_linear:
- 1.510 -> 7.0
- 2.008 -> 4.0
- 1.126 -> 10.0