55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
esphome:
|
|
name: purple2
|
|
platform: ESP8266
|
|
board: nodemcuv2
|
|
|
|
wifi:
|
|
ssid: "Meneely"
|
|
password: "punxsutawney1"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Purple Fallback Hotspot"
|
|
password: "QNWj7LmaNoD6"
|
|
manual_ip:
|
|
# Set this to the IP of the ESP
|
|
static_ip: 192.168.87.11
|
|
# Set this to the IP address of the router. Often ends with .1
|
|
gateway: 192.168.86.1
|
|
# The subnet of the network. 255.255.255.0 works for most home networks.
|
|
subnet: 255.255.254.0
|
|
|
|
captive_portal:
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
i2c:
|
|
sda: D2
|
|
scl: D1
|
|
scan: True
|
|
id: bus_a
|
|
|
|
sensor:
|
|
- platform: bme280
|
|
temperature:
|
|
name: "Purple2_BME280 Temperature"
|
|
oversampling: 16x
|
|
pressure:
|
|
name: "Purple2_BME280 Pressure"
|
|
humidity:
|
|
name: "Purple2_BME280 Humidity"
|
|
address: 0x76
|
|
update_interval: 60s
|
|
- platform: bh1750
|
|
name: "Purple2_BH1750 Illuminance"
|
|
address: 0x23
|
|
measurement_time: 69
|
|
update_interval: 60s
|
|
|