Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
esphome:
name: upstairs_den_bedroom_bed
platform: ESP32
board: esp32doit-devkit-v1
sensor:
# Bed
- platform: adc
id: bedside_sensor
pin: GPIO32
attenuation: 11db
name: Bedside Voltage Sensor
update_interval: 1s
filters:
- sliding_window_moving_average:
window_size: 10
send_every: 10
- platform: resistance
sensor: bedside_sensor
configuration: UPSTREAM
resistor: 4.6kOhm
reference_voltage: 3.3V
name: Bedside Resistance Sensor
wifi:
ssid: "Not my Wi-Fi"
password: "Definitely not my password"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Upstairs Den Bedroom Bed"
password: "badwifipassword"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment