Created
March 29, 2019 12:35
-
-
Save bl0rp/6769b7b9d7bd410c1a41408bc0e087b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: esp32_1 | |
platform: ESP32 | |
board: lolin32 | |
wifi: | |
ssid: !secret ssid_iot | |
password: !secret password_iot | |
manual_ip: | |
static_ip: 192.168.0.110 | |
gateway: 192.168.0.1 | |
subnet: 255.255.255.0 | |
mqtt: | |
broker: '192.168.0.27' | |
username: 'ha' | |
password: 'ha' | |
discovery: False | |
discovery_retain: False | |
logger: | |
level: WARN | |
deep_sleep: | |
run_duration: 30s | |
sleep_duration: 360min | |
wakeup_pin: 14 | |
wakeup_pin_mode: INVERT_WAKEUP | |
switch: | |
- platform: shutdown | |
name: "esp32_1 Shutdown" | |
id: shutdown1 | |
binary_sensor: | |
- platform: status | |
name: "esp32_1 Status" | |
- platform: gpio | |
pin: | |
number: 14 | |
mode: INPUT_PULLDOWN | |
inverted: True | |
name: "door" | |
device_class: door | |
sensor: | |
- platform: wifi_signal | |
name: "esp32_1 WiFi Signal Sensor" | |
update_interval: 15s | |
- platform: adc | |
pin: 34 | |
attenuation: 11db | |
filters: | |
name: "Spannung Akku" | |
on_value_range: | |
below: 3.00 | |
then: | |
- switch.turn_on: | |
id: shutdown1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment