daern2

Untitled

May 7th, 2021
781
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. esphome:
  2.   name: garage_controller
  3.   platform: ESP8266
  4.   board: esp12e
  5.  
  6. wifi:
  7.   ssid: "xxxx"
  8.   password: "xxxx"
  9.  
  10.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  11.   ap:
  12.     ssid: "Garage Controller"
  13.     password: "xxxx"
  14.  
  15. captive_portal:
  16. # Enable logging
  17. logger:
  18. # Enable Home Assistant API
  19. api:
  20.   password: "xxx"
  21.  
  22. ota:
  23.   password: "xxx"
  24.  
  25. output:
  26.   - platform: gpio
  27.     pin: GPIO16
  28.     id: 'front_security_light'
  29.    
  30.   - platform: gpio
  31.     pin: GPIO14
  32.     id: 'garage_patio_lights'
  33.    
  34.   - platform: gpio
  35.     pin: GPIO12
  36.     id: 'garage_heater_front'
  37.    
  38.   - platform: gpio
  39.     pin: GPIO13
  40.     id: 'garage_heater_rear'
  41.    
  42.  
  43. switch:
  44.   - platform: output
  45.     output: 'front_security_light'
  46.     name: "Front Security Light"
  47.     on_turn_on:
  48.     - logger.log: "Security Light turned on"
  49.     on_turn_off:
  50.     - logger.log: "Security Light turned off"
  51.    
  52.   - platform: output
  53.     output: 'garage_patio_lights'
  54.     name: "Garage Patio Lights"
  55.     on_turn_on:
  56.     - logger.log: "Patio Lights turned on"
  57.     on_turn_off:
  58.     - logger.log: "Patio Lights turned off"
  59.  
  60.   - platform: output
  61.     output: 'garage_heater_front'
  62.     name: "Garage Heater Front"
  63.     on_turn_on:
  64.     - logger.log: "Garage Heater Front turned on"
  65.     on_turn_off:
  66.     - logger.log: "Garage Heater Front turned off"
  67.  
  68.   - platform: output
  69.     output: 'garage_heater_rear'
  70.     name: "Garage Heater Rear"
  71.     on_turn_on:
  72.     - logger.log: "Garage Heater Rear turned on"
  73.     on_turn_off:
  74.     - logger.log: "Garage Heater Rear turned off"
  75.    
  76.  
RAW Paste Data