Close

On the blink

A project log for Ventbot: warm side cool, cool side warm

A DIY register booster project to even out the temps around my home.

wjcarpenterWJCarpenter 11/19/2022 at 04:350 Comments

Since I plan to use MOSFETs to turn the power to the fans off and on, I wanted to make sure I understood how that should be wired up. I wrote the equivalent of the ubiquitous "blink" program in ESPHome configuration.

substitutions:
  node_name: esp32-blink
  log_level: DEBUG

  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password

  ota_password: !secret ota_password
  
  LED:     'GPIO14'

esphome:
  name: ${node_name}
  platform: esp32
  board: esp32dev
wifi:
  ssid:      ${wifi_ssid}
  password:  ${wifi_password}
ota:
  password: ${ota_password}

switch:
  - platform: gpio
    name: "${node_name} LED"
    id: i_led
    internal: true
    pin:
      number: ${LED}
      inverted: yes

interval:
  - interval: 0.5s
    then:
      - switch.toggle: i_led

Discussions