From a9785acf9dca40f6b9c10f8f1ba7a78f0fb1ed9d Mon Sep 17 00:00:00 2001 From: Sebastian Wendel Date: Fri, 2 Jun 2023 13:29:14 +0200 Subject: [PATCH] first commit --- .gitignore | 2 + README.md | 0 hardware/case/wurmkomposter_xxx.md | 37 ++ hardware/case/wurmkomposter_xxx.svg | 759 ++++++++++++++++++++++++++++ hardware/controller/README.md | 24 + software/.gitignore | 5 + software/esphome.yaml | 95 ++++ 7 files changed, 922 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 hardware/case/wurmkomposter_xxx.md create mode 100644 hardware/case/wurmkomposter_xxx.svg create mode 100644 hardware/controller/README.md create mode 100644 software/.gitignore create mode 100644 software/esphome.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..163bec7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.esphome/ +/secrets.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/hardware/case/wurmkomposter_xxx.md b/hardware/case/wurmkomposter_xxx.md new file mode 100644 index 0000000..0060575 --- /dev/null +++ b/hardware/case/wurmkomposter_xxx.md @@ -0,0 +1,37 @@ +# Wurmkomposter + +## Gastronorm + +- H 200 mm +- B 530 mm +- T 330 mm + +## Theaterlatte + +- H mm +- B 30 mm +- T mm + +## Schrank + +### Innen + +- H 1500 mm +- B 560 mm +- T 360 mm + +### Außen + +- H 1500 mm +- B 560 mm +- T 360 mm + +## Teile + +- 4 x 57 cm (auf 45°) +- 4 x 36 cm (auf 45°) +- 2 x 144 cm +- 12 x 33 cm + +- 2 x 150 cm x 36 cm +- 2 x 57 cm x 36 cm diff --git a/hardware/case/wurmkomposter_xxx.svg b/hardware/case/wurmkomposter_xxx.svg new file mode 100644 index 0000000..b61c28c --- /dev/null +++ b/hardware/case/wurmkomposter_xxx.svg @@ -0,0 +1,759 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hardware/controller/README.md b/hardware/controller/README.md new file mode 100644 index 0000000..685b2a0 --- /dev/null +++ b/hardware/controller/README.md @@ -0,0 +1,24 @@ +## Controller Pinout + +| Pin | Description | +| ---------- | ----------- | +| GND | | +| V_OUT_3.3v | | +| V_IN | | +| GPIO0 | | +| GPIO1 | | +| GPIO2 | | +| GPIO3 | | +| GPIO4 | | +| GPIO5 | SSR Pump | +| GPIO6 | | +| GPIO7 | | +| GPIO8 | | +| GPIO9 | | +| GPIO10 | | +| GPIO11 | | +| GPIO12 | | +| GPIO13 | | +| GPIO14 | | +| GPIO15 | | +| GPIO16 | | diff --git a/software/.gitignore b/software/.gitignore new file mode 100644 index 0000000..d8b4157 --- /dev/null +++ b/software/.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/software/esphome.yaml b/software/esphome.yaml new file mode 100644 index 0000000..5d52614 --- /dev/null +++ b/software/esphome.yaml @@ -0,0 +1,95 @@ +esphome: + name: wurmkomposter + +esp8266: + board: nodemcuv2 + +logger: + level: VERBOSE + +api: + password: !secret api_password + +ota: + password: !secret ota_password + +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + + ap: + ssid: !secret ap_ssid + password: !secret ap_password + +captive_portal: + +web_server: + port: 80 + local: true + +mqtt: + broker: !secret mqtt_broker + +time: + - platform: sntp + timezone: Europe/Berlin + on_time: + - hours: 10 + minutes: 00 + seconds: 00 + then: + - switch.turn_on: pump + - hours: 10 + minutes: 05 + seconds: 00 + then: + - switch.turn_off: pump + - hours: 22 + minutes: 00 + seconds: 00 + then: + - switch.turn_on: pump + - hours: 22 + minutes: 05 + seconds: 00 + then: + - switch.turn_off: pump + +switch: + - platform: gpio + name: pump + id: pump + pin: D5 + inverted: true + +sensor: + - platform: dht + pin: D6 + temperature: + name: "Worm composter Temperature Top" + humidity: + name: "Worm composter Humidity Top" + update_interval: 60s + + - platform: dht + pin: D7 + temperature: + name: "Worm composter Temperature Center" + humidity: + name: "Worm composter Humidity Center" + on_value_range: + - below: 50.0 + then: + - switch.turn_on: pump + - above: 90.0 + then: + - switch.turn_off: pump + update_interval: 60s + + - platform: dht + pin: D2 + temperature: + name: "Worm composter Temperature Bottom" + humidity: + name: "Worm composter Humidity Bottom" + update_interval: 60s