Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: media_cab_fan
- platform: ESP8266
- board: esp01_1m
- board_flash_mode: dout
- on_boot:
- priority: -10
- then:
- - light.turn_on: blue_led
- wifi:
- ssid: "******"
- password: "*******"
- fast_connect: true
- manual_ip:
- static_ip: *.*.*.*
- gateway: *.*.*.*
- subnet: *.*.*.*
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Fallback Hotspot"
- password: "7G89cS"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- password: "*****"
- ota:
- password: "*****"
- web_server:
- port: 80
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO0
- mode: INPUT_PULLUP
- inverted: True
- name: "TH16 Button"
- on_press:
- - switch.toggle: relay
- sensor:
- - platform: wifi_signal
- name: "TH16 WiFi Signal"
- update_interval: 60s
- - platform: dht
- pin: GPIO14
- model: SI7021
- temperature:
- name: "TH16 Temperature"
- filters:
- - lambda: return x * (9.0/5.0) + 32.0;
- unit_of_measurement: "°F"
- icon: "mdi:thermometer-lines"
- on_value_range:
- - above: 87.0
- then:
- - switch.turn_on: relay
- - below: 84.0
- then:
- - switch.turn_off: relay
- humidity:
- name: "TH16 Humidity"
- icon: "mdi:water-percent"
- accuracy_decimals: 1
- update_interval: 60s
- switch:
- - platform: restart
- name: "TH16 Restart"
- - platform: gpio
- pin: GPIO12
- name: "TH16 Relay"
- id: relay
- output:
- - platform: esp8266_pwm
- id: th16_blue_led
- pin:
- number: GPIO13
- inverted: True
- light:
- - platform: monochromatic
- name: "TH16 Blue LED"
- id: blue_led
- output: th16_blue_led
Advertisement
Add Comment
Please, Sign In to add comment