From a41d39c40ee32b403bdd08d3a397a43f6ab58366 Mon Sep 17 00:00:00 2001 From: Kilokem Date: Sat, 20 Sep 2025 12:58:01 +0000 Subject: [PATCH] Upload files to "/" --- first-esp-test.yaml | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 first-esp-test.yaml diff --git a/first-esp-test.yaml b/first-esp-test.yaml new file mode 100644 index 0000000..e5a0689 --- /dev/null +++ b/first-esp-test.yaml @@ -0,0 +1,53 @@ +esphome: + name: firstespmodule + +esp32: + board: esp32dev + framework: + type: arduino + +wifi: + ssid: "G-Emelet" + password: "19741226" + +logger: +api: +ota: + platform: esphome + +sensor: + - platform: dht + pin: GPIO4 + model: DHT11 + temperature: + name: "Room Temperature" + humidity: + name: "Room Humidity" + update_interval: 30s + +binary_sensor: + - platform: gpio + pin: GPIO14 + name: "Motion Detected" + device_class: motion + - platform: gpio + pin: + number: GPIO26 + mode: + input: true + pullup: true + name: "Push Button" + on_press: + - output.turn_on: buzzer_output + - delay: 500ms + - output.turn_off: buzzer_output + +switch: + - platform: gpio + pin: GPIO27 # safer pin for relay than GPIO12 + name: "Relay Switch" + +output: + - platform: ledc + pin: GPIO13 + id: buzzer_output