-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdelockswitch1.yaml
76 lines (59 loc) · 1.11 KB
/
delockswitch1.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
esphome:
name: delockswitch1
platform: ESP8266
board: esp01_1m
#platformio_options:
#upload_speed: 115200
esp8266_restore_from_flash: yes
wifi:
ssid: !secret wifi-east
password: !secret wifi-pwd
use_address: DelockSwitch1.ak-online.be
mdns:
disabled: true
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
#api:
mqtt:
broker: mqtt.ak-online.be
discovery: true
topic_prefix: esphome/DelockSwitch1
ota:
web_server:
port: 80
include_internal: true
button:
- platform: restart
name: restart
sensor:
- platform: wifi_signal
name: "WiFi Signal DelockSwitch1"
update_interval: 60s
output:
- platform: gpio
pin: GPIO13
id: out_led
inverted: true
- platform: gpio
id: out_relay
pin: GPIO12
light:
- platform: binary
id: status
output: out_led
- platform: binary
name: "Office FloorLamp"
id: "DelockSwitch1"
output: out_relay
binary_sensor:
- platform: gpio
#name: "gpio0"
id: gpio0
pin:
number: GPIO00
on_press:
then:
- light.toggle: status
- light.toggle: DelockSwitch1