first commit
This commit is contained in:
commit
ec0038cde6
8
flash.sh
Executable file
8
flash.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: flash.sh <config.yaml> [/dev/tty-usb-device]"
|
||||
elif [ -z "$2" ]; then
|
||||
podman run --rm --privileged -v "${PWD}":/config -it ghcr.io/esphome/esphome run $1
|
||||
else
|
||||
podman run --rm --privileged -v "${PWD}":/config --device=$2 -it ghcr.io/esphome/esphome run $1
|
||||
fi
|
64
plants.yaml
Normal file
64
plants.yaml
Normal file
@ -0,0 +1,64 @@
|
||||
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"
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin: GPIO15
|
||||
inverted: true
|
||||
name: "water pump relay"
|
||||
|
||||
# temperature probe
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
pin: GPIO16
|
||||
id: probe1
|
||||
|
||||
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
|
||||
|
||||
captive_portal:
|
Loading…
x
Reference in New Issue
Block a user