chickey

Lights out yaml

May 24th, 2021
1,741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.69 KB | None | 0 0
  1. esphome:
  2.   name: underbed
  3.   platform: ESP8266
  4.   board: esp01_1m
  5.  
  6. wifi:
  7.   ssid: "SSID"
  8.   password: password
  9.  
  10.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  11.   ap:
  12.     ssid: "Underbed Fallback Hotspot"
  13.     password: "3YkVk0OPyqjx"
  14.  
  15. captive_portal:
  16. # Enable logging
  17. logger:
  18. # Enable Home Assistant API
  19. api:
  20. ota:
  21. web_server:
  22.   port: 80
  23.  
  24. output:
  25.   - platform: esp8266_pwm
  26.     pin: 0
  27.     frequency: 1000Hz
  28.     id: LED_gpio_00
  29.    
  30. light:
  31.   - platform: monochromatic
  32.     name: "Light"
  33.     default_transition_length: 2s
  34.     output: LED_gpio_00
  35.    
  36. binary_sensor:
  37.   - platform: gpio
  38.     pin: 2
  39.     name: "PIR Sensor"
  40.     device_class: motion
Advertisement
Add Comment
Please, Sign In to add comment