commit cbe4f0d409d27b6826ecec1b5526e4adbceabbbb Author: David Kilias Date: Sun Nov 13 18:09:06 2022 +0100 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8b4157 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bf5f85c --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/livingroom.yaml b/livingroom.yaml new file mode 100644 index 0000000..f913174 --- /dev/null +++ b/livingroom.yaml @@ -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