esphome/living.yml

108 lines
1.8 KiB
YAML

esphome:
name: living-room-sensor
esp32:
board: nodemcu-32s
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
# password: ""
ota:
- platform: esphome
password: ""
wifi:
ssid: "Cochrun"
password: "GreasyChicken784"
manual_ip:
static_ip: 192.168.1.121
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Living Room Fallback Hotspot"
password: "RUfAhbEfZmOU"
captive_portal:
web_server:
port: 80
version: 3
http_request:
verify_ssl: false
bluetooth_proxy:
####################
# TEMP
####################
i2c:
sda: GPIO32
scl: GPIO33
scan: true
id: bus_a
# sensor:
# - platform: bme280_i2c
# temperature:
# name: "Temperature"
# id: temperature
# filters:
# offset: -3.3
# pressure:
# name: "Pressure"
# id: pressure
# humidity:
# name: "Humidity"
# id: humidity
# i2c_id: bus_a
# address: 0x76
sensor:
- platform: aht10
variant: AHT20
temperature:
filters:
offset: 0.7
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 30s
i2c_id: bus_a
####################
# PRESENCE
####################
# uart:
# tx_pin: GPIO27
# rx_pin: GPIO26
# baud_rate: 115200
# dfrobot_sen0395:
# binary_sensor:
# # Information coming from uart bus
# - platform: dfrobot_sen0395
# name: Mmwave UART
# # Information coming from dedicated gpio (IO2)
# - platform: gpio
# name: Mmwave GPIO
# device_class: motion
# pin:
# number: GPIO25
# mode: INPUT_PULLDOWN
# switch:
# # Switch to turn on/off detection
# - platform: dfrobot_sen0395
# type: sensor_active
# name: Mmwave Active