forked from dbuezas/esphome-bp5758
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestrgbcw.yaml
95 lines (80 loc) · 1.61 KB
/
testrgbcw.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
substitutions:
hostname: testrgbcw # lowercase, no spaces
idname: testrgbcw
device_name: ${hostname}
friendly_name: ${hostname}
esphome:
name: ${hostname}
platformio_options:
board_build.f_cpu: 160000000L
esp8266:
board: esp01_1m
# Enable logging
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
api:
password: !secret esphome_api_password
reboot_timeout: 0s
ota:
password: !secret esphome_ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
reboot_timeout: 15s
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: ${hostname}
password: !secret esphome_ap_password
# Device Specific Config
time:
- platform: homeassistant
id: homeassistant_time
external_components:
- source:
type: git
url: https://github.com/ssieb/custom_components
components: [ sm2235 ]
i2c:
sm2235:
- id: my_sm
sda: 4
scl: 5
rgb_current: 12
cw_current: 25
output:
- platform: sm2235
id: red
channel: 0
- platform: sm2235
id: green
channel: 1
- platform: sm2235
id: blue
channel: 2
- platform: sm2235
id: coolwhite
channel: 3
- platform: sm2235
id: warmwhite
channel: 4
light:
- platform: rgbww
name: My Light
red: red
green: green
blue: blue
cold_white: coolwhite
warm_white: warmwhite
text_sensor:
- platform: wifi_info
ip_address:
name: ESP IP Address
id: espip
ssid:
name: ESP Connected SSID
id: espssid
mac_address:
name: ESP Mac Wifi Address
id: espmac