From 5542c6cdb003c0a8ba79f3bb6db47e301e93251f Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 24 Oct 2025 22:19:22 +0200 Subject: [PATCH] shrimp vase --- ESPhome/shrimp-vase/.gitignore | 5 +++ ESPhome/shrimp-vase/esphome.yaml | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 ESPhome/shrimp-vase/.gitignore create mode 100644 ESPhome/shrimp-vase/esphome.yaml diff --git a/ESPhome/shrimp-vase/.gitignore b/ESPhome/shrimp-vase/.gitignore new file mode 100644 index 0000000..d8b4157 --- /dev/null +++ b/ESPhome/shrimp-vase/.gitignore @@ -0,0 +1,5 @@ +# Gitignore settings for ESPHome +# This is an example and may include too much for your use-case. +# You can modify this file to suit your needs. +/.esphome/ +/secrets.yaml diff --git a/ESPhome/shrimp-vase/esphome.yaml b/ESPhome/shrimp-vase/esphome.yaml new file mode 100644 index 0000000..af5e4f9 --- /dev/null +++ b/ESPhome/shrimp-vase/esphome.yaml @@ -0,0 +1,54 @@ +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"