Skip to content

Instantly share code, notes, and snippets.

@codycodes
Last active July 13, 2021 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codycodes/9705d264516559a48a43316ec2cc82d0 to your computer and use it in GitHub Desktop.
Save codycodes/9705d264516559a48a43316ec2cc82d0 to your computer and use it in GitHub Desktop.
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