-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCode ESPHome.yaml
112 lines (105 loc) · 2.5 KB
/
Code ESPHome.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
esphome:
name: 6candles
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
# Enable logging
logger:
substitutions:
alpha: 90%
intensity: 5%
default_transition_length: 0s
frequency: 1000 Hz
# Enable Home Assistant API
api:
ota:
platform: esphome
light:
- platform: monochromatic
name: "Candle 1"
id: candle_1
output: candle_1_pwm
default_transition_length: ${default_transition_length}
effects:
- flicker:
name: Flicker
alpha: ${alpha}
intensity: ${intensity}
- platform: monochromatic
name: "Candle 2"
id: candle_2
output: candle_2_pwm
default_transition_length: ${default_transition_length}
effects:
- flicker:
name: Flicker
alpha: ${alpha}
intensity: ${intensity}
- platform: monochromatic
name: "Candle 3"
id: candle_3
output: candle_3_pwm
default_transition_length: ${default_transition_length}
effects:
- flicker:
name: Flicker
alpha: ${alpha}
intensity: ${intensity}
- platform: monochromatic
name: "Candle 4"
id: candle_4
output: candle_4_pwm
default_transition_length: ${default_transition_length}
effects:
- flicker:
name: Flicker
alpha: ${alpha}
intensity: ${intensity}
- platform: monochromatic
name: "Candle 5"
id: candle_5
output: candle_5_pwm
default_transition_length: ${default_transition_length}
effects:
- flicker:
name: Flicker
alpha: ${alpha}
intensity: ${intensity}
- platform: monochromatic
name: "Candle 6"
id: candle_6
output: candle_6_pwm
default_transition_length: ${default_transition_length}
effects:
- flicker:
name: Flicker
alpha: ${alpha}
intensity: ${intensity}
output:
- platform: esp8266_pwm
id: candle_1_pwm
pin: D1
frequency: $frequency
- platform: esp8266_pwm
id: candle_2_pwm
pin: D2
frequency: $frequency
- platform: esp8266_pwm
id: candle_3_pwm
pin: D3
frequency: $frequency
- platform: esp8266_pwm
id: candle_4_pwm
pin: D5
frequency: $frequency
- platform: esp8266_pwm
id: candle_5_pwm
pin: D6
frequency: $frequency
- platform: esp8266_pwm
id: candle_6_pwm
pin: D7
frequency: $frequency