Skip to content

Instantly share code, notes, and snippets.

@rubenkr
Created November 10, 2020 11:17
Show Gist options
  • Save rubenkr/98709f707940cdc7c17fd6abf326e6b5 to your computer and use it in GitHub Desktop.
Save rubenkr/98709f707940cdc7c17fd6abf326e6b5 to your computer and use it in GitHub Desktop.
esphome:
name: esp82_d1_mini_pir_door
platform: ESP8266
board: nodemcu
wifi:
ssid: "xxxx"
password: "yyyyy"
# 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: "PIR Sensor"
device_class: motion
switch:
- platform: restart
name: "ESP8266 Unifi Ambient Temperature"
- platform: gpio
pin: D7
name: "Red 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