Skip to content

Instantly share code, notes, and snippets.

@mplinuxgeek
Created February 25, 2020 14:00
Show Gist options
  • Save mplinuxgeek/b87bcf83970a65d417ca4d50920a6f14 to your computer and use it in GitHub Desktop.
Save mplinuxgeek/b87bcf83970a65d417ca4d50920a6f14 to your computer and use it in GitHub Desktop.
esphome:
name: alarm
platform: ESP8266
board: d1_mini
wifi:
ssid: ''
password: ''
web_server:
port: 80
mqtt:
broker: 192.168.1.60
logger:
# Enable Home Assistant API
#api:
# password: ''
ota:
password: ''
status_led:
pin:
number: GPIO2
inverted: True
sensor:
- platform: dht
model: dht22
pin: GPIO12
temperature:
name: "Dining Room Temperature"
humidity:
name: "Dining Room Humidity"
update_interval: 60s
binary_sensor:
- platform: gpio
pin: GPIO14
name: "Zone1"
filters:
- delayed_on: 250ms
- delayed_off: 5s
device_class: motion
- platform: gpio
pin: GPIO15
name: "Zone2"
filters:
- delayed_on: 250ms
- delayed_off: 5s
device_class: motion
- platform: gpio
pin: GPIO0
name: "Zone3"
filters:
- delayed_on: 250ms
- delayed_off: 5s
device_class: motion
- platform: gpio
pin: GPIO2
name: "Doorbell"
filters:
- delayed_on: 250ms
- delayed_off: 5s
switch:
- platform: restart
name: "Alarm Restart"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment