Initial Version
This commit is contained in:
parent
8bf3e00f95
commit
99894ecab9
2 changed files with 44 additions and 0 deletions
41
bodensensor.yaml
Normal file
41
bodensensor.yaml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
esphome:
|
||||||
|
name: bodensensor
|
||||||
|
platform: ESP32
|
||||||
|
board: esp32doit-devkit-v1
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: !secret wifi_ssid
|
||||||
|
password: !secret wifi_key
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Bodensensor Fallback Hotspot"
|
||||||
|
password: ""
|
||||||
|
|
||||||
|
logger:
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
mqtt:
|
||||||
|
broker: !secret mqtt_broker
|
||||||
|
topic_prefix: sensor/bodensensor
|
||||||
|
birth_message:
|
||||||
|
topic: sensor/bodensensor/status
|
||||||
|
payload: online
|
||||||
|
will_message:
|
||||||
|
topic: sensor/bodensensor/status
|
||||||
|
payload: offline
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
pin: GPIO36
|
||||||
|
name: "raw_hum_1"
|
||||||
|
attenuation: 11db
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: adc
|
||||||
|
pin: GPIO34
|
||||||
|
name: "raw_hum_2"
|
||||||
|
attenuation: 11db
|
||||||
|
update_interval: 60s
|
3
secrets.yaml.sample
Normal file
3
secrets.yaml.sample
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
wifi_ssid: "YOUR WIFI SSID"
|
||||||
|
wifi_key: "YOUR WIFI PRESHARED KEY"
|
||||||
|
mqtt_broker: "IP OR NAME OF YOUR MQTT BROKER"
|
Loading…
Reference in a new issue