55 lines
979 B
YAML
55 lines
979 B
YAML
esphome:
|
|
name: shrimp-vase
|
|
friendly_name: Shrimp Vase Controller
|
|
|
|
esp32:
|
|
board: esp32doit-devkit-v1
|
|
framework:
|
|
type: esp-idf
|
|
|
|
logger:
|
|
api:
|
|
ota:
|
|
password: ""
|
|
platform: esphome
|
|
|
|
wifi:
|
|
ssid: "ItHurtsWhenIP"
|
|
password: "BKl@3660"
|
|
manual_ip:
|
|
static_ip: 192.168.179.20
|
|
gateway: 192.168.179.1
|
|
subnet: 255.255.254.0
|
|
ap:
|
|
ssid: "Shrimp Vase Fallback Hotspot"
|
|
password: "12345678"
|
|
|
|
captive_portal:
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
switch:
|
|
- platform: gpio
|
|
id: switch_light
|
|
name: "Switch"
|
|
pin:
|
|
number: GPIO23 # pin wired to the button pad on the other PCB
|
|
mode: OUTPUT # <-- only pulls low; otherwise high-impedance
|
|
restore_mode: ALWAYS_OFF
|
|
|
|
button:
|
|
- platform: template
|
|
name: "Button"
|
|
on_press:
|
|
- switch.turn_on: switch_light
|
|
- delay: 200ms
|
|
- switch.turn_off: switch_light
|
|
|
|
sensor:
|
|
- platform: wifi_signal
|
|
name: "WiFi Signal"
|
|
update_interval: 60s
|
|
- platform: uptime
|
|
name: "Uptime"
|