This commit is contained in:
foosinn 2022-01-15 02:25:47 +01:00
commit 7a4241063a
4 changed files with 105 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
eval "$(lorri direnv)"

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
/.esphome/
/secrets.yaml

91
poempl.yaml Normal file
View file

@ -0,0 +1,91 @@
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

8
shell.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.bashInteractive
pkgs.esphome
];
}