Many changes.
This commit is contained in:
102
rack_3.yaml
Normal file
102
rack_3.yaml
Normal file
@@ -0,0 +1,102 @@
|
||||
substitutions:
|
||||
duct_fan_pin: GPIO13
|
||||
duct_fan_id: duct_fan_id
|
||||
duct_fan_pwmfreq: 5000Hz
|
||||
duct_fan_spd_id: duct_fan_spd_id
|
||||
duct_fan_spd_name: rack_3_duct_fan_spd
|
||||
heat_pin: GPIO19
|
||||
heat_name: "Denon Pwr"
|
||||
dallas_pin: GPIO32
|
||||
dallas_1_addr: "0x7F0114328974D728"
|
||||
dallas_1_name: rack_3_temp_cold
|
||||
dallas_2_addr: "0xB801143296ED7B28"
|
||||
dallas_2_name: rack_3_temp_hot
|
||||
|
||||
esphome:
|
||||
name: rack_3
|
||||
platform: ESP32
|
||||
board: esp32doit-devkit-v1
|
||||
|
||||
wifi:
|
||||
ssid: "kungle-ot"
|
||||
password: "ThingsWelcomeToKungle"
|
||||
|
||||
manual_ip:
|
||||
static_ip: 192.168.37.74
|
||||
gateway: 192.168.37.1
|
||||
subnet: 255.255.255.0
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Rack 3 Fallback Hotspot"
|
||||
password: "jj0CXEgu3Lzo"
|
||||
|
||||
captive_portal:
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${duct_fan_pin}
|
||||
id: ${duct_fan_id}
|
||||
frequency: ${duct_fan_pwmfreq}
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: ${duct_fan_spd_id}
|
||||
output: ${duct_fan_id}
|
||||
name: ${duct_fan_spd_name}
|
||||
# speed:
|
||||
# low: 0.2
|
||||
# medium: 0.6
|
||||
# high: 1.0
|
||||
|
||||
dallas:
|
||||
- pin:
|
||||
number: ${dallas_pin}
|
||||
mode: INPUT_PULLUP
|
||||
update_interval: 10s
|
||||
|
||||
sensor:
|
||||
- platform: dallas
|
||||
address: ${dallas_1_addr}
|
||||
name: ${dallas_1_name}
|
||||
- platform: dallas
|
||||
address: ${dallas_2_addr}
|
||||
name: ${dallas_2_name}
|
||||
|
||||
# Sense when receiver is turned on
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: ${heat_pin}
|
||||
name: ${heat_name}
|
||||
device_class: power
|
||||
# on_press:
|
||||
# then:
|
||||
# - if:
|
||||
# condition:
|
||||
# lambda: 'return id(${duct_fan_spd_id}).state == "OFF";'
|
||||
# then:
|
||||
# - logger.log: "${duct_fan_spd_name} was off. Turning on as ${heat_name} turned on."
|
||||
# - fan.turn_on:
|
||||
# id: ${duct_fan_spd_id}
|
||||
# speed: LOW
|
||||
# else:
|
||||
# - logger.log: "${heat_name} turned on, but not turning on ${duct_fan_spd_name} as already on."
|
||||
|
||||
# on_release:
|
||||
# then:
|
||||
# - fan.turn_on:
|
||||
# id: ${duct_fan_spd_id}
|
||||
# speed: LOW
|
||||
|
||||
# - lambda: |-
|
||||
# if (id(${duct_fan_spd_id}).is_off) {
|
||||
|
||||
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
Reference in New Issue
Block a user