Auto in der Garage? Zisterne voll? Person vor dem Schreibisch?

108 Aufrufe
Published
Diese Szenarien lassen sich mit einer DIY Lösung rund um einen Ultraschall-Sensor HC-SR04 mit ESP Home und Home Assistant umsetzen.

Ich freue mich über eure Unterstützung:
https://www.buymeacoffee.com/smartesheim

Komponenten:

Ultrasonic Ultraschall Entfernungsmesser HC-SR04
Ein Stück von Amazon (~4,50€): https://amzn.to/386eDPe *
Lieber direkt mehrere bestellen, braucht man immer ;): (5 Stk, ~9,50€ = 1,90€/Stk inkl. Kabel): https://amzn.to/37V5k4p *
Ab etwa 10 Stk. billiger, aber lange Lieferzeiten direkt in China: https://de.aliexpress.com/wholesale?SearchText=HC-SR04

Kabel:
von Amazon (~5,50€): https://amzn.to/33NTYh1 *
von Aliexpress (~2,50€): https://de.aliexpress.com/item/33060775595.html

D1 Mini:
3 Stk von Amazon (je ~4€): https://amzn.to/3JRjD7P *
1 Stk von Aliexpress (~3,70€): https://de.aliexpress.com/item/32681374223.html

D1 Mini Pro inkl. ext. Antenne
1 Stk von Amazon (~10€): https://amzn.to/3xCMUjQ *
1 Stk von Aliexpress (~8,10€): https://de.aliexpress.com/item/1005001621776421.html

Akkupack Einheit:
Doppelbatterien (~5,30€) / Einzeln (~4,20€): https://de.aliexpress.com/item/32963535506.html

Akku (Wichtig, sonst ist das Akkupack witzlos!):
https://www.akkuteile.de/lithium-ionen-akkus/16340/keeppower/keeppower-16340-700mah-3-7vli-ion-akku-geschuetzt_12004_1008 (~5,50€ zzgl. Versand)


ESP Home Erklärung zum HC-SR04:
https://esphome.io/components/sensor/ultrasonic.html

ESP Home Flasher Download:
https://github.com/esphome/esphome-flasher/releases
Die Version ESPHome-Flasher-XXXX-Windows-x64.exe runterladen und nutzen!

ESP Home Konfiguration:
esphome:
name: zisterne

esp8266:
board: d1_mini_pro

# Enable logging
logger:

# Enable Home Assistant API
#api: # deep sleep not compatible

ota:
password: "xxxxx"

wifi:
ssid: Demo-Wlan
password: Password
fast_connect: on
manual_ip:
static_ip: 192.168.1.xx
gateway: 192.168.1.1
subnet: 255.255.255.0

# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Zisterne Fallback Hotspot"
# password: "JcB2ANQNr9qA"

captive_portal:

sensor:
- platform: ultrasonic
trigger_pin: D1
echo_pin: D2
name: "Zisternenhoehe"
update_interval: 30s

switch:
- platform: restart
id: zisterne_restart
name: restart

deep_sleep:
sleep_duration: 60min
run_duration: 60s

mqtt:
broker: 192.168.1.x
username: Username
password: Password
log_topic: /garden/outside/zisterne
birth_message:
topic: /garden/outside/zisterne
payload: ""
will_message:
topic: /garden/outside/zisterne
payload: ""

00:00 Worum geht's?
00:47 Komponenten
02:46 Beispielaufbau Zisterne
05:59 ESP Home
07:31 Mobile Konfiguration
10:57 Sensor Konfiguration
13:26 Installieren / Flashen
15:39 Praxiseinsatz
16:17 Tipps und Tricks



* Die Links sind Affiliate Links. Ich bekomme eine kleine Provision, wenn ihr darüber kauft, ohne dass ihr etwas mehr bezahlen müsst. Unterstützt damit den Kanal.
Kategorien
PC (Windows/Mac/Linux) Anleitungen
Kommentare deaktiviert.