Last active
July 13, 2021 01:11
-
-
Save codycodes/9705d264516559a48a43316ec2cc82d0 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: 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