Initial commit
This commit is contained in:
10
esphome/.gitignore
vendored
Normal file
10
esphome/.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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/
|
||||
**/.pioenvs/
|
||||
**/.piolibdeps/
|
||||
**/lib/
|
||||
**/src/
|
||||
**/platformio.ini
|
||||
/secrets.yaml
|
||||
94
esphome/damper-relay-1.yaml
Normal file
94
esphome/damper-relay-1.yaml
Normal file
@@ -0,0 +1,94 @@
|
||||
# change accordingly
|
||||
substitutions:
|
||||
# Device information
|
||||
devicename: damper-relay-controller-1
|
||||
upper_devicename: FrankenSystem Damper Relay Controller
|
||||
# Board / Pin Substitutions
|
||||
platform: ESP32
|
||||
board: nodemcu-32s
|
||||
# Relays
|
||||
relay1_pin: GPIO18
|
||||
relay2_pin: GPIO05
|
||||
relay3_pin: GPIO19
|
||||
relay4_pin: GPIO17
|
||||
relay5_pin: GPIO04
|
||||
relay6_pin: GPIO16
|
||||
relay7_pin: GPIO15
|
||||
relay8_pin: GPIO02
|
||||
|
||||
|
||||
esphome:
|
||||
name: $devicename
|
||||
#platform: $platform
|
||||
#board: $board
|
||||
|
||||
esp32:
|
||||
board: $board
|
||||
framework:
|
||||
type: arduino
|
||||
version: recommended
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
# level: VERY_VERBOSE
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
password: "c269bfc3d2544cbeef35ed32dcc937fb"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "damper-relay-1 Fallback Hotspot"
|
||||
password: "ppGYrjrlUbw7"
|
||||
|
||||
#captive_portal:
|
||||
|
||||
# Enable MQTT Broker communications.
|
||||
mqtt:
|
||||
broker: !secret mqtt_broker
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
topic_prefix: frankensystem
|
||||
discovery: true
|
||||
|
||||
switch:
|
||||
# 8 Channel Relay - 2
|
||||
- platform: gpio
|
||||
pin: $relay5_pin
|
||||
name: "Coil Damper - 1"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay3_pin
|
||||
name: "Coil Damper - 2"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay1_pin
|
||||
name: "Coil Damper - 3"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay2_pin
|
||||
name: "Bypass Damper - 1"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay4_pin
|
||||
name: "Bypass Damper - 2"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay6_pin
|
||||
name: "Spare - 1"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay7_pin
|
||||
name: "Spare - 2"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay8_pin
|
||||
name: "Spare - 3"
|
||||
|
||||
67
esphome/sensor-1.yaml
Normal file
67
esphome/sensor-1.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
esphome:
|
||||
name: sensor-1
|
||||
platform: ESP8266
|
||||
board: nodemcuv2
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
password: "bd2cc7a3c3bce9d1d088a52a3e730d4a"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Sensor-1 Fallback Hotspot"
|
||||
password: "S3h9aKPjGBH4"
|
||||
|
||||
# Enable MQTT Broker communications
|
||||
mqtt:
|
||||
broker: !secret mqtt_broker
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
topic_prefix: frankensystem
|
||||
discovery: true
|
||||
|
||||
captive_portal:
|
||||
|
||||
sensor:
|
||||
|
||||
- platform: dht
|
||||
pin: D1
|
||||
temperature:
|
||||
name: "Post Coil Temperature"
|
||||
humidity:
|
||||
name: "Post Coil Humidity"
|
||||
update_interval: 5s
|
||||
|
||||
- platform: dht
|
||||
pin: D2
|
||||
temperature:
|
||||
name: "Return Temperature"
|
||||
humidity:
|
||||
name: "Return Humidity"
|
||||
update_interval: 5s
|
||||
|
||||
- platform: dht
|
||||
pin: D3
|
||||
temperature:
|
||||
name: "Mixed Air Temperature"
|
||||
humidity:
|
||||
name: "Mixed Air Humidity"
|
||||
update_interval: 5s
|
||||
|
||||
- platform: dht
|
||||
pin: D0
|
||||
temperature:
|
||||
name: "Supply Temperature"
|
||||
humidity:
|
||||
name: "Supply Humidity"
|
||||
update_interval: 5s
|
||||
100
esphome/system-relays.yaml
Normal file
100
esphome/system-relays.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# change accordingly
|
||||
substitutions:
|
||||
# Device information
|
||||
devicename: system-relays
|
||||
upper_devicename: FrankenSystem System Relay Controller
|
||||
# Board / Pin Substitutions
|
||||
platform: ESP32
|
||||
board: nodemcu-32s
|
||||
# Relays
|
||||
relay1_pin: GPIO19
|
||||
relay2_pin: GPIO18
|
||||
relay3_pin: GPIO05
|
||||
relay4_pin: GPIO17
|
||||
relay5_pin: GPIO16
|
||||
relay6_pin: GPIO04
|
||||
relay7_pin: GPIO02
|
||||
relay8_pin: GPIO15
|
||||
|
||||
esphome:
|
||||
name: $devicename
|
||||
#platform: $platform
|
||||
#board: $board
|
||||
|
||||
esp32:
|
||||
board: $board
|
||||
framework:
|
||||
type: arduino
|
||||
version: recommended
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: VERY_VERBOSE
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
password: "c269bfc3d2544cbeef35ed32dcc937fb"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
power_save_mode: NONE
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
#ap:
|
||||
# ssid: "system-relays Fallback Hotspot"
|
||||
# password: "ppGYrjrlUbw7"
|
||||
|
||||
#captive_portal:
|
||||
|
||||
# Enable MQTT Broker communications.
|
||||
mqtt:
|
||||
broker: !secret mqtt_broker
|
||||
username: !secret mqtt_username
|
||||
password: !secret mqtt_password
|
||||
topic_prefix: frankensystem
|
||||
discovery: true
|
||||
|
||||
network:
|
||||
enable_ipv6: True
|
||||
|
||||
switch:
|
||||
# 8 Channel Relay - 2
|
||||
- platform: gpio
|
||||
pin: $relay4_pin
|
||||
name: "Fan Low"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay5_pin
|
||||
name: "Fan Medium Low"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay8_pin
|
||||
name: "Fan Medium High"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay7_pin
|
||||
name: "Fan High"
|
||||
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: $relay3_pin
|
||||
inverted: true
|
||||
name: "Dehumidification"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay1_pin
|
||||
name: "Humidification"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay2_pin
|
||||
name: "Reheat"
|
||||
|
||||
- platform: gpio
|
||||
pin: $relay6_pin
|
||||
name: "Cooling"
|
||||
|
||||
Reference in New Issue
Block a user