Add on_boot. Partial clean up.

This commit is contained in:
2022-07-03 06:28:11 -07:00
parent 3a66962d34
commit 918bf7e19a
2 changed files with 36 additions and 14 deletions

View File

@@ -42,9 +42,19 @@ globals:
initial_value: ${duct_fan_hi_spd}
<<: !include .common.yaml
<<: !include .esp32.yaml
<<: !include .wifi-oss.yaml
esphome:
name: ${dn}
platform: ESP32
board: esp32doit-devkit-v1
on_boot:
- priority: 200.0
then:
- output.set_level:
id: duct_fan_output_id
level: ${duct_fan_vent_spd}%
switch:
- platform: gpio
pin: ${wall_fan_pwr_pin}
@@ -199,4 +209,3 @@ climate:
- logger.log: "WARNING: ${friendly_name} Thermostat has hit high temp!"
- switch.turn_on: thermostat_on_id
#TODO - provide some kind of warning / action here