From f641e1c9969275a7b0398b7423aaa95a9d010694 Mon Sep 17 00:00:00 2001 From: brentru Date: Tue, 5 Feb 2019 17:51:13 -0500 Subject: [PATCH] add ESPHomeYAML configuration for Adafruit IO, HomeAssistant, and BME280 --- home-assistant-io/feather_bme280.yaml | 82 +++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 home-assistant-io/feather_bme280.yaml diff --git a/home-assistant-io/feather_bme280.yaml b/home-assistant-io/feather_bme280.yaml new file mode 100644 index 00000000..75df7722 --- /dev/null +++ b/home-assistant-io/feather_bme280.yaml @@ -0,0 +1,82 @@ +# ESPHomeYAML Configuration +# for Home Assistant and Adafruit IO + +substitutions: + device_name: feather_bme280 + io_username: YOUR_ADAFRUIT_IO_USERNAME + io_key: YOUR_ADAFRUIT_IO_KEY + update_interval: 30s + +esphomeyaml: + name: ${device_name} + platform: ESP8266 + board: huzzah + +# WiFi Configuration +wifi: + ssid: 'YOUR_SSID' + password: 'YOUR_SSID_PASSWORD' + # Uncomment this for Static IP Configuration + #manual_ip: + # Set this to the IP of the ESP + #static_ip: 10.0.0.0 + # Set this to the IP address of the router. Often ends with .1 + #gateway: 10.0.0.1 + # The subnet of the network. 255.255.255.0 works for most home networks. + #subnet: 255.255.255.0 + +# Adafruit IO MQTT Setup +mqtt: + broker: 'io.adafruit.com' + username: ${io_username} + password: ${io_key} + topic_prefix: '${io_username}/feeds' + birth_message: + topic: ${io_username}/status + payload: Online + will_message: + topic: ${io_username}/status + payload: Offline + log_topic: + +# Enable Home Assistant API +api: + +# Enable OTA Access +ota: + +# Enable verbose logging over serial +logger: + +# Create BME Sensor on I2C +i2c: + sda: SDA + scl: SCL + scan: False +binary_sensor: + - platform: status + name: "BME280 Status" + id: status + internal: True +sensor: + - platform: bme280 + address: 0x77 + temperature: + name: "BME280 Temperature" + id: temperature + state_topic: ${io_username}/feeds/temperature + discovery: False + filters: [] + pressure: + name: "BME280 Pressure" + id: pressure + state_topic: ${io_username}/feeds/pressure + discovery: False + filters: [] + humidity: + name: "BME280 Humidity" + id: humidity + state_topic: ${io_username}/feeds/humidity + discovery: False + filters: [] + update_interval: ${update_interval} \ No newline at end of file