Skip to content

Instantly share code, notes, and snippets.

@bl0rp
Created March 29, 2019 12:35
Show Gist options
  • Save bl0rp/6769b7b9d7bd410c1a41408bc0e087b8 to your computer and use it in GitHub Desktop.
Save bl0rp/6769b7b9d7bd410c1a41408bc0e087b8 to your computer and use it in GitHub Desktop.
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