Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: garage_controller
- platform: ESP8266
- board: esp12e
- wifi:
- ssid: "<ssid>"
- password: "<pass>"
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Garage Controller"
- password: "<pass>"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- password: "<pass>"
- ota:
- password: "<pass>"
- output:
- - platform: gpio
- pin: GPIO16
- id: 'front_security_light'
- - platform: gpio
- pin: GPIO14
- id: 'garage_patio_lights'
- - platform: gpio
- pin: GPIO12
- id: 'garage_heater_front'
- - platform: gpio
- pin: GPIO13
- id: 'garage_heater_rear'
- switch:
- - platform: output
- output: 'front_security_light'
- name: "Front Security Light"
- on_turn_on:
- - logger.log: "Security Light turned on"
- on_turn_off:
- - logger.log: "Security Light turned off"
- - platform: output
- output: 'garage_patio_lights'
- name: "Garage Patio Lights"
- on_turn_on:
- - logger.log: "Patio Lights turned on"
- on_turn_off:
- - logger.log: "Patio Lights turned off"
- - platform: output
- output: 'garage_heater_front'
- name: "Garage Heater Front"
- on_turn_on:
- - logger.log: "Garage Heater Front turned on"
- on_turn_off:
- - logger.log: "Garage Heater Front turned off"
- - platform: output
- output: 'garage_heater_rear'
- name: "Garage Heater Rear"
- on_turn_on:
- - logger.log: "Garage Heater Rear turned on"
- on_turn_off:
- - logger.log: "Garage Heater Rear turned off"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement