Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: occupancy_sensors
- platform: ESP8266
- board: nodemcuv2
- wifi:
- ssid: "MYSSID"
- password: "PASSWORD"
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Occupancy Fallback Hotspot"
- password: "PASSWORD"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- binary_sensor:
- - platform: gpio
- device_class: motion
- name: "Zone D1"
- pin:
- number: D1
- mode: INPUT_PULLUP
- - platform: gpio
- device_class: motion
- name: "Zone D2"
- pin:
- number: D2
- mode: INPUT_PULLUP
- - platform: gpio
- device_class: motion
- name: "Zone D5"
- pin:
- number: D5
- mode: INPUT_PULLUP
- - platform: gpio
- device_class: motion
- name: "Zone D6"
- pin:
- number: D6
- mode: INPUT_PULLUP
- - platform: gpio
- device_class: motion
- name: "Zone D7"
- pin:
- number: D7
- mode: INPUT_PULLUP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement