esphome-config/plants.yaml
2025-02-03 22:38:34 +01:00

97 lines
1.8 KiB
YAML

esphome:
name: esp-plants
friendly_name: ESP-PLANTS
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
# Enable logging
logger:
level: verbose
# Enable Home Assistant API
api:
encryption:
key: !secret api_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.55
gateway: 192.168.0.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32S3N16R8 Fallback Hotspot"
password: "v41VUZA7A1VA"
# light:
# - platform: status_led
# name: "Switch state"
# pin: GPIO2
# restore_mode: ALWAYS_OFF
switch:
- platform: gpio
pin: GPIO15
inverted: true
name: "light pump"
- platform: gpio
pin: GPIO17
inverted: true
name: "heavy pump"
# temperature probe
one_wire:
- platform: gpio
pin: GPIO16
id: probe1
# # ATH20+BMP280
# i2c:
# sda: 17
# scl: 18
# scan: true
# id: probe_ath_bmp_1
sensor:
- platform: dallas_temp
one_wire_id: probe1
name: "temperature"
update_interval: 30s
- platform: adc
pin: GPIO6
name: "soil moisture sensor, digital"
update_interval: 30s
attenuation: auto
- platform: adc
pin: GPIO7
name: "soil moisture sensor, analog"
update_interval: 30s
attenuation: auto
# - platform: bmp280_i2c
# i2c_id: probe_ath_bmp_1
# update_interval: 60s
# temperature:
# name: "BMP temp"
# oversampling: 2x
# pressure:
# name: "BMP Pressure"
# - platform: aht10
# i2c_id: probe_ath_bmp_1
# update_interval: 60s
# temperature:
# name: "AHT20 temp"
# id: aht20_temp
# accuracy_decimals: 1
captive_portal: