-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheinz.yaml
88 lines (74 loc) · 1.49 KB
/
heinz.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
77
78
79
80
81
82
83
84
85
86
87
88
substitutions:
l_name: heinz
u_name: Heinz
esphome:
name: $l_name
platform: ESP8266
board: esp01_1m
wifi:
networks:
- ssid: Mary Poppins
password: supercalifragilisticexpialidocious
# Enable logging
logger:
# Enable Home Assistant API
api:
services:
- service: flash
then:
- output.turn_on: output1
- delay: 150ms
- output.turn_off: output1
- delay: 150ms
- output.turn_on: output1
- delay: 150ms
- output.turn_off: output1
- delay: 150ms
- output.turn_on: output1
- delay: 150ms
- output.turn_off: output1
- delay: 150ms
- if:
condition:
light.is_on: light1
then:
- output.turn_on: output1
- service: restart
then:
- switch.toggle: restart_my_esp
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "$u_name button"
on_press:
- light.toggle: light1
light:
- platform: binary
name: "$u_name"
id: light1
output: output1
output:
- platform: gpio
pin: GPIO12
id: output1
status_led:
pin:
number: GPIO13
inverted: yes
sensor:
- platform: wifi_signal
name: "$u_name WiFi signal"
update_interval: 60s
- platform: uptime
name: "$u_name uptime"
switch:
- platform: restart
id: restart_my_esp
text_sensor:
- platform: wifi_info
ip_address:
name: "$u_name IP"