esphome/basement.yml

130 lines
2.5 KiB
YAML

esphome:
name: basement-sensor
esp8266:
board: nodemcuv2
# 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.122
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Basement Fallback Hotspot"
password: "RUfAhbEfZmOU"
captive_portal:
web_server:
port: 80
version: 3
http_request:
verify_ssl: false
bluetooth_proxy:
i2c:
sda: GPIO4
scl: GPIO5
scan: true
id: bus_a
sensor:
- platform: aht10
variant: AHT20
temperature:
filters:
offset: 1.3
name: "Basement Room Temperature"
humidity:
name: "Basement Room Humidity"
update_interval: 30s
i2c_id: bus_a
# uart:
# tx_pin: GPIO1
# rx_pin: GPIO3
# baud_rate: 115200
# sensor:
# - platform: bme280_i2c
# temperature:
# name: "Temperature"
# id: temperature
# filters:
# offset: -4.3
# oversampling: 16x
# pressure:
# name: "Pressure"
# id: pressure
# humidity:
# name: "Humidity"
# id: humidity
# i2c_id: bus_a
# address: 0x76
# dfrobot_sen0395:
# binary_sensor:
# # Information coming from uart bus
# - platform: dfrobot_sen0395
# name: Mmwave UART
# # on_...:
# # - dfrobot_sen0395.settings:
# # factory_reset: true
# # detection_segments:
# # # Define between one and four segments
# # - [0cm, 3m]
# # - [5.1m, 6.6m]
# # output_latency:
# # delay_after_detect: 0s
# # delay_after_disappear: 0s
# # sensitivity: 7
# # Information coming from dedicated gpio (IO2)
# - platform: gpio
# name: Mmwave GPIO
# device_class: motion
# pin:
# number: GPIO16
# mode: INPUT_PULLDOWN
# switch:
# # Switch to turn on/off detection
# - platform: dfrobot_sen0395
# type: sensor_active
# name: Mmwave Active
# - platform: dfrobot_sen0395
# type: presence_via_uart
# name: Mmwave UART active
# restore_mode: always_on
# - platform: dfrobot_sen0395
# type: turn_on_led
# name: Mmwave Led
# restore_mode: always_off
# icon: "mdi:led-on"
# - platform: dfrobot_sen0395
# type: start_after_boot
# name: Mmwave Start
# restore_mode: always_on