Guest User

Untitled

a guest
Aug 27th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. esphome:
  2. name: media_cab_fan
  3. platform: ESP8266
  4. board: esp01_1m
  5. board_flash_mode: dout
  6. on_boot:
  7. priority: -10
  8. then:
  9. - light.turn_on: blue_led
  10. wifi:
  11. ssid: "******"
  12. password: "*******"
  13. fast_connect: true
  14. manual_ip:
  15. static_ip: *.*.*.*
  16. gateway: *.*.*.*
  17. subnet: *.*.*.*
  18.  
  19. # Enable fallback hotspot (captive portal) in case wifi connection fails
  20. ap:
  21. ssid: "Fallback Hotspot"
  22. password: "7G89cS"
  23.  
  24. captive_portal:
  25.  
  26. # Enable logging
  27. logger:
  28.  
  29. # Enable Home Assistant API
  30. api:
  31. password: "*****"
  32.  
  33. ota:
  34. password: "*****"
  35.  
  36. web_server:
  37. port: 80
  38.  
  39. binary_sensor:
  40. - platform: gpio
  41. pin:
  42. number: GPIO0
  43. mode: INPUT_PULLUP
  44. inverted: True
  45. name: "TH16 Button"
  46. on_press:
  47. - switch.toggle: relay
  48.  
  49. sensor:
  50. - platform: wifi_signal
  51. name: "TH16 WiFi Signal"
  52. update_interval: 60s
  53. - platform: dht
  54. pin: GPIO14
  55. model: SI7021
  56. temperature:
  57. name: "TH16 Temperature"
  58. filters:
  59. - lambda: return x * (9.0/5.0) + 32.0;
  60. unit_of_measurement: "°F"
  61. icon: "mdi:thermometer-lines"
  62. on_value_range:
  63. - above: 87.0
  64. then:
  65. - switch.turn_on: relay
  66. - below: 84.0
  67. then:
  68. - switch.turn_off: relay
  69. humidity:
  70. name: "TH16 Humidity"
  71. icon: "mdi:water-percent"
  72. accuracy_decimals: 1
  73. update_interval: 60s
  74.  
  75. switch:
  76. - platform: restart
  77. name: "TH16 Restart"
  78. - platform: gpio
  79. pin: GPIO12
  80. name: "TH16 Relay"
  81. id: relay
  82.  
  83. output:
  84. - platform: esp8266_pwm
  85. id: th16_blue_led
  86. pin:
  87. number: GPIO13
  88. inverted: True
  89.  
  90. light:
  91. - platform: monochromatic
  92. name: "TH16 Blue LED"
  93. id: blue_led
  94. output: th16_blue_led
  95.  
Advertisement
Add Comment
Please, Sign In to add comment