Skip to content

Commit

Permalink
Added ESPHome bed sensor config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannytsang committed Oct 5, 2021
1 parent a346fae commit ff49139
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions esphome/bed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
esphome:
name: bed
platform: ESP32
board: esp32dev

i2c:
sda: 21
scl: 22
scan: true
id: bus_a

ads1115:
- address: 0x48
continuous_mode: true

esp32_ble_tracker:

sensor:
- platform: ads1115
multiplexer: 'A0_GND'
gain: 4.096
name: "Bed Top Left"
- platform: ads1115
multiplexer: 'A1_GND'
gain: 4.096
name: "Bed Top Right"
filters:
- median:
window_size: 5
send_every: 5
send_first_at: 1
- platform: ads1115
multiplexer: 'A2_GND'
gain: 4.096
name: "Bed Bottom Left"
- platform: ads1115
multiplexer: 'A3_GND'
gain: 4.096
name: "Bed Bottom Right"
# Platform sensors
- platform: uptime
name: Uptime Sensor

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
password: ""

wifi:
ssid: !secret wifi_iot_ssid
password: !secret wifi_password

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bed Fallback Hotspot"
password: !secret bed_fallback_password

captive_portal:

0 comments on commit ff49139

Please sign in to comment.