-
Notifications
You must be signed in to change notification settings - Fork 0
/
garagedoor.yml
60 lines (54 loc) · 1.04 KB
/
garagedoor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
esphome:
name: garagedoor
platform: ESP8266
board: nodemcu
wifi:
ssid: "wifi"
password: "password"
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "apipassword"
ota:
password: "otapassword"
switch:
- platform: gpio
pin: D1
id: relay
- platform: template
name: "Gate Remote"
icon: "mdi:gate"
turn_on_action:
- switch.turn_on: relay
- delay: 500ms
- switch.turn_off: relay
- platform: restart
name: 'Garage Door REBOOT'
binary_sensor:
- platform: gpio
pin:
number: D2
mode: INPUT_PULLUP
inverted: False
name: "Garage Door Sensor"
device_class: garage_door
filters:
- delayed_on: 20ms
sensor:
- platform: dht
pin: D0
temperature:
name: "Garage Temperature"
filters:
- lambda: return x * (9.0/5.0) + 32.0;
unit_of_measurement: "°F"
humidity:
name: "Garage Humidity"
update_interval: 60s
model: DHT11
- platform: wifi_signal
name: "Frontgate WiFi Signal"
update_interval: 60s
- platform: uptime
name: Frontgate uptime Sensor