Files
esphome/pj_3_duct_fan_pwr.yaml

65 lines
1.0 KiB
YAML

substitutions:
dev_name: "pj_3_duct_fan_pwr"
esphome:
name: pj_3_duct_fan_pwr
platform: ESP8266
board: esp01_1m
wifi:
ssid: "kungle-oss"
password: "hcfU8@gG&8Hm"
fast_connect: true
manual_ip:
static_ip: 192.168.35.240
gateway: 192.168.35.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Pj 3 Duct Fan Pwr"
password: "ImgAxoEGSc90"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO4
mode: INPUT_PULLUP
inverted: True
name: "${dev_name} button"
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "${dev_name} relay"
pin: GPIO14
id: relay
status_led:
pin:
number: GPIO12
inverted: yes
sensor:
- platform: wifi_signal
name: "${dev_name} WiFi signal"
update_interval: 60s
- platform: uptime
name: "${dev_name} uptime"
# text_sensor:
# - platform: version