Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.00 KB | None | 0 0
  1. esphome:
  2.   name: occupancy_sensors
  3.   platform: ESP8266
  4.   board: nodemcuv2
  5.  
  6. wifi:
  7.   ssid: "MYSSID"
  8.   password: "PASSWORD"
  9.  
  10.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  11.   ap:
  12.     ssid: "Occupancy Fallback Hotspot"
  13.     password: "PASSWORD"
  14.  
  15. captive_portal:
  16. # Enable logging
  17. logger:
  18. # Enable Home Assistant API
  19. api:
  20. ota:
  21. binary_sensor:
  22.   - platform: gpio
  23.     device_class: motion
  24.     name: "Zone D1"
  25.     pin:
  26.         number: D1
  27.         mode: INPUT_PULLUP
  28.    
  29.   - platform: gpio
  30.     device_class: motion
  31.     name: "Zone D2"
  32.     pin:
  33.         number: D2
  34.         mode: INPUT_PULLUP
  35.  
  36.   - platform: gpio
  37.     device_class: motion
  38.     name: "Zone D5"
  39.     pin:
  40.         number: D5
  41.         mode: INPUT_PULLUP
  42.  
  43.   - platform: gpio
  44.     device_class: motion
  45.     name: "Zone D6"
  46.     pin:
  47.         number: D6
  48.         mode: INPUT_PULLUP
  49.  
  50.   - platform: gpio
  51.     device_class: motion
  52.     name: "Zone D7"
  53.     pin:
  54.         number: D7
  55.         mode: INPUT_PULLUP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement