-
Notifications
You must be signed in to change notification settings - Fork 0
/
staande_lamp.yaml
69 lines (57 loc) · 1.13 KB
/
staande_lamp.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
substitutions:
devicename: staande-lamp
friendly_name: Staande lamp
################ Generics ################
esphome:
name: $devicename
friendly_name: ${friendly_name}
esp8266:
board: esp8285
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
gateway: !secret wifi_gateway
subnet: !secret wifi_subnet
static_ip: !secret wifi_static_ip_staande_lamp
logger:
api:
encryption:
key: !secret api_key
ota:
platform: esphome
time:
- platform: homeassistant
id: homeassistant_time
timezone: Europe/Amsterdam
button:
- platform: restart
name: Restart
entity_category: diagnostic
################ Components ################
status_led:
pin:
number: GPIO13
inverted: yes
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode:
input: true
pullup: true
inverted: true
id: button_1
on_press:
then:
- light.toggle: light_1
output:
- platform: gpio
pin: GPIO12
id: relay_1
light:
- platform: binary
name: Switch
id: light_1
output: relay_1
restore_mode: RESTORE_DEFAULT_OFF