initial commit
This commit is contained in:
commit
cbe4f0d409
3 changed files with 71 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal 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
|
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
PORT = /dev/ttyUSB5
|
||||
PROJECT = livingroom.yaml
|
||||
|
||||
.PHONY: esphome, wizard, upload
|
||||
|
||||
esphome:
|
||||
docker pull esphome/esphome
|
||||
|
||||
wizard:
|
||||
docker run --rm -v "${PWD}":/config -it -u $(shell id -u) esphome/esphome wizard $(PROJECT)
|
||||
|
||||
upload:
|
||||
docker run --rm -v "${PWD}":/config --device=$(PORT) -it esphome/esphome run $(PROJECT)
|
||||
|
||||
dashboard:
|
||||
docker run --rm --net=host -v "${PWD}":/config -it -u $(shell id -u) esphome/esphome
|
50
livingroom.yaml
Normal file
50
livingroom.yaml
Normal file
|
@ -0,0 +1,50 @@
|
|||
esphome:
|
||||
name: livingroom
|
||||
|
||||
esp32:
|
||||
board: featheresp32
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
password: ""
|
||||
|
||||
ota:
|
||||
password: ""
|
||||
|
||||
wifi:
|
||||
ssid: "NETZ39"
|
||||
password: !secret wifi_pw
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Livingroom Fallback Hotspot"
|
||||
password: "KagHyImVVStB"
|
||||
|
||||
captive_portal:
|
||||
|
||||
i2c:
|
||||
sda: 21
|
||||
scl: 22
|
||||
scan: true
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: "BME680 Temperature"
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: "BME680 Pressure"
|
||||
humidity:
|
||||
name: "BME680 Humidity"
|
||||
gas_resistance:
|
||||
name: "BME680 Gas Resistance"
|
||||
address: 0x77
|
||||
update_interval: 60s
|
||||
|
||||
mqtt:
|
||||
broker: mqtt.n39.eu
|
Loading…
Reference in a new issue