91 lines
1.6 KiB
YAML
91 lines
1.6 KiB
YAML
esphome:
|
|
name: poempl
|
|
platform: ESP8266
|
|
board: nodemcuv2
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
ota:
|
|
password: "VkkVfr9C0C6lGxmc"
|
|
|
|
wifi:
|
|
ssid: "backspace IoT"
|
|
password: "InternetOfShit!"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Poempl Fallback Hotspot"
|
|
password: "FP6GohMzor5x"
|
|
|
|
captive_portal:
|
|
|
|
i2c:
|
|
sda: D2
|
|
scl: D1
|
|
scan: true
|
|
id: bus_a
|
|
|
|
mqtt:
|
|
broker: mqtt.core.bckspc.de
|
|
discovery: false
|
|
|
|
light:
|
|
- platform: fastled_clockless
|
|
chipset: WS2812B
|
|
id: bar
|
|
pin: D4
|
|
num_leds: 9
|
|
rgb_order: GRB
|
|
name: Bar
|
|
effects:
|
|
- strobe
|
|
- platform: partition
|
|
name: bar00
|
|
segments:
|
|
- id: bar
|
|
from: 0
|
|
to: 0
|
|
effects:
|
|
- strobe
|
|
- platform: partition
|
|
name: bar01
|
|
segments:
|
|
- id: bar
|
|
from: 1
|
|
to: 1
|
|
effects:
|
|
- strobe
|
|
|
|
sensor:
|
|
- platform: bme280
|
|
temperature:
|
|
name: "BME280 Temperature"
|
|
id: bme280_temperature
|
|
pressure:
|
|
name: "BME280 Pressure"
|
|
id: bme280_pressure
|
|
on_value_range:
|
|
- below: 1000
|
|
then:
|
|
- light.turn_on:
|
|
id: bar
|
|
red: 20%
|
|
green: 0
|
|
blue: 0
|
|
brightness: 20%
|
|
- above: 1000
|
|
then:
|
|
- light.turn_on:
|
|
id: bar
|
|
red: 0
|
|
green: 20%
|
|
blue: 0
|
|
brightness: 20%
|
|
|
|
|
|
humidity:
|
|
name: "BME280 Relative Humidity"
|
|
id: bme280_humidity
|
|
address: 0x76
|
|
update_interval: 0.5s
|