101 lines
1.8 KiB
YAML
101 lines
1.8 KiB
YAML
# 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"
|
|
|