-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp12_rgb.yaml
61 lines (52 loc) · 1.04 KB
/
esp12_rgb.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
esphome:
name: esp12_rgb
platform: esp8266
board:
esp12e
# board_build.f_cpu: 160000000L
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "esp12-rgb Fallback Hotspot"
password: !secret fallback_password
captive_portal:
# Enable web server
web_server:
port: 80
auth:
username: !secret web_server_user
password: !secret web_server_password
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret hass_key
ota:
platform: esphome
password: !secret hass_password
light:
- platform: rgb
name: "Fibre light"
red: output_red
green: output_green
blue: output_blue
effects:
- pulse:
- random:
- strobe:
output:
- platform: esp8266_pwm
id: output_red
pin: GPIO0
inverted: true
- platform: esp8266_pwm
id: output_green
pin: GPIO5
inverted: true
- platform: esp8266_pwm
id: output_blue
pin: GPIO01
inverted: true