Skip to content

Instantly share code, notes, and snippets.

@rubenkr
Created November 10, 2020 17:07
Show Gist options
  • Save rubenkr/afc47556ffc7b43fc0aea70c0131b8f9 to your computer and use it in GitHub Desktop.
Save rubenkr/afc47556ffc7b43fc0aea70c0131b8f9 to your computer and use it in GitHub Desktop.
esphome:
name: esp82_d1_mini_pir_door
platform: ESP8266
board: d1_mini
wifi:
ssid: "XXXX"
password: "XXX"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp82 Server Temp"
password: "BS8JVvghR5jz"
captive_portal:
# Example configuration entry
binary_sensor:
- platform: gpio
pin: D5
name: "D1 Mini Door PIR"
device_class: motion
switch:
- platform: restart
name: "Reboot D1 Mini"
output:
- platform: esp8266_pwm
id: my_led
pin: D2
light:
- platform: monochromatic
name: "Door Alarm LED"
output: my_led
# Enable logging
logger:
# Enable Home Assistant API
api:
#mqtt:
#broker: 192.168.1.52
ota:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment